* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
    font-family: 'Hero-Bold', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(120deg, #0077B6 0%, #031A6B 80%);
    color: #fff;
}

h1{font-size: 4rem; font-family: "Schibsted Grotesk", serif;}
h2{font-size: 1.75em; font-family: "Schibsted Grotesk", serif;}
h3{font-size: 2rem;}
h4{font-size: 1.5rem; font-family: "Schibsted Grotesk", serif;}
p{font-size: 1.25rem; font-family: "Schibsted Grotesk", serif;}
ul{list-style: none; padding: 0; margin: 0;}
li{font-size: 1.25rem; font-family: "Schibsted Grotesk", serif;}

section {
    position: relative; /* Necesario para z-index */
    overflow: visible; /* Permite que el contenido salga */
    z-index: 1; /* Ajusta según sea necesario */
}

header {
    top: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    padding: 1rem 8%;
    padding-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #F3F5FB;
    border-bottom:1px  solid #000;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    position: absolute;
    transition: top 0.1s ease-in-out;
}

/* Espacio reservado para evitar el salto */
.header-placeholder {
    height: 100%; /* Ajusta esto a la altura del navbar */
    display: none; /* Se activará cuando el header cambie */
}

header.scrolled {
    position: fixed;
    left: 0;
    border: 1px solid #000;
    margin: .5rem auto;
    width: 50%;
    height: 4.5rem;
    background: #fff;
    padding: 0.05rem 7%;
    border-radius: 20px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
   
}

header.scrolled.visible {

    opacity: 1; /* Hace visible */
}

/* Cuando el navbar cambia a `fixed`, mostramos el espacio reservado */
header.scrolled + .header-placeholder {
    display: block;
}

header.scrolled .navlist a {
    color: #000;
}

/* Cuando el header tiene la clase scrolled */
header.scrolled .btn-content {
    border: 1px solid #000;
    background: #fff;
    color: #000000;
    box-shadow: none;
}

header.scrolled .btn-content:hover {

    transform: scale(1.1);
    color: #000000;
}

/* Ocultar back-btn cuando el header tiene la clase scrolled */
header.scrolled .back-btn {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    transition: all 0.2s ease-in-out;
}

.logo img {
    width: 10rem;
    height: auto;
}

header.scrolled .logo img{
    width: 7rem;
    height: auto;
}

header.scrolled .logo:hover {
    
    transform: scale(1.1);
    color: #000000;  
}

.navlist {
    display: flex;
}

.navlist a {
    display: inline-block;
    margin: 0 35px;
    color: #1b1b1e;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative; /* Necesario para el pseudo-elemento */
    text-decoration: none; /* Eliminamos el subrayado por defecto */
}

/* Subrayado animado */
.navlist a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px; /* Ajusta esta posición según tu diseño */
    width: 0;
    height: 2px; /* Grosor del subrayado */
    background-color: currentColor; /* Hereda el color del texto */
    transition: width 0.3s ease;
}

.navlist a:hover::after {
    width: 100%; /* Ancho completo al hacer hover */
}

.navlist a:hover {
    color: #f39c12;
}

header.scrolled a:hover {
    color: #f39c12;
}

/* Right Section (Button & Icon) */
.nav-right {
    display: flex;
    align-items: center;
}

.button-container {
    position: relative;
    width: 10rem; /* Ancho del botón */
    height: 3rem; /* Alto del botón */
    margin: 5px;
}

#blog-button{
    visibility: hidden;
}

/* Efecto hover en el contenedor */
.button-container:hover .btn-content {
    background-color: #fff;
    color: #000000; /* Desplaza el botón hacia arriba y la izquierda */
}

.button-container:hover .back-btn {
    transform: translate(5px, 5px); /* Desplaza el fondo hacia abajo y la derecha */
}

/* Estilo del botón */
.btn-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #031A6B; /* Fondo blanco */
    color: #ffffff; /* Texto negro */
    border: none;
    border-radius: 20px; /* Bordes redondeados */
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    z-index: 2;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Sombra */
}

/* Fondo del botón */
.back-btn {
    position: absolute;
    top: 5px; /* Desplazamiento inicial */
    left: 5px; /* Desplazamiento inicial */
    width: 100%;
    height: 100%;
    background-color: #FF7700; /* Color naranja */
    z-index: 1;
    border-radius: 20px; /* Bordes redondeados */
    transition: all 0.2s ease-in-out;
}

#menu-icon {
    font-size: 34px;
    color: #000000;
    z-index: 10001;
    cursor: pointer;
    display: none;
}

#trabaja-con-nosotros{
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    height: auto;
    color: rgb(255, 255, 255); 
    padding: 8rem  0 5rem 0;
}

