/* =========================================
   1. RESET Y VARIABLES GLOBALES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Paleta de Colores */
    --primary: #926ed4;
    --secondary: #ffc80a;
    --dark: #222222;
    --text: #333333;
    --light-text: #666666;
    --bg-light: #f6f6f6;
    --white: #ffffff;
    --border: #dedede;
    
    /* Colores Sociales */
    --whatsapp: #25D366;
    --whatsapp-dark: #128C7E;

    /* Efectos */
    --shadow: 0 5px 15px rgba(0,0,0,0.15);
    
    /* Tipografía */
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 18px;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
}

/* =========================================
   2. TIPOGRAFÍA GENERAL
   ========================================= */
h1, h2, h3, h4 {
    font-family: var(--font-main);
    color: var(--dark);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1rem; }
.highlight { color: var(--primary); font-weight: 600; }
strong { font-weight: 700; color: var(--dark); }

/* =========================================
   3. LAYOUT Y UTILIDADES
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 4rem 0;
}

.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* =========================================
   4. HEADER Y NAVEGACIÓN
   ========================================= */
.site-header {
    background: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    text-decoration: none;
}

.main-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.main-nav a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--primary);
}

/* Menú Móvil (Checkbox Hack) */
#menu-toggle { display: none; }
.menu-icon {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    user-select: none;
}

/* =========================================
   5. BOTONES
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-whatsapp {
    background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-dark));
    color: #000;
    box-shadow: 0 0.3rem 1rem rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1.5rem rgba(37, 211, 102, 0.5);
}

.btn-secondary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0.3rem 1rem rgba(146, 110, 212, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1.5rem rgba(146, 110, 212, 0.4);
}

.btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* =========================================
   6. HERO SECTION
   ========================================= */
.hero {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--white) 100%);
    padding: 6rem 0 4rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.trust-badge {
    display: inline-block;
    background: var(--secondary);
    color: var(--dark);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--text);
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.trust-signals {
    margin-top: 2rem;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--light-text);
}

/* =========================================
   7. SECCIONES DE CONTENIDO
   ========================================= */

/* Problema */
.problem {
    background: var(--secondary);
    text-align: center;
    padding: 3rem 0;
}
.problem h2 { margin-bottom: 1rem; }
.problem p { font-size: 1.2rem; max-width: 900px; margin: 0 auto; }

/* Para Quién */
.for-who { background: var(--white); }
.two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.col-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.col-card h3 { margin-bottom: 1.5rem; }
.ideal-client h3 { color: #27ae60; }
.not-for h3 { color: #e74c3c; }

.col-card ul { list-style: none; }
.col-card li {
    padding: 0.8rem 0;
    padding-left: 1.8rem;
    position: relative;
    border-bottom: 1px solid var(--border);
}
.col-card li:last-child { border-bottom: none; }

.ideal-client li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: 700;
    font-size: 1.2rem;
}

.not-for li:before {
    content: "✗";
    position: absolute;
    left: 0;
    color: #e74c3c;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s;
}

.service-card:hover { transform: translateY(-5px); }
.service-icon { font-size: 3rem; margin-bottom: 1rem; }

/* Proceso */
.process { background: var(--bg-light); }
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}
.step { text-align: center; }
.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

/* Qué Incluye */
.includes { background: var(--white); }
.includes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}
.include-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 10px;
    align-items: flex-start;
}
.include-icon { font-size: 1.8rem; flex-shrink: 0; }

/* Precios */
.pricing {
    background: linear-gradient(135deg, var(--primary), #621be3);
    color: #fff;
    text-align: center;
}
.pricing h2 { color: #fff; }

.price-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    max-width: 700px;
    margin: 2rem auto;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.price { font-size: 3.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.price-detail { font-size: 1.2rem; margin-bottom: 2rem; opacity: 0.9; }

.price-features {
    text-align: left;
    margin: 2rem 0;
    list-style: none;
}
.price-features li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    font-size: 1.1rem;
}
.price-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: 700;
    font-size: 1.3rem;
}

/* Comparativa */
.comparison { background: var(--bg-light); }
.comparison-table {
    max-width: 900px;
    margin: 3rem auto 0;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.comparison-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    border-bottom: 1px solid var(--border);
}
.comparison-row:last-child { border-bottom: none; }
.comparison-header {
    background: var(--primary);
    color: #fff;
    font-weight: 700;
}
.comparison-cell {
    padding: 1.5rem;
    text-align: center;
}
.comparison-cell:first-child { text-align: left; font-weight: 600; }
.check { color: #27ae60; font-size: 1.5rem; }
.cross { color: #e74c3c; font-size: 1.5rem; }

/* Casos de Éxito */
.cases { background: var(--white); }
.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}
.case-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid var(--primary);
}
.case-title { font-weight: 700; color: var(--dark); margin-bottom: 1rem; }
.case-result {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 1rem 0;
}

/* Testimonios */
.testimonials { background: var(--bg-light); }
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}
.testimonial {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}
.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}
.testimonial-stars { color: var(--secondary); font-size: 1.2rem; }
.testimonial-text { font-style: italic; line-height: 1.7; }

