/* Mostrar imagenes solo en versión de pantalla estrecha (móvil) y ocultarlas en pantalla más ancha */
@media (max-width: 736px) {
    #ocultar-en-movil {
        display: none;
    }    
    #mostrar-en-movil {
        display: block;
    }
}
@media (min-width: 737px) {
    /* Ocultar imagen_movil en pantallas más grandes que 980px */
    #mostrar-en-movil {
        display: none;
    }
    #ocultar-en-movil {
        display: block;
    }
}


#whatsapp-widget {
  position: fixed;
  bottom: 20px;
  right: 5px;
  z-index: 1000;
}

#whatsapp-icon {
  display: block;
  width: 65px;
  height: 60px;
  background-color: green;
  border-radius: 50%;
  text-align: center;
  line-height: 75px;
  font-size: 24px;
  color: #fff;
  text-decoration: none;
}

#email-widget {
  position: fixed;
  bottom: 90px;
  right: 5px;
  z-index: 1000;
}

#email-icon {
  display: block;
  width: 65px;
  height: 60px;
  background-color: steelblue;
  border-radius: 50%;
  text-align: center;
  line-height: 75px;
  font-size: 24px;
  color: #fff;
  text-decoration: none;
}


#close-btn-email {
  position: absolute;
  top: -5px;
  right: -2px;
  width: 20px;
  height: 20px;
  background-color: black;
  box-shadow: none;

  border: 0px;
  border-radius: 50%;
  outline: none;
  text-align: center;
  line-height: 0px;
  padding-left: 5px;
  padding-right: 5px;
  padding-bottom: 5px;
  padding-top: 5px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

#close-btn {
  position: absolute;
  top: -5px;
  right: -2px;
  width: 20px;
  height: 20px;
  background-color: black;
  box-shadow: none;

  border: 0px;
  border-radius: 50%;
  outline: none;
  text-align: center;
  line-height: 0px;
  padding-left: 5px;
  padding-right: 5px;
  padding-bottom: 5px;
  padding-top: 5px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

#header img {
    height: 100%;
    max-height: 50px; /* Ajusta este valor */
    object-fit: contain;
    vertical-align: middle;
    margin-left: 15px;
}

/* Estilos para los desplegables del menú */
/*
#header ul ul {
    background-color: #1f4164;
}
*/

/* Cambiar el color de fondo del footer-wrapper */
/*
#footer-wrapper {
    background-color: #1f4164;
}
*/


@media screen and (max-width: 768px) {
    .main.style2 > .content img {
        width: 100%; /* Hace que la imagen se ajuste al ancho del contenedor */
        max-width: 300px; /* Define un tamaño máximo razonable */
        height: auto; /* Mantiene la proporción de la imagen */
        object-fit: contain; /* Asegura que no se distorsione */
    }

    .main.style2 > .content {
        width: 90%; /* Expande el contenido para ajustarse mejor a pantallas pequeñas */
    }

    .main.style2.fullscreen {
    overflow: hidden; /* Evita que se desborde */
    height: auto; /* Asegura que se ajuste dinámicamente al contenido */
    }
}


/* Estilo general del header */
#header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3em;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0.15em rgba(0, 0, 0, 0.1);
    z-index: 10000;
    padding: 0 1em; /* Añade espacio lateral */
}

/* Logo */
#header .logo {
    height: 2em;
    object-fit: contain;
}

/* Menú navegación horizontal para pantallas grandes */
#header nav {
    display: flex;
    align-items: center;
}

#header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

#header nav ul li {
    margin-left: 1em;
}

#header nav ul li a {
    text-decoration: none;
    color: inherit;
    font-size: 1em;
}

/* Cambia el color al pasar el ratón */
#header nav ul li a:hover {
    color: #000; /* Un tono más oscuro al hacer hover */
}

