/* ==========================================================================
   CONFÍO 24hs Cerrajería - Estilos CSS Principales (Vanilla)
   Diseño de Alta Estética, Modo Oscuro Premium, Acabados Dorados y Plateados.
   Optimizado para Móviles con Rejillas Compactas y Aprovechamiento del Ancho.
   ========================================================================== */

/* Variables del Sistema de Diseño */
:root {
    /* Colores de Fondo */
    --bg-primary: #0a0a09;
    --bg-secondary: #121211;
    --bg-card: rgba(22, 22, 21, 0.7);
    --bg-card-hover: rgba(30, 30, 29, 0.85);
    
    /* Paleta Dorada (Metálica) */
    --gold-primary: #ffb200;
    --gold-secondary: #ffd700;
    --gold-dark: #cc8e00;
    --gold-glow: rgba(255, 178, 0, 0.15);
    --gold-gradient: linear-gradient(135deg, #ffe066 0%, #ffb200 50%, #b37d00 100%);
    --gold-border-gradient: linear-gradient(135deg, rgba(255, 224, 102, 0.4) 0%, rgba(255, 178, 0, 0.2) 50%, rgba(179, 125, 0, 0.1) 100%);
    
    /* Paleta Plateada / Blanco Metálico */
    --silver-primary: #e5e5e5;
    --silver-secondary: #ffffff;
    --silver-gradient: linear-gradient(135deg, #ffffff 0%, #d8d8d8 50%, #8c8c8c 100%);
    
    /* Colores de Texto */
    --text-main: #f5f5f4;
    --text-muted: #a1a1aa;
    --text-inverse: #0a0a09;
    
    /* Semántica e Interacción */
    --accent-green: #25d366; /* WhatsApp */
    --accent-green-hover: #20ba5a;
    --accent-green-glow: rgba(37, 211, 102, 0.25);
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 178, 0, 0.4);
    
    /* Fuentes y Sombras */
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    --gold-shadow: 0 4px 20px 0 rgba(255, 178, 0, 0.25);
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset y Estilos Básicos */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar Personalizado */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: #262625;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold-primary);
}

/* Tipografía y Elementos de Texto */
h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

/* Utilidades de Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    text-align: center;
    gap: 8px;
}

.btn-hero-call {
    background: var(--gold-gradient);
    color: var(--text-inverse);
    box-shadow: var(--gold-shadow);
}
.btn-hero-call:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px 0 rgba(255, 178, 0, 0.4);
}

.btn-hero-whatsapp {
    background-color: var(--accent-green);
    color: #ffffff;
    box-shadow: 0 4px 20px 0 rgba(37, 211, 102, 0.2);
}
.btn-hero-whatsapp:hover {
    background-color: var(--accent-green-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px 0 rgba(37, 211, 102, 0.35);
}

/* Animaciones */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(255, 178, 0, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 178, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 178, 0, 0); }
}

@keyframes pulse-ring-green {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.pulse {
    animation: pulse 2s infinite ease-in-out;
}

.pulse-shadow {
    animation: pulse-ring 2s infinite;
}

/* ==========================================================================
   Header / Navbar
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(10, 10, 9, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.desktop-nav {
    display: flex;
    gap: 24px;
}

.nav-item {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
}
.nav-item:hover {
    color: var(--gold-primary);
}

.btn-call-header {
    background: transparent;
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 6px;
}
.btn-call-header:hover {
    background: var(--gold-gradient);
    color: var(--text-inverse);
    box-shadow: var(--gold-shadow);
}
.icon-phone {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    padding: 160px 0 100px 0;
    background: linear-gradient(to bottom, rgba(10, 10, 9, 0.78) 0%, rgba(10, 10, 9, 0.95) 100%), url('/preview/cerrajeria-confio-24/preview/cerrajeria-confio-24/assets/hero_bg.png') no-repeat center center / cover;
    overflow: hidden;
}

/* Luces de Fondo (Glow Effect) */
.hero-glow-1 {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 178, 0, 0.08) 0%, rgba(255, 178, 0, 0) 70%);
    pointer-events: none;
}
.hero-glow-2 {
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 178, 0, 0.08);
    border: 1px solid rgba(255, 178, 0, 0.15);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gold-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--gold-primary);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--gold-primary);
}

.hero-title {
    font-size: 2.8rem;
    line-height: 1.15;
    margin-bottom: 15px;
    font-weight: 900;
}

.highlight-gold {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}
.small-hs {
    font-size: 0.55em;
    margin-left: 2px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 580px;
    font-weight: 300;
}

.hero-actions-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 35px;
}

