/* ============================================
   ENREN - Página de Inicio - Estilos
   ============================================ */

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

:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --success: #10b981;
    --text-dark: #1a202c;
    --text-light: #718096;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --accent-warm: rgba(245, 158, 11, 0.15);
    --font-display: 'Syne', system-ui, sans-serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    font-size: 1rem;
}

/* ============================================
   NAVEGACIÓN
   ============================================ */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.btn-cta {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #1a1200;
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.40);
}

/* Mobile Navigation Icons */
.nav-mobile-icons {
    display: none;
    align-items: center;
    gap: 15px;
}

.mobile-user-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mobile-user-icon:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.mobile-user-icon svg {
    width: 22px;
    height: 22px;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    gap: 6px;
    background: transparent;
    border: none;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.menu-toggle:hover {
    background: rgba(102, 126, 234, 0.1);
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hamburger animation when active */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.nav-item-desktop {
    display: block;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: -15% 0;
    z-index: 0;
    will-change: transform;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(162deg,
        rgba(7, 11, 35, 0.93) 0%,
        rgba(15, 31, 92, 0.82) 40%,
        rgba(29, 58, 138, 0.60) 65%,
        rgba(146, 64, 14, 0.28) 85%,
        rgba(245, 158, 11, 0.10) 100%
    );
    z-index: 1;
}

/* Radial sun glow — top-right of hero */
#inicio::after {
    content: '';
    position: absolute;
    top: -8%;
    right: 4%;
    width: 54vmin;
    height: 54vmin;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.22) 0%, rgba(245, 158, 11, 0.07) 45%, transparent 72%);
    z-index: 1;
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
    z-index: 1;
}

.hero-content h1 {
    font-family: var(--font-display);
    font-size: 2.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.25rem;
    line-height: 1.35;
    letter-spacing: -0.02em;
    padding-bottom: 0.2em;
}

.hero-content .highlight {
    background: linear-gradient(to right, #ffd700, #ffa500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    line-height: 1.4;
    padding-bottom: 0.15em;
}

.hero-content p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 0.85rem 1.75rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    display: inline-block;
}

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

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.25);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.7);
}

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

/* ============================================
   PERFIL DE CONSUMO
   ============================================ */
.pcs-section {
    background: #f7fafc;
}

.pcs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.pcs-card {
    background: white;
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pcs-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.pcs-card-icon {
    line-height: 1;
    color: var(--primary);
}

.pcs-quiz-pts {
    display: none;
}

.pcs-badge-trabajadora { background: #dbeafe; color: #1d4ed8; }
.pcs-badge-domestica   { background: #cffafe; color: #0891b2; }
.pcs-badge-jubilados   { background: #ede9fe; color: #7c3aed; }
.pcs-badge-teletrabajo { background: #ccfbf1; color: #0d9488; }
.pcs-badge-ac          { background: #ffedd5; color: #ea580c; }
.pcs-badge-comercio    { background: #dcfce7; color: #15803d; }
.pcs-badge-agricola    { background: #ecfccb; color: #65a30d; }

.pcs-card.is-quiz-winner {
    outline: 2.5px solid var(--winner-color, var(--primary));
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--winner-color, var(--primary)) 15%, transparent), 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-4px);
    position: relative;
}
.pcs-card.is-quiz-winner::after {
    content: 'Resultado quiz';
    position: absolute;
    top: 0;
    right: 1rem;
    transform: translateY(-50%);
    background: var(--winner-color, var(--primary));
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    pointer-events: none;
    white-space: nowrap;
}


/* ============================================
   POR QUÉ SOLAR
   ============================================ */
.pqs-section {
    background: linear-gradient(180deg, #f8f9ff 0%, #eef2ff 100%);
    border-top: 1px solid #e2e8f5;
    border-bottom: 1px solid #e2e8f5;
}

/* Stat bar */
.pqs-stat-bar {
    display: flex;
    align-items: stretch;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(245, 158, 11, 0.12), 0 1px 4px rgba(0,0,0,0.04);
    margin-bottom: 2.75rem;
    overflow: hidden;
    border-top: 3px solid var(--accent);
}

.pqs-stat {
    flex: 1;
    padding: 1.5rem 1.5rem;
    text-align: center;
}

.pqs-stat-divider {
    width: 1px;
    background: #e8edf5;
    flex-shrink: 0;
    align-self: stretch;
}

.pqs-stat-value {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.35rem;
    letter-spacing: -0.02em;
}

.pqs-stat-label {
    font-size: 0.83rem;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 0.2rem;
}

.pqs-stat-subtitle {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.pqs-stat-source {
    font-size: 0.7rem;
    color: var(--text-light);
}

/* Card grid */
.pqs-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
}

.pqs-card {
    background: white;
    border-radius: 14px;
    padding: 1.75rem 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.055);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.pqs-card:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.13);
    transform: translateY(-2px);
}

.pqs-card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.pqs-card-icon {
    color: var(--primary);
    line-height: 1;
    flex-shrink: 0;
}

.pqs-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
}

/* Bullet list */
.pqs-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}

.pqs-list li {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.6;
    padding-left: 1.1rem;
    position: relative;
}

.pqs-list li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.5;
}

.pqs-list strong {
    color: var(--text-dark);
    font-weight: 600;
}


/* Radiation zones */
.pqs-zones {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.pqs-zone {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 1.1rem;
    border-radius: 8px;
    text-align: center;
    align-items: center;
}

.pqs-zone-norte { background: #fffbeb; }
.pqs-zone-rm    { background: #eff6ff; }
.pqs-zone-sur   { background: #f0fdf4; }

.pqs-zone-name {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dark);
}

.pqs-zone-region {
    font-size: 0.68rem;
    color: var(--text-light);
    line-height: 1.2;
    margin-bottom: 0.3rem;
}

.pqs-zone-val {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.pqs-zone-badge {
    font-size: 0.68rem;
    color: var(--text-light);
    line-height: 1.35;
}

.pqs-card-note {
    font-size: 0.84rem;
    color: var(--text-light);
    line-height: 1.6;
    padding-top: 0.5rem;
    border-top: 1px solid #eef2ff;
}

.pqs-card-note strong {
    color: var(--text-dark);
    font-weight: 600;
}

.pqs-card-sources {
    font-size: 0.7rem;
    color: #b0bac8;
    line-height: 1.5;
}

/* Inline source citation inside list items */
cite.pqs-src {
    font-style: normal;
    font-size: 0.7rem;
    color: #b0bac8;
    white-space: nowrap;
}

/* Sources footnote */
.pqs-sources {
    font-size: 0.7rem;
    color: #b0bac8;
    text-align: center;
    line-height: 1.7;
}

/* Responsive */
@media (max-width: 960px) {
    .pqs-stat-bar {
        flex-wrap: wrap;
    }
    .pqs-stat {
        min-width: 48%;
        border-bottom: 1px solid #e8edf5;
    }
    .pqs-stat-divider { display: none; }
}

@media (max-width: 640px) {
    .pqs-stat { min-width: 100%; }
    .pqs-zones { grid-template-columns: 1fr; }
}

/* ============================================
   SECCIONES
   ============================================ */
.section {
    padding: 5rem 2rem;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 700;
    text-align: center;
    font-size: 2.25rem;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    line-height: 1.35;
    letter-spacing: -0.02em;
    padding-bottom: 0.2em;
}

.section-subtitle {
    text-align: center;
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

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

/* ============================================
   BENEFICIOS
   ============================================ */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.benefit-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.06);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

.benefit-card h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.benefit-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Benefit card expandable details */
.benefit-card {
    cursor: pointer;
    position: relative;
}

.benefit-card.active {
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.18), 0 2px 6px rgba(0, 0, 0, 0.06);
    transform: translateY(-4px);
}

.benefit-icon {
    transition: color 0.25s ease;
}

.benefit-card.active .benefit-icon {
    color: var(--primary);
}

.benefit-card.active::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 11px solid transparent;
    border-right: 11px solid transparent;
    border-top: 11px solid var(--primary);
    z-index: 3;
}

/* ============================================
   PROCESO
   ============================================ */
.process-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    position: relative;
}

.step {
    text-align: center;
    position: relative;
    cursor: pointer;
    padding: 1.25rem 1rem;
    border-radius: 12px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.step:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.06);
}

.step.active {
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.18), 0 2px 6px rgba(0, 0, 0, 0.06);
    transform: translateY(-3px);
}

