
body {
    margin: 0;
    padding: 0;
    max-width: 100%;
    max-height: 100%;
    font-family: Arial, sans-serif;
    position: sticky;
    box-sizing: border-box;
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;  
    
}

/*
.navbar {
    display: flex;
    position: absolute;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 10px 20px;
    background-color: transparent; /* Navbar inicialmente blanco *
    color: black; 
    transition: background-color 0.3s, filter 0.3s, color 0.3s;
}
*/
.navbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 10px 20px;
    background-color: transparent; /* Navbar inicialmente transparente */
    color: black; /* Texto negro */
    transition: background-color 0.3s, filter 0.3s, color 0.3s;
    position: fixed;
    width: 100%;
    top: 0;
}

.navbar.scrolled {
    background-color: white;  /*Fondo transparente al hacer scroll */
    color: rgb(255, 255, 255);  /*Texto blanco al hacer scroll */
}

.menu-icon {
    display: inline-block;
    font-size: 30px;
    color: rgb(255, 255, 255); /* Texto del icono negro */
    cursor: pointer; /* Cambia el cursor a mano al pasar sobre el icono */
    background: rgb(44, 43, 43);/*rgba(255, 255, 255, 0.1);*/
    backdrop-filter: blur(5px); /* Aplica un efecto de desenfoque */
    -webkit-backdrop-filter: blur(5px); /* Para soporte en navegadores WebKit */
    padding: 5px 12px;
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    text-align: center;
    font-weight: bold;
}

.menu-icon:hover {
    color: #030303;
    background: white;
    cursor: pointer; /* Asegura que el cursor sea una mano al pasar sobre el icono */
}

.navbar.scrolled .menu-icon {
    color: #000; /* Aplicar filtro al hacer scroll */
    border: none;
    background: white;
}

.close-icon {
    display: none;
    cursor: pointer; /* Cambia el cursor a mano al pasar sobre el icono */
    position: absolute;
    top: 20px;
    left: 20px; /* Mismo lugar que menu-icon */
}

.close-icon {
    font-size: 30px;
    color: rgb(255, 0, 0);
}

.close-icon:hover {
    color: brown;
    cursor: pointer; /* Asegura que el cursor sea una mano al pasar sobre el icono */
    font-weight: bold;
}

.logo img {
    max-width: 250px;
    height: auto;
    /*align-self: center;
    transform: translateX(50%);*/
    filter: invert(100%);  /* Filtro aplicado al logo al cargar la página */
    transition: filter 0.3s; /* Transición suave del filtro */
    margin: auto;
    display: block;
}

.navbar.scrolled .logo img {
    filter: invert(0%); /* Aplicar filtro al hacer scroll */
}

.nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(255, 255, 255);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 1;
}

.nav-links.active {
    display: flex;
    
}

.nav-links.active .close-icon {
    display: flex;
}

.nav-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.nav-links ul li {
    margin: 20px 0;
}

.nav-links ul li a {
    display: block;
    padding: 20px 0;
    color: rgb(0, 0, 0);
    text-decoration: none;
    font-size: 30px;
}

.nav-links ul li a:hover {
    text-decoration: underline;
    font-weight: bold;
}

.navbar ul li a:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: white;
}

.navbar ul li a:active {
    color: #474aff; /* Cambia el color al hacer clic */
}

/* Disposición sin Media Queries */
.navbar {
    grid-template-columns: 1fr 1fr 1fr;
}

.menu-icon {
    grid-column: 1;
    justify-self: start;
}

.logo {
    grid-column: 2;
    justify-self: center;
}

.nav-links {
    grid-column: 3;
    justify-self: end;
}

/* -----------------------------------------Styles for the Inicio section---------------------- */
main {
    margin: 0;
    padding: 0;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: Arial, sans-serif;
}

.swipe-container {
    position: relative;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
}

.swiper_inicio {
    display: flex;
    width: 100%;
    height: 100%;
}

.swiper-slide {
    position: relative;
    width: 100%;
    height: 100%;
}

