/* --- VARIABLES & RESET --- */
:root {
    --primary: #1e3a8a;
    --primary-hover: #172554;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-main: #334155;
    --text-light: #64748b;
    --border: #e2e8f0;
    --radius: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --font-main: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-white);
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- UTILIDADES --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.text-center-max-800 { text-align: center; max-width: 800px; margin: 0 auto; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-4 { margin-top: 1.5rem; }
.small-text { font-size: 0.9rem; color: var(--text-light); }
.section { padding: 80px 0; }
.bg-light { background-color: var(--bg-light); }
.section-title { font-size: 2.2rem; color: var(--primary); margin-bottom: 40px; font-weight: 700; }

/* --- BOTONES --- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    border: 2px solid transparent;
}
.btn-primary { background-color: var(--accent); color: white; }
.btn-primary:hover { background-color: var(--accent-hover); transform: translateY(-1px); }
.btn-secondary { background-color: transparent; border-color: var(--primary); color: var(--primary); }
.btn-secondary:hover { background-color: var(--primary); color: white; }
.full-width { width: 100%; text-align: center; }

/* --- HEADER --- */
.header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 15px 0;
    transition: padding 0.3s ease;
}
.header-container { display: flex; justify-content: space-between; align-items: center; }

/* --- LOGO (CORREGIDO PARA SER PEQUEÑO) --- */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.logo-img {
    /* TAMAÑO MÓVIL (Muy pequeño y seguro) */
    height: 30px !important; /* Usamos !important por si acaso */
    width: auto;
    object-fit: contain; /* Asegura que no se deforme */
    display: block;
    transition: height 0.3s ease;
}

.nav-list { display: flex; gap: 30px; }
.nav-link { font-size: 0.95rem; font-weight: 500; color: var(--text-main); }
.nav-link:hover { color: var(--accent); }
.header-actions { display: flex; gap: 15px; align-items: center; }

/* --- HERO --- */
.hero { padding: 120px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.badge { background-color: #dbeafe; color: var(--accent); padding: 6px 12px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; margin-bottom: 20px; display: inline-block; }
.hero-title { font-size: 3.5rem; line-height: 1.1; color: var(--primary); margin-bottom: 20px; }
.hero-subtitle { font-size: 1.25rem; color: var(--text-light); margin-bottom: 30px; max-width: 500px; }
.hero-buttons { display: flex; gap: 15px; }
.img-responsive { border-radius: 12px; border: 1px solid var(--border); }
.shadow-lg { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }

/* --- CARDS GENERAL --- */
.card { background: white; border: 1px solid var(--border); border-radius: 12px; padding: 30px; transition: 0.3s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--accent); }

/* --- FUNCIONES --- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.feature-card h3 { color: var(--primary); margin-bottom: 10px; font-size: 1.25rem; }
.feature-line { width: 40px; height: 4px; background-color: var(--accent); margin-bottom: 20px; border-radius: 2px; }

/* --- CAPTURAS --- */
.gallery-item { display: flex; align-items: center; gap: 60px; margin-bottom: 100px; }
.gallery-item.reverse { flex-direction: row-reverse; }
.gallery-text { flex: 1; }
.gallery-text h3 { font-size: 2rem; color: var(--primary); margin-bottom: 15px; }
.gallery-img { flex: 1.2; }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }

/* --- PRECIOS --- */
.pricing-wrapper { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.pricing-card { flex: 1; max-width: 400px; display: flex; flex-direction: column; position: relative; }
.pricing-card.featured { border: 2px solid var(--primary); background-color: #fcfdff; }
.pricing-header { text-align: center; margin-bottom: 30px; }
.pricing-header h3 { font-size: 1.5rem; color: var(--primary); margin: 10px 0; }
.price .amount { font-size: 3rem; font-weight: 700; color: var(--text-main); }
.badge-blue { background: var(--primary); color: white; padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; text-transform: uppercase; font-weight: bold; }
.pricing-features { margin-bottom: 30px; flex-grow: 1; }
.pricing-features li { margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid #f1f5f9; color: var(--text-main); }
.pricing-features li:last-child { border-bottom: none; }
.small-note { font-size: 0.8rem; color: var(--text-light); text-align: center; margin-top: 15px; }

/* --- FAQ --- */
.accordion { max-width: 800px; margin: 0 auto; text-align: left; }
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-header { width: 100%; padding: 20px; background: none; border: none; text-align: left; font-size: 1.1rem; font-weight: 600; color: var(--primary); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.accordion-header::after { content: '+'; font-size: 1.5rem; }
.accordion-header.active::after { content: '-'; }
.accordion-body { max-height: 0; overflow: hidden; padding: 0 20px; color: var(--text-light); transition: max-height 0.3s ease, padding 0.3s ease; }
.accordion-header.active + .accordion-body { max-height: 200px; padding-bottom: 20px; }

/* --- FORMULARIO --- */
.contact-form { max-width: 600px; margin: 0 auto; text-align: left; }
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 0.9rem; }
input, select, textarea { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); font-family: inherit; font-size: 1rem; }
input:focus, textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.checkbox-group { display: flex; align-items: center; gap: 10px; }
.checkbox-group input { width: auto; }
.checkbox-group label { margin: 0; font-weight: 400; font-size: 0.9rem; }

/* --- FOOTER --- */
.footer { background: var(--primary); color: white; padding: 40px 0; text-align: center; }
.footer-logo { font-size: 1.5rem; font-weight: bold; margin-bottom: 20px; }
.footer-links { margin-bottom: 20px; }
.footer-links a { color: #cbd5e1; margin: 0 15px; font-size: 0.9rem; }
.footer-links a:hover { color: white; }
.footer-copy { color: #94a3b8; font-size: 0.85rem; }

/* =========================================
   MEDIA QUERIES (RESPONSIVE)
   ========================================= */

@media (min-width: 50px) {
    /* TAMAÑO ESCRITORIO (Un poco más grande que móvil, pero controlado) */
    .logo-img {
        height: 10px !important; 
    }
    
    .header { padding: 20px 0; }
}

@media (max-width: 50px) {
    .nav { display: none; }
    .desktop-only { display: none; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-title { font-size: 2.5rem; }
    .hero-buttons { justify-content: center; }
    .hero-subtitle { margin: 0 auto 30px; }
    .grid-3 { grid-template-columns: 1fr; }
    .gallery-item, .gallery-item.reverse { flex-direction: column; text-align: center; gap: 30px; }
    .form-row { grid-template-columns: 1fr; }
}

/* =========================================
   NUEVO DISEÑO SECCIÓN "QUÉ ES"
   ========================================= */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Izquierda pequeña, Derecha grande */
    gap: 60px;
    align-items: start;
}

.about-header {
    text-align: left;
}

/* La barra azul decorativa */
.accent-bar {
    width: 80px;
    height: 6px;
    background-color: var(--accent);
    margin-top: 25px;
    border-radius: 4px;
}

/* Ajuste del título para esta sección */
.about-header .section-title {
    margin-bottom: 0;
    font-size: 2.5rem;
    line-height: 1.1;
}

/* Estilos del texto */
.about-content {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
}

.text-lead {
    font-size: 1.35rem; /* Texto de introducción más grande */
    color: var(--primary); /* Azul oscuro */
    font-weight: 500;
    margin-bottom: 25px;
    line-height: 1.5;
}

.about-content strong {
    color: var(--text-main);
    font-weight: 700;
}

/* AJUSTE MÓVIL PARA ESTA SECCIÓN */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr; /* Una sola columna en móvil */
        gap: 30px;
    }
    
    .accent-bar {
        margin-bottom: 20px; /* Separación extra en móvil */
    }
}
