* {
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
}

html{
    scroll-behavior: smooth;
    scrollbar-width: none;
}

img, video {
    max-width: 100%;
    height: auto;
}

.header {
    min-height: 100vh;
    width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Asegura separación entre nav y hero-text */
    text-align: center;
    color: white;
    padding-bottom: 20px; /* Espacio para evitar que el texto toque el borde inferior */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1% 3%;
    z-index: 3; /* Asegura que el nav esté encima del fondo */
    background: rgba(18, 26, 57, 0.9); /* Fondo semitransparente para destacar */
    position: fixed; /* Hace que el nav siempre sea visible */
    width: 100%;
    top: 0;
    box-sizing: border-box;
}

nav img {
    width: 100%;
    max-width: 90px;
}

.brand{
    justify-content: space-between;
    text-decoration: none;
    color: white;
    font-size: 1.5rem;
    padding-left: 1rem;
    font-family: "Parkinsans", sans-serif;
}

.nav-links {
    flex: 1; /*Permite que los enlaces ocupen todo el espacio restante*/
    text-align: right;
}

.nav-links ul li a#selected {
    color: #ffcd4e; /* Color amarillo */
}

.nav-links ul {
    display: flex;
    flex-wrap: wrap; /* Permite que los enlaces se muevan si es necesario */
    justify-content: flex-end;
    gap: 15px; /* Espaciado entre los enlaces */
}

.nav-links ul li {
    list-style: none;
    display: inline-block;
    padding: 8px 15px;
    position: relative;
}

.nav-links ul li:not(:first-child)::after {
    content: '';
    width: 0%;
    height: 2px;
    background: #ffcd4e;
    display: block;
    margin: auto;
    transition: all 0.3s ease-in-out;
}

.nav-links ul li:not(:first-child):hover::after {
    width: 100%;
}

.nav-links ul li a {
    color: white;
    text-decoration: none;
    font-size: 15px;
}

.nav-links ul li a:hover {
    color: #ffcd4e; /* Cambia el color al pasar el ratón de los enlaces*/
    transition: color 0.3s ease-in-out;
}

.call-button {
    background-color: #4CAF50; /* Color de fondo */
    color: white; /* Color del texto */
    padding: 12px 25px; /* Espaciado interno */
    text-align: center; /* Centrar texto */
    text-decoration: none; /* Sin subrayado */
    border-radius: 5px; /* Bordes redondeados */
    margin-left: 10px; /* Espacio a la izquierda */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2); /* Sombra sutil */
    transition: background-color 0.3s ease, transform 0.3s ease;
    min-width: 100px;
    max-width: 100px;
    white-space: nowrap;
}

.call-button:hover {
    background-color: #45a049; /* Color de fondo al pasar el mouse */
    text-decoration: none; /* Asegúrarse de que no haya subrayado al pasar el mouse */
    
}

a:focus, .call-button:focus {
    outline: 2px solid #ffcd4e;
    outline-offset: 4px;
}

/* Ajustes del dropdown */
.nav-links ul li.dropdown {
    position: relative;
}

/* Ajuste del icono de la flecha en el menú desplegable */
.nav-links ul li.dropdown > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-links ul li.dropdown > a .fa-chevron-down {
    font-size: 12px; /* Forzamos un tamaño pequeño */
    margin-left: 8px; /* Espaciado entre el texto y el icono */
    color: #ffcd4e; /* Mismo color que el diseño */
    line-height: 1; /* Asegura que el icono no se desplace */
}

.nav-links ul li .dropdown-menu {
    display: none; /* Ocultamos el menú inicialmente */
    position: absolute;
    background-color: rgba(18, 26, 57, 0.9); /* Fondo oscuro para coherencia */
    border-radius: 5px;
    padding: 10px 0;
    top: 100%;
    left: 0;
    z-index: 100;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2); /* Sombra para destacar */
}

.nav-links ul li .dropdown-menu li {
    padding: 10px 15px;
    white-space: nowrap; /* Evita que los textos largos se partan */
}

.nav-links ul li .dropdown-menu li a {
    font-size: 14px;
    text-decoration: none;
    color: white;
    display: block;
    transition: background-color 0.3s ease;
}

.nav-links ul li .dropdown-menu li a:hover {
    background-color: rgba(255, 205, 78, 0.3); /* Fondo amarillo al hover */
}