.hero-actions-group .btn {
    flex: 1;
    min-width: 200px;
    padding: 14px 20px;
    justify-content: flex-start;
    border-radius: 12px;
}

.btn-icon-wrapper {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.btn-hero-call .btn-icon-wrapper {
    background: rgba(0, 0, 0, 0.1);
}

.icon-btn {
    width: 20px;
    height: 20px;
}

.btn-text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    margin-left: 4px;
}

.btn-label {
    font-size: 0.95rem;
    line-height: 1.2;
}

.btn-sublabel {
    font-size: 0.72rem;
    font-weight: 400;
    opacity: 0.85;
}

/* Badges de Confianza */
.hero-badges-container {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 12px 20px;
    border-radius: 12px;
    max-width: fit-content;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-main);
}

.badge-icon {
    width: 16px;
    height: 16px;
    color: var(--gold-primary);
}

.badge-divider {
    width: 1px;
    height: 20px;
    background-color: var(--border-color);
}

/* Tarjeta de Solicitud en 1 Clic */
.quick-request-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}
.quick-request-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gold-gradient);
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 6px;
    font-weight: 700;
}

.card-description {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-muted);
}

/* Selector Grid para Servicio */
.selector-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.selector-option {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 10px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.selector-option:hover {
    border-color: rgba(255, 178, 0, 0.25);
    background: rgba(255, 178, 0, 0.02);
}
.selector-option.active {
    border-color: var(--gold-primary);
    background: rgba(255, 178, 0, 0.05);
}

.selector-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid var(--text-muted);
    background: transparent;
    display: inline-block;
    flex-shrink: 0;
}
.selector-option.active .selector-indicator {
    background-color: var(--gold-primary);
    border-color: var(--gold-primary);
    box-shadow: 0 0 6px var(--gold-primary);
}

.selector-text {
    font-size: 0.82rem;
    font-weight: 600;
}

.form-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}
.form-input:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 2px rgba(255, 178, 0, 0.1);
}

