/* ==========================================================================
   CSS STYLESHEET: Electricista de Urgencia en Sant Cugat (Rank & Rent)
   ========================================================================== */

/* 1. VARIABLES & DESIGN SYSTEM */
:root {
    /* Color Palette */
    --bg-primary: #0b0f19;      /* Deep Slate Black */
    --bg-secondary: #121824;    /* Navy-tinged Slate Card Bg */
    --bg-tertiary: #1e293b;     /* Lighter gray/slate for highlights */
    
    --primary-color: #f59e0b;   /* Electric Gold/Amber */
    --primary-hover: #fbbf24;   /* Bright Yellow-Gold */
    --primary-rgb: 245, 158, 11;
    
    --emergency-color: #ef4444; /* Alert Red */
    --emergency-rgb: 239, 68, 68;
    
    --text-primary: #f8fafc;    /* Clean White */
    --text-secondary: #94a3b8;  /* Muted Gray-Blue */
    --text-dark: #0f172a;       /* Deep Slate for light-bg elements if any */
    
    /* Borders & Accents */
    --border-color: rgba(148, 163, 184, 0.12);
    --border-glow: rgba(245, 158, 11, 0.2);
    --glass-bg: rgba(18, 24, 36, 0.75);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-shadow: rgba(0, 0, 0, 0.3);

    /* Fonts */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --alert-height: 40px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s ease;
}

/* 2. BASE RESET */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
}

h1 {
    font-size: 2.75rem;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.25rem;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* Helper Classes */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.align-center { align-items: center; }

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

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

.grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Section Common Styles */
section {
    padding: 6rem 0;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.section-title-wrapper {
    margin-bottom: 4rem;
}

.section-subtitle {
    display: inline-block;
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.15em;
    margin-bottom: 0.75rem;
}

.section-desc {
    font-size: 1.125rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* 3. BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
    font-family: var(--font-heading);
    text-align: center;
}

.btn-lg {
    padding: 1.125rem 2.25rem;
    font-size: 1.125rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-primary);
    box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.45);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.btn-phone {
    background-color: var(--emergency-color);
    color: var(--text-primary);
    box-shadow: 0 4px 14px rgba(var(--emergency-rgb), 0.3);
}

.btn-phone:hover {
    background-color: #f87171;
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--emergency-rgb), 0.45);
}

.phone-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

/* 4. ALERT BAR & STICKY HEADER */
.alert-bar {
    background-color: #7f1d1d;
    border-bottom: 1px solid var(--emergency-color);
    color: #fff7ed;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    text-align: center;
    position: relative;
    z-index: 1001;
    transition: transform var(--transition-normal);
}

.alert-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pulse-indicator {
    width: 10px;
    height: 10px;
    background-color: var(--emergency-color);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(var(--emergency-rgb), 0.7);
    animation: alert-pulse 1.5s infinite;
}