.step-number {
    transition: box-shadow 0.25s ease;
}

.step.active .step-number {
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.45);
}

.step.active::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 11px solid transparent;
    border-right: 11px solid transparent;
    border-top: 11px solid var(--primary);
    z-index: 3;
}

.step-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 22px;
    height: 22px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
}

.step-number {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.25);
}

.step h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.step p {
    color: var(--text-light);
}

/* ============================================
   EXPANDABLE GRID (reusable component)
   Detail panel lives OUTSIDE the grid to avoid
   grid-column: 1/-1 layout disruption.
   ============================================ */
.expandable-grid-wrap {
    position: relative;
}

.expandable-detail {
    grid-column: 1 / -1;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark, #5a6fd6));
    border-radius: 12px;
    color: white;
    padding: 0 2rem;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2);
    position: relative;
}

.expandable-detail.open {
    max-height: 300px;
    opacity: 1;
    padding: 1.5rem 2rem;
}

.expandable-detail-arrow {
    position: absolute;
    top: -12px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 12px solid var(--primary);
    transition: left 0.3s ease;
}

.expandable-detail-inner {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.expandable-detail-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.expandable-detail-title {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.expandable-detail-text {
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ============================================
   FAQ
   ============================================ */
.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: white;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
}

.faq-item.open {
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.12), 0 1px 3px rgba(0, 0, 0, 0.04);
}

.faq-question {
    width: 100%;
    padding: 1.1rem 1.25rem;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: left;
    font-family: inherit;
    line-height: 1.4;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-arrow {
    font-size: 0.8rem;
    color: var(--primary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.open .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.open .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 1.25rem 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ============================================
   CONTACTO
   ============================================ */
.contact-section {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.contact-section-title {
    color: white;
    margin-bottom: 0.5rem;
}

/* Field tooltips */
.field-tooltip-wrap {
    position: relative;
}

.field-tooltip {
    position: absolute;
    left: 105%;
    top: 50%;
    transform: translateY(-50%);
    width: 240px;
    background: #1e293b;
    color: #f1f5f9;
    font-size: 0.82rem;
    line-height: 1.5;
    padding: 10px 14px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    z-index: 20;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    transform: translateY(-50%) translateX(6px);
}

.field-tooltip.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
}

/* Arrow pointing left towards the input */
.field-tooltip::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-right: 7px solid #1e293b;
}

/* On smaller screens, tooltip goes below the field */
@media (max-width: 900px) {
    .field-tooltip {
        left: 0;
        right: 0;
        top: 100%;
        width: auto;
        transform: translateY(6px);
        margin-top: 4px;
    }

    .field-tooltip.visible {
        transform: translateY(0);
    }

    .field-tooltip::before {
        left: 20px;
        top: -7px;
        transform: none;
        border-left: 7px solid transparent;
        border-right: 7px solid transparent;
        border-bottom: 7px solid #1e293b;
        border-top: none;
    }
}

/* Qué recibirás block — top of contact form */
.cf-what-you-get {
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 10px;
    padding: 1.75rem;
    margin-bottom: 2rem;
    text-align: center;
}

.cf-what-you-get h2 {
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
    color: var(--text-dark);
}

.cf-what-you-get p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.contact-intro {
    opacity: 0.85;
    margin-bottom: 1.25rem !important;
}

.contact-outcomes {
    list-style: none;
    padding: 0;
    margin: 0 auto 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 480px;
}

.contact-outcomes li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.outcome-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.outcome-icon {
    flex-shrink: 0;
    color: var(--primary);
}

.contact-outcomes li strong {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
}

.contact-outcomes li span {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.45;
    text-align: center;
}

.contact-privacy-note {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0;
    line-height: 1.4;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
    width: 100%;
}

/* 2-column field grid inside the form */
.cf-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1.5rem;
}

.cf-fields-grid > .span-2 {
    grid-column: 1 / -1;
}

@media (max-width: 680px) {
    .cf-fields-grid { grid-template-columns: 1fr; }
    .cf-fields-grid > .span-2 { grid-column: auto; }
}

/* ── Two-section form layout ──────────────────────────────── */
.cf-have {
    background: linear-gradient(135deg, #f0fdf4 0%, #f0f9ff 100%);
    border: 1.5px solid #bbf7d0;
    border-radius: 10px;
    padding: 1.1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.cf-need {
    background: #fafbff;
    border: 1.5px solid rgba(102,126,234,0.12);
    border-radius: 10px;
    padding: 1.1rem 1.25rem;
}

.cf-section-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.cf-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 0.68rem;
    font-weight: 700;
    flex-shrink: 0;
}

.cf-badge-check { background: #d1fae5; color: #065f46; }
.cf-badge-need  { background: #eef2ff; color: var(--primary); }

.cf-section-title {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-dark, #1e293b);
}

.cf-section-sub {
    font-size: 0.72rem;
    color: var(--text-light, #64748b);
    margin-left: 2px;
}

/* "Lo que tenemos" display rows */
.cf-have-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 1rem;
}

.cf-have-row:last-child { margin-bottom: 0; }

.cf-have-display {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid #6ee7b7;
    border-radius: 6px;
    background: #f0fdf4;
    color: #065f46;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 6px;
}

.cf-edit-btn {
    font-size: 0.75rem;
    color: var(--primary);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    padding: 0 0 0.65rem;
    white-space: nowrap;
    flex-shrink: 0;
    opacity: 0.85;
}

.cf-edit-btn:hover { opacity: 1; }

.cf-field-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 6px;
}
.cf-field-hdr label { margin-bottom: 0; }
.cf-goto-btn {
    font-size: 0.72rem;
    color: var(--primary);
    text-decoration: none;
    opacity: 0.65;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity 0.15s;
}
.cf-goto-btn:hover { opacity: 1; }

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-label-icon {
    color: var(--primary);
    flex-shrink: 0;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-submit {
    width: 100%;
    padding: 0.85rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ── Advanced tipo collapsible ─────────────────────────────── */
.form-advanced-wrap {
    margin-bottom: 1rem;
}

.form-advanced-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: var(--text-sm);
    color: var(--primary);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    opacity: 0.80;
    transition: opacity 0.15s;
}

.form-advanced-toggle:hover { opacity: 1; }

.form-advanced-toggle .adv-arrow {
    display: inline-block;
    transition: transform 0.2s ease;
    font-style: normal;
}

.form-advanced-toggle.open .adv-arrow {
    transform: rotate(180deg);
}

.form-advanced-body {
    margin-top: 12px;
    padding: 14px 16px;
    background: var(--bg-muted, #f8fafc);
    border: 1px solid var(--input-border, #e2e8f0);
    border-radius: 8px;
}

.form-hint {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-light);
    margin-top: 3px;
}

.contact-form-errors {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    color: #991b1b;
    font-size: 0.9rem;
}
.contact-form-errors strong { display: block; margin-bottom: 6px; }
.contact-form-errors ul { margin: 0; padding-left: 18px; }
.contact-form-errors li { margin-bottom: 2px; }

.form-submit-note {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    opacity: 0.85;
}

.consent-group {
    margin-bottom: 0.5rem;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.4;
}

.consent-label input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--primary);
    cursor: pointer;
}

.consent-label a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 500;
}

.consent-label a:hover {
    color: var(--secondary);
}

/* ============================================
   BOLETA DE SUMINISTRO UPLOAD
   ============================================ */
.boleta-upload-label-text {
    display: block;
    font-weight: 500;
    font-size: var(--text-sm);
    margin-bottom: 6px;
    color: var(--text-primary, #1e293b);
}

.boleta-slots-row {
    display: flex;
    gap: 8px;
}

.boleta-slot {
    flex: 1;
    min-width: 0;
}

.boleta-drop-zone {
    border: 2px dashed var(--primary, #4f46e5);
    border-radius: 8px;
    background: rgba(79, 70, 229, 0.04);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    outline: none;
    overflow: hidden;
}

.boleta-drop-zone:focus,
.boleta-drop-zone.boleta-drag-over {
    border-color: var(--secondary, #7c3aed);
    background: rgba(79, 70, 229, 0.08);
}

.boleta-drop-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 10px;
    text-align: center;
}

.boleta-upload-icon {
    color: var(--primary, #4f46e5);
    opacity: 0.7;
    margin-bottom: 2px;
}

.boleta-drop-text {
    font-size: var(--text-xs);
    color: var(--text-primary, #1e293b);
}

.boleta-drop-hint {
    font-size: 0.7rem;
    color: var(--text-muted, #6b7280);
}

.boleta-heic-hint {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted, #9ca3af);
    font-style: italic;
    margin-top: 5px;
}

.boleta-file-input {
    display: none;
}

.boleta-preview {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
}

.boleta-thumb {
    width: 34px;
    height: 34px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.boleta-pdf-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fee2e2;
    border-radius: 4px;
    color: #dc2626;
    flex-shrink: 0;
}

.boleta-filename {
    flex: 1;
    font-size: 0.7rem;
    word-break: break-all;
    color: var(--text-primary, #1e293b);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.boleta-clear-btn {
    background: none;
    border: 1px solid var(--danger, #ef4444);
    color: var(--danger, #ef4444);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.7rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s;
}

.boleta-clear-btn:hover {
    background: rgba(239,68,68,0.08);
}

.boleta-consent-group {
    padding: 8px 0 0;
    margin-bottom: 0;
}

.boleta-privacy-note {
    font-size: 0.7rem;
    color: var(--text-muted, #9ca3af);
    margin-top: 6px;
    line-height: 1.4;
}

/* ============================================
   CONTACT REACH BAR (after FAQ)
   ============================================ */
.contact-reach-bar {
    background: #f8f9ff;
    border-top: 1px solid #e2e8f5;
    border-bottom: 1px solid #e2e8f5;
    padding: 2.5rem 2rem;
}

.contact-reach-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-reach-bar .contact-cta-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    margin: 0;
}

.contact-reach-bar .contact-details {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 0;
}

.contact-reach-bar .contact-detail-item {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-light);
}

.contact-reach-bar .contact-text {
    color: var(--text-dark);
}

@media (max-width: 700px) {
    .contact-reach-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .contact-reach-bar .contact-details {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* ============================================
   CONTACT INFO
   ============================================ */
.contact-details {
    margin-top: 2rem;
    font-size: 1.15rem;
}

.contact-detail-item {
    margin-bottom: 1.2rem;
}

.contact-icon {
    font-size: 1.8rem;
}

.contact-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 2rem 0;
}

.contact-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-cta-btn:hover {
    transform: translateY(-2px);
}

.whatsapp-btn {
    background: #25d366;
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn:hover {
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.phone-btn {
    background: white;
    color: var(--text-dark);
    border: 1.5px solid #d1d5db;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.phone-btn:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.contact-text {
    margin-left: 0.5rem;
}

/* ============================================
   FORM SELECT
   ============================================ */
.form-group select {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 0.85rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #f8faff;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.15s ease;
}

.form-group select:hover {
    border-color: #b0bbd0;
    background-color: #f2f6ff;
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 102, 126, 234), 0.12);
    background-color: #f0f4ff;
}

/* ============================================
   SECTION BG LIGHT
   ============================================ */
.section-bg-light {
    background: #f7fafc;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 4rem 2rem 1.5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {}

.footer-logo {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    max-width: 320px;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social-link {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
    text-decoration: none;
}

.footer-social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-links {
    display: contents;
}

.footer-section h4,
.footer-contact h4 {
    margin-bottom: 1.2rem;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.footer-section a,
.footer-contact a,
.footer-contact p {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    display: block;
    margin-bottom: 0.65rem;
    line-height: 1.7;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-section a:hover,
.footer-contact a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    /* Show mobile icons, hide desktop menu items */
    .nav-mobile-icons {
        display: flex;
    }

    .nav-item-desktop {
        display: none;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 0;
    }

    .nav-menu li {
        padding: 0.8rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 0.5rem 1rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-content h1 {
        font-size: 2.25rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-steps {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-tagline {
        max-width: none;
    }

    .contact-cta-buttons {
        flex-direction: column;
    }
}

@media (max-width: 550px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 400px) {
    .process-steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }

    .nav-container {
        padding: 1rem;
    }

    .section {
        padding: 3rem 1rem;
    }

    .mobile-user-icon {
        width: 40px;
        height: 40px;
    }

    .mobile-user-icon svg {
        width: 20px;
        height: 20px;
    }

    .menu-toggle {
        width: 40px;
        height: 40px;
    }

    .nav-mobile-icons {
        gap: 10px;
    }
}

/* ============================================
   WHATSAPP FLOATING WIDGET
   ============================================ */
.wa-widget {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 999;
}

.wa-float {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: #25d366;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wa-float:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}

/* Bubble */
.wa-bubble {
    position: absolute;
    bottom: calc(100% + 14px);
    right: 0;
    width: 352px;
    background: white;
    border-radius: 12px;
    border: 1.5px solid #25d366;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.06);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.95);
    transform-origin: bottom right;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    overflow: hidden;
}

.wa-bubble::after {
    content: '';
    position: absolute;
    bottom: -9px;
    right: 22px;
    width: 16px;
    height: 16px;
    background: white;
    border-right: 2px solid #25d366;
    border-bottom: 2px solid #25d366;
    transform: rotate(45deg);
    box-shadow: 4px 4px 8px rgba(0,0,0,0.06);
}

.wa-widget.open .wa-bubble,
.wa-widget.hover .wa-bubble {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Header */
.wa-bubble-header {
    background: #25d366;
    color: white;
    padding: 16px 18px;
}

.wa-bubble-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.wa-bubble-subtitle {
    font-size: 0.78rem;
    opacity: 0.9;
}

/* Body */
.wa-bubble-body {
    padding: 14px 18px 10px;
}

.wa-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.wa-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.wa-topic {
    padding: 5px 12px;
    border: 1.5px solid #e0e0e0;
    border-radius: 20px;
    background: white;
    color: #555;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1.3;
}

.wa-topic:hover {
    border-color: #25d366;
    color: #25d366;
}

.wa-topic.selected {
    background: #25d366;
    border-color: #25d366;
    color: white;
}

.wa-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.88rem;
    color: #333;
    resize: none;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.wa-textarea:focus {
    outline: none;
    border-color: #25d366;
}

.wa-textarea::placeholder {
    color: #aaa;
}

/* Send button */
.wa-send {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: calc(100% - 36px);
    margin: 0 18px 16px;
    padding: 11px 20px;
    background: #25d366;
    color: white;
    border: 1.5px solid #1fb855;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.2s, border-color 0.2s;
}

.wa-send:hover {
    background: #1fb855;
    border-color: #1a9e4a;
}

@media (max-width: 768px) {
    .wa-widget {
        bottom: 80px;
        right: 20px;
    }

    .wa-float {
        width: 52px;
        height: 52px;
        border-radius: 14px;
    }

    .wa-float svg {
        width: 28px;
        height: 28px;
    }

    .wa-bubble {
        width: 310px;
        right: -10px;
    }
}

@media (max-width: 400px) {
    .wa-bubble {
        width: 280px;
        right: -15px;
    }
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.4);
}

.scroll-to-top:active {
    transform: translateY(0);
}

.scroll-to-top-icon {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }

    .scroll-to-top-icon {
        font-size: 1.2rem;
    }
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */

#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 460px;
    width: calc(100% - 48px);
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: toast-slide-in 0.35s ease-out;
    position: relative;
    overflow: hidden;
}

.toast-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.toast-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.toast-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 1px;
}

.toast-success .toast-icon {
    background: #a7f3d0;
    color: #065f46;
}

.toast-error .toast-icon {
    background: #fecaca;
    color: #991b1b;
    font-size: 16px;
}

.toast-body {
    flex: 1;
    min-width: 0;
}

.toast-message {
    font-size: 0.9rem;
    line-height: 1.4;
    word-break: break-word;
}

.toast-time {
    font-size: 0.75rem;
    opacity: 0.6;
    margin-top: 4px;
}

.toast-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
    opacity: 0.5;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.toast-close:hover {
    opacity: 1;
}

.toast-success .toast-close {
    color: #065f46;
}

.toast-error .toast-close {
    color: #991b1b;
}

.toast-btn-dismiss {
    background: #fecaca;
    border: 1px solid #f87171;
    color: #991b1b;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0;
    align-self: center;
    transition: background 0.2s;
}

.toast-btn-dismiss:hover {
    background: #fca5a5;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #34d399;
    animation: toast-progress 7s linear forwards;
    border-radius: 0 0 0 10px;
}

.toast-hiding {
    animation: toast-slide-out 0.3s ease-in forwards;
}

@keyframes toast-slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toast-slide-out {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes toast-progress {
    from { width: 100%; }
    to { width: 0%; }
}

@media (max-width: 480px) {
    #toast-container {
        bottom: 16px;
        right: 16px;
        left: 16px;
        width: auto;
        max-width: none;
    }
}

/* ============================================
   SISTEMAS SECTION
   ============================================ */
.sistemas-section {
    background: #f7fafc;
}

.sistemas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.sistema-showcase-card {
    background: white;
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-left: 3px solid transparent;
}

.sistema-showcase-card[data-quiz-sistema="on_grid"]      { border-left-color: #1d4ed8; }
.sistema-showcase-card[data-quiz-sistema="hibrido"]      { border-left-color: var(--accent); }
.sistema-showcase-card[data-quiz-sistema="con_inyeccion"]{ border-left-color: #15803d; }
.sistema-showcase-card[data-quiz-sistema="off_grid"]     { border-left-color: #065f46; }

.sistema-showcase-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(245, 158, 11, 0.12), 0 2px 6px rgba(0,0,0,0.06);
}

.sistema-showcase-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.sistema-tipo-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    width: fit-content;
}

.tipo-ongrid     { background: #dbeafe; color: #1d4ed8; }
.tipo-hibrido    { background: #fef3c7; color: #b45309; }
.tipo-ongridbat  { background: #ede9fe; color: #6d28d9; }
.tipo-inyeccion  { background: #dcfce7; color: #15803d; }
.tipo-offgrid    { background: #d1fae5; color: #065f46; }

.sistema-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0.25rem 0 0;
}

.sistema-card-desc {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.sistema-pros {
    list-style: none;
    padding: 0;
    margin: 0.25rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.sistema-pros li {
    font-size: 0.82rem;
    color: #374151;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.sistema-pros li::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

.sistema-select-btn {
    margin-top: auto;
    padding: 8px 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #1a1200;
    border: none;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
    width: 100%;
}

.sistema-select-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.38);
}

.sistemas-footer-note {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.sistemas-footer-note a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.sistemas-footer-note a:hover {
    text-decoration: underline;
}

/* ============================================
   TIPO SISTEMA — CARD SELECTOR (within form)
   ============================================ */
.tipo-sistema-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.tipo-sistema-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0.6rem 0.4rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
    text-align: center;
    background: white;
    position: relative;
}

.tipo-sistema-card input[type="radio"],
.tipo-sistema-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.tipo-sistema-card:hover {
    border-color: var(--primary);
    background: #f0f4ff;
}

.tipo-sistema-card.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, #eef2ff 0%, #f5f0ff 100%);
}

.tipo-sistema-card.selected .ts-label {
    color: var(--primary);
}

.ts-icon {
    font-size: 1.4rem;
    line-height: 1;
}

.ts-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
}

/* ============================================
   ESTIMATE PANEL
   ============================================ */
.estimate-panel {
    display: none;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1.5px solid #6ee7b7;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    animation: estimateSlideIn 0.35s ease;
}

@keyframes estimateSlideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.estimate-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.85rem;
}

.estimate-check {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.estimate-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #065f46;
}

.estimate-tipo {
    font-size: 0.78rem;
    color: #059669;
    margin-top: 1px;
}

.estimate-catalog-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 8px;
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
    border-radius: 20px;
    font-size: 0.70rem;
    font-weight: 600;
    vertical-align: middle;
}

.estimate-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.estimate-metric {
    background: white;
    border-radius: 8px;
    padding: 0.6rem;
    text-align: center;
    border: 1px solid #a7f3d0;
}

.estimate-metric-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #065f46;
    line-height: 1.2;
}

.estimate-metric-label {
    font-size: 0.67rem;
    color: #6b7280;
    margin-top: 2px;
    line-height: 1.3;
}

.estimate-metric-wide {
    grid-column: span 3;
}

.estimate-metric-wide .estimate-metric-value {
    font-size: 1.05rem;
}

.estimate-savings {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: #065f46;
    margin-bottom: 0.6rem;
    background: white;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    border: 1px solid #a7f3d0;
}

.estimate-savings span {
    white-space: nowrap;
}

.estimate-tech {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.78rem;
    color: #374151;
    margin-bottom: 0.6rem;
    padding: 0.6rem 0.75rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #a7f3d0;
}

.estimate-mensaje {
    font-size: 0.82rem;
    color: #1f2937;
    margin-bottom: 0.4rem;
    line-height: 1.55;
}

.estimate-disclaimer {
    font-size: 0.72rem;
    color: #9ca3af;
    font-style: italic;
}

.estimate-loading {
    text-align: center;
    color: #059669;
    font-weight: 600;
    padding: 1rem 0.5rem;
    font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE — FORM TIPO-SISTEMA CARDS
   ============================================ */
@media (max-width: 600px) {
    .tipo-sistema-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 380px) {
    .tipo-sistema-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sistemas-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .estimate-metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .estimate-metric-wide {
        grid-column: span 2;
    }
}

@media (max-width: 480px) {
    .sistemas-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   QUIZ: SISTEMA DE PUNTOS — DIAGNÓSTICO SOLAR
   ============================================ */

.quiz-wrapper {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    overflow: hidden;
    margin-bottom: 3rem;
}

.quiz-strip {
    display: none;
}

#quiz-inner,
#quiz-perfil-inner {
    padding: 2rem 2.25rem;
}

/* Header row */
.quiz-top-row {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    gap: 0.75rem;
}

.quiz-seeded-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: #15803d;
    background: #dcfce7;
    padding: 3px 10px;
    border-radius: 20px;
}

.quiz-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
}

/* Dots */
.quiz-dots {
    display: flex;
    align-items: center;
    justify-content: center;
}

.quiz-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #dde3f0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: transparent;
    transition: background 0.3s ease, width 0.25s ease, height 0.25s ease, box-shadow 0.3s ease, color 0.2s ease;
}

.quiz-dot.is-active {
    width: 36px;
    height: 36px;
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(102,126,234,0.2);
    color: white;
    font-size: 0.82rem;
}

.quiz-dot.is-done {
    background: var(--success);
}

.quiz-dot-connector {
    width: 32px;
    height: 2px;
    background: #dde3f0;
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.quiz-dot-connector.is-done {
    background: var(--success);
}

/* Question step */
.quiz-step {
    display: none;
    animation: qSlide 0.26s ease forwards;
}

.quiz-step.is-active {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@keyframes qSlide {
    from { opacity: 0; transform: translateX(12px); }
    to   { opacity: 1; transform: translateX(0); }
}

.quiz-q-sub {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    background: rgba(102,126,234,0.08);
    padding: 3px 10px;
    border-radius: 20px;
    margin: 0 auto 0.7rem;
}

.quiz-q-sub::before {
    content: '☑';
    font-style: normal;
}

.quiz-q {
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 1.25rem;
    text-align: center;
}

/* Options */
.quiz-opts {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: 100%;
    max-width: 560px;
}

.quiz-opt {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    width: 100%;
    padding: 0.85rem 1rem;
    background: #f7f9fc;
    border: 2px solid #e8edf5;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.14s ease, background 0.14s ease, transform 0.14s ease, box-shadow 0.14s ease;
}

.quiz-opt:hover {
    border-color: var(--primary);
    background: #f0f3ff;
    transform: translateX(4px);
    box-shadow: -3px 0 0 var(--primary);
}

/* Multi-select checkbox */
.quiz-opt-m .quiz-cb {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    border: 2px solid #c8d5e8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: transparent;
    background: white;
    transition: border-color 0.14s ease, background 0.14s ease, color 0.14s ease;
}

.quiz-opt-m.is-sel .quiz-cb {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.quiz-opt-m.is-sel {
    border-color: var(--primary);
    background: #f0f3ff;
}

.quiz-opt-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.quiz-opt-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.35;
}

.quiz-opt-hint {
    font-size: 0.77rem;
    color: var(--text-light);
    line-height: 1.4;
}

.quiz-opt-chevron {
    color: #c8d0e0;
    flex-shrink: 0;
    transition: color 0.14s ease, transform 0.14s ease;
}

.quiz-opt:hover .quiz-opt-chevron {
    color: var(--primary);
    transform: translateX(3px);
}

/* Continue button (multi-select) */
.quiz-cont-btn {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 9px 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.quiz-cont-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
}

.quiz-cont-btn:not(:disabled):hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Back button */
.quiz-nav-row {
    margin-top: 1rem;
    text-align: center;
}

.quiz-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.15rem 0;
    transition: color 0.14s ease;
}

.quiz-back-btn:hover { color: var(--primary); }


/* Card score bars (live quiz pts on sistema cards) */
.sistema-quiz-pts {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}
.sqp-bar {
    flex: 1;
    height: 5px;
    background: #e8edf5;
    border-radius: 3px;
    overflow: hidden;
}
.sqp-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.4s ease;
}
.sqp-pts {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-light);
    white-space: nowrap;
}

/* Winning card highlight (after quiz completes) */
.sistema-showcase-card.is-quiz-winner {
    border: 2px solid var(--winner-color, var(--primary));
    box-shadow: 0 4px 16px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.06);
    transform: translateY(-3px);
    position: relative;
    z-index: 1;
}
.sistema-showcase-card.is-quiz-winner::after {
    content: 'Resultado quiz';
    position: absolute;
    top: 0;
    right: 1rem;
    transform: translateY(-50%);
    background: var(--winner-color, var(--primary));
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    pointer-events: none;
    white-space: nowrap;
}

/* Cotizar buttons: hidden by default, shown only for quiz result or manual card click */
.sistema-showcase-card .sistema-select-btn[data-select-sistema],
.pcs-card .sistema-select-btn[data-select-perfil] {
    display: none;
}
/* Quiz result winner: always show button */
.sistema-showcase-card.is-quiz-winner .sistema-select-btn[data-select-sistema],
.pcs-card.is-quiz-winner .sistema-select-btn[data-select-perfil] {
    display: block;
}
/* Manual card click: show that card's button too */
.sistema-showcase-card.is-manually-selected .sistema-select-btn[data-select-sistema],
.pcs-card.is-manually-selected .sistema-select-btn[data-select-perfil] {
    display: block;
}

/* In-use state: hide button, show label */
.sistema-showcase-card.is-in-use .sistema-select-btn[data-select-sistema],
.pcs-card.is-in-use .sistema-select-btn[data-select-perfil] {
    display: none !important;
}

.card-in-use-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-top: auto;
    padding: 8px 14px;
    background: color-mix(in srgb, var(--primary) 8%, transparent);
    color: var(--primary);
    border: 1.5px solid color-mix(in srgb, var(--primary) 25%, transparent);
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}
.card-in-use-label::before {
    content: '✓';
    font-size: 0.75rem;
}

/* Modifier card — Con Inyección */
.sistema-showcase-card--mod {
    border-style: dashed;
    border-color: rgba(21, 128, 61, 0.35);
    background: rgba(21, 128, 61, 0.04);
}

.sistema-mod-badge-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.sistema-mod-tag {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #15803d;
    opacity: 0.75;
}

.sistema-mod-compat-note {
    font-size: 0.72rem;
    color: var(--text-light, #888);
    font-style: italic;
    margin-top: auto;
    padding-top: 0.25rem;
}

.sistema-showcase-card--mod.is-grayed {
    opacity: 0.38;
    pointer-events: none;
    filter: grayscale(0.6);
    cursor: default;
}

.sistema-showcase-card--mod.is-grayed .sistema-select-btn {
    pointer-events: none;
}

/* Combo result badges */
.quiz-res-combo-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0.4rem 0;
    flex-wrap: wrap;
}
.quiz-combo-plus {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-light);
}

/* Result */
.quiz-result-top {
    padding: 1.5rem 1.75rem 1.4rem;
    border-radius: 12px 12px 0 0;
    text-align: center;
}

.quiz-res-winner-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.quiz-result-match-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    margin-bottom: 0.4rem;
}

.quiz-result-icon-el {
    font-size: 2.6rem;
    line-height: 1;
    flex-shrink: 0;
}

.quiz-result-system-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0.3rem 0 0;
    line-height: 1.2;
}

.quiz-result-body-section {
    padding: 1.4rem 1.75rem;
    background: white;
    border-radius: 0 0 12px 12px;
    border: 1px solid #e8edf5;
    border-top: none;
}

.quiz-result-compact {
    padding: 1.5rem 1.75rem;
    text-align: center;
}
.quiz-result-match-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-light);
    margin: .5rem 0 .4rem;
}
.quiz-badge-lg {
    font-size: 0.85rem !important;
    padding: 5px 14px !important;
}
.quiz-result-desc-compact {
    font-size: 0.88rem;
    color: var(--text-secondary, var(--text-light));
    margin: .8rem 0 1.2rem;
    line-height: 1.5;
}

.quiz-result-desc {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 0.9rem;
}

.quiz-result-pros-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.quiz-result-pros-list li {
    font-size: 0.875rem;
    color: var(--text-dark);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    line-height: 1.4;
}

.quiz-result-pros-list li::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
    flex-shrink: 0;
}

.quiz-result-tip {
    font-size: 0.79rem;
    color: var(--text-light);
    font-style: italic;
    border-left: 3px solid #e8edf5;
    padding-left: 0.75rem;
    margin-bottom: 1.25rem;
    line-height: 1.55;
}

/* Result action buttons */
.quiz-result-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.quiz-result-cta {
    flex: 1;
    min-width: 180px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
    text-align: center;
}

.quiz-result-cta:hover { opacity: 0.9; transform: translateY(-1px); }

.quiz-restart-btn2 {
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.14s ease, color 0.14s ease;
}

.quiz-restart-btn2:hover { border-color: var(--primary); color: var(--primary); }

/* Divider above grid */
.sistemas-todos-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sistemas-todos-label::before,
.sistemas-todos-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

/* Responsive */
@media (max-width: 600px) {
    #quiz-inner, #quiz-perfil-inner { padding: 1.25rem 1rem; }

    .quiz-top-row { flex-direction: column; align-items: center; gap: 0.5rem; margin-bottom: 1.1rem; }

    .quiz-q { font-size: 1rem; margin-bottom: 1rem; }

    .quiz-opt { padding: 0.75rem 0.85rem; gap: 0.7rem; }


    .quiz-result-top { padding: 1.25rem; }

    .quiz-result-body-section { padding: 1.1rem 1.25rem; }

    .quiz-result-cta { min-width: unset; }
}

/* ============================================
   HERO RENOVADO (v4.1.0)
   ============================================ */

/* Overlay more transparent on the right so the photo shows through */
.hero-overlay {
    background: linear-gradient(110deg,
        rgba(18, 30, 88, 0.90) 0%,
        rgba(50, 72, 160, 0.72) 42%,
        rgba(80, 50, 130, 0.36) 100%);
}

/* Grid: content side slightly wider */
.hero-container {
    grid-template-columns: 1.1fr 0.9fr;
}

/* ── Mini estimate form ───────────────────────── */
.hero-estimate-form {
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    padding: 1.1rem 1.25rem 1.2rem;
    margin-bottom: 1.75rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Override the generic .hero-content p rule inside the form */
.hero-estimate-form p {
    font-size: 0.78rem;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.80);
}

.hero-estimate-label {
    font-size: 0.78rem !important;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.80);
    margin-bottom: 0.65rem !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
}

.hero-estimate-inputs {
    display: flex;
    gap: 0.5rem;
}

.hero-estimate-inputs.hero-estimate-two-rows {
    flex-wrap: wrap;
}

.hero-estimate-two-rows .hero-calc-btn-full {
    width: 100%;
    justify-content: center;
}

.hero-select-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hero-select-wrap .hero-select {
    flex: none;
    width: 100%;
}

.hero-input-hint {
    font-size: 0.92rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.82);
    padding-left: 4px;
    min-height: 1.2em;
    line-height: 1.3;
    letter-spacing: 0.01em;
}

.hero-select {
    flex: 1;
    min-width: 0;
    padding: 0.6rem 2rem 0.6rem 0.75rem;
    background: rgba(255, 255, 255, 0.11);
    border: 1.5px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    color: white;
    font-size: 0.84rem;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.65)' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.65rem center;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.hero-select option {
    background: #1a2560;
    color: white;
}

.hero-select::placeholder { color: rgba(255, 255, 255, 0.45); }

.hero-select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.60);
    background-color: rgba(255, 255, 255, 0.16);
}