.btn-submit-request {
    width: 100%;
    background: var(--gold-gradient);
    color: var(--text-inverse);
    border-radius: 8px;
    padding: 14px;
    justify-content: center;
    font-size: 1rem;
    box-shadow: var(--gold-shadow);
}
.btn-submit-request:hover {
    box-shadow: 0 6px 22px 0 rgba(255, 178, 0, 0.35);
}
.icon-arrow-right {
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   Secciones Generales (Estructura)
   ========================================================================== */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 16px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.title-underline {
    width: 60px;
    height: 3px;
    background: var(--gold-gradient);
    margin: 0 auto 15px auto;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

/* ==========================================================================
   Servicios Grid (Optimizado para móviles)
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}
.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--card-shadow);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(255, 178, 0, 0.03) 0%, rgba(255, 178, 0, 0) 70%);
    pointer-events: none;
    opacity: 0;
    transition: var(--transition-smooth);
}
.service-card:hover .card-glow {
    opacity: 1;
}

.service-icon-wrapper {
    background: rgba(255, 178, 0, 0.05);
    border: 1px solid rgba(255, 178, 0, 0.1);
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--gold-primary);
    transition: var(--transition-smooth);
}
.service-card:hover .service-icon-wrapper {
    background: var(--gold-gradient);
    color: var(--text-inverse);
    box-shadow: var(--gold-shadow);
}

.service-svg {
    width: 24px;
    height: 24px;
}

.service-card-title {
    font-size: 1.15rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.service-card-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-grow: 1;
    line-height: 1.45;
}

.btn-card-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.02);
}
.service-card:hover .btn-card-action {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    background: rgba(255, 178, 0, 0.02);
}

/* ==========================================================================
   Calculador de Presupuestos
   ========================================================================== */
.calculator-box {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--card-shadow);
    max-width: 900px;
    margin: 0 auto;
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 32px;
    align-items: center;
}

.calc-group {
    margin-bottom: 20px;
}
.calc-group:last-child {
    margin-bottom: 0;
}

.calc-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.calc-select {
    width: 100%;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
}
.calc-select:focus {
    border-color: var(--gold-primary);
}

.radio-toggle {
    display: flex;
    gap: 8px;
}

.radio-label {
    flex: 1;
    cursor: pointer;
}

.radio-label input {
    display: none;
}

.radio-label span {
    display: block;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 12px 10px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.radio-label input:checked + span {
    border-color: var(--gold-primary);
    background: rgba(255, 178, 0, 0.05);
    color: var(--gold-secondary);
}

/* Panel de Resultados del Presupuesto */
.calculator-result {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.result-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 178, 0, 0.06) 0%, rgba(255, 178, 0, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.result-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.price-display {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.price-currency {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold-primary);
    margin-right: 4px;
}

.price-value {
    font-size: 3rem;
    font-weight: 900;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.price-note {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.4;
}

.btn-send-quote {
    background-color: var(--accent-green);
    color: #ffffff;
    width: 100%;
    border-radius: 8px;
    padding: 14px;
    justify-content: center;
    font-size: 0.95rem;
}
.btn-send-quote:hover {
    background-color: var(--accent-green-hover);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.25);
}
.icon-whatsapp-btn {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   Por Qué Elegirnos
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-item {
    text-align: center;
    padding: 20px;
}

.feature-icon {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    color: var(--gold-primary);
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.2);
}

.feature-svg {
    width: 28px;
    height: 28px;
}

.feature-title {
    font-size: 1.15rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.feature-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ==========================================================================
   Testimonios Section
   ========================================================================== */
.testimonials-section {
    background: var(--bg-secondary);
}

.testimonials-slider {
    max-width: 750px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.4s ease-in-out;
}

.testimonial-card {
    min-width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    box-shadow: var(--card-shadow);
}

.rating-stars {
    color: var(--gold-primary);
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 24px;
    font-style: italic;
    color: var(--text-main);
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.author-label {
    font-size: 0.75rem;
    color: var(--gold-primary);
    font-weight: 600;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: var(--transition-smooth);
}
.dot.active {
    background: var(--gold-primary);
    width: 20px;
    border-radius: 4px;
}

/* ==========================================================================
   Preguntas Frecuentes (FAQs - Acordeones)
   ========================================================================== */
.faqs-list {
    max-width: 750px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: var(--transition-smooth);
}
.faq-item:hover {
    border-color: rgba(255, 178, 0, 0.2);
}

.faq-trigger {
    width: 100%;
    background: transparent;
    border: none;
    padding: 18px 24px;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-sans);
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
}

.faq-icon-arrow {
    font-size: 1.2rem;
    color: var(--gold-primary);
    font-weight: 400;
    transition: transform 0.3s ease;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
    padding: 0 24px;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.faq-item.active .faq-content {
    max-height: 500px;
    padding-bottom: 18px;
    transition: max-height 0.3s cubic-bezier(1, 0, 1, 0), padding 0.3s ease;
}

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

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
    background: #060605;
    border-top: 1px solid var(--border-color);
    padding: 60px 0 24px 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px 40px 16px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
}

.footer-logo {
    height: 54px;
    width: auto;
    object-fit: contain;
    margin-bottom: 20px;
}

.footer-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 380px;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gold-primary);
}

.contact-list {
    list-style: none;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.88rem;
}

.contact-icon {
    width: 16px;
    height: 16px;
    color: var(--gold-primary);
    flex-shrink: 0;
}

.contact-list a:hover {
    color: var(--gold-primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px 0 16px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Floating Panel para Móviles
   ========================================================================== */
.floating-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.floating-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px 0 rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}
.floating-btn:hover {
    transform: scale(1.08);
}

.btn-float-wa {
    background-color: var(--accent-green);
    color: #ffffff;
    box-shadow: 0 6px 20px 0 rgba(37, 211, 102, 0.35);
}
.btn-float-wa:hover {
    box-shadow: 0 8px 25px 0 rgba(37, 211, 102, 0.5);
}

.btn-float-call {
    background: var(--gold-gradient);
    color: var(--text-inverse);
    box-shadow: 0 6px 20px 0 rgba(255, 178, 0, 0.35);
}
.btn-float-call:hover {
    box-shadow: 0 8px 25px 0 rgba(255, 178, 0, 0.5);
}

.float-icon {
    width: 24px;
    height: 24px;
}

/* ==========================================================================
   Media Queries & Responsividad (Mobile First)
   ========================================================================== */

/* Teléfonos Pequeños (Aprovechamiento de Ancho) */
@media (max-width: 480px) {
    .header-container {
        padding: 8px 10px;
    }
    .logo-img {
        height: 38px;
    }
    .btn-call-header {
        padding: 6px 12px;
        font-size: 0.78rem;
    }
    
    .hero-section {
        padding: 130px 0 65px 0;
        background: linear-gradient(to bottom, rgba(10, 10, 9, 0.82) 0%, rgba(10, 10, 9, 0.98) 100%), url('/preview/cerrajeria-confio-24/preview/cerrajeria-confio-24/assets/hero_bg.png') no-repeat center center / cover;
    }
    .hero-container {
        padding: 0 10px;
        gap: 20px;
    }
    .hero-title {
        font-size: 1.95rem;
    }
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    .hero-actions-group {
        gap: 10px;
        margin-bottom: 24px;
    }
    .hero-actions-group .btn {
        min-width: 100%;
        padding: 12px 14px;
        border-radius: 8px;
    }
    .hero-badges-container {
        padding: 8px 12px;
        border-radius: 8px;
        gap: 8px;
        width: 100%;
        max-width: 100%;
        justify-content: space-between;
    }
    .badge-item {
        font-size: 0.72rem;
        gap: 4px;
    }
    .badge-icon {
        width: 12px;
        height: 12px;
    }

    .quick-request-card {
        padding: 16px;
        border-radius: 12px;
    }
    .card-title {
        font-size: 1.15rem;
    }
    .selector-grid {
        gap: 6px;
    }
    .selector-option {
        padding: 8px 8px;
        border-radius: 6px;
        gap: 6px;
    }
    .selector-text {
        font-size: 0.75rem;
    }

    .section-container {
        padding: 35px 10px;
    }
    .section-title {
        font-size: 1.6rem;
    }
    
    /* Servicios 2 Columnas Compacto en Móvil */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .service-card {
        padding: 14px;
        border-radius: 12px;
    }
    .service-icon-wrapper {
        width: 40px;
        height: 40px;
        border-radius: 8px;
        margin-bottom: 12px;
    }
    .service-svg {
        width: 18px;
        height: 18px;
    }
    .service-card-title {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }
    .service-card-desc {
        font-size: 0.76rem;
        margin-bottom: 12px;
        line-height: 1.35;
    }
    .btn-card-action {
        padding: 8px 10px;
        font-size: 0.78rem;
        border-radius: 6px;
        width: 100%;
    }

    .calculator-box {
        padding: 16px;
        border-radius: 12px;
    }
    .calculator-grid {
        gap: 16px;
    }
    .calc-select, .radio-label span {
        padding: 10px;
        font-size: 0.85rem;
    }
    .calculator-result {
        padding: 16px;
    }
    .price-value {
        font-size: 2.2rem;
    }
    .price-currency {
        font-size: 1.4rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .feature-item {
        padding: 10px;
    }
    .feature-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 12px;
    }
    .feature-svg {
        width: 22px;
        height: 22px;
    }
    .feature-title {
        font-size: 1rem;
    }
    .feature-desc {
        font-size: 0.8rem;
    }

    .testimonial-card {
        padding: 20px 14px;
        border-radius: 12px;
    }
    .rating-stars {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    .testimonial-text {
        font-size: 0.88rem;
        margin-bottom: 16px;
    }

    .faq-trigger {
        padding: 14px 16px;
        font-size: 0.88rem;
    }
    .faq-content {
        padding: 0 16px;
        font-size: 0.82rem;
    }
    .faq-item.active .faq-content {
        padding-bottom: 14px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-bottom: 24px;
    }
    .footer-logo {
        height: 42px;
    }
    .footer-desc {
        max-width: 100%;
    }
    .main-footer {
        padding: 40px 0 90px 0; /* Espacio extra abajo para que no lo tapen los botones flotantes */
    }

    .floating-panel {
        bottom: 16px;
        right: 16px;
        flex-direction: row;
        width: calc(100% - 32px);
        gap: 12px;
    }
    .floating-btn {
        flex: 1;
        border-radius: 12px;
        height: 48px;
        flex-direction: row;
        gap: 8px;
    }
    .floating-btn::after {
        font-weight: 700;
        font-size: 0.88rem;
    }
    .btn-float-wa::after {
        content: 'WhatsApp';
    }
    .btn-float-call::after {
        content: 'Llamar';
    }
    .float-icon {
        width: 20px;
        height: 20px;
    }
}

/* Tablet / Móviles Grandes */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    .hero-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .calculator-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Escritorio / Pantallas Medianas */
@media (min-width: 769px) and (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================================================
   Galería de Trabajos
   ========================================================================== */
.gallery-section {
    background-color: var(--bg-secondary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}
.gallery-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold-primary);
    box-shadow: var(--card-shadow);
}

.gallery-img-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}
.gallery-card:hover .gallery-img {
    transform: scale(1.05);
}

.gallery-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.gallery-category {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gold-primary);
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.gallery-card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.3;
}

.gallery-card-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .gallery-img-wrapper {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr; /* Stack on very small screens for clear images */
        gap: 12px;
    }
    .gallery-img-wrapper {
        height: 180px;
    }
    .gallery-info {
        padding: 12px;
    }
    .gallery-card-title {
        font-size: 0.95rem;
    }
    .gallery-card-desc {
        font-size: 0.78rem;
    }
}
