/* Variables SeviAI Actualizadas */
:root {
    --primary-color: #D31536; /* Rojo SeviAI */
    --primary-hover: #b0102b;
    --primary-light: #fef0f2;
    --white: #ffffff;
    --light-bg: #f7f8fa;
    --border-color: #eaeaea;
    
    /* Textos oscuros, cero negro puro */
    --text-main: #2A2A35; 
    --text-muted: #5b5b6b;
    
    --font-family: 'Inter', sans-serif;
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.03);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.06);
}

/* Reset Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
}

.text-dark { color: var(--text-main) !important; }
.text-white { color: var(--white) !important; }
.highlight { color: var(--primary-color); }
.text-left { text-align: left !important; }

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(211, 21, 54, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(211, 21, 54, 0.3);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    border-color: #d0d0d0;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* Header */
.header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav a:not(.btn) {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav a:not(.btn):hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
}

.mobile-nav {
    display: none;
    flex-direction: column;
    padding: 20px;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav a {
    padding: 15px 0;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 120px 0;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, var(--primary-light) 0%, var(--white) 50%);
    z-index: -1;
}

.hero h1 {
    font-size: 3.8rem;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Base Sections */
section {
    padding: 100px 0;
}

.light-bg {
    background-color: var(--light-bg);
}

/* Demo Video Section */
.demo {
    background-color: var(--light-bg);
    padding-top: 60px;
    padding-bottom: 80px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    background-color: #ddd; /* Gris claro de fondo si el video no carga */
    border: 1px solid var(--border-color);
}

.loom-placeholder-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.9);
    z-index: -1; /* Queda detrás del iframe si este carga */
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Si el iframe falla o está vacío, hacemos visible el overlay */
.video-container iframe:not([src*="loom.com"]) + .loom-placeholder-overlay {
    z-index: 10;
}

/* El Problema */
.problema {
    background-color: var(--white);
}

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

.card-clean {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card-clean:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(211, 21, 54, 0.2);
}

.card-icon-svg {
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
    color: var(--primary-color);
    background-color: var(--primary-light);
    padding: 10px;
    border-radius: 12px;
}

.card-clean h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.card-clean p {
    color: var(--text-muted);
}

/* Tipos de Negocio (Imágenes) */
.alojamientos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.alojamiento-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 200px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.alojamiento-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.alojamiento-card:hover img {
    transform: scale(1.1);
}

.alojamiento-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--white);
    text-align: left;
}

.alojamiento-overlay h4 {
    color: var(--white);
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Solución */
.solucion {
    background-color: var(--white);
}

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

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

.feature-text {
    flex: 1;
}

.feature-text h3 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.feature-text p {
    font-size: 1.15rem;
    color: var(--text-muted);
}

.feature-image-placeholder {
    flex: 1;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.feature-image-placeholder::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0.05) 100%);
}

.placeholder-text {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 1rem;
    z-index: 1;
    background: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

/* Personalización (NUEVA SECCIÓN) */
.personalizacion {
    /* La clase .light-bg ya se encarga del fondo en HTML */
}

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

.personalizacion-text h2 {
    margin-bottom: 1rem;
}

.pers-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.pers-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    color: var(--primary-color);
    background-color: var(--white);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pers-item h4 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.pers-item p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Flujo (Timeline) */
.flujo {
    background-color: var(--white);
}

.timeline {
    max-width: 700px;
    margin: 50px auto 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--primary-light);
}

.timeline-item {
    position: relative;
    padding-left: 70px;
    margin-bottom: 40px;
}

.timeline-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 50px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    border: 2px solid var(--white);
    box-shadow: 0 0 0 1px var(--border-color);
}

.timeline-item h4 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.timeline-item p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* FAQ Accordion */
.faq {
    /* La clase .light-bg ya se encarga del fondo en HTML */
}

.accordion {
    max-width: 800px;
    margin: 40px auto 0;
}

.accordion-item {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.accordion-header {
    width: 100%;
    padding: 24px;
    background: none;
    border: none;
    text-align: left;
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
}

.accordion-header::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.accordion-item.active .accordion-header::after {
    content: '-';
}

.accordion-content {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    color: var(--text-muted);
}

.accordion-item.active .accordion-content {
    padding: 0 24px 24px;
    max-height: 500px;
}

/* CTA Final */
.cta-final {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
                      radial-gradient(circle at 80% 90%, rgba(255,255,255,0.1) 0%, transparent 50%);
    z-index: -1;
}

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

.cta-final h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-final p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 40px;
    font-size: 1.25rem;
}

/* Footer */
.footer {
    background-color: var(--white);
    padding: 40px 0;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
}

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

.logo-img-footer {
    height: 80px;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 900px) {
    .feature-row, .feature-row.reverse, .personalizacion-grid {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .feature-image-placeholder {
        width: 100%;
    }
    
    .personalizacion-text h2, .personalizacion-text p {
        text-align: center !important;
    }

    .pers-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }

    .mobile-nav.active {
        display: flex;
    }

    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero-ctas {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}