.hero-calc-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.6rem 1rem;
    background: linear-gradient(135deg, #ffd700, #ffa500);
    color: #18183a;
    border: none;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-calc-btn:disabled {
    opacity: 0.38;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.hero-calc-btn:not(:disabled):hover {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 190, 0, 0.40);
}

/* ── Hero visual / showcase card ─────────────── */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-showcase-card {
    width: 100%;
    max-width: 390px;
    background: rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 22px;
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    min-height: 360px;
    justify-content: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255,255,255,0.14);
}

/* Default state brand row */
.hero-default-brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
}

.hero-showcase-brand {
    font-size: 1.45rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
    line-height: 1.1;
    white-space: nowrap;
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

/* Sun animation */
.hero-sun-wrap {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-sun-ring {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 200, 0, 0.45);
    animation: heroSunRing 3s ease-out infinite;
}

.hero-sun-ring.r1 { animation-delay: 0s; }
.hero-sun-ring.r2 { animation-delay: 1s; }
.hero-sun-ring.r3 { animation-delay: 2s; }

@keyframes heroSunRing {
    0%   { width: 52px;  height: 52px;  opacity: 0.55; }
    100% { width: 88px;  height: 88px;  opacity: 0; }
}

.hero-sun-core {
    position: relative;
    z-index: 1;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #ffd700 0%, #ff9500 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 24px rgba(255, 165, 0, 0.55);
    animation: heroSunPulse 3.2s ease-in-out infinite;
}

@keyframes heroSunPulse {
    0%, 100% { box-shadow: 0 4px 24px rgba(255, 165, 0, 0.55); }
    50%       { box-shadow: 0 4px 36px rgba(255, 165, 0, 0.85); }
}

/* Prompt text (default state) */
.hero-showcase-prompt {
    text-align: center;
}

.hero-showcase-prompt p {
    font-size: 0.85rem;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.70);
    line-height: 1.5;
}