.main-header {
    background-color: rgba(11, 15, 25, 0.95);
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.main-header.scrolled {
    background-color: var(--glass-bg);
    backdrop-filter: blur(12px);
    height: 70px;
    box-shadow: 0 4px 30px var(--glass-shadow);
    border-bottom: 1px solid var(--glass-border);
}

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

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.logo-icon {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
    filter: drop-shadow(0 0 8px rgba(var(--primary-rgb), 0.5));
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    line-height: 1;
    letter-spacing: -0.01em;
}

.logo-title .accent-color {
    color: var(--primary-color);
}

.logo-sub {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

.nav-menu ul {
    display: none; /* Hidden on mobile by default */
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-header-phone {
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    border-radius: var(--border-radius-sm);
}

.mobile-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
}

.mobile-toggle .bar {
    width: 100%;
    height: 2.5px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* 5. HERO SECTION */
.hero-section {
    padding: 4rem 0 6rem 0;
    position: relative;
    overflow: hidden;
    /* Direccional: oscuro a la izquierda (texto legible) y la foto del
       electricista se revela a la derecha para generar confianza. */
    background:
        linear-gradient(to top, rgba(11, 15, 25, 0.55) 0%, rgba(11, 15, 25, 0) 32%),
        linear-gradient(105deg, rgba(11, 15, 25, 0.94) 0%, rgba(11, 15, 25, 0.85) 30%, rgba(11, 15, 25, 0.50) 56%, rgba(11, 15, 25, 0.22) 100%),
        url('assets/hero-electrician.png') no-repeat center right;
    background-size: cover;
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-text-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-text-content h1 strong {
    color: var(--primary-color);
    font-weight: 800;
    position: relative;
    display: inline-block;
}

.tagline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: var(--primary-color);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
    align-self: flex-start;
}

.hero-subtext {
    font-size: 1.25rem;
    line-height: 1.5;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.hero-trust-bullets {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.bullet-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    font-weight: 500;
}

.bullet-icon {
    width: 18px;
    height: 18px;
    color: var(--primary-color);
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-actions .btn-primary {
    justify-content: flex-start;
    padding-left: 2rem;
    text-align: left;
}

.hero-actions .btn-primary .phone-icon {
    width: 28px;
    height: 28px;
    margin-right: 15px;
}

.btn-subtext {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-maintext {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
}

/* HERO FORM CARD */
.hero-form-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    border-radius: var(--border-radius-md);
    padding: 2.5rem;
    box-shadow: 0 10px 40px var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
}

.card-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background-color: var(--primary-color);
    color: var(--bg-primary);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border-radius: 100px;
    box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.3);
}

.hero-form-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.form-instruction {
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1.15rem;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
    padding-right: 2.5rem;
}

.form-group select option {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.form-group textarea {
    min-height: 90px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

.form-privacy {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.form-privacy input[type="checkbox"] {
    margin-top: 2px;
    accent-color: var(--primary-color);
}

.form-privacy a {
    text-decoration: underline;
}

.btn-submit {
    background-color: var(--primary-color);
    color: var(--bg-primary);
    width: 100%;
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    font-size: 1.05rem;
    font-weight: 700;
    font-family: var(--font-heading);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.2);
    transition: all var(--transition-fast);
}

.btn-submit:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.35);
}

.submit-arrow {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-fast);
}

.btn-submit:hover .submit-arrow {
    transform: translateX(4px);
}

/* Success Message */
.form-success-message {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--border-radius-sm);
    padding: 1.5rem;
    color: #34d399;
}

.success-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.form-success-message h4 {
    color: #34d399;
    margin-bottom: 0.25rem;
    font-size: 1.15rem;
}

.form-success-message p {
    color: #a7f3d0;
    margin-bottom: 0;
    font-size: 0.875rem;
}

/* 6. SERVICES SECTION */
.services-section {
    background-color: var(--bg-secondary);
}

.service-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 2.25rem;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--emergency-color));
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--primary-rgb), 0.3);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25), 0 0 15px rgba(var(--primary-rgb), 0.05);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon-box {
    width: 56px;
    height: 56px;
    background-color: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.15);
    color: var(--primary-color);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all var(--transition-normal);
}

.service-icon-box svg {
    width: 28px;
    height: 28px;
}

.service-card:hover .service-icon-box {
    background-color: var(--primary-color);
    color: var(--bg-primary);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.4);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.service-card p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    min-height: 72px; /* Uniform card description layout */
}

.service-link {
    font-weight: 700;
    font-size: 0.9rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
}

/* 7. BENEFITS SECTION */
.benefits-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}

.visual-box-main {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(30, 41, 59, 0.7) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 3rem 2rem;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.decor-line {
    display: block;
    width: 50px;
    height: 4px;
    background-color: var(--primary-color);
    margin-bottom: 1.5rem;
    border-radius: 2px;
}

.visual-box-main h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.call-urgency-banner {
    color: var(--text-primary);
    font-weight: 500;
    border-left: 3px solid var(--emergency-color);
    padding-left: 15px;
    margin-bottom: 2rem;
}

.btn-visual-cta {
    width: 100%;
    padding: 1.1rem;
}

.visual-badge-floating {
    position: absolute;
    bottom: 0;
    right: 10px;
    background-color: var(--bg-primary);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius-md);
    padding: 1.5rem 1.75rem;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    text-align: center;
    animation: float-y 4s ease-in-out infinite;
}

.visual-badge-floating .number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.visual-badge-floating .label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-top: 5px;
}

