html {
    overflow-x: hidden; 
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #f4f4f4;
    max-width: 100%;
    overflow-x: hidden;
}

/* --- Navbar Styles --- */
.navbar {
    background-color: #000; /* Negro */
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    height: 60px;
    position: fixed;
    z-index: 1000;
    width: 96%;
}

.navbar-left {
    display: flex;
    align-items: center;
}

.brand-logo-link {
    display: flex; /* Para asegurar que el enlace no tenga espacio extra alrededor de la imagen */
    height: 100%; /* Si quieres que el enlace ocupe la altura disponible */
}

.brand-logo {
    height: 40px; /* Define la altura de tu logo. Ajusta según tus necesidades. */
    /* Puedes usar 'width: auto;' para mantener la proporción de la imagen. */
    width: auto;
    max-height: 100%; /* Asegura que no se desborde del navbar si el navbar tiene una altura fija */
    vertical-align: middle; /* Ayuda a alinear la imagen si hay texto alrededor */
}

.nav-list {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px; /* Ajusta este valor para más o menos espacio entre los elementos */
}

.nav-item {
    position: relative;
    display: flex; /* Mantenemos flex para alinear el nav-link y la flecha */
    align-items: center;
}

.nav-link {
    display: block;
    color: white;
    text-align: center;
    padding: 20px 0; /* Padding solo vertical */
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-size: 0.95em;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap; /* Previene saltos de línea */
}

.nav-link:hover {
    background-color: #1a1a1a;
}