.nav-links ul li.dropdown:hover .dropdown-menu {
    display: block; /* Mostramos el menú al hover */
}

.hero-text {
    margin-top: 300px; /* Evita que se solape con el nav */
    text-align: center;
    color: white;
    z-index: 2;
    padding: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

nav .fa{
    display: none;
}

/* Estilos generales */
.container {
    max-width: 90%; /* Ancho máximo para la sección */
    margin: 0 auto; /* Centrar la sección */
    padding: 0 20px; /* Espaciado lateral */
}

.container li {
    margin-bottom: 10px;
}

.blog-section, .faq-section {
    padding: 40px 20px;
    background-color: #f9f9f9; /* Fondo claro para destacar la sección */
    color: #333; /* Color de texto oscuro para mejor legibilidad */
    border-radius: 10px; /* Bordes redondeados */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Sombra sutil para profundidad */
    margin: 20px 0; /* Espacio entre secciones */
}

.blog-section .fa-solid,
.faq-section .fa-solid {
    color: #FFC107;
    margin-right: 10px;
    font-size: 1.2em;
}


.blog-section ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.faq-section p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.blog-section h2, .faq-section h3 {
    font-size: 2.5rem; /* Aumentar tamaño del título */
    margin-bottom: 20px;
    color: #121a39; /* Color oscuro para el título */
    text-align: center; /* Centrar el título */
    font-weight: 600; /* Negrita para mayor énfasis */
}

.blog-section p, .faq-section p {
    font-size: 1.1rem; /* Aumentar tamaño del texto */
    line-height: 1.8; /* Mejora la legibilidad */
    margin-bottom: 20px;
}

.blog-section ul, .blog-section ol {
    list-style-type: none; /* Estilo de lista con puntos */
    margin-bottom: 15px;
}

.blog-section h3 {
    font-size: 1.8rem; /* Aumentar tamaño de subtítulos */
    margin: 10px 10px;
    border-bottom: 2px solid #ffcd4e; /* Línea inferior para separar subtítulos */
    padding-bottom: 5px; /* Espacio debajo del subtítulo */
}

/* Estilo para las preguntas */
.faq-section p strong{
    font-weight: bold; /* Negrita para mayor énfasis */
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(18, 26, 57, 0.9); /* Color de fondo verde */
    color: white;
    padding: 20px;
    text-align: center;
    display: none; /* Oculto por defecto */
    z-index: 1000;
    border-top: 2px solid #ffcd4e; /* Borde superior amarillo */
    box-shadow: 0px -2px 10px rgba(0, 0, 0, 0.2); /* Sombra sutil */
    border-radius: 10px 10px 0 0; /* Bordes redondeados en la parte superior */
}

.cookie-banner p {
    margin: 0; /* Elimina el margen del párrafo */
    font-size: 1rem; /* Tamaño de fuente */
    margin-bottom: 10px;
}

.cookie-banner .cookie-icon {
    font-size: 24px; /* Tamaño del ícono */
    margin-right: 10px; /* Espacio entre el ícono y el texto */
}

.btn-accept {
    background-color: #ffcd4e; /* Color de fondo amarillo */
    color: #333; /* Color del texto */
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-size: 1rem; /* Tamaño de fuente */
}

.btn-accept:hover {
    background-color: #e6b800; /* Color de fondo al pasar el mouse */
}

.btn-reject {
    background-color: transparent; /* Fondo transparente */
    color: #ffcd4e; /* Color del texto */
    border: 2px solid #ffcd4e; /* Borde amarillo */
    padding: 8px 18px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 1rem; /* Tamaño de fuente */
    margin-left: 10px; /* Espacio a la izquierda */
}

.btn-reject:hover {
    background-color: #ffcd4e; /* Color de fondo al pasar el mouse */
    color: #333; /* Cambia el color del texto al pasar el mouse */
}

/* Footer */
.footer {
    background-color: #121a39;
    color: white;
    padding: 40px 20px;
    font-size: 14px;
  }
  
  .footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
  }
  
  .footer h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #ffcd4e;
  }
  
  .footer p, .footer a {
    color: white;
    text-decoration: none;
    line-height: 1.6;
  }
  
  .footer a:hover {
    color: #ffcd4e;
  }
  
  .footer-links ul {
    list-style: none;
    padding: 0;
  }
  
  .footer-links ul li {
    margin-bottom: 10px;
  }
  
  .footer-links ul li a {
    text-decoration: none;
    color: white;
  }
  
  .footer-contact p {
    margin-bottom: 10px;
  }

  .footer-contact .contact-icon span{
    font-size: 16px;
  }
  
  .footer-social .social-icons a {
    margin-right: 10px;
    font-size: 18px;
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  .footer-social .social-icons a:hover {
    color: #ffcd4e;
  }
  
  .footer-bottom {
    text-align: center;
    margin-top: 20px;
    border-top: 1px solid #2a2f4a;
    padding-top: 20px;
    font-size: 0.9rem;
  }

  footer .fa-heart {
    color: #ffcd4e;
    margin: 0 5px;
    font-size: 1.2rem;
}
  
.back-to-top {
    position: fixed;
    width: 55px;
    height: 55px;
    line-height: 55px;
    bottom: 30px;
    left: 30px;
    text-align: left;
    background: #0056b3;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.3);
    z-index: 200;
    display: none; /* Oculto por defecto */
}

.back-to-top:hover {
    background-color: #063465; /* Color más oscuro al pasar el ratón */
}

.btn-wsp{
    position: fixed;
    width: 55px;
    height: 55px;
    line-height: 55px;
    bottom: 30px;
    right: 30px;
    background: #0df053;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.3);
    z-index: 200;
}

.btn-wsp:hover{
    text-decoration: none;
    color: #0df053;
    background: #fff;
}


/* Haciendo el diseño responsive NAV, HERO TEXT y menú BURGUER*/
@media screen and (max-width: 1100px) {
    nav img{
        width: 80px;
    }

    .brand{
        font-size: 1rem;
    }

    nav .fa{
        display: block;
        color: #fff;
        margin: 20px;
        font-size: 25px;
        cursor: pointer;
    }

    .nav-links{
        position: absolute;
        background: rgba(18, 26, 57, 1);
        height: 100vh;
        width: 300px;
        top: 0;
        right: -300px;
        flex-direction: column;
        z-index: 2;
        transition: all 0.7s;
    }

    .nav-links ul{
        padding: 30px;
        display: flex;
        flex-direction: column;
    }

    .nav-links ul li {
        list-style: none; 
    }

    .nav-links ul li a {
        display: block;
        color: white; /* Color del texto */
        text-decoration: none; /* Sin subrayado */
        text-align: left; /* Centra el texto */
    }

    #selected{
        background: none;
        padding: 0px;
        border-radius: 0;
        color: #ffcd4e;
    }
    
    .hero-text h1 {
        font-size: 2rem; /* Reduce tamaño en pantallas pequeñas */
    }

    .hero-text p {
        font-size: 1rem;
    }

    .call-button{
        font-size: 0.8rem;
        padding: 8px 15px;
    }

    .hero-text {
        margin-top: 240px; /* Ajusta el espacio bajo el nav en pantallas pequeñas */
    }
}