.benefits-text {
    padding-left: 0;
}

.lead-text {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.benefits-list .benefit-item {
    display: flex;
    gap: 15px;
}

.benefit-icon {
    width: 28px;
    height: 28px;
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-top: 3px;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.benefit-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.benefit-item p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* 8. PROCESS SECTION */
.process-section {
    background-color: var(--bg-secondary);
}

.process-steps {
    position: relative;
}

.step-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 2.5rem 2rem;
    position: relative;
    transition: border-color var(--transition-fast);
}

.step-card:hover {
    border-color: rgba(var(--primary-rgb), 0.25);
}

.step-num {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(245, 158, 11, 0.15);
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    line-height: 1;
}

.step-card h3 {
    font-size: 1.25rem;
    margin-top: 1rem;
    margin-bottom: 0.75rem;
    padding-right: 2rem; /* Avoid overlapping the number */
}

.step-card p {
    font-size: 0.925rem;
    margin-bottom: 0;
}

/* 9. COVERAGE SECTION */
.coverage-section {
    overflow: hidden;
}

.coverage-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin: 1.5rem 0 2.5rem 0;
}

.tag {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.tag:hover {
    background-color: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.3);
    color: var(--primary-color);
}

.cta-mini-card {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(15, 23, 42, 0.1) 100%);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--border-radius-md);
    padding: 1.75rem;
}

.cta-mini-card h4 {
    margin-bottom: 0.5rem;
}

