/* ============================================
   /public/css/style.css
   ESTILOS COMPLETOS PARA CONECTAVIDA
   ============================================ */

/* ============================================
   ROOT VARIABLES - PALETA CONECTAVIDA
   ============================================ */
:root {
    --primary: #00236f;
    --on-primary: #ffffff;
    --primary-container: #1e3a8a;
    --on-primary-container: #90a8ff;
    --secondary: #855300;
    --secondary-container: #fea619;
    --on-secondary-container: #684000;
    --tertiary: #4b1c00;
    --tertiary-container: #6e2c00;
    --surface: #faf8ff;
    --on-surface: #1a1b21;
    --on-surface-variant: #444651;
    --surface-container: #eeedf4;
    --surface-container-low: #f4f3fa;
    --surface-container-high: #e9e7ef;
    --surface-container-lowest: #ffffff;
    --outline: #757682;
    --outline-variant: #c5c5d3;
    --error: #ba1a1a;
    --error-container: #ffdad6;
    --on-error: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.14);
    --shadow-xl: 0 12px 48px rgba(0,0,0,0.18);
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    --font-display: 'Syne', sans-serif;
    --radius: 16px;
    --radius-sm: 8px;
    --radius-lg: 24px;
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ============================================
   RESET
   ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    background: var(--surface);
    color: var(--on-surface);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; height: auto; }

/* ============================================
   UTILIDADES
   ============================================ */
.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}
.section-padding { padding: 72px 0; }
.text-center { text-align: center; }

/* ============================================
   HEADER
   ============================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--outline-variant);
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
}
.header-inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    flex-shrink: 0;
}
.logo span { color: var(--secondary-container); }
.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.nav-links a {
    font-size: 13px;
    font-weight: 500;
    color: var(--on-surface-variant);
    padding: 6px 14px;
    border-radius: 100px;
    transition: all 0.2s;
}
.nav-links a:hover {
    background: var(--surface-container);
    color: var(--primary);
}
.nav-links a.active {
    background: var(--primary);
    color: var(--on-primary);
}
.nav-links a.nav-cta {
    background: var(--secondary-container);
    color: var(--on-secondary-container);
    font-weight: 700;
}

/* ============================================
   BOTONES (GLOBALES)
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn--primary {
    background: var(--secondary-container);
    color: var(--on-secondary-container);
    box-shadow: var(--shadow-md);
}
.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.btn--outline {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    color: var(--on-primary);
}
.btn--outline:hover { background: rgba(255, 255, 255, 0.1); }

/* ============================================
   HERO (GENERAL)
   ============================================ */
.hero {
    background: linear-gradient(155deg, var(--primary-container) 0%, var(--primary) 100%);
    padding: 80px 24px 60px;
    position: relative;
    overflow: hidden;
}
.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 2;
}
.hero h1 {
    font-family: var(--font-display);
    font-size: 52px;
    font-weight: 800;
    color: white;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.hero h1 span { color: var(--secondary-container); }
.hero p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    max-width: 480px;
    margin-top: 16px;
}
.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 24px;
}
.btn-hero-primary {
    background: var(--secondary-container);
    color: var(--on-secondary-container);
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: var(--shadow-lg);
    display: inline-block;
}
.btn-hero-primary:hover { transform: scale(1.03); }
.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-block;
}
.btn-hero-secondary:hover { background: rgba(255, 255, 255, 0.20); }

/* ============================================
   PDP HERO (PÁGINA PÉRDIDA DE PESO)
   ============================================ */
.pdp-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
    color: var(--on-primary);
    padding: 72px 0 56px;
    position: relative;
    overflow: hidden;
}
.pdp-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--on-primary-container);
}
.pdp-hero__title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 700;
    line-height: 1.1;
    max-width: 720px;
    margin: 0 0 18px;
    color: var(--on-primary);
}
.pdp-hero__subtitle {
    font-size: 18px;
    color: var(--on-primary-container);
    max-width: 600px;
    margin: 0 0 32px;
}
.pdp-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}
.pdp-hero__phone {
    font-weight: 700;
    font-size: 17px;
    color: var(--on-primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}
.pdp-hero__phone:hover { color: var(--secondary-container); }

/* ============================================
   CATEGORÍAS (INDEX GENERAL)
   ============================================ */
.section-categories {
    padding: 72px 24px;
    background: var(--surface);
}
.section-header {
    text-align: center;
    margin-bottom: 48px;
}
.section-header h2 {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
}
.section-header p {
    color: var(--on-surface-variant);
    font-size: 18px;
    margin-top: 8px;
}
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}
.category-card {
    background: var(--surface-container-lowest);
    border: 1px solid var(--outline-variant);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    display: block;
}
.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.category-card .icon { font-size: 48px; display: block; margin-bottom: 16px; }
.category-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.category-card p { color: var(--on-surface-variant); font-size: 14px; }
.category-card .badge {
    display: inline-block;
    margin-top: 16px;
    background: var(--primary);
    color: var(--on-primary);
    padding: 4px 16px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
}

/* ============================================
   SECCIONES (PDP)
   ============================================ */