.hero-showcase-prompt-title {
    font-size: 1.05rem !important;
    font-weight: 700;
    color: white !important;
    margin-bottom: 0.45rem !important;
}

.hero-showcase-prompt-sub {
    max-width: 260px;
    margin: 0 auto;
}

/* Loading */
.hero-loading-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.hero-loading-wrap[hidden] { display: none !important; }
.hero-result-wrap[hidden]  { display: none !important; }

.hero-spinner {
    width: 42px;
    height: 42px;
    border: 3px solid rgba(255, 255, 255, 0.18);
    border-top-color: #ffd700;
    border-radius: 50%;
    animation: heroSpin 0.75s linear infinite;
}

@keyframes heroSpin {
    to { transform: rotate(360deg); }
}

.hero-loading-text {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.86rem;
    font-weight: 500;
    margin: 0;
}

/* Result */
.hero-result-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    animation: heroResultSlide 0.4s ease;
}

@keyframes heroResultSlide {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-result-tipo-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.58);
    text-align: center;
}

.hero-result-saving-block {
    text-align: center;
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 13px;
    padding: 1.15rem 1rem;
}

.hero-result-saving-val {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffd700;
    line-height: 1;
    margin-bottom: 0.3rem;
    font-variant-numeric: tabular-nums;
}

