﻿/* ========================================
   Cerrajero Tarragona 24h - Modern Premium Design
   ======================================== */

/* CSS Variables for Design System */
:root {
    /* Colors - Yellow/Black/Gray Premium Palette */
    --primary-yellow: #FFD700;
    --primary-yellow-dark: #FFC700;
    --primary-yellow-light: #FFE44D;
    --accent-black: #1A1A1A;
    --text-black: #2C2C2C;
    --gray-dark: #4A4A4A;
    --gray-medium: #7A7A7A;
    --gray-light: #E5E5E5;
    --gray-lighter: #F5F5F5;
    --white: #FFFFFF;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.18);

    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-normal: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
}

/* ========================================
   Reset & Base Styles
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-black);
    background-color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   Typography
   ======================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--accent-black);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--gray-dark);
}

a {
    color: var(--primary-yellow-dark);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-yellow);
}

strong,
b {
    font-weight: 700;
    color: var(--accent-black);
}

/* ========================================
   Layout
   ======================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-2xl) 0;
}

.section-alt {
    background-color: var(--gray-lighter);
}

/* ========================================
   Header
   ======================================== */

header {
    background: linear-gradient(135deg, var(--accent-black) 0%, #2C2C2C 100%);
    padding: 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    /* Prevent wrapping on landscape mobile */
    gap: var(--spacing-md);
}

header img {
    max-height: 60px;
    width: auto;
    flex-shrink: 0;
    /* Protect logo from squishing */
}

header nav {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
    /* Centering logic: */
    margin-left: auto;
    margin-right: auto;
}

/* Tablet/Small Laptop/Landscape Mobile Spacing */
@media (max-width: 1024px) {
    header nav {
        gap: var(--spacing-sm);
    }

    header nav a {
        padding: var(--spacing-xs) var(--spacing-xs);
        font-size: 0.95rem;
    }
}

/* Ajuste Desktop: asegurar que los márgenes automáticos funcionen para centrar */
/* Ya tiene margin-left auto y margin-right auto arriba */

header nav a {
    color: var(--white);
    font-weight: 600;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    white-space: nowrap;
    /* Prevent text wrapping */
}

header nav a:hover {
    background-color: rgba(255, 215, 0, 0.1);
    color: var(--primary-yellow);
}

header .cta-button {
    margin: 0;
    height: 60px;
    padding: 0 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    background: linear-gradient(135deg, var(--accent-black) 0%, #2C2C2C 50%, var(--gray-dark) 100%);
    color: var(--white);
    padding: var(--spacing-2xl) 0;
    text-align: center;
}

.hero h1,
.hero h2 {
    color: var(--white);
}

.hero h1 {
    margin-bottom: var(--spacing-sm);
}

.hero h2 {
    color: var(--primary-yellow);
    font-weight: 600;
}

.hero p {
    color: var(--gray-light);
    font-size: 1.125rem;
    max-width: 800px;
    margin: var(--spacing-md) auto;
}

.hero strong {
    color: var(--primary-yellow);
}

/* ========================================
   Call-to-Action Buttons
   ======================================== */

.cta-button,
a[href^="tel:"] {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--primary-yellow-dark) 100%);
    color: var(--accent-black);
    font-weight: 700;
    font-size: 1.125rem;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-lg);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    /* Prevent text wrapping */
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
    text-align: center;
    margin: var(--spacing-sm) 0;
}

.cta-button:hover,
a[href^="tel:"]:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, var(--primary-yellow-light) 0%, var(--primary-yellow) 100%);
    color: var(--accent-black);
}

.cta-button:active,
a[href^="tel:"]:active {
    transform: translateY(0);
}

/* Pulse animation for urgent CTA */
@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(255, 215, 0, 0);
    }
}

.cta-urgent {
    animation: pulse 2s infinite;
}

/* ========================================
   Pricing Cards
   ======================================== */

.pricing-section {
    background-color: var(--gray-lighter);
}

.pricing-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    margin: var(--spacing-md) 0;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.pricing-card h2 {
    color: var(--primary-yellow-dark);
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.pricing-card ul {
    list-style: none;
    margin: var(--spacing-md) 0;
}

.pricing-card li {
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--gray-light);
    color: var(--gray-dark);
}

.pricing-card li:last-child {
    border-bottom: none;
}

.pricing-card li::before {
    content: "\2714 ";
    color: var(--primary-yellow-dark);
    font-weight: 700;
    margin-right: var(--spacing-xs);
}

/* ========================================
   Testimonials
   ======================================== */

.testimonial {
    background: var(--white);
    border-left: 4px solid var(--primary-yellow);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin: var(--spacing-md) 0;
    display: block;
    text-decoration: none;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.testimonial:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(5px);
    border-left-width: 6px;
}

