/* ========================================= */
/* ESTILOS GENERALES                         */
/* ========================================= */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #f4f7f6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0d2c4b;
    margin-bottom: 15px;
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto 60px auto;
    text-align: center;
}

/* ========================================= */
/* ESTILOS HEADER / NAVIGATION               */
/* ========================================= */

.main-header {
    background-color: #ffffff;
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: padding 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
    transform: scale(1.9);
    transform-origin: left;
}

.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: #0d2c4b;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    padding-bottom: 5px;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ff6f61;
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

/* ========================================= */
/* ESTILOS HERO SECTION                      */
/* ========================================= */

.hero-section {
    background-color: #0d2c4b;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 200px;
    padding-bottom: 120px;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.cta-button {
    padding: 15px 30px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cta-button.primary {
    background-color: #ff6f61;
    color: #ffffff;
}

.cta-button.primary:hover {
    background-color: #e65a50;
    transform: translateY(-3px);
}

.cta-button.secondary {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.cta-button.secondary:hover {
    background-color: #ffffff;
    color: #0d2c4b;
    transform: translateY(-3px);
}


/* ========================================= */
/* ESTILOS FEATURES SECTION                  */
/* ========================================= */

.features-section {
    padding: 100px 20px;
    background-color: #ffffff; 
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: left;
}

.feature-card {
    background-color: #f4f7f6;
    padding: 40px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.07);
}

.feature-icon {
    margin-bottom: 20px;
}

.feature-icon svg {
    stroke: #ff6f61;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0d2c4b;
    margin-bottom: 10px;
}

.feature-description {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}


/* ========================================= */
/* ESTILOS HOW IT WORKS SECTION              */
/* ========================================= */

.how-it-works-section {
    padding: 100px 20px;
    background-color: #f4f7f6;
}

.steps-container {
    margin-top: 60px;
}

.step {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
}

.step.step-reverse {
    flex-direction: row-reverse;
}

.step-image {
    flex: 1;
}

.step-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.step-content {
    flex: 1;
}

.step-number {
    font-size: 4rem;
    font-weight: 700;
    color: #ff6f61;
    display: block;
    margin-bottom: -10px;
}

.step-title {
    font-size: 2rem;
    font-weight: 600;
    color: #0d2c4b;
    margin-bottom: 15px;
}

.step-content p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
}

/* ========================================= */
/* ESTILOS PRICING SECTION (MODELO ÚNICO)    */
/* ========================================= */

.pricing-section-unified {
    padding: 100px 20px;
    background: #0d2c4b; 
}

.pricing-section-unified .section-title,
.pricing-section-unified .section-subtitle {
    color: #ffffff;
}

.unified-pricing-card {
    max-width: 900px;
    margin: 60px auto 0 auto;
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

.pricing-content {
    padding: 50px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.plan-eyebrow {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ff6f61;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.unified-plan-name {
    font-size: 2rem;
    color: #0d2c4b;
    margin: 10px 0 25px 0;
}

.unified-price {
    margin-bottom: 15px;
}

.unified-price .price-amount {
    font-size: 3.5rem;
    font-weight: 700;
    color: #0d2c4b;
    line-height: 1;
}

.unified-price .price-period {
    font-size: 1.1rem;
    font-weight: 400;
    color: #555;
    display: block;
}

.plan-guarantee {
    font-size: 0.9rem;
    color: #555;
    margin-top: 0;
    margin-bottom: 30px;
}

.cta-button.large {
    padding: 20px 40px;
    font-size: 1.2rem;
}

.pricing-features {
    background-color: #f4f7f6;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pricing-features .includes-text {
    font-weight: 700;
    color: #0d2c4b;
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.pricing-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    color: #333;
    line-height: 1.5;
    font-size: 1rem;
}

.pricing-features li svg {
    fill: #ff6f61;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ========================================= */
/* ESTILOS TESTIMONIALS SECTION              */
/* ========================================= */

.testimonials-section {
    padding: 100px 20px;
    background-color: #0d2c4b;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.testimonial-card {
    background-color: #1f3e5a;
    padding: 40px;
    border-radius: 10px;
    position: relative;
    border: 1px solid #3a5a78;
}

.testimonial-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #ffffff;
    opacity: 0.08;
}

.testimonial-text {
    color: #f0f0f0;
    font-size: 1.1rem;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 30px;
    position: relative;
}

.testimonial-author-info {
    text-align: left;
}

.testimonial-author {
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.testimonial-company {
    color: #ff6f61;
    font-weight: 600;
}


/* ========================================= */
/* ESTILOS CONTACT SECTION                   */
/* ========================================= */

.contact-section {
    padding: 100px 20px;
    background-color: #ffffff;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    margin-top: 60px;
    align-items: flex-start;
}

.contact-info h3 {
    font-size: 1.8rem;
    color: #0d2c4b;
    margin-bottom: 20px;
}

.contact-info p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 30px;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
}

.info-list li svg {
    stroke: #ff6f61;
    width: 24px;
    height: 24px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #0d2c4b;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6f61;
    box-shadow: 0 0 5px rgba(255, 111, 97, 0.5);
}

.submit-button {
    padding: 18px 30px;
    background-color: #ff6f61;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background-color: #e65a50;
    transform: translateY(-3px);
}


/* ========================================= */
/* ESTILOS PÁGINAS SECUNDARIAS               */
/* ========================================= */

main {
    padding-top: 120px; /* Espacio para el header fijo */
}

.page-header {
    background-color: #0d2c4b;
    color: #ffffff;
    text-align: center;
    padding: 80px 20px;
}

.page-header h1 {
    font-size: 3rem;
    margin-top: 0;
    margin-bottom: 20px;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.story-section {
    padding: 100px 20px;
    background-color: #ffffff;
}

.story-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.story-image img {
    width: 100%;
    border-radius: 10px;
}

.story-content h2 {
    font-size: 2.5rem;
    color: #0d2c4b;
    margin-top: 0;
}

.story-content p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.team-section {
    padding: 100px 20px;
    background-color: #f4f7f6;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-member-card {
    background-color: #ffffff;
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.team-member-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 20px;
    object-fit: cover;
}

.member-name {
    font-size: 1.5rem;
    color: #0d2c4b;
    margin: 0;
}

.member-title {
    color: #ff6f61;
    font-weight: 600;
    margin-top: 5px;
}

.member-bio {
    font-style: italic;
    color: #555;
    margin-top: 15px;
}

.legal-content-section {
    padding: 80px 20px;
    background-color: #ffffff;
}

.legal-container {
    max-width: 800px;
}

.legal-container h2 {
    font-size: 2rem;
    color: #0d2c4b;
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid #f4f7f6;
    padding-bottom: 10px;
}

.legal-container h3 {
    font-size: 1.5rem;
    color: #0d2c4b;
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-container p, .legal-container li {
    line-height: 1.8;
    color: #333;
    text-align: justify;
}

.legal-container ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.legal-container a {
    color: #ff6f61;
    text-decoration: none;
    font-weight: 600;
}

.legal-container a:hover {
    text-decoration: underline;
}

.faq-section {
    padding: 80px 20px;
    background-color: #ffffff;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-category-title {
    font-size: 2rem;
    color: #0d2c4b;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-top: 50px;
    margin-bottom: 30px;
}
.faq-category-title:first-of-type {
    margin-top: 0;
}

.faq-item {
    border-bottom: 1px solid #e0e0e0;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 25px 0;
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    color: #ff6f61;
}

.faq-icon {
    font-size: 2rem;
    font-weight: 300;
    color: #ff6f61;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.faq-answer p {
    padding: 0 10px 25px 10px;
    margin: 0;
    line-height: 1.8;
    color: #555;
}

.faq-item.open .faq-question {
    color: #0d2c4b;
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
    color: #0d2c4b;
}


/* ========================================= */
/* ESTILOS FOOTER SECTION                    */
/* ========================================= */

.site-footer {
    background-color: #0d2c4b;
    color: #a9b3c1;
    padding: 80px 20px 20px 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-heading {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 20px;
}

.footer-logo img {
    max-width: 150px;
    margin-bottom: 20px;
}

.footer-text {
    margin: 0;
    line-height: 1.7;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #a9b3c1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #ffffff;
    transition: transform 0.3s ease;
    display: inline-block;
}

.social-icons a:hover {
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #1f3e5a;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    color: #a9b3c1;
}


/* ========================================= */
/* ESTILOS RESPONSIVE (MEDIA QUERIES)        */
/* ========================================= */

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .unified-pricing-card {
        grid-template-columns: 1fr;
    }
    .pricing-features {
        border-top: 1px solid #e0e0e0;
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* ========================================= */
/* ESTILOS MENÚ HAMBURGUESA Y NAVEGACIÓN MÓVIL */
/* ========================================= */

.hamburger-btn {
    display: none; /* Oculto por defecto en pantallas grandes */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.hamburger-line {
    width: 30px;
    height: 3px;
    background-color: #0d2c4b;
    border-radius: 5px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

/* Animación a 'X' cuando el menú está abierto */
header.nav-open .hamburger-line:nth-child(1) {
    transform: rotate(45deg);
}

header.nav-open .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

header.nav-open .hamburger-line:nth-child(3) {
    transform: rotate(-45deg);
}

    
}

@media (max-width: 768px) {
    .main-header {
        padding: 10px 0;
    }
    .header-logo img {
        height: 40px;
    }


    /* Mostramos el botón de hamburguesa y ocultamos el menú de escritorio */
    .hamburger-btn {
        display: flex;
    }
    .main-nav {
        display: none; /* Sigue oculto por defecto */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh; /* Ocupa toda la pantalla */
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        z-index: 5;
    }
    header.nav-open .main-nav {
        display: flex; /* Lo mostramos cuando el header tiene la clase 'nav-open' */
    }
    .main-nav ul {
        flex-direction: column;
        text-align: center;
    }
    .main-nav a {
        font-size: 1.5rem; /* Letras más grandes para móvil */
    }


    
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .cta-button {
        width: 80%;
    }
    .section-title {
        font-size: 2rem;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .step, .step.step-reverse {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .step-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .story-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-column {
        text-align: center;
        align-items: center;
    }
}

/* ========================================= */
/* ESTILOS PÁGINA SOLUCIÓN                   */
/* ========================================= */

.solution-features-section {
    padding: 100px 20px;
    background-color: #ffffff;
}

.feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 120px;
}

.feature-block.reverse {
    direction: rtl; /* Invierte el orden de las columnas */
}

.feature-block.reverse > * {
    direction: ltr; /* Resetea la dirección del texto para el contenido */
}

.feature-text .eyebrow-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ff6f61;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
}

.feature-text h2 {
    font-size: 2.5rem;
    color: #0d2c4b;
    margin-top: 0;
}

.feature-text p {
    line-height: 1.8;
    color: #555;
}

.feature-text ul {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}

.feature-text ul li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Checkmark para la lista de características */
.feature-text ul li::before {
    content: '✓';
    color: #ff6f61;
    font-weight: 700;
    position: absolute;
    left: 0;
}

.feature-video {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    /* Mantenemos la proporción 16:9 para que no haya saltos de página */
    padding-top: 56.25%; 
    background-color: #000;
}

.feature-video img,
.feature-video .play-button-overlay,
.feature-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.3s ease;
}

.video-thumbnail-link {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.video-thumbnail-link img {
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-thumbnail-link:hover img {
    transform: scale(1.05);
}

.play-button-overlay {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    pointer-events: none; /* Evita que el overlay intercepte el clic */
}

.play-button-overlay::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 25px solid #0d2c4b;
    margin-left: 5px; /* Ajuste para centrar */
}

.video-thumbnail-link:hover .play-button-overlay {
    transform: scale(1.1);
    background-color: rgba(255, 111, 97, 0.9);
}

.video-thumbnail-link:hover .play-button-overlay::after {
    border-left-color: #ffffff;
}

/* CSS para cuando el video está activo */
.feature-video.video-playing .video-thumbnail-link {
    opacity: 0;
    pointer-events: none; /* Desactivamos el link de la imagen */
}