.hero-result-saving-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
}

.hero-result-saving-pct {
    font-size: 1.5rem;
    font-weight: 800;
    color: #86efac;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
}

.hero-result-saving-lbl {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.58);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
}

.hero-result-cell {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    padding: 0.55rem 0.7rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2px;
}

.hero-result-cell-lbl {
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.52);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    line-height: 1.2;
}

.hero-result-cell-val {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.hero-result-cell--savings .hero-result-cell-val { color: #86efac; }
.hero-result-cell--inversion .hero-result-cell-val { color: #fde68a; }

.hero-result-cell-sub {
    font-size: 0.60rem;
    color: rgba(255, 255, 255, 0.42);
    letter-spacing: 0.01em;
    line-height: 1.2;
}

.hero-result-cta-btn {
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #1a1200;
    border: none;
    border-radius: 11px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-result-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 18px rgba(245, 158, 11, 0.45);
}

.hero-result-disclaimer {
    font-size: 0.63rem;
    color: rgba(255, 255, 255, 0.38);
    text-align: center;
    line-height: 1.45;
    margin: 0;
}

/* ── Hero tipo switcher ─────────────────────────── */
.hero-tipo-btn {
    padding: 6px 13px;
    border: 1.5px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    font-size: 0.70rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.58);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    white-space: nowrap;
    line-height: 1.3;
    font-family: inherit;
}

.hero-tipo-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.42);
    color: rgba(255, 255, 255, 0.90);
}