.testimonial p {
    font-style: italic;
    color: var(--gray-dark);
    margin-bottom: var(--spacing-md);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.testimonial-author>div:first-child {
    flex-shrink: 0;
    min-width: 50px;
    min-height: 50px;
    aspect-ratio: 1;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author strong {
    display: block;
    color: var(--accent-black);
}

.testimonial-author span {
    color: var(--gray-medium);
    font-size: 0.875rem;
}

/* ========================================
   Images & Media
   ======================================== */

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-lg);
    align-items: center;
    justify-items: center;
    margin: var(--spacing-xl) 0;
}

.logo-grid img {
    max-height: 80px;
    width: auto;


    transition: all var(--transition-normal);
}

.logo-grid img:hover {
    transform: scale(1.05);

}

/* ========================================
   Footer
   ======================================== */

footer {
    background-color: var(--accent-black);
    color: var(--gray-light);
    padding: var(--spacing-xl) 0;
    text-align: center;
}

footer p {
    color: var(--gray-light);
    margin: 0;
}

footer a {
    color: var(--primary-yellow);
}

footer a:hover {
    color: var(--primary-yellow-light);
}

/* ========================================
   Utility Classes
   ======================================== */

.text-center {
    text-align: center;
}

.text-yellow {
    color: var(--primary-yellow-dark);
}

.bg-dark {
    background-color: var(--accent-black);
    color: var(--white);
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: var(--spacing-sm);
}

.mt-2 {
    margin-top: var(--spacing-md);
}

.mt-3 {
    margin-top: var(--spacing-lg);
}

.mt-4 {
    margin-top: var(--spacing-xl);
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: var(--spacing-sm);
}

.mb-2 {
    margin-bottom: var(--spacing-md);
}

.mb-3 {
    margin-bottom: var(--spacing-lg);
}

.mb-4 {
    margin-bottom: var(--spacing-xl);
}

/* ========================================
   Responsive Design
   ======================================== */

/* Botón hamburguesa - oculto en desktop */
.mobile-menu-btn {
    display: none;
}

/* Ajuste Desktop: Nav centrado con margin auto en ambas direcciones (definido arriba) */
/* margin-left: auto anterior eliminado */

@media (max-width: 768px) {

    /* Header móvil compacto - Grid Layout Centrado */
    header {
        padding: var(--spacing-xs) 0;
    }

    header .container {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        /* 3 columnas: Izq(1fr) Logo(Auto) Der(1fr) para centrado perfecto */
        grid-template-rows: auto auto;
        align-items: center;
        gap: 8px;
        /* Gap reducido */
        position: relative;
    }

    /* 1. Botón Hamburguesa (Izquierda, Col 1) */
    .mobile-menu-btn {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
        /* A la izquierda de su celda */
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: 2px solid var(--primary-yellow);
        color: var(--primary-yellow);
        font-size: 1.5rem;
        width: 36px;
        height: 36px;
        border-radius: var(--radius-md);
        cursor: pointer;
        transition: all var(--transition-fast);
        margin: 0;
    }

    .mobile-menu-btn:hover {
        background: var(--primary-yellow);
        color: var(--accent-black);
    }

    /* 2. Logo (Centro, Col 2) */
    .header-logo {
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
        /* Centrado en col central */
        text-align: center;
        display: flex;
        justify-content: center;
        min-width: 0;
        width: auto;
    }

    header img {
        max-height: 36px;
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }

    /* 3. CTA Botón (Derecha, Col 3) */
    .header-cta {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        /* A la derecha de su celda */
        margin: 0 !important;
        padding: 0 10px !important;
        font-size: 0.8rem !important;
        font-weight: 700;
        white-space: nowrap;
        width: auto !important;
        height: 36px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 1 !important;
    }

    /* 4. Navegación (Debajo, Col 1-3) */
    header nav {
        grid-column: 1 / -1;
        /* Ocupa todo el ancho */
        grid-row: 2;
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        background: var(--accent-black);
        border-radius: var(--radius-md);
        margin-top: 4px;
        /* Pequeño espacio extra */
        overflow: hidden;
        margin-left: 0;
    }

    /* Navegación visible cuando tiene clase nav-open */
    header nav.nav-open {
        display: flex;
        animation: fadeIn 0.2s ease-out;
    }

    header nav a {
        padding: var(--spacing-sm) var(--spacing-md);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: center;
    }

    header nav a:last-child {
        border-bottom: none;
    }

    .logo-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }

    /* Ajustes generales mobile */
    .cta-button,
    a[href^="tel:"]:not(.header-cta) {
        width: 100%;
        padding: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    :root {
        font-size: 14px;
    }

    .section {
        padding: var(--spacing-lg) 0;
    }
}

/* ========================================
   Animations & Micro-interactions
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Smooth scroll offset for sticky header */
html {
    scroll-padding-top: 80px;
}