.swiper-slide picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: 100%;
    max-height: 100%;
}

.bloque-inicio {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    max-width: 90%; /* Ensures adaptability */
}

.bloque-inicio h2 {
    font-size: 3rem;
    margin: 0 0 10px;
}

.bloque-inicio p {
    font-size: 1.5rem;
    margin: 0 0 20px;
}

.boton-rojo {
    background-color: rgb(0, 119, 255);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
}

.boton-rojo:hover {
    background-color: darkred;
}

/*----------------------------mis-vis---------------------------------*/

#mis-vis {
    padding: 20px;
    background-color: #f9f9f9; /* Un color de fondo claro para contrastar con el texto */
    display: flex;
    flex-wrap: wrap;
}

.mis-vis-title {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dos columnas para los contenedores de texto */
    gap: 20px; /* Espacio entre columnas */
    align-items: start; /* Alinea los items al inicio */
}

.mis-vis-title h2 {
    grid-column: 1 / span 2; /* El título ocupa ambas columnas */
    color: #000; /* Título en negro */
    margin-bottom: 20px; /* Espacio debajo del título */
}

.mis-vis-cont {
    background-color: #fff; /* Fondo blanco para los contenedores */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.mis-vis-cont h3 {
    margin-top: 0;
}

.mis-vis-cont p {
    margin-bottom: 0;
}

/* Mantener colores de la paleta en la sección */
.mis-vis-cont {
    color: #333; /* Color de texto en negro */
}
/*-------------------------------------------------------------------------------*/
/* Sección Nosotros */
/* Sección Nosotros */

.cards_container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px; /* Adds padding to avoid overlap with other sections */
    box-sizing: border-box;
}

.cards_container h2 {
    width: 100%; /* Ensures the title takes up the full width */
    text-align: center; /* Centers the text */
    font-size: 2rem;
    margin-bottom: 30px; /* Adds space between the title and the cards */
    color: #333; /* Title color */
}

.card {
    flex: 1 1 300px;
    max-width: 400px;
    height: auto;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.55);
    transition: transform 0.2s;
    overflow: hidden;
    box-sizing: border-box;
}

.card img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s ease;
    transform-origin: center center;
}

.card_description {
    height: 0;
    width: 100%;
    background: rgba(28, 28, 28, 0.7); /* Semi-transparent background */
    backdrop-filter: blur(10px); /* Adds a blur effect */
    overflow: hidden;
    font-family: 'Lucida Sans', sans-serif;
    border-radius: 15px;
    position: absolute;
    left: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: height .5s ease;
    z-index: 2;
    color: rgba(255, 255, 255, 0.8); /* Semi-transparent text */
}

.card:hover .card_description,
.card.in-view .card_description {
    height: 100%;
}

.card:hover img,
.card.in-view img {
    transform: scale(1.05);
}

/* Sección Nosotros */
/*------------------------------------------------------------------------
seccion contactanos*/
/* Sección Contactanos */
#contactanos {
    padding: 50px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f9f9f9;
    display: flex;
    flex-wrap: wrap;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.form-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 10px 0 0;
}

.form-block {
    margin-bottom: 20px;
}

.form-control, textarea {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

textarea {
    height: 150px;
    resize: vertical;
}

.bloque-ultimo {
    text-align: right;
}

.boton-negro {
    background-color: #333;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
}

.boton-negro:hover {
    background-color: #555;
}
/*----------------------------------------------------------------------------------------
 Footer Styles */
footer {
    padding: 20px;
    background-color: #333;
    color: white;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 3fr;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
}

.footer-logo {
    flex: 0.3 1 250px;/*ocupa al menos 250px*/
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo img {
    max-width: 250px;
    height: auto;    
}

.footer-column img {
    max-width: 30px;
    height: auto;
}

.footer-columns {
    flex: 1 1 250px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: white;
    text-decoration: none;
}

.footer-column ul li a:hover {
    text-decoration: underline;
}

.rr {
    text-align: center;
    margin: 0;
    padding: auto;
    font-size: .8rem;
}