.hero-tipo-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #1a1200;
    font-weight: 700;
}

.hero-tipo-mod-row {
    display: flex;
    gap: 6px;
    justify-content: center;
}

.hero-tipo-switcher {
    display: flex;
    flex-direction: column;
    gap: 7px;
    width: 100%;
}

.hero-tipo-base-row {
    display: flex;
    gap: 6px;
    justify-content: center;
}


/* Modifier/characteristic pills */
.hero-mod-btn {
    padding: 5px 12px;
    border: 1.5px solid rgba(94, 234, 212, 0.28);
    background: rgba(94, 234, 212, 0.06);
    border-radius: 10px;
    font-size: 0.66rem;
    font-weight: 600;
    color: rgba(94, 234, 212, 0.55);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    white-space: nowrap;
    line-height: 1.3;
    font-family: inherit;
}

.hero-mod-btn:hover {
    background: rgba(94, 234, 212, 0.13);
    border-color: rgba(94, 234, 212, 0.50);
    color: rgba(94, 234, 212, 0.85);
}

.hero-mod-btn.active {
    background: rgba(94, 234, 212, 0.22);
    border-color: rgba(94, 234, 212, 0.80);
    color: #99f6e4;
    font-weight: 700;
}

.hero-mod-btn:disabled {
    cursor: default;
    pointer-events: none;
}