/* Selection color */
::selection {
    background-color: var(--primary-yellow);
    color: var(--accent-black);
}

::-moz-selection {
    background-color: var(--primary-yellow);
    color: var(--accent-black);
}

/* ========================================
   Mobile Sticky Header Enhancements
   ======================================== */

/* Disable sticky header on mobile to save screen space */
@media (max-width: 768px),
(max-height: 500px) and (orientation: landscape) {
    header {
        position: static;
    }
}

/* Mobile floating call button */
#mobile-sticky-btn {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1001;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#mobile-sticky-btn.visible {
    display: block;
    opacity: 1;
}

#mobile-sticky-btn .cta-button {
    padding: 8px 16px;
    font-size: 0.9rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    margin: 0;
}

/* ========================================
   WhatsApp Floating Button
   ======================================== */

#whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

#whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
}

#whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: white;
}

/* Pulse animation for WhatsApp button */
@keyframes whatsappPulse {

    0%,
    100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4), 0 0 0 10px rgba(37, 211, 102, 0);
    }
}

#whatsapp-float {
    animation: whatsappPulse 2s infinite;
}

/* ========================================
   Scroll to Top Button
   ======================================== */

#scroll-to-top {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    background-color: var(--accent-black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

#scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scroll-to-top:hover {
    background-color: var(--gray-dark);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

#scroll-to-top svg {
    width: 24px;
    height: 24px;
    fill: var(--primary-yellow);
}

/* Adjust position on mobile to avoid overlap with other elements */
@media (max-width: 768px) {
    #scroll-to-top {
        bottom: 20px;
        left: 15px;
        width: 45px;
        height: 45px;
    }

    #scroll-to-top svg {
        width: 20px;
        height: 20px;
    }
}

/* ========================================
/* ========================================
   Google Reviews Widget (Social Proof Hybrid)
   ======================================== */
.google-reviews-widget {
    background: #ffffff;
    border: 2px solid var(--primary-yellow);
    border-radius: 12px;
    padding: 4rem 1.5rem 2rem 1.5rem;
    /* Increased top padding for header - prevents logo cutoff on mobile */
    text-align: center;
    width: 100%;
    max-width: 500px;
    margin: 2rem auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    font-family: 'Roboto', 'Arial', sans-serif;
    text-decoration: none;
    display: block;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: visible;
    /* Allow header to overlap if needed */
}

/* Header bar is now an HTML element for SVG stars with proper contrast */
.widget-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: var(--primary-yellow);
    color: #1a1a1a;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 0.6rem 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 9px 9px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.widget-header svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.google-reviews-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.google-logo {
    width: 110px;
    margin: 0 auto 1rem;
    filter: none;
}

/* Extra spacing on mobile for header separation */
@media (max-width: 768px) {
    .google-logo {
        margin-top: 1.5rem;
    }
}

.google-logo path {
    stroke: none;
}

.rating-score {
    font-size: 3.5rem;
    font-weight: 400;
    color: #202124;
    margin: 0.25rem 0;
    line-height: 1;
}

.stars {
    font-size: 1.5rem;
    color: #FBBC04;
    margin: 0.5rem 0;
    letter-spacing: 2px;
}

.google-reviews-text {
    color: #1a73e8;
    font-size: 0.95rem;
    margin: 0.5rem 0 1.5rem;
    font-weight: 500;
}

.business-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #202124;
    margin: 0.5rem 0;
}

.business-info {
    color: #5f6368;
    font-size: 0.9rem;
    margin: 0.3rem 0;
}

.business-info .stars-small {
    color: #FBBC04;
}

.review-count {
    color: #5f6368;
    font-weight: 400;
}

.business-type {
    color: #5f6368;
    font-size: 0.9rem;
}

.business-details {
    color: #5f6368;
    font-size: 0.85rem;
    margin: 0.3rem 0;
}

.status-open {
    color: #137333;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 1rem;
    background: #e6f4ea;
    /* Light green badge bg */
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
}

/* ========================================
   Lock Advice Cards
   ======================================== */

.lock-advice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
}

.lock-advice-card {
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    transition: all var(--transition-normal);
}

.lock-advice-card:hover {
    border-color: var(--primary-yellow);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.lock-advice-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    display: block;
}

.lock-advice-card h3 {
    color: var(--accent-black);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
}

.lock-advice-card p {
    color: var(--gray-dark);
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: left;
}

@media (max-width: 768px) {
    .lock-advice-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   FAQ Section
   ======================================== */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-md);
    font-family: 'Inter', sans-serif;
}