.pdp section { padding: 64px 0; }
.section-title {
    font-family: var(--font-display);
    font-size: clamp(26px, 3.5vw, 36px);
    font-weight: 700;
    color: var(--on-surface);
    margin: 0 0 16px;
    text-align: center;
}
.section-subtitle {
    text-align: center;
    color: var(--on-surface-variant);
    font-size: 17px;
    max-width: 640px;
    margin: 0 auto 48px;
}
.section-alt { background: var(--surface-container-low); }

/* ============================================
   CARDS (PDP)
   ============================================ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 900px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards-grid { grid-template-columns: 1fr; } }

.card {
    background: var(--surface-container-lowest);
    border: 1px solid var(--outline-variant);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.card__icon {
    font-size: 28px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-container);
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
}
.card__title {
    font-weight: 700;
    font-size: 18px;
    margin: 0 0 8px;
    color: var(--on-surface);
}
.card__text {
    color: var(--on-surface-variant);
    font-size: 15px;
    margin: 0;
}

/* ============================================
   STEPS (PDP)
   ============================================ */
.steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 760px;
    margin: 0 auto;
}
.step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: var(--surface-container-lowest);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}
.step__number {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--on-primary);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
}
.step__title {
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--on-surface);
}
.step__text {
    margin: 0;
    color: var(--on-surface-variant);
    font-size: 15px;
}

/* ============================================
   TESTIMONIO (PDP)
   ============================================ */
.testimonial {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
    background: var(--tertiary-container);
    color: var(--on-primary);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    position: relative;
}
.testimonial__quote {
    font-size: 19px;
    font-style: italic;
    line-height: 1.7;
    margin: 0 0 20px;
}
.testimonial__author {
    font-weight: 700;
    font-size: 15px;
    opacity: 0.9;
}

/* ============================================
   FAQ (PDP)
   ============================================ */
.faq {
    max-width: 760px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid var(--outline-variant);
    padding: 22px 0;
}
.faq-item__q {
    font-weight: 700;
    font-size: 17px;
    margin: 0 0 10px;
    color: var(--on-surface);
    display: flex;
    gap: 10px;
}
.faq-item__a {
    margin: 0;
    color: var(--on-surface-variant);
    font-size: 15px;
    line-height: 1.7;
}

/* ============================================
   CTA FINAL + SURVEY (PDP)
   ============================================ */
.cta-final {
    background: linear-gradient(135deg, var(--primary) 0%, var(--tertiary) 120%);
    color: var(--on-primary);
    border-radius: var(--radius-lg);
    padding: 56px 40px;
    text-align: center;
    box-shadow: var(--shadow-xl);
}
.cta-final__title {
    font-family: var(--font-display);
    font-size: clamp(26px, 4vw, 34px);
    margin: 0 0 12px;
    font-weight: 700;
    color: var(--on-primary);
}
.cta-final__text {
    color: var(--on-primary-container);
    max-width: 560px;
    margin: 0 auto 32px;
    font-size: 16px;
}
.cta-final .btn--primary {
    font-size: 17px;
    padding: 18px 40px;
}
.cta-final__microcopy {
    margin-top: 16px;
    font-size: 13px;
    color: var(--on-primary-container);
}

.survey {
    background: var(--surface-container-lowest);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 480px;
    margin: 0 auto 28px;
    text-align: left;
    box-shadow: var(--shadow-lg);
}
.survey__question {
    color: var(--on-surface);
    font-weight: 700;
    font-size: 16px;
    margin: 0 0 16px;
}
.survey__options {
    display: flex;
    gap: 14px;
}
.survey__option {
    flex: 1;
    border: 1.5px solid var(--outline-variant);
    background: var(--surface-container-low);
    color: var(--on-surface);
    border-radius: var(--radius-sm);
    padding: 14px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s ease;
}
.survey__option:hover,
.survey__option.is-active {
    border-color: var(--primary);
    background: var(--primary-container);
    color: var(--on-primary);
}
.survey__followup {
    margin-top: 18px;
    display: none;
}
.survey__followup.is-visible { display: block; }
.survey__followup select {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--outline-variant);
    font-family: var(--font-sans);
    font-size: 15px;
    color: var(--on-surface);
    background: var(--surface-container-lowest);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.65);
    padding: 48px 24px 24px;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-col h4 {
    color: white;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
}
.footer-col p { font-size: 13px; line-height: 1.6; }
.footer-col a {
    display: block;
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    margin-bottom: 8px;
    transition: color 0.2s;
}
.footer-col a:hover { color: white; }
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding-top: 24px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   RESPONSIVE (GLOBAL)
   ============================================ */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero p { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .header { padding: 0 16px; height: 64px; }
    .nav-links a { font-size: 11px; padding: 4px 10px; }
    .hero h1 { font-size: 36px; }
    .hero { padding: 60px 16px 40px; }
    .categories-grid { grid-template-columns: 1fr 1fr; }
    .section-header h2 { font-size: 28px; }
}
@media (max-width: 600px) {
    .pdp section { padding: 48px 0; }
    .survey__options { flex-direction: column; }
    .testimonial { padding: 32px 20px; }
    .cta-final { padding: 32px 20px; }
    .step { flex-direction: column; align-items: center; text-align: center; }
    .step__number { margin-bottom: 8px; }
}
@media (max-width: 480px) {
    .nav-links a { font-size: 10px; padding: 4px 8px; }
    .hero h1 { font-size: 28px; }
    .categories-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
}