.hero-mod-btn:disabled:not(.active) {
    opacity: 0.35;
}

/* ── Hero responsive ────────────────────────────── */
@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        display: flex;
        justify-content: center;
    }

    .hero-showcase-card {
        max-width: 100%;
        min-height: 280px;
        padding: 1.5rem 1.25rem;
    }
}

@media (max-width: 768px) {
    .hero-estimate-inputs {
        flex-direction: column;
    }

    .hero-calc-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Re-show visual on large screens (override 900px rule) */
@media (min-width: 901px) {
    .hero-visual {
        display: flex;
    }
}

/* ============================================
   PROCESO — DARK GLASS SECTION (v4.1.0)
   Dark navy + dot grid = "portal del cliente" feel.
   Glass cards mirror the hero showcase card style.
   ============================================ */

.proceso-dark-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 12% 55%, rgba(102, 126, 234, 0.20) 0%, transparent 48%),
        radial-gradient(ellipse at 88% 18%, rgba(118, 75, 162, 0.18) 0%, transparent 46%),
        linear-gradient(145deg, rgba(10, 18, 58, 0.91) 0%, rgba(18, 28, 72, 0.87) 35%, rgba(12, 20, 58, 0.90) 65%, rgba(18, 10, 42, 0.92) 100%),
        url('../img/home/carousel-02-instalacion-paneles.jpg') center 40% / cover no-repeat;
}

/* Dot-grid pattern overlay */
.proceso-dark-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
    background-size: 26px 26px;
    pointer-events: none;
    z-index: 0;
}