#trabaja-con-nosotros .container {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    max-width: 600px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.trabaja-text{
    margin-bottom: 15px;
}

.trabaja-text h1 {
    color: #1b1b1e;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.trabaja-text h1 span {
    color: #FF7700; /* Amarillo para resaltar */
}

.trabaja-text p {
    color: #1b1b1e;
    text-align: center;
    font-size: 1rem;
}



.title-form {
    text-align: center;
    margin-bottom: 15px;
}

.title-form h2 {
    font-size: 3rem;
    margin-bottom: 5px;
    color: #FF7700;
}

.title-form h3 {
    font-size: 1rem;
    color: #1b1b1e;
    font-weight: 400;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: start;
}

label {
    font-size: 0.875rem;
    color: #1b1b1e;
    font-weight: 600;
}

input, textarea {
    padding: 10px;
    border: 1px solid #1b1b1e;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: #1b1b1e;
    outline: none;
}

textarea {
    resize: none;
    height: 100px;
}

input::placeholder, textarea::placeholder {
    color: #e2e8f0;
}



.form-group label {
  font-size: 0.95rem;
  color: #333;
  display: flex;
  align-items: center;
}

.form-group input[type="checkbox"] {
  margin-right: 0.5rem;
  width: 1.1rem;
  height: 1.1rem;
}

.form-group a {
  color: #0066cc;
  text-decoration: none;
  margin-left: 0.2rem;
}

.form-group a:hover {
  text-decoration: underline;
}

button {
    padding: 12px;
    background: #FF7700;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background: #004aad;
}

/* Transición suave de opacidad al cambiar de estado */
button[type="submit"] {
    transition: opacity 0.3s ease; 
  }
  
  /* Estado deshabilitado */
  button[type="submit"]:disabled {
    opacity: 0.5;            
    cursor: not-allowed;     
    pointer-events: none;    
  }
  
  /* Hover solo cuando está habilitado */
  button[type="submit"]:not(:disabled):hover {
    opacity: 0.9;         
  }
  

/* Contenedor principal */
.whatsapp-wrapper {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 1000;
    display: flex;
    flex-direction: row-reverse; /* Invierte el orden de los elementos */
    align-items: center;
    pointer-events: none;
}