/* Hamburger menu icon styles */
.hamburger {
    display: none; /* Hidden by default, shown on smaller screens */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 1001; /* Ensure it's above the nav-list when opened */
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

/* Hamburger to X animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}


/* Media query for mobile navigation */
@media (max-width: 768px) {
    .navbar {
        padding: 0 20px; /* Adjust padding for smaller screens */
        width: calc(100% - 40px); /* Adjust width to account for padding */
    }

    .hamburger {
        display: flex; /* Show hamburger on mobile */
    }

    .nav-list {
        position: fixed;
        top: 60px; /* Below the fixed navbar */
        left: 0;
        width: 100%;
        height: calc(100vh - 60px); /* Full height of viewport minus navbar height */
        background-color: #000; /* Dark background for the mobile menu */
        flex-direction: column;
        justify-content: flex-start; /* Align items to the top */
        align-items: center; /* Center horizontally */
        transform: translateX(100%); /* Hide menu off-screen to the right */
        transition: transform 0.3s ease-in-out;
        padding-top: 20px; /* Add some padding from the top */
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }

    .nav-list.active {
        transform: translateX(0); /* Slide menu into view */
    }

    .nav-item {
        margin: 15px 0; /* Space out links vertically */
        width: 100%;
        text-align: center;
    }

    .nav-link {
        padding: 15px 0; /* Adjust padding for mobile links */
        width: 100%; /* Make links full width of the menu */
        font-size: 1.2em; /* Larger font for better touchability */
    }

    .nav-link:hover {
        background-color: #1a1a1a; /* Keep hover effect for touch feedback */
    }
}

/* --- Site Footer Styles --- */
.site-footer {
    background-color: #000; /* Black background */
    color: #fff; /* White text for general footer content */
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid #333; /* Slightly lighter black border for separation */
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 20px;
}

.login-button {
  background-color: transparent;
  color: #fff;
  border: 1px solid transparent; /* Make the border transparent initially */
  padding: 10px 20px;
  font-size: 1em;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease, opacity 0.3s ease;
  font-weight: 600;
  opacity: 0; /* Make the button invisible */
}

.login-button:hover {
  background-color: rgba(255, 255, 255, 0.5); /* Slightly visible background on hover */
  color: #000;
  opacity: 1; /* Make the button visible on hover */
  cursor: pointer; /* Change the cursor to indicate it's clickable */
}

.contact-section,
.social-section {
    flex: 1;
    min-width: 250px;
    margin: 15px;
    text-align: left; /* Align text to the left within sections */
}

.contact-section h3,
.social-section h3 {
    color: #fff; /* White for titles on black background */
    font-size: 1.2em;
    margin-bottom: 15px;
}

.contact-section p {
    color: #fff; /* White text for "Tienes alguna duda?" */
    margin-bottom: 10px;
}

.contact-section a {
    color: #fff; /* White for the email link */
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-section a:hover {
    color: #ccc; /* Lighter white on hover */
}

.social-icons {
    margin-top: 10px;
}

.social-icons a {
    color: #fff; /* White social media icons */
    font-size: 1.5em;
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #ccc; /* Lighter white on hover */
}

.footer-divider {
    border: 0;
    border-top: 1px solid #333; /* Slightly lighter black line */
    margin: 20px auto;
    width: 80%;
    max-width: 1000px;
}

.copyright {
    color: #fff; /* White text for copyright */
    font-size: 0.9em;
    margin-top: 20px;
}

/* --- Scroll-to-top button --- */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #ffffff; /* A distinct color for the button, e.g., blue */
    color: rgb(0, 0, 0);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5em;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0; /* Initially hidden */
    visibility: hidden; /* Initially hidden */
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Responsive adjustments for footer and scroll to top */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .contact-section,
    .social-section {
        text-align: center;
        margin-bottom: 30px;
    }
}

/*-- Politica de Privacidad
/* --- Estilos para la sección de Política de Privacidad --- */
.privacy-policy {
    padding: 10px 300px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    line-height: 1.6;
}

.privacy-policy h1 {
    font-size: 3.5em;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    text-transform: uppercase;
}

.privacy-policy p,
.privacy-policy ul {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 15px;
}

.privacy-policy ul {
    list-style: none; /* Elimina los puntos predeterminados */
    padding-left: 0;
}

.privacy-policy li {
    background-color: #f9f9f9;
    padding: 15px;
    border-left: 5px solid #0056b3;
    margin-bottom: 10px;
    border-radius: 5px;
}

.privacy-policy h2 {
    font-size: 1.8em;
    color: #0056b3;
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
}

.privacy-policy strong {
    color: #333;
}

/* Media Queries para hacer la página responsiva */

@media (max-width: 768px) {
    /* Ajustes generales para el contenido principal */
    .privacy-policy {
        padding: 20px; /* Reducimos el padding para que el contenido se ajuste mejor */
    }

    /* Ajuste de tamaño de fuente para los títulos */
    .privacy-policy h1 {
        font-size: 2em; /* Hacemos el título más pequeño */
    }

    /* Ajuste de tamaño de fuente para párrafos y listas */
    .privacy-policy p,
    .privacy-policy ul {
        font-size: 1em; /* Ajustamos el tamaño de la fuente para que sea más fácil de leer */
    }
}

/* --- Estilos para la sección de enlaces a Políticas de Privacidad --- */
.privacy-links-section {
    background-color: #f4f4f4; /* Fondo oscuro, casi negro */
    padding: 80px 40px;
    text-align: center;
}

.privacy-links-content {
    max-width: 800px;
    margin: 0 auto;
}

.privacy-links-content h2 {
    font-size: 2.5em;
    color: #333; /* Título en blanco */
    margin-bottom: 10px;
}

.privacy-links-content p {
    font-size: 1.1em;
    color: #555; /* Párrafo en gris claro */
    margin-bottom: 40px;
}

.links-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Permite que los elementos se envuelvan en pantallas pequeñas */
}

.privacy-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    border: 2px solid #0056b3; /* Borde de color azul oscuro */
    background-color: transparent;
    color: #0056b3; /* Texto en azul oscuro */
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    border-radius: 50px; /* Bordes redondeados para el estilo de píldora */
    transition: all 0.3s ease;
    min-width: 250px;
}

.privacy-link:hover {
    background-color: #0056b3; /* Fondo azul oscuro al pasar el cursor */
    color: #fff; /* Texto en blanco al pasar el cursor */
    transform: translateY(-5px); /* Efecto de elevación */
}

.privacy-link i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.privacy-link:hover i {
    transform: translateX(5px); /* Efecto para mover la flecha al pasar el cursor */
}

/* Media Query para responsividad */
@media (max-width: 768px) {
    .links-container {
        flex-direction: column;
        align-items: center;
    }
}