/* General Body and Container Styles */
body {
    margin: 0;
    font-family: "Source Sans 3", sans-serif;
    color: #0F172A;
    background-color: #F1F5F9; /* Fallback color */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* Fondo de imagen */
    background-image: url('../img/fondo.jpg'); /* AJUSTA LA RUTA SI ES DIFERENTE */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Para que el fondo no se mueva al hacer scroll */
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7); /* Fondo blanco semitransparente para el difuminado */
    backdrop-filter: blur(5px); /* Ajusta el valor para más o menos desenfoque */
    z-index: -1; /* Asegura que esté detrás del contenido */
}

/* Hacer que los elementos de contenido sean transparentes para ver el fondo */
.main-content, .header, .footer,
.hero-section, .feature-item, .testimonial-card,
.footer-col, .footer-col h3, .footer-col ul li,
.footer-col .button-13, .footer-col .location-1 p,
.footer-col .social-icons .icon {
    background-color: transparent !important; /* Sobrescribe cualquier color de fondo sólido */
    position: relative; /* Asegura que estén en su propio contexto de apilamiento */
    z-index: 1; /* Asegura que estén por encima del pseudo-elemento ::before */
}

/* Reajustar fondos específicos que necesitan transparencia */
.header {
    background-color: rgba(255, 255, 255, 0.9) !important; /* Fondo del header con transparencia */
    position: relative; /* Importante para el posicionamiento del menú móvil */
    z-index: 10; /* Asegura que el header esté por encima del contenido */
}

.hero-section {
    background: linear-gradient(180deg, rgba(163, 0, 0, 0.8) 0%, rgba(15, 23, 42, 0.8) 100%) !important; /* Ajusta la transparencia del hero */
    color: #FFFFFF;
}

.feature-item, .testimonial-card {
    background-color: rgba(255, 255, 255, 0.85) !important; /* Ajusta la transparencia de las tarjetas */
}

.footer {
    background-color: rgba(15, 23, 42, 0.95) !important; /* Ajusta la transparencia del footer */
}

/* Header Styles (Copiados de pagos.css y adaptados) */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
}

.logo .placeholder {
    font-family: "Tilt Warp", cursive;
    font-size: 22px;
    color: #1E293B;
    letter-spacing: 0.1px;
}

/* Estilos para el menú desplegable (por defecto para móvil) */
.link-bar-3 {
    display: none; /* Oculto por defecto en móvil */
    flex-direction: column; /* Apila los enlaces verticalmente */
    width: 100%;
    position: absolute; /* Posiciona el menú sobre el contenido */
    top: 100%; /* Justo debajo del header */
    left: 0;
    background-color: rgba(255, 255, 255, 0.95); /* Fondo del menú desplegable */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    z-index: 9; /* Asegura que esté por debajo del header pero por encima del contenido principal */
}

.link-bar-3.active { /* Clase para mostrar el menú */
    display: flex;
}

.link-bar-3 a {
    text-decoration: none;
    color: #0F172A;
    white-space: nowrap;
    padding: 10px 20px; /* Padding para cada enlace del menú */
    text-align: left;
    border-bottom: 1px solid #eee; /* Separador entre enlaces */
}

.link-bar-3 a:last-child {
    border-bottom: none; /* No hay separador en el último enlace */
}

.link-bar-3 a:hover {
    background-color: #f0f0f0;
}

/* Estilos para los elementos del menú que son solo para móvil */
.mobile-only-menu-items {
    display: flex; /* Por defecto visible en móvil si el padre está activo */
    flex-direction: column;
    width: 100%;
}

.mobile-only-menu-items .menu-item {
    /* Heredan los estilos de .link-bar-3 a */
    font-weight: 600; /* Puedes hacerlos más prominentes */
    color: #A30000; /* Un color distintivo para estos enlaces */
}


.header-actions {
    display: flex;
    gap: 10px;
}

.button-2, .button-3 {
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
}