/* Servicio Local */
.local-service { background: var(--white); }
.local-content { max-width: 900px; margin: 2rem auto 0; }
.local-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}
.local-feature {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 10px;
}
.local-icon { font-size: 2rem; flex-shrink: 0; }

/* Autoridad */
.authority { background: var(--bg-light); }
.authority-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}
.authority-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow);
}
.credentials { margin-top: 1.5rem; }
.credentials h4 { margin-bottom: 1rem; }
.credentials ul { list-style: none; }
.credentials li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}
.credentials li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

/* FAQ */
.faq { background: var(--white); }
.faq-list { max-width: 900px; margin: 3rem auto 0; }
.faq-item {
    background: var(--bg-light);
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
}
.faq-item input[type="checkbox"] { display: none; }
.faq-question {
    padding: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question:hover { background: rgba(0, 0, 0, 0.03); }
.faq-icon { transition: transform 0.3s; }

.faq-item input[type="checkbox"]:checked ~ label .faq-icon { transform: rotate(180deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.5rem;
}
.faq-item input[type="checkbox"]:checked ~ .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

/* Garantías */
.guarantees { background: var(--bg-light); }
.guarantees-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}
.guarantee-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
}
.guarantee-icon { font-size: 3rem; margin-bottom: 1rem; }

/* CTA Final */
.final-cta {
    background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-dark));
    color: #fff;
    text-align: center;
    padding: 5rem 0;
}
.final-cta h2 { color: #fff; margin-bottom: 1rem; }
.final-cta p { font-size: 1.3rem; margin-bottom: 2rem; }
.final-cta .btn-secondary { background: #000; color: #fff; }

/* =========================================
   8. FOOTER
   ========================================= */
.site-footer {
    background: #222;
    color: #dedede;
    padding: 3rem 0 2rem;
}
.footer-content { text-align: center; }
.footer-links { margin-top: 1rem; }
.footer-links a {
    color: var(--primary);
    text-decoration: none;
    margin: 0 1rem;
}

/* =========================================
   9. BANNER COOKIES (GDPR)
   ========================================= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(34, 34, 34, 0.98);
    color: #fff;
    padding: 1.5rem;
    z-index: 9999;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.3);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-content p { margin: 0; font-size: 0.95rem; }
/* Añade esto para forzar el color blanco en el título */
.cookie-content strong {
    color: var(--white);
}

.cookie-buttons { display: flex; gap: 1rem; }

.btn-cookie-accept,
.btn-cookie-reject {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cookie-accept {
    background: var(--whatsapp);
    color: #000;
}
.btn-cookie-accept:hover { transform: translateY(-2px); }

.btn-cookie-reject {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}
.btn-cookie-reject:hover {
    background: #fff;
    color: #000;
}

/* =========================================
   10. PÁGINAS LEGALES
   ========================================= */
.legal-section {
    padding: 4rem 0;
    background: var(--white);
}

.legal-article {
    max-width: 900px;
    margin: 0 auto;
}

.legal-article h1 { margin-bottom: 2rem; }
.legal-article h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--dark);
}
.legal-article h3 {
    margin-top: 1.5rem;
    font-size: 1.2rem;
    color: var(--text);
}
.legal-article ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 1rem;
}
.legal-article li { margin-bottom: 0.5rem; }

/* =========================================
   11. RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 1024px) {
    .hero-grid,
    .two-cols,
    .authority-grid {
        grid-template-columns: 1fr;
    }
    .services-grid,
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .steps {
        grid-template-columns: repeat(2, 1fr);
    }
    .guarantees-grid {
        grid-template-columns: 1fr;
    }
    .comparison-row {
        grid-template-columns: 1.2fr 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-cta { display: none; }
    
    /* Menú Móvil */
    .menu-icon { display: block; }
    #menu-toggle:checked ~ .main-nav { display: flex; }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        gap: 1.5rem;
    }

    /* Ajustes generales */
    section { padding: 3rem 0; }
    .hero { padding: 4rem 0 3rem; }
    
    /* Grids a 1 columna */
    .services-grid,
    .steps,
    .includes-grid,
    .testimonials-grid,
    .cases-grid,
    .local-features {
        grid-template-columns: 1fr;
    }

    /* Tabla Comparativa en Móvil */
    .comparison-row {
        grid-template-columns: 1fr;
        text-align: center !important;
    }
    .comparison-cell:first-child {
        text-align: center !important;
        font-weight: 700;
        background: var(--bg-light);
    }

    .price { font-size: 2.5rem; }
    .btn { padding: 1rem 1.5rem; font-size: 1rem; }
    
    /* Cookies Móvil */
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}