.faq-title {
    text-align: center;
    color: var(--accent-black);
    margin-bottom: var(--spacing-xl);
    font-size: 2rem;
    font-weight: 700;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.faq-item:hover {
    border-color: var(--primary-yellow);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    background-color: var(--white);
    padding: 1.25rem;
    font-weight: 600;
    color: var(--accent-black);
    cursor: pointer;
    list-style: none;
    /* Quita el triángulo default */
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color var(--transition-normal);
}

.faq-question:hover {
    background-color: #fcfcfc;
}

/* Custom Chevron using CSS border */
.faq-question::after {
    content: '';
    display: inline-block;
    width: 0.6rem;
    height: 0.6rem;
    border-right: 2px solid var(--primary-yellow);
    border-bottom: 2px solid var(--primary-yellow);
    transform: rotate(45deg);
    transition: transform var(--transition-normal);
    margin-left: 1rem;
}

/* Rotate chevron when open */
details[open] .faq-question::after {
    transform: rotate(-135deg);
    border-color: var(--accent-black);
}

details[open] .faq-question {
    background-color: var(--primary-yellow-light);
    /* Opional subtle highlight */
    color: var(--accent-black);
    border-bottom: 1px solid var(--gray-light);
}

.faq-answer {
    padding: 1.5rem;
    line-height: 1.6;
    color: var(--gray-dark);
    background-color: var(--white);
    font-size: 0.95rem;
}

.faq-highlight {
    font-weight: 700;
    color: var(--accent-black);
}

/* ========================================
   Privacy Badge (No Data Collection)
   ======================================== */

.privacy-badge {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: linear-gradient(135deg, #2d5016 0%, #1a3009 100%);
    color: white;
    padding: 12px 18px;
    border-radius: var(--radius-lg);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 9998;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 2px solid #4a8522;
    max-width: 320px;
}

.privacy-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.privacy-badge-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.privacy-badge-text {
    line-height: 1.3;
}

.privacy-badge-text strong {
    display: block;
    color: #7fff00;
    font-size: 0.95rem;
}

.privacy-badge-close {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #333;
    color: white;
    border: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
}

.privacy-badge-close:hover {
    background: #555;
}

@media (max-width: 768px) {
    .privacy-badge {
        left: 10px;
        right: 10px;
        bottom: 80px;
        max-width: none;
    }
}



/* Promo List Styling */
.promo-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.promo-list li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.promo-list li::before {
    content: "\2714 ";
    color: var(--primary-yellow-dark);
    font-weight: 700;
    margin-right: var(--spacing-sm);
    font-size: 1.2rem;
}

/* ========================================
   Calculadora de Presupuesto
   ======================================== */

#calculadora-presupuesto {
    background: rgba(40, 40, 40, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    margin: var(--spacing-xl) auto;
    max-width: 480px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 215, 0, 0.3);
    border: 2px solid var(--primary-yellow);
}

.calculadora-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.calculadora-header h3 {
    color: var(--primary-yellow);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.calculadora-header p {
    color: var(--gray-light);
    font-size: 0.95rem;
}

.calculadora-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.calc-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.calc-field label {
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
}

.calc-field select {
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    border: 2px solid var(--gray-dark);
    background: var(--white);
    font-size: 1rem;
    cursor: pointer;
    transition: border-color var(--transition-fast);
}

.calc-field select:focus {
    outline: none;
    border-color: var(--primary-yellow);
}

.calc-auto-detect {
    color: var(--primary-yellow);
    font-size: 0.85rem;
}

.calc-checkboxes {
    display: flex;
    flex-direction: row;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.calc-checkboxes label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 400;
    color: var(--gray-light);
}

.calc-checkboxes input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-yellow);
    cursor: pointer;
}

.calculadora-resultado {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--gray-dark);
}

.calc-desglose {
    margin-bottom: var(--spacing-md);
}

.calc-linea {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    color: var(--gray-light);
    font-size: 0.95rem;
}

.calc-linea.calc-subtotal {
    border-top: 1px dashed var(--gray-dark);
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    font-weight: 600;
    color: var(--white);
}

.calc-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary-yellow);
    color: var(--accent-black);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
}

.calc-llamar {
    width: 100%;
    text-align: center;
    font-size: 1.1rem;
}

.calc-disclaimer {
    color: #aaaaaa;
    font-size: 0.8rem;
    text-align: center;
    margin-top: var(--spacing-md);
    line-height: 1.4;
}

.calc-animating {
    animation: calcPulse 0.3s ease-out;
}

@keyframes calcPulse {
    0% {
        transform: scale(0.98);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 600px) {
    #calculadora-presupuesto {
        padding: var(--spacing-lg);
        margin: var(--spacing-md);
        border-radius: var(--radius-lg);
    }

    .calculadora-header h3 {
        font-size: 1.5rem;
    }

    .calc-checkboxes {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .calc-total {
        font-size: 1.1rem;
    }
}