.button-2 {
    background: #A30000;
    color: #FFFFFF;
    border: 2px solid #F97316;
}

.button-3 {
    background: transparent;
    color: #0F172A;
    border: 2px solid #0F172A;
}

.horizontal-line-2 {
    width: 100%;
    height: 1px;
    border-top: 1px solid #F1F5F9;
    margin: 0;
}

/* Estilos para el botón de hamburguesa */
.hamburger-menu {
    display: flex; /* Visible por defecto en móvil */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 11; /* Asegura que esté por encima de todo */
}

.hamburger-menu .bar {
    width: 100%;
    height: 3px;
    background-color: #0F172A;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

/* Animación de la hamburguesa a "X" */
.hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}
.hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
}
.hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}


/* Main Content */
.main-content {
    flex-grow: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Hero Section */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    border-radius: 33px;
    margin-bottom: 50px;
    max-width: 1200px;
    width: 100%;
    box-sizing: border-box;
}

.hero-text h1 {
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    font-size: 36px;
    line-height: 1.2;
    margin-bottom: 15px;
}

.hero-text p {
    font-family: "Source Sans 3", sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 30px;
    max-width: 600px;
}

.cta-button {
    padding: 12px 25px;
    background-color: #F97316; /* Color vibrante para el CTA */
    color: #FFFFFF;
    border: none;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #E0640A;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    margin-top: 30px;
    border-radius: 15px;
}

/* Features Section */
.features-section {
    width: 100%;
    max-width: 1200px;
    text-align: center;
    margin-bottom: 50px;
}

.features-section h2 {
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    font-size: 32px;
    color: #0F172A;
    margin-bottom: 40px;
}

.features-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    justify-content: center;
    align-items: center;
}

.feature-item {
    border-radius: 24px;
    padding: 30px 20px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 350px;
    width: 100%;
    box-sizing: border-box;
}

.feature-item img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
}

.feature-item h3 {
    font-family: "Source Sans 3", sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #0F172A;
    margin-bottom: 10px;
}

.feature-item p {
    font-family: "Source Sans 3", sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #475569;
}

/* Testimonials Section */
.testimonials-section {
    width: 100%;
    max-width: 1200px;
    text-align: center;
    margin-bottom: 50px;
}

.testimonials-section h2 {
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    font-size: 32px;
    color: #0F172A;
    margin-bottom: 40px;
}

.testimonial-card {
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    max-width: 600px;
    width: 100%;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
}

.testimonial-card p {
    font-style: italic;
    font-size: 18px;
    color: #1E293B;
    margin-bottom: 15px;
}

.testimonial-card span {
    font-weight: 600;
    color: #A30000;
}


/* Footer Styles (Copiados de pagos.css y adaptados) */
.footer {
    width: 100%;
    padding: 30px 5%;
    box-sizing: border-box;
}