.cta-mini-card p {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.map-visual-box {
    display: flex;
    justify-content: center;
    position: relative;
    padding: 2rem 0;
}

.map-placeholder {
    width: 100%;
    max-width: 450px;
    height: 350px;
    background: radial-gradient(circle at center, #1b263b 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* Technological/Electric Grid look */
.map-placeholder::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, rgba(245, 158, 11, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(245, 158, 11, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    top: 0;
    left: 0;
}

.map-icon {
    width: 64px;
    height: 64px;
    color: var(--primary-color);
    filter: drop-shadow(0 0 12px rgba(var(--primary-rgb), 0.6));
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.map-text {
    position: relative;
    z-index: 2;
    max-width: 280px;
}

.map-text strong {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.map-text p {
    font-size: 0.875rem;
    margin-bottom: 0;
}

.pulse-ring {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 2px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 50%;
    animation: radar-pulse 3s infinite linear;
    z-index: 1;
}

.pulse-ring.ring-2 {
    animation-delay: 1.5s;
}

/* 10. FAQ SECTION */
.faq-section {
    background-color: var(--bg-secondary);
}

.faq-wrapper {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    transition: all var(--transition-fast);
}

.faq-item:hover,
.faq-item.active {
    border-color: rgba(var(--primary-rgb), 0.25);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.25rem 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    gap: 15px;
}

.faq-arrow {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform var(--transition-fast);
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.faq-item.active .faq-arrow {
    transform: rotate(45deg);
    color: var(--emergency-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal) cubic-bezier(0, 1, 0, 1); /* Quick collapse/smooth expand trick */
    padding: 0 1.75rem;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    transition: max-height var(--transition-slow) cubic-bezier(1, 0, 1, 0);
    padding-bottom: 1.5rem;
}

.faq-answer p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
    color: var(--text-secondary);
}

/* 11. FINAL CALL TO ACTION */
.final-cta-section {
    background: radial-gradient(circle at center, rgba(30, 41, 59, 0.5) 0%, var(--bg-primary) 100%);
    position: relative;
}

.cta-badge {
    display: inline-block;
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--emergency-color);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.final-cta-section h2 {
    font-size: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
}

.final-cta-section p {
    font-size: 1.15rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.5rem;
}

.cta-buttons-wrapper {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.cta-note {
    font-size: 0.875rem !important;
    color: var(--text-secondary) !important;
    margin-bottom: 0 !important;
}

/* 12. FOOTER & STICKY MOBILE CTA */
.main-footer {
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 5rem 0 0 0;
}

.footer-grid {
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .logo-area {
    margin-bottom: 1.5rem;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links h3,
.footer-contact h3 {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 4px;
}

.footer-contact p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-tel {
    font-weight: 700;
    color: var(--text-primary);
}

.footer-tel:hover {
    color: var(--primary-color);
}

.authorized-badge {
    display: inline-block;
    color: var(--primary-color) !important;
    font-weight: 700;
    font-size: 0.85rem !important;
    background-color: rgba(245, 158, 11, 0.05);
    border: 1px dashed rgba(245, 158, 11, 0.25);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    margin-top: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 0;
}

.footer-bottom-flex {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.copy-text {
    font-size: 0.8rem;
    margin-bottom: 0;
}

.legal-links {
    display: flex;
    gap: 1.5rem;
}

.legal-links a {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.legal-links a:hover {
    color: var(--text-primary);
}

/* Mobile Sticky Call Button (visible on mobile only) */
.mobile-sticky-cta {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: var(--emergency-color);
    color: var(--text-primary);
    padding: 1rem 1.5rem;
    border-radius: 100px;
    box-shadow: 0 10px 25px rgba(var(--emergency-rgb), 0.5);
    z-index: 999;
    display: none; /* Block on small screens */
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 800;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    animation: sticky-pulse 2s infinite;
}

.phone-icon-sticky {
    width: 24px;
    height: 24px;
    animation: phone-wiggle 1.5s infinite;
}

/* 13. ANIMATIONS KEYFRAMES */
@keyframes alert-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--emergency-rgb), 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(var(--emergency-rgb), 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--emergency-rgb), 0);
    }
}

@keyframes float-y {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

@keyframes radar-pulse {
    0% {
        transform: scale(0.6);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

@keyframes sticky-pulse {
    0% {
        box-shadow: 0 10px 25px rgba(var(--emergency-rgb), 0.5);
    }
    50% {
        box-shadow: 0 10px 35px rgba(var(--emergency-rgb), 0.7);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 10px 25px rgba(var(--emergency-rgb), 0.5);
    }
}

@keyframes phone-wiggle {
    0%, 100% { transform: rotate(0); }
    15% { transform: rotate(-15deg); }
    30% { transform: rotate(15deg); }
    45% { transform: rotate(-10deg); }
    60% { transform: rotate(10deg); }
    75% { transform: rotate(0); }
}

.pulse-animation {
    position: relative;
}

.pulse-animation::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: inherit;
    z-index: -1;
    box-shadow: 0 0 0 0 rgba(var(--emergency-rgb), 0.6);
    animation: button-pulse 2s infinite;
}

@keyframes button-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--emergency-rgb), 0.6);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(var(--emergency-rgb), 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--emergency-rgb), 0);
    }
}

/* 14. RESPONSIVE DESIGN (MEDIA QUERIES) */
@media (min-width: 576px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .hero-actions {
        flex-direction: row;
        align-items: center;
    }
}

@media (min-width: 768px) {
    h1 { font-size: 3.25rem; }
    h2 { font-size: 2.5rem; }
    
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    
    .nav-menu ul {
        display: flex;
        gap: 20px;
    }
    
    .nav-link {
        color: var(--text-secondary);
        font-weight: 500;
        font-size: 0.95rem;
    }
    
    .nav-link:hover {
        color: var(--primary-color);
    }
    
    .mobile-toggle {
        display: none;
    }
    
    .footer-bottom-flex {
        flex-direction: row;
    }
}

@media (min-width: 992px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
    
    .hero-section {
        padding: 6rem 0 8rem 0;
    }
    
    .hero-container.grid-2 {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 4rem;
    }
    
    .benefits-text {
        padding-left: 3rem;
    }
    
    .footer-grid {
        grid-template-columns: 1.2fr 0.8fr 1fr;
    }
    
    /* Desktop horizontal step lines */
    .process-steps.grid-4 {
        position: relative;
    }
    .process-steps.grid-4::after {
        content: '';
        position: absolute;
        top: 40px;
        left: 50px;
        right: 50px;
        height: 2px;
        background-color: var(--border-color);
        z-index: 0;
    }
    .step-card {
        z-index: 1;
    }
}

/* Toggle displays for sticking CTAs based on touch device detection */
@media (max-width: 767px) {
    body {
        padding-bottom: 90px; /* Space for the floating button */
    }
    
    .mobile-sticky-cta {
        display: flex;
    }
    
    .btn-header-phone {
        display: none; /* Let the sticky CTA take precedence on small screens */
    }
}

/* Mobile Nav Drawer styles activated by class */
.main-header.menu-open .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--bg-primary);
    z-index: 999;
    display: flex;
    flex-direction: column;
    padding: 3rem 1.5rem;
    border-top: 1px solid var(--border-color);
    transition: transform var(--transition-normal);
}

.main-header.menu-open .nav-menu ul {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.main-header.menu-open .nav-menu ul a {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

.main-header.menu-open .mobile-toggle .bar:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.main-header.menu-open .mobile-toggle .bar:nth-child(2) {
    opacity: 0;
}

.main-header.menu-open .mobile-toggle .bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* ==========================================================================
   15. RANK & RENT ADD-ONS (benchmark-driven components)
   ========================================================================== */

/* 15.1 HERO STATS STRIP */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    margin-top: 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    background-color: var(--border-color);
}

.hero-stat {
    background-color: rgba(18, 24, 36, 0.6);
    backdrop-filter: blur(4px);
    padding: 1.1rem 1rem;
    text-align: center;
}

.hero-stat-num {
    display: block;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.hero-stat-num small {
    font-size: 0.85rem;
    font-weight: 700;
    margin-left: 1px;
}

.hero-stat-label {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
}

/* 15.2 WHATSAPP BUTTONS */
.btn-wa-header {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: rgba(37, 211, 102, 0.12);
    border: 1px solid rgba(37, 211, 102, 0.35);
    color: #25d366;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.btn-wa-header svg { width: 22px; height: 22px; }

.btn-wa-header:hover {
    background-color: #25d366;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.btn-wa {
    background-color: #25d366;
    color: #07210f;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-wa svg { width: 22px; height: 22px; }

.btn-wa:hover {
    background-color: #2ee06f;
    color: #07210f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.whatsapp-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background-color: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 998;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    animation: float-y 4s ease-in-out infinite;
}

.whatsapp-fab svg { width: 30px; height: 30px; }

.whatsapp-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6);
    color: #fff;
}

/* 15.3 ZONES GRID (coverage with postal codes) */
.zones-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    margin: 1.5rem 0 1.25rem 0;
}

.zone-card {
    position: relative;
    background-color: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 1.1rem 1.15rem;
    transition: all var(--transition-fast);
}

.zone-card:hover {
    border-color: rgba(var(--primary-rgb), 0.35);
    background-color: rgba(245, 158, 11, 0.04);
    transform: translateY(-3px);
}

.zone-cp {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: var(--primary-color);
    background-color: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    padding: 0.15rem 0.5rem;
    border-radius: 100px;
}

.zone-card h4 {
    font-size: 1.02rem;
    margin-bottom: 0.3rem;
    padding-right: 3.5rem;
}

.zone-card p {
    font-size: 0.82rem;
    line-height: 1.45;
    margin-bottom: 0;
    color: var(--text-secondary);
}

.zones-extra {
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.zones-extra strong { color: var(--text-primary); }

/* 15.4 TRUST / AUTHORIZATIONS STRIP */
.trust-strip {
    padding: 3rem 0;
    background-color: var(--bg-secondary);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 14px;
}

.trust-badge-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background-color: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: var(--border-radius-sm);
}

.trust-badge strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 2px;
}

.trust-badge span {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

/* 15.5 RESPONSIVE FOR ADD-ONS */
@media (min-width: 768px) {
    .hero-stats { grid-template-columns: repeat(4, 1fr); }
    .zones-grid { grid-template-columns: repeat(3, 1fr); }
    .trust-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 767px) {
    /* Lift the WhatsApp FAB above the sticky call bar on mobile */
    .whatsapp-fab {
        bottom: 92px;
        right: 18px;
        width: 52px;
        height: 52px;
    }
    .whatsapp-fab svg { width: 27px; height: 27px; }
}

/* ==========================================================================
   16. COLOR REFRESH (v8) — atmósfera, acento cian y banda clara
   ========================================================================== */
:root {
    --accent-2: #1cc8de;             /* cian eléctrico (complementario del ámbar) */
    --accent-2-rgb: 28, 200, 222;
    --surface-light-1: #f6f8fc;
    --surface-light-2: #e9eef7;
    --text-on-light: #0f172a;
    --text-on-light-soft: #51607a;
}

/* Fondo con atmósfera en vez de negro plano */
body {
    background-color: var(--bg-primary);
    background-image:
        radial-gradient(1000px 720px at 5% -8%, rgba(var(--primary-rgb), 0.10), transparent 60%),
        radial-gradient(900px 720px at 100% 3%, rgba(var(--accent-2-rgb), 0.08), transparent 55%);
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* Alternancia cálida/fría entre secciones oscuras */
.services-section,
.symptoms-section.bg-alt,
.process-section,
.faq-section {
    background-color: var(--bg-secondary);
    background-image: radial-gradient(760px 400px at 85% 0%, rgba(var(--accent-2-rgb), 0.07), transparent 62%);
}
.benefits-section {
    background-image: radial-gradient(760px 400px at 12% 100%, rgba(var(--primary-rgb), 0.07), transparent 62%);
}
.coverage-section {
    background-image: radial-gradient(700px 380px at 90% 10%, rgba(var(--accent-2-rgb), 0.06), transparent 60%);
}

/* Eyebrows en cian en secciones alternas (variedad de color) */
.bg-alt .section-subtitle,
.process-section .section-subtitle,
.coverage-section .section-subtitle,
.faq-section .section-subtitle { color: var(--accent-2); }

/* Pasos del proceso en cian */
.step-num { color: rgba(var(--accent-2-rgb), 0.20); }
.step-card:hover { border-color: rgba(var(--accent-2-rgb), 0.35); }

/* Código postal de zonas en cian */
.zone-cp {
    color: var(--accent-2);
    background-color: rgba(var(--accent-2-rgb), 0.08);
    border-color: rgba(var(--accent-2-rgb), 0.24);
}
.zone-card:hover {
    border-color: rgba(var(--accent-2-rgb), 0.35);
    background-color: rgba(var(--accent-2-rgb), 0.04);
}

/* ---- BANDA CLARA: tira de confianza (rompe el "todo oscuro") ---- */
.trust-strip {
    background: linear-gradient(180deg, var(--surface-light-1) 0%, var(--surface-light-2) 100%);
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.trust-strip .trust-badge strong { color: var(--text-on-light); }
.trust-strip .trust-badge span { color: var(--text-on-light-soft); }
.trust-strip .trust-badge-icon {
    background-color: rgba(var(--primary-rgb), 0.14);
    border-color: rgba(var(--primary-rgb), 0.30);
}

/* ---- SEGUNDA BANDA CLARA: sección FAQ ---- */
.faq-section {
    background-color: var(--surface-light-1);
    background-image: none;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.faq-section .section-subtitle { color: var(--primary-color); }
.faq-section h2 { color: var(--text-on-light); }
.faq-item {
    background-color: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
}
.faq-item:hover,
.faq-item.active {
    border-color: rgba(var(--primary-rgb), 0.45);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}
.faq-question { color: var(--text-on-light); }
.faq-answer p { color: var(--text-on-light-soft); }
.faq-answer a { color: var(--emergency-color); }
.faq-arrow { color: var(--primary-color); }
.faq-item.active .faq-arrow { color: var(--emergency-color); }

/* ---- IDENTIDAD CROMÁTICA POR PÁGINA (acento propio de cada servicio) ---- */
:root { --accent-page: var(--primary-color); --accent-page-rgb: var(--primary-rgb); }
body.pg-averias     { --accent-page: #ef4444; --accent-page-rgb: 239, 68, 68; }
body.pg-boletines   { --accent-page: #60a5fa; --accent-page-rgb: 96, 165, 250; }
body.pg-aumento     { --accent-page: #22d3ee; --accent-page-rgb: 34, 211, 238; }
body.pg-cuadros     { --accent-page: #a78bfa; --accent-page-rgb: 167, 139, 250; }
body.pg-instalacion { --accent-page: #34d399; --accent-page-rgb: 52, 211, 153; }
body.pg-enchufes    { --accent-page: #f5d020; --accent-page-rgb: 245, 208, 32; }
body.pg-comunidades { --accent-page: #818cf8; --accent-page-rgb: 129, 140, 248; }
body.pg-locales     { --accent-page: #fb923c; --accent-page-rgb: 251, 146, 60; }

/* Aplicación del acento de página (sin tocar el ámbar de marca ni los CTA) */
.tagline {
    background-color: rgba(var(--accent-page-rgb), 0.10);
    border-color: rgba(var(--accent-page-rgb), 0.32);
    color: var(--accent-page);
}
.breadcrumb span { color: var(--accent-page); }
.symptom-card { border-left-color: var(--accent-page); }
.symptom-card:hover {
    border-left-color: var(--accent-page);
    border-color: rgba(var(--accent-page-rgb), 0.38);
}

/* ---- LOGO DE MARCA (imagen) ---- */
.logo-area {
    display: inline-block;
    width: 172px;
    height: 48px;
    background-image: url('/assets/logo-24h.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
    flex: none;
}
.logo-area .logo-icon { display: none; }
.logo-area .logo-text {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
@media (max-width: 575px) {
    .logo-area { width: 150px; height: 42px; }
}

/* 15.0 HELPERS MULTIPÁGINA */
.bg-alt { background-color: var(--bg-secondary); }

.breadcrumb {
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding: 0.85rem 0;
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--primary-color); }
.breadcrumb span { color: var(--primary-color); }

.single-card-wrap {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.section-cta-link {
    text-align: center;
    margin-top: 2.5rem;
}

/* 15.8 SYMPTOMS / URGENT INTENT */
.symptoms-section {
    background-color: var(--bg-primary);
}

.symptom-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--primary-color);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    position: relative;
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.symptom-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--primary-rgb), 0.3);
    border-left-color: var(--primary-color);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.symptom-icon {
    font-size: 2rem;
    line-height: 1;
    display: block;
    margin-bottom: 0.85rem;
}

.symptom-card h3 {
    font-size: 1.3rem;
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
}

.symptom-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.symptom-card p strong {
    color: var(--text-primary);
    font-weight: 700;
}

.symptom-cta {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    flex-wrap: wrap;
}

.symptom-cta .btn-phone {
    padding: 0.6rem 1.3rem;
    font-size: 0.95rem;
}

.symptom-wa {
    font-size: 0.9rem;
    font-weight: 600;
    color: #25d366;
}

.symptom-wa:hover { color: #2ee06f; }

/* Danger variant (olor a quemado / chispas) */
.symptom-card.is-danger {
    border-color: rgba(var(--emergency-rgb), 0.3);
    border-left-color: var(--emergency-color);
    background: linear-gradient(135deg, rgba(var(--emergency-rgb), 0.07) 0%, var(--bg-secondary) 60%);
}

.symptom-card.is-danger:hover {
    border-color: rgba(var(--emergency-rgb), 0.5);
    border-left-color: var(--emergency-color);
}

.danger-tag {
    display: inline-block;
    background-color: rgba(var(--emergency-rgb), 0.12);
    color: #fca5a5;
    border: 1px solid rgba(var(--emergency-rgb), 0.35);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.7rem;
    border-radius: 100px;
    margin-bottom: 0.85rem;
}

/* 15.7 AUDIENCE SEGMENTS */
.segment-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 2.25rem;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.segment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--emergency-color));
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.segment-card:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--primary-rgb), 0.3);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25), 0 0 15px rgba(var(--primary-rgb), 0.05);
}

.segment-card:hover::before { opacity: 1; }

.segment-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background-color: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: var(--border-radius-sm);
    margin-bottom: 1.5rem;
    transition: transform var(--transition-normal);
}

.segment-card:hover .segment-icon { transform: scale(1.05); }

.segment-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.segment-card p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    min-height: 96px;
}

/* 15.6 HERO PHOTO VISIBILITY */
.hero-text-content h1,
.hero-subtext {
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

/* En móvil (1 sola columna, <576px) el texto se apila sobre la foto:
   scrim vertical equilibrado que deja ver al electricista sin perder legibilidad. */
@media (max-width: 575px) {
    .hero-section {
        background:
            linear-gradient(180deg, rgba(11, 15, 25, 0.88) 0%, rgba(11, 15, 25, 0.74) 42%, rgba(11, 15, 25, 0.86) 100%),
            url('assets/hero-electrician.png') no-repeat center top;
        background-size: cover;
    }
}

/* ==========================================================================
   17. TEMA OSCURO PROFESIONAL — ALTERNANCIA DE BANDAS
   Base oscura (tokens originales del bloque 1). Algunas secciones se convierten
   en "bandas claras" con la clase .section-light para dar ritmo y profesionalidad.
   ========================================================================== */

/* ---- BANDA CLARA REUTILIZABLE (.section-light) ---- */
.section-light {
    background: linear-gradient(180deg, var(--surface-light-1) 0%, var(--surface-light-2) 100%);
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.section-light h2,
.section-light h3,
.section-light h4 { color: var(--text-on-light); }
.section-light .section-desc,
.section-light p { color: var(--text-on-light-soft); }
.section-light p strong, .section-light li strong { color: var(--text-on-light); }
.section-light .section-subtitle { color: #0e7490; }   /* cian oscurecido, legible sobre claro */

/* Tarjetas sobre banda clara */
.section-light .symptom-card,
.section-light .segment-card,
.section-light .service-card,
.section-light .step-card,
.section-light .zone-card {
    background-color: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 4px 16px rgba(18, 34, 66, 0.06);
}
.section-light .symptom-card { border-left: 3px solid var(--accent-page); }
/* Tarjeta de peligro: degradado claro (no el oscuro) para que se lea sobre banda clara */
.section-light .symptom-card.is-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.07) 0%, #ffffff 62%);
    border-color: rgba(239, 68, 68, 0.30);
    border-left: 3px solid var(--emergency-color);
}
.section-light .danger-tag { color: #b91c1c; background-color: rgba(239, 68, 68, 0.08); border-color: rgba(239, 68, 68, 0.30); }
.section-light .symptom-card:hover,
.section-light .segment-card:hover,
.section-light .service-card:hover,
.section-light .step-card:hover,
.section-light .zone-card:hover {
    border-color: rgba(var(--accent-page-rgb), 0.40);
    box-shadow: 0 10px 26px rgba(18, 34, 66, 0.10);
}
.section-light .service-link { color: #b45309; }
.section-light .symptom-wa { color: #0c8a3e; }
.section-light .danger-tag { color: #b91c1c; }
.section-light .step-num { color: rgba(14, 116, 144, 0.18); }
.section-light .zone-cp {
    color: #0e7490;
    background-color: rgba(14, 116, 144, 0.08);
    border-color: rgba(14, 116, 144, 0.22);
}

/* ---- TARJETA DE COBERTURA CON MAPA DE FONDO (se conserva tal cual) ---- */
.map-placeholder { background-color: #e6eef8; position: relative; overflow: hidden; border: 1px solid var(--border-color); }
.map-placeholder::before { display: none; }
.map-bg-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 0; pointer-events: none; }
.map-placeholder::after { content: ''; position: absolute; inset: 0; background: rgba(243, 247, 252, 0.30); z-index: 1; pointer-events: none; }
.map-placeholder .map-icon, .map-placeholder .map-text { position: relative; z-index: 3; }
.map-placeholder .pulse-ring { z-index: 2; }
.map-text, .map-text strong { color: #122242; }
.map-text { text-shadow: 0 1px 2px rgba(255, 255, 255, 0.65); }

/* ---- MAPA EMBEBIDO DE GOOGLE (sección propia, antes del footer) ---- */
.map-section { background-color: var(--bg-primary); padding: 4rem 0 4.5rem; border-top: 1px solid var(--border-color); }
.footer-map-wrap { max-width: var(--container-width); margin: 0 auto; padding: 0 2rem; }
.footer-map-title {
    font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem;
    color: var(--text-primary); margin-bottom: 0.9rem; display: flex; align-items: center; gap: 8px;
}
.footer-map {
    width: 100%; height: 340px; display: block;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    filter: saturate(0.92);
}
@media (max-width: 575px) {
    .footer-map { height: 260px; }
    .footer-map-wrap { padding: 0 1.25rem; }
}