/* Botón principal (mismo estilo) */
.whatsapp {
    position: relative;
    width: 80px;
    height: 80px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    font-size: 30px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease;
    pointer-events: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Contenedor del texto - modificado para izquierda */
.whatsapp-container {
    position: absolute;
    background-color: #ffffff;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Alineación a la izquierda */
    width: 80px;
    height: 80px;
    transition: all 0.3s ease;
    z-index: 2;
    overflow: hidden;
    right: 0; /* Cambiado de left a right */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Texto del botón - modificado para izquierda */
.whatsapp-text {
    color: #000000;
    font-size: 1rem;
    font-family: Arial, sans-serif;
    font-weight: 500;
    margin-left: 90px; /* Cambiado de margin-right a margin-left */
    white-space: nowrap;
    opacity: 0;
    transform: translateX(20px); /* Dirección de la animación invertida */
    transition: all 0.3s ease;
}

/* Efectos hover modificados */
.whatsapp:hover + .whatsapp-container {
    width: 280px;
    
}

.whatsapp:hover + .whatsapp-container .whatsapp-text {
    opacity: 1;
    transform: translateX(-62px);
    transition-delay: 0.1s;
}

/* Ícono y demás estilos se mantienen igual */
.bxl-whatsapp {
    font-size: 3.5rem;
    transition: transform 0.3s ease;
}

.whatsapp:hover {
    transform: scale(1.05);
}

.whatsapp:hover .bxl-whatsapp {
    transform: rotate(15deg);
    
}


footer {
    background: #001524;
    color: #fff;
    padding: 40px 0;
    padding-bottom: 0;
}

.containfoot {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 5rem;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    justify-content: center;
    align-items: center;
    gap: 6rem;
    padding-bottom: 20px;
}

.visitanos, .enlaces, .info-contacto, .social-neworks {
    flex: 1;
    min-width: 300px;
}

.visitanos  {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.enlaces{
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-contacto .datos-contacto{
    margin-top: 4rem;
    
}

.title-visitanos h3, .title-enlaces h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    border-bottom: 2px solid #f0a500;
    display: inline-block;
    padding-bottom: 5px;
}

.title-visitanos h4 {
    font-size: 1.5rem;
    margin: 10px 0 5px;
    color: #ffffff;
}

p {
    font-size: 1.04rem;
    margin: 5px 0;
    line-height: 1.5;
}

.menu-enlaces ul {
    list-style: none;
    padding: 0;
}

.menu-enlaces ul li {
    margin: 8px 0;
}

.menu-enlaces ul li a {
    text-decoration: none;
    color: #ddd;
    transition: color 0.3s ease;
}

.menu-enlaces ul li a:hover {
    color: #00B4D8;
}

.datos-contacto i {
    color: #ffffff;
    margin-right: 1px;
    font-size: 1.5rem;
}

.datos-contacto li {
    margin: 8px 0;
    font-size: 1.2rem;
}

.datos-contacto li a {
    text-decoration: none;
    color: #ddd;
    transition: color 0.3s ease;
}

.datos-contacto li a:hover {
    color: #00B4D8;
}

.social-neworks {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-aso img {
    max-width: 15rem;
    margin-bottom: 10px;
}

.redes-sociales ul {
    list-style: none;
    display: flex;
    gap: 15px;
    padding: 0;
}

.redes-sociales ul li a {
    color: #fff;
    font-size: 3rem;
    transition: color 0.3s ease;
}

.redes-sociales ul li a:hover {
    color: #00B4D8;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid #444;
    font-size: 14px;
    color: #bbb;
}

.footer-bottom {
    padding: 15px 0;
    text-align: center;
    color: #fff; /* Texto en blanco para contraste */
    font-size: 14px;
   margin: 0;
}

.footer-bottom .containfoot {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.copy-right p {
    margin: 0;
    font-weight: 300; /* Texto más liviano */
    letter-spacing: 0.5px;
}

.copy-right p:hover {
    color: #f39c12; /* Cambio de color al pasar el cursor */
    transition: color 0.3s ease;
}

@media (max-width: 1536px){
    
    header.scrolled {
        padding: 0.05rem 4%;   
    }

}

@media (max-width: 1400px){
    header.scrolled {
        padding: 0.05rem 5%;
    }

    .visitanos{
        margin-right: 2rem;
    }

    .containfoot{
        gap: 1rem;
    }    
}

@media (max-width: 1200px){
    header {
        padding: 20px 4%;
    }
    header.scrolled{
        width:90%;
    }

    .containfoot{
        padding: 0 25px;
        gap: 0;
    }
    .social-neworks{
        margin: 0;
    }

    .logo-aso img {
        margin-top: 30px;
      }
}

@media (max-width: 1175px){
    .logo img {
        width: 100px;
        height: auto;
    }
    .navlist a {
        margin: 0 25px;
    }
    .btn {
        padding: 11px 23px;
    }

    header.scrolled{
        width:90%;
    }
    
}


@media (max-width: 940px){
    /* Forzamos el header a ocupar el 100% sin márgenes ni animaciones */
    header,
    header.scrolled {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        margin: 0;
        border-radius: 0;
        padding: 15px 8%;
        background: #fff;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
        color: #000;
        opacity: 1; /* Siempre visible */
        transition: none; /* Deshabilita las transiciones */
    }
    
    /* Ocultamos el placeholder, ya que no se necesita para móviles */
    .header-placeholder {
        display: none;
    }
    
    /* Ajustamos el menú responsive */
    #menu-icon {
        display: block;
    }
    
    .navlist {
        position: fixed;  /* Lo cambiamos a fixed para que se superponga */
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        backdrop-filter: blur(32px);
        display: flex;
        align-items: center;
        flex-direction: column;
        padding-top: 180px;
        transition: right 0.7s ease;
        z-index: 1000;
    }
    
    .navlist a {
        display: block;
        padding: 0;
        margin-bottom: 50px;
        font-size: 1.7rem;
    }
    
    .navlist.open {
        right: 0;
    }
    
    header .button-container{
        display: none;
    }    

    .whatsapp-wrapper{
        visibility: hidden;
    }
}

@media (max-width: 450px){
    header,
    header.scrolled {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        margin: 0;
        border-radius: 0;
        padding: 15px 8%;
        background: #fff;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
        color: #000;
        opacity: 1; /* Siempre visible */
        transition: none; /* Deshabilita las transiciones */
    }
    header,
    header.scrolled {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        margin: 0;
        border-radius: 0;
        padding: 15px 8%;
        background: #fff;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
        color: #000;
        opacity: 1; /* Siempre visible */
        transition: none; /* Deshabilita las transiciones */
    }
    
    /* Ocultamos el placeholder, ya que no se necesita para móviles */
    .header-placeholder {
        display: none;
    }
        /* Ocultamos el placeholder, ya que no se necesita para móviles */
    .header-placeholder {
        display: none;
    }    
    
    #trabaja-con-nosotros {
        padding: 8rem 1rem 5rem 1rem;
      }

    .enlaces {
        margin-top: 30px;
        gap: 0;
    }

    

}