@media screen and (max-width: 660px) {
    .brand{
        display: none;/*Quitar nombre de la empresa*/
    }
}

/* Responsive porque elegirnos */
@media screen and (max-width: 768px) {
    .nav-links ul li.dropdown .dropdown-menu {
        position: static; /* Asegura que el menú se muestre bien en móvil */
        box-shadow: none;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
      }
      
      .footer-about, .footer-links, .footer-contact, .footer-social {
        margin-bottom: 20px;
      }
    
      .footer-social .social-icons a {
        font-size: 20px;
      }
      .blog-section h2, .faq-section h3 {
        font-size: 2rem; /* Reducir tamaño en pantallas pequeñas */
    }

    .blog-section p, .faq-section p {
        font-size: 1rem; /* Reducir tamaño del texto */
    }

    .blog-section ul, .blog-section ol {
        margin-left: 10px; /* Reducir margen en pantallas pequeñas */
    }

    .container {
        padding: 0 10px; /* Reducir espaciado lateral en pantallas pequeñas */
    }
}

@media screen and (max-width: 480px) {
    .blog-section h2, .faq-section h3 {
        font-size: 1.8rem; /* Aumentar tamaño del título */
    }

    .blog-section p, .faq-section p {
        font-size: 0.9rem; /* Reducir tamaño del texto */
    }
}