@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --border-color: #334155;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #FF6B35;
    --accent-hover: #ff8c5a;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Base fluida para imágenes */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 25px;
}

.nav-menu a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--accent);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--accent);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
}

.btn-secondary {
    background-color: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--border-color);
}

.btn-large {
    padding: 12px 24px;
    font-size: 1rem;
}

/* Hero Section */
.hero {
    padding: 110px 0 40px 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(1.8rem, 4vw, 2.3rem);
    line-height: 1.25;
    margin: 12px 0;
}

.hero-content .lead {
    color: var(--text-muted);
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    margin-bottom: 20px;
}

.hero-stats {
    display: flex;
    gap: 25px;
    margin-bottom: 20px;
}

.hero-stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent);
}

.hero-stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Imagen Hero: Ajustada sin recortes ni pérdida de detalles */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.hero-image img {
    width: 100%;
    max-height: 420px;
    object-fit: contain; /* Garantiza mostrar la imagen completa */
    border-radius: 12px;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 500;
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid var(--success);
}

/* Trust Logos */
.trust-logos {
    padding: 25px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.logos-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.logo-item {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 1rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 10px;
    font-size: 0.85rem;
}

/* Secciones */
.section {
    padding: 45px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

.section-header h2 {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    margin-bottom: 8px;
}

/* Features Grid - Imágenes a 350px */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.feature-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.feature-image {
    width: 100%;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 8px;
}

.feature-image img {
    width: 100%;
    height: 350px; /* Tamaño unificado solicitado */
    object-fit: cover;
    border-radius: 8px;
}

/* Steps Grid - Imágenes a 350px */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.step-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 18px;
    position: relative;
}

.step-number {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    background-color: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    z-index: 2;
}

.step-image {
    width: 100%;
    margin-bottom: 12px;
    overflow: hidden;
    border-radius: 6px;
}

.step-image img {
    width: 100%;
    height: 350px; /* Tamaño unificado solicitado */
    object-fit: cover;
    border-radius: 6px;
}

/* Sección de Video Demo Escala Ampliada */
.demo-container {
    text-align: center;
    width: 100%;
}

.demo-video {
    width: 100%;
    max-width: 820px; /* Escala ligeramente ampliada dentro del margen */
    aspect-ratio: 16 / 9;
    margin: 25px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
}

.demo-video iframe, 
.demo-video video {
    width: 100%;
    height: 100%;
    border: none;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.testimonial-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 22px;
}

.testimonial-metrics {
    display: flex;
    gap: 10px;
    margin: 12px 0;
}

.testimonial-metric {
    background: rgba(255, 107, 53, 0.1);
    color: var(--accent);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
}

.author-avatar img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

/* Formulario CTA */
.cta-section {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #1a233a 100%);
    padding: 45px 0;
}

.cta-container {
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
    text-align: center;
}

.cta-form {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
    margin-top: 20px;
    text-align: left;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    background-color: #0f172a;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.9rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
}

.form-note {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.validation-error {
    color: var(--error);
    font-size: 0.82rem;
    margin-top: 4px;
    display: none;
}

.iti {
    width: 100%;
}

.iti__country-list {
    background-color: var(--bg-card);
    border-color: var(--border-color);
    color: #ffffff;
}

/* FAQ Section */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.faq-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-question {
    padding: 14px 18px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.95rem;
}

.faq-answer {
    padding: 0 18px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-muted);
}

.faq-answer.active {
    padding: 0 18px 14px 18px;
    max-height: 300px;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0 20px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.social-links a {
    color: var(--text);
}

.copyright {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.82rem;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

/* Adaptabilidad Responsiva para Tablets y Móviles */
@media (max-width: 991px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-image img {
        max-height: 350px;
    }
    .hero-stats, .hero-buttons {
        justify-content: center;
    }
    .faq-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero {
        padding-top: 90px;
    }
    .feature-image img,
    .step-image img {
        height: 250px; /* Reducción proporcional para pantallas móviles muy estrechas */
    }
    .cta-form {
        padding: 18px;
    }
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: var(--bg-dark);
        flex-direction: column;
        justify-content: center;
        transition: 0.3s ease;
    }
    .nav-menu.active {
        left: 0;
    }
    .mobile-menu-btn {
        display: block;
    }
}