.footer-columns {
    display: flex;
    flex-direction: column; /* Stack columns on mobile */
    gap: 30px;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col h3 {
    color: #F1F5F9;
    font-family: "Source Sans 3", sans-serif;
    font-weight: bold;
    font-size: 18px; /* Adjusted for mobile */
    line-height: 1.3;
    margin-bottom: 15px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    color: #F1F5F9;
    font-family: "Source Sans 3", sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 2.4;
    margin-bottom: 5px;
}

.footer-col .button-13 {
    width: 143px;
    height: 40px;
    background: transparent;
    color: #F1F5F9; /* Adjusted for dark background */
    border-color: #F1F5F9; /* Adjusted for dark background */
    border-radius: 5px;
}

.footer-col .location-1 {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.footer-col .location-1 .icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    mask-size: cover;
    -webkit-mask-size: cover;
    background-color: #F1F5F9;
    margin-right: 8px;
    vertical-align: middle;
}



.arrow-drop-down-icon-1 {
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M7 10l5 5 5-5z"/></svg>');
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M7 10l5 5 5-5z"/></svg>');
    color: #F1F5F9;
    width: 20px;
    height: 20px;
    margin-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons .icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #F1F5F9;
    mask-size: cover;
    -webkit-mask-size: cover;
}

/* Social media icons (placeholders, replace with actual SVG paths or background images) */
.x-twitter-brands-icon-1 {
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M22.46 6c-.77.35-1.6.58-2.46.69.88-.53 1.56-1.37 1.88-2.37-.83.49-1.75.83-2.73 1.02-2.03-2.07-5.3-.92-5.3.92V9c-4.31-.22-8.15-2.28-10.74-5.46-.45.77-.7 1.66-.7 2.6 0 1.8.94 3.39 2.37 4.34-1.2-.04-2.32-.37-3.3-1.02v.03c0 2.27 1.62 4.16 3.76 4.59-1.92.52-2.37.16-3.23-.29.6 2.01 2.34 3.47 4.41 3.51-3.17 2.4-7.14 3.8-11.45 3.8-1.57 0-3.1-.09-4.59-.27 4.07 2.62 8.91 4.15 14.1 4.15 16.88 0 26.04-14 26.04-26.04 0-.4-.01-.79-.02-1.18.91-.66 1.7-1.47 2.32-2.4z"/></svg>');
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M22.46 6c-.77.35-1.6.58-2.46.69.88-.53 1.56-1.37 1.88-2.37-.83.49-1.75.83-2.73 1.02-2.03-2.07-5.3-.92-5.3.92V9c-4.31-.22-8.15-2.28-10.74-5.46-.45.77-.7 1.66-.7 2.6 0 1.8.94 3.39 2.37 4.34-1.2-.04-2.32-.37-3.3-1.02v.03c0 2.27 1.62 4.16 3.76 4.59-1.92.52-2.37.16-3.23-.29.6 2.01 2.34 3.47 4.41 3.51-3.17 2.4-7.14 3.8-11.45 3.8-1.57 0-3.1-.09-4.59-.27 4.07 2.62 8.91 4.15 14.1 4.15 16.88 0 26.04-14 26.04-26.04 0-.4-.01-.79-.02-1.18.91-.66 1.7-1.47 2.32-2.4z"/></svg>');
}

.instagram-brands-icon-7 {
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M7.8 2h8.4C18.17 2 22 5.83 22 10.2v8.4C22 21.17 18.17 25 13.8 25H5.2C.83 25-3 21.17-3 16.8V8.2C-3 3.83.83 0 5.2 0h8.4c4.37 0 8.2 3.83 8.2 8.2zM12 7.78c-2.34 0-4.22 1.88-4.22 4.22s1.88 4.22 4.22 4.22 4.22-1.88 4.22-4.22-1.88-4.22-4.22-4.22zm6.44-4.88c-.96 0-1.74.78-1.74 1.74s.78 1.74 1.74 1.74 1.74-.78 1.74-1.74-.78-1.74-1.74-1.74z"/></svg>');
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M7.8 2h8.4C18.17 2 22 5.83 22 10.2v8.4C22 21.17 18.17 25 13.8 25H5.2C.83 25-3 21.17-3 16.8V8.2C-3 3.83.83 0 5.2 0h8.4c4.37 0 8.2 3.83 8.2 8.2zM12 7.78c-2.34 0-4.22 1.88-4.22 4.22s1.88 4.22 4.22 4.22 4.22-1.88 4.22-4.22-1.88-4.22-4.22-4.22zm6.44-4.88c-.96 0-1.74.78-1.74 1.74s.78 1.74 1.74 1.74 1.74-.78 1.74-1.74-.78-1.74-1.74-1.74z"/></svg>');
}

.facebook-square-brands-icon-7 {
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z"/></svg>');
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z"/></svg>');
}

.youtube-icon-1 {
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M21.54 6.54a3.1 3.1 0 0 0-2.19-2.19C17.84 4 12 4 12 4s-5.84 0-7.35.35A3.1 3.1 0 0 0 2.46 6.54C2 8.05 2 12 2 12s0 3.95.46 5.46c.3.82.97 1.49 1.79 1.79C6.16 20 12 20 12 20s5.84 0 7.35-.35a3.1 3.1 0 0 0 2.19-2.19C22 15.95 22 12 22 12s0-3.95-.46-5.46zM10 15.5v-7l6 3.5z"/></svg>');
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M21.54 6.54a3.1 3.1 0 0 0-2.19-2.19C17.84 4 12 4 12 4s-5.84 0-7.35.35A3.1 3.1 0 0 0 2.46 6.54C2 8.05 2 12 2 12s0 3.95.46 5.46c.3.82.97 1.49 1.79 1.79C6.16 20 12 20 12 20s5.84 0 7.35-.35a3.1 3.1 0 0 0 2.19-2.19C22 15.95 22 12 22 12s0-3.95-.46-5.46zM10 15.5v-7l6 3.5z"/></svg>');
}


/* Media Queries */

/* Mobile (default styles) */
/* Por defecto, los .link-bar-3 y .hamburger-menu ya tienen su display definido para móvil */
.desktop-only-actions {
    display: flex; /* Por defecto visible en móvil, lo cambiaremos */
}

/* Ocultar los botones de acción del header en móvil */
@media (max-width: 767px) {
    .desktop-only-actions {
        display: none;
    }
}


/* Tablets and Small Laptops */
@media (min-width: 768px) {
    .header {
        padding: 15px 30px;
    }

    .link-bar-3 {
        display: flex; /* Muestra el menú de navegación como una fila en tablet y desktop */
        flex-direction: row; /* Vuelve a la disposición horizontal */
        position: static; /* Quita el posicionamiento absoluto */
        width: auto;
        box-shadow: none;
        padding: 0;
        gap: 20px; /* Espacio entre los enlaces en horizontal */
    }

    .link-bar-3 a {
        padding: 0; /* Quita el padding vertical de móvil */
        border-bottom: none; /* Quita los separadores */
    }

    .hamburger-menu {
        display: none; /* Oculta el botón de hamburguesa en tablet y desktop */
    }

    /* Mostrar los botones de acción del header en desktop */
    .desktop-only-actions {
        display: flex;
    }

    /* Ocultar los elementos solo para el menú móvil en desktop */
    .mobile-only-menu-items {
        display: none !important;
    }

    .hero-section {
        flex-direction: row;
        text-align: left;
        padding: 50px 40px;
    }

    .hero-text {
        flex: 1;
        padding-right: 30px;
    }

    .hero-image {
        flex: 1;
        margin-top: 0;
    }

    .hero-text h1 {
        font-size: 44px;
    }

    .hero-text p {
        font-size: 20px;
    }

    .features-grid {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .feature-item {
        width: 30%; /* Adjust for 3 columns */
    }

    .testimonials-section {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .testimonial-card {
        width: 80%;
    }

    .footer-columns {
        flex-direction: row; /* Columns side-by-side */
        flex-wrap: wrap;
        padding-bottom: 20px;
    }

    .footer-col {
        flex: 1; /* Distribute space equally */
        min-width: 180px; /* Minimum width for each column */
    }

    .footer-col:last-child {
        min-width: 200px;
    }
}

/* Desktop and Larger Screens */
@media (min-width: 1024px) {
    .header {
        padding: 20px 80px;
    }

    .link-bar-3 {
        gap: 30px;
    }

    .hero-section {
        padding: 80px 60px;
    }

    .hero-text h1 {
        font-size: 56px;
    }

    .features-grid {
        gap: 40px;
    }

    .feature-item {
        max-width: 350px; /* Revert to original max-width */
    }

    .testimonial-card {
        max-width: 700px;
    }

    .footer-columns {
        flex-wrap: nowrap; /* No wrapping */
    }
}