/* Botón hamburguesa oculto inicialmente */
#menu-toggle {
    display: none; /* Visible solo en pantallas pequeñas */
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    z-index: 10001;
    color: inherit; /* Hereda el color del texto del menú */
    padding: 0.25em; /* Espaciado interno reducido */
    width: auto; /* Ajusta el tamaño al contenido */
    height: auto; /* Evita que sea demasiado alto */
}

/* Cambia el color al pasar el ratón */
#menu-toggle:hover {
    color: #666; /* Un tono más oscuro al hacer hover */
}

/* Menú desplegable oculto por defecto */
#nav {
    display: flex;
    flex-direction: row;
}

#nav a.active {
    font-weight: bold;
    color: #ff6347; /* Ejemplo de color destacado */
    color: #666; /* Ejemplo de color destacado */    
}

@media screen and (max-width: 736px) {
    /* Ajustes para pantallas pequeñas */

    /* Botón hamburguesa visible */
    #menu-toggle {
        display: block;
        margin-left: 0em; /* Pequeño margen desde el borde izquierdo */
    }

    /* Centrar el logo */
    #header .logo {
        position: absolute;
        top: 50%;
        left: 48%;
        transform: translate(-50%, -50%);
        height: 2em;
        object-fit: contain;
        z-index: 1; /* Asegura que esté sobre otros elementos */
    }

    /* Destacar en negrita el elemento del menú correspondiente a la sección que se está visualizando en este momento */
    #nav a.active {
        font-weight: bold;
        color: #ff6347; /* Ejemplo de color destacado */
        color: #666; /* Ejemplo de color destacado */
    }

    /* Menú desplegable oculto por defecto */
    #nav {
        display: none; /* Oculto inicialmente */
        flex-direction: column;
        position: fixed; /* Permite el despliegue desde la izquierda */
        top: 3em;
        left: 0;
        width: 55%; /* Ocupa el 70% del ancho */
        height: 100%; /* Ocupa toda la altura */
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
        padding: 1em 0;
        z-index: 1000;
        transition: transform 0.3s ease; /* Animación para el deslizamiento */
        transform: translateX(-100%); /* Fuera de la pantalla por defecto */
    }

   /* Menú visible cuando está activo */
    #nav.active {
        display: flex; /* Mostrar el menú */
        transform: translateX(0); /* Desplazarlo a la vista */
    }

    /* Elementos del menú en columna */
    #nav ul {
        flex-direction: column;
        align-items: flex-start; /* Alinea los elementos a la izquierda */
        padding-left: 1em;
    }

    #nav ul li {
        margin: 0.5em 0;
    }
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0 10px 0 0;
}

/* .grecaptcha-badge {
/*    left: 0 !important; */ /* Fija el logo a la izquierda */
/*    right: auto !important; */ /* Desactiva la posición a la derecha */
/*    bottom: 0 !important; */ /* Asegura que esté abajo */
/*    transform: translateX(0) !important; */ /* SUSTITUIDO POR EL SIGUIENTE Evita transformaciones involuntarias */
/*    transform: none; */
/*    opacity: 1 !important; */ /* Asegura que sea visible */
/*} */

/*.grecaptcha-badge iframe { */
/*    width: auto !important; */ /* Mantiene su tamaño predeterminado */
/*    height: auto !important; */ /* Mantiene su altura predeterminada */
/*} */


/* Pop-up para la política de privacidad */
#privacy-policy-popup {
    display: none;
    position: fixed;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    background: white;
    padding: 20px;
    border: 2px solid steelblue;
    border-radius: 10px;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-height: 80vh;
    overflow-y: auto;
}

/* Fondo del pop-up */
#privacy-policy-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* Botón de cerrar */
#close-privacy-policy {
    margin: 10px auto 0;
    padding: 10px 20px;
    background: steelblue;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: block;
}

/* Responsividad extra */
@media screen and (max-width: 480px) {
    #privacy-policy-popup {
        top: 5%;
        padding: 15px;
    }
    #close-privacy-policy {
        font-size: 0.9em;
    }
}