/* Second glow orb (bottom-right) */
.proceso-dark-section::after {
    content: '';
    position: absolute;
    bottom: -15%;
    right: -8%;
    width: 55%;
    height: 65%;
    background: radial-gradient(circle, rgba(50, 72, 180, 0.18) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Container must sit above pseudo-elements */
.proceso-dark-section .container {
    position: relative;
    z-index: 1;
}

/* Title + subtitle → white */
.proceso-dark-section .section-title {
    color: white;
}

.proceso-dark-section .section-subtitle {
    color: rgba(255, 255, 255, 0.62);
}

/* ── Glass step cards ──────────────────────── */
.proceso-dark-section .step {
    background: rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
    color: white;
    transition: background 0.22s ease, border-color 0.22s ease,
                transform 0.22s ease, box-shadow 0.22s ease;
}

.proceso-dark-section .step:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.26);
    transform: translateY(-5px);
    box-shadow:
        0 10px 32px rgba(0, 0, 0, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.proceso-dark-section .step.active {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.30);
    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

/* Step number badge (top-right corner) */
.proceso-dark-section .step-badge {
    background: linear-gradient(135deg, #ffd700, #ffa500);
    color: #18183a;
    box-shadow: 0 2px 8px rgba(255, 165, 0, 0.45);
}

/* Icon circle */
.proceso-dark-section .step-number {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.20);
    box-shadow: none;
    color: #ffd700;
}

/* Text */
.proceso-dark-section .step h3 {
    color: white;
}

.proceso-dark-section .step p {
    color: rgba(255, 255, 255, 0.66);
}

/* ── Expandable detail panel on dark bg ─────── */
.proceso-dark-section .expandable-detail {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.20);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.22);
    color: white;
}

.proceso-dark-section .expandable-detail-arrow {
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

.proceso-dark-section .expandable-detail-title {
    color: white;
}

.proceso-dark-section .expandable-detail-text {
    color: rgba(255, 255, 255, 0.80);
}

/* ── Quiz bar fill colors (replaces inline background styles) ─── */
.sqp-fill.tipo-ongrid    { background: #1d4ed8; }
.sqp-fill.tipo-hibrido   { background: #b45309; }
.sqp-fill.tipo-inyeccion { background: #15803d; }
.sqp-fill.tipo-offgrid   { background: #065f46; }

/* ── Quiz result top backgrounds — neutral, no color/gradient ─── */
.quiz-result-top,
.quiz-result-top.tipo-ongrid,
.quiz-result-top.tipo-hibrido,
.quiz-result-top.tipo-inyeccion,
.quiz-result-top.tipo-offgrid,
.quiz-combo-tipo-ongrid-tipo-inyeccion,
.quiz-combo-tipo-hibrido-tipo-inyeccion { background: #f8fafc; border-bottom: 1px solid #e8edf5; }

/* ── Contact section subtitle (replaces inline style) ─── */
.contact-section-subtitle {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
}

/* ── CF have field group (replaces inline style) ─── */
.cf-have-field-group {
    flex: 1;
    margin-bottom: 0;
}

/* ── Hero sistema badge (replaces tipo switcher) ──────────────────── */
.hero-sistema-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(29, 78, 216, 0.18);
    border: 1px solid rgba(29, 78, 216, 0.45);
    color: #93c5fd;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 5px 11px;
    border-radius: 20px;
    margin-bottom: 10px;
    letter-spacing: 0.02em;
}

.hero-sistema-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #60a5fa;
    flex-shrink: 0;
    animation: sistema-dot-pulse 1.6s ease-in-out infinite;
}

@keyframes sistema-dot-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.35; transform: scale(0.7); }
}

.hero-sistema-badge-icon {
    opacity: 0.85;
}

/* ── Hero secondary link ──────────────────────────────────────────── */
.hero-result-secondary-link {
    display: block;
    text-align: center;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.45);
    margin-top: 6px;
    text-decoration: none;
    transition: color 0.2s;
}
.hero-result-secondary-link:hover { color: rgba(255,255,255,0.75); }

/* ── Hero perfil pill ─────────────────────────────────────────────── */
.hero-perfil-pill {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(245, 158, 11, 0.10);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 10px;
    padding: 7px 11px;
    margin: 10px 0 8px;
    cursor: default;
}
.hero-perfil-pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f59e0b;
    flex-shrink: 0;
    animation: perfil-pulse 1.5s ease-in-out infinite;
}
@keyframes perfil-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.45; transform: scale(0.75); }
}
.hero-perfil-pill.done { background: rgba(34,197,94,0.10); border-color: rgba(34,197,94,0.35); }
.hero-perfil-pill.done .hero-perfil-pill-dot { display: none; }
.hero-perfil-pill-check { color: #4ade80; font-size: 0.8rem; }
.hero-perfil-pill-text {
    flex: 1;
    font-size: 0.71rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.3;
}
.hero-perfil-pill-cta {
    background: rgba(245,158,11,0.20);
    border: 1px solid rgba(245,158,11,0.45);
    color: #fbbf24;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    transition: background 0.2s;
}
.hero-perfil-pill-cta:hover { background: rgba(245,158,11,0.35); }
.hero-perfil-pill-icon { color: rgba(255,255,255,0.55); flex-shrink: 0; }

/* ── Sticky estimate progress bar ────────────────────────────────── */
.estimate-progress-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 1200;
    background: rgba(15, 23, 42, 0.97);
    border-top: 1px solid rgba(255,255,255,0.10);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 26px;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), padding 0.25s ease;
    pointer-events: none;
}
.estimate-progress-bar.visible {
    transform: translateY(0);
    pointer-events: auto;
}
.estimate-progress-bar.collapsed {
    padding: 6px 26px;
}
.epb-collapsed-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}
.epb-collapsed-label {
    font-size: 0.91rem;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.02em;
}
.epb-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.epb-steps-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}
.epb-steps {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}
.epb-step {
    font-size: 0.94rem;
    color: rgba(255,255,255,0.35);
    font-weight: 500;
    display: inline-block;
    transition: transform 0.25s ease;
}
.epb-step.done { color: #4ade80; }
.epb-step.next { color: #fbbf24; font-weight: 700; }
.epb-step.is-active { transform: scale(1.18); }
.epb-sep { color: rgba(255,255,255,0.18); font-size: 0.91rem; }
.epb-data {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}
.epb-data-item {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.42);
    font-weight: 400;
}
.epb-data-sep {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.18);
}
.epb-right {
    display: flex;
    align-items: center;
    gap: 13px;
    flex-shrink: 0;
}
.epb-estimate {
    font-size: 0.98rem;
    color: rgba(255,255,255,0.55);
}
.epb-estimate strong { color: #86efac; }
.epb-inversion {
    font-size: 0.98rem;
    color: rgba(255,255,255,0.55);
}
.epb-inversion strong { color: #fcd34d; }
.epb-cta {
    background: linear-gradient(135deg, var(--accent, #f59e0b), #d97706);
    color: #1a1200;
    border: none;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: opacity 0.2s;
}
.epb-cta:hover { opacity: 0.88; }
.epb-toggle {
    background: none;
    border: none;
    color: rgba(255,255,255,0.35);
    font-size: 1.3rem;
    cursor: pointer;
    line-height: 1;
    padding: 3px 5px;
    transition: color 0.2s, transform 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.epb-toggle:hover { color: rgba(255,255,255,0.70); }

/* EPB loading spinner */
.epb-loading-state {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.epb-spinner {
    animation: epb-spin 0.75s linear infinite;
    flex-shrink: 0;
    color: #86efac;
}
@keyframes epb-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Quiz result "Usando en estimación" label (inside quiz result widget) */
.quiz-result-in-use-label {
    width: auto;
    margin-top: 0;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .estimate-progress-bar { padding: 10px 18px; }
    .epb-steps { font-size: 0.85rem; }
    .epb-estimate, .epb-inversion { display: none; }
    .epb-data { display: none; }
}
