/* =============================================================
   CARPINTERÍA ARTESANAL — CSS PRINCIPAL
   Diseño moderno, minimalista y elegante
   ============================================================= */

/* ── Variables CSS ──────────────────────────────────────────── */
:root {
    /* Colores principales */
    --color-primary:       #8B5A2B;   /* Madera cálida */
    --color-primary-dark:  #6B4321;
    --color-primary-light: #C4915A;
    --color-accent:        #D4AF37;   /* Dorado */
    --color-dark:          #1a1a1a;
    --color-dark-2:        #2a2a2a;
    --color-light:         #F8F5F0;   /* Crema cálida */
    --color-white:         #FFFFFF;
    --color-gray:          #6B7280;
    --color-gray-light:    #E5E0D8;
    --color-text:          #2D2D2D;
    --color-text-muted:    #6B7280;
    --color-whatsapp:      #25D366;
    --color-whatsapp-dark: #1EAE57;
    --color-error:         #DC2626;
    --color-success:       #16A34A;

    /* Tipografía */
    --font-heading:  'Playfair Display', Georgia, serif;
    --font-body:     'Inter', system-ui, -apple-system, sans-serif;

    /* Tamaños */
    --container-max: 1200px;
    --container-pad: clamp(1rem, 5vw, 2rem);

    /* Espaciado */
    --section-pad:   clamp(3rem, 8vw, 6rem);

    /* Sombras */
    --shadow-sm:     0 2px 8px rgba(0,0,0,.08);
    --shadow-md:     0 8px 24px rgba(0,0,0,.12);
    --shadow-lg:     0 20px 48px rgba(0,0,0,.18);

    /* Bordes */
    --radius-sm:     4px;
    --radius-md:     8px;
    --radius-lg:     16px;
    --radius-xl:     24px;

    /* Transiciones */
    --transition:    0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Header */
    --header-height: 72px;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::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-body);
    color: var(--color-text);
    background: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ── Utilidades ─────────────────────────────────────────────── */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

.highlight { color: var(--color-primary); }

.section {
    padding: var(--section-pad) 0;
}
.section-light { background: var(--color-light); }
.section-dark  { background: var(--color-dark); color: var(--color-white); }
.section-wood  {
    background: var(--color-dark-2);
    position: relative;
    color: var(--color-white);
}

/* ── Tipografía ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    line-height: 1.2;
    font-weight: 700;
}
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

.section-header {
    text-align: center;
    margin-bottom: clamp(2rem, 5vw, 4rem);
}
.section-tag {
    display: inline-block;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: .75rem;
    padding: .3rem 1rem;
    border: 1px solid var(--color-primary);
    border-radius: 100px;
}
.section-dark .section-tag,
.section-wood .section-tag {
    color: var(--color-accent);
    border-color: var(--color-accent);
}
.section-title { margin-bottom: 1rem; }
.section-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    max-width: 580px;
    margin: 0 auto;
}
.section-dark .section-subtitle,
.section-wood .section-subtitle {
    color: rgba(255,255,255,.6);
}
.section-cta { text-align: center; margin-top: 2.5rem; }

/* ── Botones ────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1.75rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: .95rem;
    transition: var(--transition);
    white-space: nowrap;
}
.btn-lg  { padding: .9rem 2.2rem; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(139,90,43,.3);
}
.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139,90,43,.4);
}

.btn-outline {
    background: transparent;
    color: var(--color-white);
    border: 2px solid rgba(255,255,255,.6);
}
.btn-outline:hover {
    background: rgba(255,255,255,.1);
    border-color: var(--color-white);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: var(--color-whatsapp);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(37,211,102,.3);
}
.btn-whatsapp:hover {
    background: var(--color-whatsapp-dark);
    transform: translateY(-2px);
}

/* ── HEADER ─────────────────────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(18, 18, 22, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
    background: rgba(14, 14, 16, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: .75rem;
}
.logo-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-primary-light);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
    background: #ffffff;
    transition: transform var(--transition), border-color var(--transition);
}
.site-logo:hover .logo-icon {
    transform: scale(1.05);
    border-color: var(--color-accent);
}
.logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}
.logo-text  { display: flex; flex-direction: column; }
.logo-name  {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.1;
}
.logo-tagline {
    font-size: .7rem;
    color: var(--color-primary-light);
    letter-spacing: .05em;
    margin-top: .15rem;
}

/* Nav Píldoras Modernas */
.main-nav {}
.nav-list {
    display: flex;
    align-items: center;
    gap: .35rem;
}
.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .46rem 1.05rem;
    font-size: .88rem;
    font-weight: 500;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    transition: all .25s ease;
    text-decoration: none;
    white-space: nowrap;
}
.nav-link:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}
.nav-link.active {
    background: var(--color-primary);
    color: #ffffff !important;
    border-color: var(--color-primary-light);
    box-shadow: 0 3px 12px rgba(139, 90, 43, 0.45);
    font-weight: 600;
}
.nav-link.active:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}

/* Botón CTA Verde WhatsApp en Header */
.nav-item-cta {
    margin-left: .35rem;
}
.nav-cta-whatsapp {
    background: var(--color-whatsapp) !important;
    color: #ffffff !important;
    border: 1px solid #1ebc57 !important;
    border-radius: 999px;
    padding: .48rem 1.25rem;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}
.nav-cta-whatsapp svg {
    flex-shrink: 0;
}
.nav-cta-whatsapp:hover {
    background: var(--color-whatsapp-dark) !important;
    border-color: #1a9e4a !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.55);
}

/* Header WhatsApp icon */
.header-whatsapp {
    display: none;
    color: var(--color-whatsapp);
    margin-right: .5rem;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-white);
    border-radius: 2px;
    transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Nav overlay (mobile) */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 998;
    opacity: 0;
    transition: opacity var(--transition);
}
.nav-overlay.active { opacity: 1; }

/* ── WhatsApp flotante ──────────────────────────────────────── */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 900;
    width: 58px;
    height: 58px;
    background: var(--color-whatsapp);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,.4);
    transition: var(--transition);
    animation: pulse-whatsapp 2.5s infinite;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    background: var(--color-whatsapp-dark);
    animation: none;
}
.whatsapp-tooltip {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-dark);
    color: var(--color-white);
    font-size: .8rem;
    font-weight: 600;
    padding: .35rem .75rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}
.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: var(--color-dark);
}
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; }

@keyframes pulse-whatsapp {
    0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,.4); }
    50%       { box-shadow: 0 4px 32px rgba(37,211,102,.7); }
}

/* ── HERO SECTION ───────────────────────────────────────────── */
.hero-section {
    position: relative;
    height: 100dvh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--color-dark);
}

.hero-slider,
.hero-slide {
    position: absolute;
    inset: 0;
}
.hero-slide {
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}
.hero-slide.active { opacity: 1; }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0,0,0,.7) 0%,
        rgba(0,0,0,.4) 50%,
        rgba(139,90,43,.25) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--color-white);
    max-width: 720px;
}

.hero-badge {
    display: inline-block;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .1em;
    color: var(--color-accent);
    margin-bottom: 1rem;
}
.hero-title {
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    line-height: 1.05;
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255,255,255,.85);
    margin-bottom: 2rem;
    font-weight: 300;
}
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    color: rgba(255,255,255,.5);
    font-size: .7rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.scroll-line {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,.3);
    animation: scroll-line 1.5s ease infinite;
}
@keyframes scroll-line {
    0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
    50%  { transform: scaleY(1); opacity: 1; }
    100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

/* ── TRUST BAR ──────────────────────────────────────────────── */
.trust-bar {
    background: var(--color-dark-2);
    padding: 1.75rem 0;
    border-top: 1px solid rgba(255,255,255,.05);
}
.trust-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}
.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: .75rem 2rem;
    text-align: center;
}
.trust-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}
.trust-label {
    font-size: .78rem;
    color: rgba(255,255,255,.55);
    margin-top: .25rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.trust-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,.1);
}

/* ── SERVICIOS CARDS ────────────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.service-card {
    display: block;
    background: var(--color-white);
    border: 1px solid var(--color-gray-light);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-primary);
    transform: scaleX(0);
    transition: var(--transition);
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }

.service-card-icon {
    width: 56px;
    height: 56px;
    color: var(--color-primary);
    margin-bottom: 1.25rem;
}
.service-card-icon svg { width: 100%; height: 100%; }
.service-card-title {
    font-size: 1.15rem;
    margin-bottom: .5rem;
}
.service-card-desc {
    font-size: .9rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}
.service-card-link {
    font-size: .85rem;
    font-weight: 600;
    color: var(--color-primary);
}

/* ── GALLERY GRID ───────────────────────────────────────────── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.gallery-grid-large {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.gallery-item { border-radius: var(--radius-md); overflow: hidden; }
.gallery-item-inner {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.gallery-item-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.07); }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.85) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
    opacity: 0;
    transition: var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-category {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: .3rem;
}
.gallery-title {
    font-size: 1rem;
    color: var(--color-white);
    margin-bottom: .5rem;
}
.gallery-desc {
    font-size: .82rem;
    color: rgba(255,255,255,.7);
    margin-bottom: .75rem;
}
.gallery-btn {
    display: inline-block;
    font-size: .8rem;
    font-weight: 600;
    color: var(--color-white);
    padding: .4rem .9rem;
    border: 1px solid rgba(255,255,255,.5);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    align-self: flex-start;
}
.gallery-btn:hover {
    background: var(--color-white);
    color: var(--color-dark);
}

/* ── FILTER BAR ─────────────────────────────────────────────── */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 2.5rem;
}
.filter-btn {
    padding: .5rem 1.25rem;
    border-radius: 100px;
    font-size: .85rem;
    font-weight: 500;
    color: var(--color-text-muted);
    border: 1px solid var(--color-gray-light);
    background: var(--color-white);
    transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.gallery-item.hidden {
    display: none;
}

/* ── PROCESO STEPS ──────────────────────────────────────────── */
.process-steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
    flex-wrap: wrap;
    justify-content: center;
}
.process-step {
    flex: 1;
    min-width: 200px;
    max-width: 240px;
    text-align: center;
    padding: 1.5rem 1rem;
}
.step-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
    opacity: .35;
    line-height: 1;
    margin-bottom: .75rem;
}
.step-content h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.step-content p  { font-size: .875rem; color: var(--color-text-muted); }
.process-connector {
    flex-shrink: 0;
    width: 60px;
    height: 2px;
    background: var(--color-gray-light);
    margin-top: 3.2rem;
    align-self: flex-start;
}

/* ── TESTIMONIALES ──────────────────────────────────────────── */
.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.testimonial-card {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
}
.testimonial-card:hover {
    background: rgba(255,255,255,.1);
    transform: translateY(-4px);
}
.testimonial-stars {
    color: var(--color-accent);
    font-size: 1rem;
    margin-bottom: 1rem;
}
.testimonial-text {
    font-size: .95rem;
    color: rgba(255,255,255,.8);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 1.5rem;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: .75rem;
}
.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    flex-shrink: 0;
}
.testimonial-author strong {
    display: block;
    font-size: .9rem;
    color: var(--color-white);
}
.testimonial-author span {
    font-size: .78rem;
    color: rgba(255,255,255,.5);
}

/* ── CTA FINAL ──────────────────────────────────────────────── */
.section-cta-final {
    background: var(--color-primary);
    color: var(--color-white);
    padding: clamp(3rem, 7vw, 5rem) 0;
    text-align: center;
}
.cta-final-content h2 {
    color: var(--color-white);
    margin-bottom: .75rem;
}
.cta-final-content p {
    color: rgba(255,255,255,.8);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}
.cta-final-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}
.cta-final-buttons .btn-primary {
    background: var(--color-white);
    color: var(--color-primary);
}
.cta-final-buttons .btn-primary:hover {
    background: var(--color-light);
}

/* ── PAGE HERO ──────────────────────────────────────────────── */
.page-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    padding-top: calc(var(--header-height) + 1.5rem);
    padding-bottom: 2.5rem;
    margin-top: 0;
    overflow: hidden;
}
.page-hero-sm { min-height: 340px; }
.page-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}
.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.45) 100%);
}
.page-hero-content {
    position: relative;
    z-index: 1;
    color: var(--color-white);
    padding-top: 2rem;
    padding-bottom: 2rem;
}
.page-hero-content .section-tag { margin-bottom: .75rem; }
.page-hero-content h1 {
    color: var(--color-white);
    margin-bottom: .75rem;
}
.page-hero-content p {
    font-size: 1.05rem;
    color: rgba(255,255,255,.75);
}

/* ── SERVICE DETAIL ─────────────────────────────────────────── */
.service-detail-section .section-tag { color: var(--color-primary); border-color: var(--color-primary); }
.service-detail-section.section-dark .section-tag { color: var(--color-accent); border-color: var(--color-accent); }

.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
.service-detail--reversed .service-detail-image { order: 2; }
.service-detail--reversed .service-detail-content { order: 1; }

.service-detail-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.service-detail-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.service-detail-image:hover img { transform: scale(1.04); }

.service-detail-icon {
    width: 52px;
    height: 52px;
    color: var(--color-primary);
    margin-bottom: 1rem;
}
.service-detail-icon svg { width: 100%; height: 100%; }

.service-detail-desc {
    font-size: .975rem;
    line-height: 1.75;
    color: var(--color-text-muted);
    margin: 1rem 0 1.5rem;
}
.section-dark .service-detail-desc { color: rgba(255,255,255,.65); }

.service-features {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    margin-bottom: 2rem;
}
.service-features li {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .9rem;
}
.service-features li svg { color: var(--color-primary); flex-shrink: 0; }
.section-dark .service-features li svg { color: var(--color-accent); }

/* ── ABOUT ──────────────────────────────────────────────────── */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}
.about-image-wrap { position: relative; }
.about-main-img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: var(--radius-xl);
}
.about-badge-card {
    position: absolute;
    bottom: -1.5rem;
    right: -1.5rem;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.about-badge-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}
.about-badge-text {
    font-size: .8rem;
    opacity: .85;
    margin-top: .25rem;
    display: block;
    line-height: 1.4;
}
.about-content { padding-bottom: 1.5rem; }
.about-content .section-tag { display: inline-block; margin-bottom: .75rem; }
.about-content h2 { margin-bottom: 1.25rem; }
.about-content p {
    font-size: .95rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* Values */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}
.value-card {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}
.value-card:hover {
    background: rgba(255,255,255,.09);
    transform: translateY(-4px);
}
.value-icon {
    width: 52px;
    height: 52px;
    color: var(--color-accent);
    margin: 0 auto 1.25rem;
}
.value-icon svg { width: 100%; height: 100%; }
.value-card h3 {
    font-size: 1.05rem;
    color: var(--color-white);
    margin-bottom: .5rem;
}
.value-card p {
    font-size: .875rem;
    color: rgba(255,255,255,.55);
    line-height: 1.7;
}

/* Workshop grid */
.workshop-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1rem;
}
.workshop-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}
.workshop-img-tall {
    grid-row: span 2;
    height: 100%;
    min-height: 400px;
}

/* ── CONTACTO ───────────────────────────────────────────────── */
.contact-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: flex-start;
}

/* Form */
.contact-form-wrap {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-gray-light);
}
.contact-form-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Alerts */
.alert {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}
.alert svg { flex-shrink: 0; margin-top: 2px; }
.alert-success { background: #F0FDF4; border: 1px solid #86EFAC; color: #15803D; }
.alert-error   { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; }
.alert strong  { display: block; font-weight: 600; margin-bottom: .2rem; }
.alert p       { font-size: .9rem; margin: 0; }

/* Form elements */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}
.form-group { margin-bottom: 0; display: flex; flex-direction: column; gap: .4rem; }
.form-group label {
    font-size: .85rem;
    font-weight: 600;
    color: var(--color-text);
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: .7rem .9rem;
    border: 1.5px solid var(--color-gray-light);
    border-radius: var(--radius-md);
    font-size: .93rem;
    color: var(--color-text);
    background: var(--color-white);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(139,90,43,.12);
}
.form-group.has-error input,
.form-group.has-error textarea {
    border-color: var(--color-error);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-error {
    font-size: .8rem;
    color: var(--color-error);
}
.form-group.full-width { grid-column: 1 / -1; }
.contact-form .form-group { margin-bottom: 1rem; }

.form-privacy {
    font-size: .78rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: .75rem;
}

/* Contact info */
.contact-info-wrap { padding-top: .5rem; }
.contact-info-wrap h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.contact-whatsapp-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #F0FDF4;
    border: 1.5px solid #86EFAC;
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 2rem;
    transition: var(--transition);
    color: #15803D;
}
.contact-whatsapp-card svg:first-child { color: var(--color-whatsapp); flex-shrink: 0; }
.contact-whatsapp-card div { flex: 1; }
.contact-whatsapp-card strong { display: block; font-weight: 700; }
.contact-whatsapp-card span { font-size: .83rem; }
.contact-whatsapp-card .arrow-icon { flex-shrink: 0; }
.contact-whatsapp-card:hover {
    background: #DCFCE7;
    transform: translateX(4px);
}

.contact-info-list { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-info-list li {
    display: flex;
    align-items: flex-start;
    gap: .9rem;
}
.contact-info-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-primary);
}
.contact-info-list li > div > span {
    display: block;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--color-text-muted);
    margin-bottom: .2rem;
}
.contact-info-value {
    font-size: .95rem;
    font-weight: 500;
    color: var(--color-text);
    transition: color var(--transition);
}
a.contact-info-value:hover { color: var(--color-primary); }

.contact-area-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: 2rem;
    padding: .6rem 1rem;
    background: var(--color-light);
    border-radius: 100px;
    font-size: .85rem;
    color: var(--color-text-muted);
}
.contact-area-badge strong { color: var(--color-text); }
.contact-area-badge svg { color: var(--color-primary); }

/* ── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
    background: var(--color-dark);
    color: rgba(255,255,255,.7);
    padding: clamp(2.5rem, 6vw, 4rem) 0 1.5rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-logo .logo-name   { color: var(--color-white); }
.footer-logo .logo-tagline { color: var(--color-primary-light); }
.footer-desc {
    font-size: .875rem;
    line-height: 1.75;
    margin-top: 1rem;
    margin-bottom: 1.25rem;
}
.footer-social { display: flex; gap: .75rem; }
.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.6);
    transition: var(--transition);
}
.footer-social a:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--color-white);
    margin-bottom: 1.25rem;
    font-weight: 600;
}
.footer-links li { margin-bottom: .6rem; }
.footer-links a {
    font-size: .875rem;
    color: rgba(255,255,255,.55);
    transition: color var(--transition);
}
.footer-links a:hover {
    color: var(--color-primary-light);
    padding-left: 4px;
}

.footer-contact-list { display: flex; flex-direction: column; gap: .85rem; }
.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    font-size: .875rem;
    color: rgba(255,255,255,.55);
}
.footer-contact-list svg { flex-shrink: 0; color: var(--color-primary); margin-top: 2px; }
.footer-contact-list a { transition: color var(--transition); }
.footer-contact-list a:hover { color: var(--color-primary-light); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    font-size: .8rem;
    color: rgba(255,255,255,.35);
}
.footer-area {
    display: flex;
    align-items: center;
    gap: .4rem;
}
.footer-area svg { color: var(--color-primary); }

/* ── ANIMACIONES ────────────────────────────────────────────── */
.animate-fade-in  { animation: fadeIn .8s ease forwards; }
.animate-slide-up { animation: slideUp .8s ease forwards; opacity: 0; }
.delay-1 { animation-delay: .2s; }
.delay-2 { animation-delay: .4s; }

@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* Scroll reveal genérico */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */

/* Tablet */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .service-detail { grid-template-columns: 1fr; }
    .service-detail--reversed .service-detail-image { order: 0; }
    .service-detail--reversed .service-detail-content { order: 0; }
    .about-layout { grid-template-columns: 1fr; }
    .about-badge-card { right: 0; bottom: -1rem; }
    .contact-layout { grid-template-columns: 1fr; }
}

/* Mobile grande */
@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(320px, 85vw);
        height: 100dvh;
        background: var(--color-dark);
        z-index: 999;
        transition: right var(--transition);
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: -8px 0 24px rgba(0,0,0,.4);
    }
    .main-nav.open { right: 0; }
    .nav-list { flex-direction: column; gap: .75rem; align-items: stretch; width: 100%; padding: 0 1.5rem; }
    .nav-link { padding: .85rem 1.25rem; font-size: 1rem; border-radius: 999px; justify-content: center; text-align: center; }
    .nav-item-cta { margin-left: 0; margin-top: .35rem; }
    .nav-cta-whatsapp { justify-content: center; width: 100%; padding: .85rem 1.25rem; font-size: 1rem; }

    .hamburger  { display: flex; }
    .nav-overlay { display: block; pointer-events: none; }
    .nav-overlay.active { pointer-events: all; }
    .header-whatsapp { display: flex; align-items: center; }

    .trust-divider { display: none; }
    .trust-grid { gap: 1rem; }
    .trust-item { padding: .5rem 1rem; }

    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .process-connector { display: none; }
    .process-steps { gap: 1rem; }
    .process-step { max-width: 100%; }

    .form-row { grid-template-columns: 1fr; }
    .workshop-grid { grid-template-columns: 1fr; }
    .workshop-img-tall { height: 280px; grid-row: auto; }
    .about-main-img { height: 320px; }

    .about-badge-card {
        position: static;
        margin-top: 1.5rem;
        display: inline-flex;
        align-items: center;
        gap: 1rem;
    }

    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; justify-content: center; }
}

/* Mobile pequeño */
@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .filter-bar { gap: .4rem; }
    .filter-btn { font-size: .78rem; padding: .4rem 1rem; }
    .services-grid { grid-template-columns: 1fr; }
    .testimonials-slider { grid-template-columns: 1fr; }
    .trust-item { min-width: 130px; }
    .page-hero { min-height: 300px; }
}

/* ── LIGHTBOX DE PROYECTOS ─────────────────────────────────── */
#projectsGallery .gallery-item {
    cursor: pointer;
}
.lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(12, 10, 9, 0.92);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.lightbox-modal.active {
    opacity: 1;
    pointer-events: all;
}
.lightbox-inner {
    position: relative;
    max-width: 960px;
    width: 100%;
    background: var(--color-dark-2);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    max-height: 90dvh;
}
.lightbox-img-wrap {
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    max-height: 70dvh;
}
.lightbox-img {
    max-width: 100%;
    max-height: 70dvh;
    object-fit: contain;
    display: block;
}
.lightbox-caption {
    padding: 1.25rem 1.75rem;
    color: var(--color-white);
}
.lightbox-category {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent);
    margin-bottom: 0.25rem;
}
.lightbox-title {
    font-size: 1.25rem;
    margin-bottom: 0.35rem;
    color: var(--color-white);
}
.lightbox-desc {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}
.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}
.lightbox-close:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

/* ── SECCIÓN DESTACADA INSTAGRAM ────────────────────────────── */
.instagram-section {
    background: #131316;
    position: relative;
    padding: clamp(3.5rem, 6vw, 5.5rem) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.instagram-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}
.instagram-header-left {
    max-width: 620px;
}
.instagram-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .06em;
    padding: .35rem .95rem;
    border-radius: 999px;
    margin-bottom: .85rem;
    box-shadow: 0 4px 14px rgba(220, 39, 67, 0.35);
}
.instagram-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
.instagram-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    display: block;
    background: #1c1c20;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.instagram-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.instagram-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.25rem;
    opacity: 0;
    transition: opacity .3s ease;
    color: #ffffff;
}
.instagram-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55);
}
.instagram-card:hover img {
    transform: scale(1.08);
}
.instagram-card:hover .instagram-card-overlay {
    opacity: 1;
}
.instagram-card-top {
    display: flex;
    justify-content: flex-end;
}
.instagram-card-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}
.instagram-card-bottom {
    display: flex;
    flex-direction: column;
    gap: .3rem;
}
.instagram-card-tag {
    font-size: .82rem;
    font-weight: 600;
    color: #fbd38d;
}
.instagram-card-caption {
    font-size: .8rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.instagram-card-action {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .75rem;
    font-weight: 600;
    color: #ffffff;
    margin-top: .25rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.btn-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff !important;
    font-weight: 600;
    border: none;
    box-shadow: 0 4px 18px rgba(220, 39, 67, 0.35);
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .85rem 1.85rem;
    border-radius: 999px;
    transition: all .25s ease;
}
.btn-instagram:hover {
    filter: brightness(1.12);
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(220, 39, 67, 0.5);
    color: #ffffff;
}

/* Banner de Instagram para páginas interiores */
.instagram-banner {
    background: linear-gradient(135deg, rgba(35, 22, 28, 0.95) 0%, rgba(18, 18, 22, 0.98) 100%);
    border: 1px solid rgba(220, 39, 67, 0.3);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 3.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    flex-wrap: wrap;
}
.instagram-banner-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.instagram-banner-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(220, 39, 67, 0.4);
}
.instagram-banner-text h4 {
    font-size: 1.35rem;
    color: #ffffff;
    margin-bottom: .3rem;
}
.instagram-banner-text p {
    color: rgba(255, 255, 255, 0.75);
    font-size: .95rem;
    margin: 0;
}

/* ── REESTRUCTURACIÓN DE CONTACTO (WHATSAPP PRIORITARIO) ───── */
.contact-whatsapp-hero {
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2.75rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 10px 30px rgba(7, 94, 84, 0.35);
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}
.contact-whatsapp-hero::after {
    content: '';
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(37, 211, 102, 0.25) 0%, rgba(37, 211, 102, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}
.contact-whatsapp-hero-content {
    max-width: 650px;
    position: relative;
    z-index: 1;
}
.contact-whatsapp-badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: .3rem .85rem;
    border-radius: 999px;
    margin-bottom: .85rem;
    backdrop-filter: blur(4px);
}
.contact-whatsapp-hero h3 {
    color: #ffffff;
    font-size: 1.65rem;
    margin-bottom: .5rem;
}
.contact-whatsapp-hero p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.02rem;
    margin: 0;
    line-height: 1.5;
}
.contact-whatsapp-hero-btn {
    background: #25D366;
    color: #ffffff !important;
    font-size: 1.05rem;
    font-weight: 700;
    padding: .95rem 2.2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: all .25s ease;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}
.contact-whatsapp-hero-btn:hover {
    background: #1ebc57;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Tarjeta de email administrativo / facturación */
.contact-email-admin-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 5px solid var(--color-primary);
    border-radius: var(--radius-md);
    padding: 1.35rem 1.65rem;
    margin-top: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.contact-email-admin-header {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-bottom: .45rem;
}
.contact-email-admin-title {
    font-weight: 700;
    font-size: .98rem;
    color: var(--color-dark);
}
.contact-email-admin-addr {
    font-family: inherit;
    font-size: .95rem;
    color: var(--color-primary);
    font-weight: 600;
    display: inline-block;
    margin-bottom: .5rem;
    text-decoration: none;
}
.contact-email-admin-addr:hover {
    text-decoration: underline;
}
.contact-email-admin-desc {
    font-size: .85rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin: 0;
    background: #f8fafc;
    padding: .65rem .85rem;
    border-radius: var(--radius-sm);
    border: 1px dashed #cbd5e1;
}

@media (max-width: 992px) {
    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 580px) {
    .instagram-grid {
        grid-template-columns: 1fr;
    }
    .contact-whatsapp-hero {
        padding: 1.75rem 1.5rem;
    }
    .contact-whatsapp-hero-btn {
        width: 100%;
        justify-content: center;
    }
    .instagram-banner {
        padding: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
    }
    .btn-instagram {
        width: 100%;
        justify-content: center;
    }
}

/* ── PÁGINAS LEGALES (AVISO LEGAL, PRIVACIDAD, COOKIES) ─────── */
.container-legal {
    max-width: 900px;
    margin: 0 auto;
}
.legal-document-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0;
    padding: clamp(2rem, 5vw, 3.5rem);
}
.legal-box-highlight {
    background: #faf8f5;
    border-left: 4px solid var(--color-primary);
    padding: 1.25rem 1.5rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-bottom: 2.25rem;
    font-size: .95rem;
    color: var(--color-dark);
    line-height: 1.6;
}
.legal-box-highlight p { margin: 0; }

.legal-section {
    margin-bottom: 2.5rem;
}
.legal-section h2 {
    font-size: 1.35rem;
    color: var(--color-dark);
    margin-bottom: 1rem;
    padding-bottom: .4rem;
    border-bottom: 1px solid #edf2f7;
}
.legal-section p,
.legal-section li {
    font-size: .95rem;
    color: #4a5568;
    line-height: 1.7;
}
.legal-section ul,
.legal-section ol {
    padding-left: 1.35rem;
    margin: .75rem 0;
}
.legal-section li {
    margin-bottom: .5rem;
}
.legal-data-list {
    list-style: none;
    padding-left: 0 !important;
}
.legal-data-list li {
    padding: .5rem 0;
    border-bottom: 1px dashed #e2e8f0;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.legal-data-list li strong {
    min-width: 220px;
    color: var(--color-dark);
}
.legal-callout-warning {
    background: #fffaf0;
    border: 1px solid #feebc8;
    border-left: 4px solid #dd6b20;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    margin: 1rem 0;
}
.legal-callout-warning p {
    color: #7b341e;
    margin: 0;
    font-size: .92rem;
}

/* Rejilla de derechos ARCO-POL */
.legal-rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}
.legal-right-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 1rem;
}
.legal-right-item strong {
    display: block;
    color: var(--color-primary);
    font-size: .95rem;
    margin-bottom: .25rem;
}
.legal-right-item p {
    font-size: .85rem;
    color: #64748b;
    margin: 0;
    line-height: 1.45;
}

/* Categorías de cookies */
.cookie-category-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 1.25rem;
}
.cookie-category-box h3 {
    font-size: 1.05rem;
    color: var(--color-dark);
    margin-bottom: .4rem;
}
.cookie-category-box p {
    font-size: .9rem;
    margin: 0;
    color: #64748b;
}

/* Tabla legal */
.table-responsive {
    overflow-x: auto;
    margin: 1.5rem 0;
}
.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
    text-align: left;
}
.legal-table th,
.legal-table td {
    padding: .75rem 1rem;
    border: 1px solid #e2e8f0;
}
.legal-table th {
    background: #f1f5f9;
    color: var(--color-dark);
    font-weight: 600;
}
.legal-table tr:nth-child(even) td {
    background: #fafafa;
}
.legal-footer-nav {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    font-size: .9rem;
    color: var(--color-text-muted);
}

/* ── FORMULARIO: CHECKBOX PRIVACIDAD Y PRIMERA CAPA RGPD ───── */
.form-privacy-check {
    margin-top: .75rem;
    margin-bottom: 1.5rem;
}
.form-privacy-check .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    font-size: .92rem;
    color: var(--color-dark);
    cursor: pointer;
    line-height: 1.45;
}
.form-privacy-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: .15rem;
    accent-color: var(--color-primary);
    cursor: pointer;
    flex-shrink: 0;
}
.form-privacy-check a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: underline;
}

/* Cuadro RGPD 1ª Capa */
.rgpd-first-layer {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    margin-top: 1.5rem;
    font-size: .8rem;
    color: #64748b;
    line-height: 1.5;
}
.rgpd-layer-title {
    color: var(--color-dark);
    margin-bottom: .4rem;
}
.rgpd-layer-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.rgpd-layer-list li {
    margin-bottom: .25rem;
}
.rgpd-layer-list li strong {
    color: #334155;
}
.rgpd-layer-list a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: underline;
}

/* ── FOOTER LEGAL LINKS ─────────────────────────────────────── */
.footer-legal-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    flex-wrap: wrap;
    font-size: .82rem;
    color: rgba(255, 255, 255, 0.6);
}
.footer-legal-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}
.footer-legal-links a:hover {
    color: var(--color-accent);
}
.legal-sep {
    color: rgba(255, 255, 255, 0.3);
}
.footer-cookie-btn {
    background: transparent;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
}

/* ── BANNER Y MODAL DE COOKIES (AEPD COMPLIANT) ─────────────── */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2500;
    background: rgba(18, 18, 22, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.45);
    padding: 1.25rem 0;
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform .4s cubic-bezier(0.16, 1, 0.3, 1), opacity .4s ease;
}
.cookie-banner.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}
.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}
.cookie-banner-content {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    flex: 1;
    min-width: 320px;
}
.cookie-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    flex-shrink: 0;
}
.cookie-banner-text {
    flex: 1;
}
.cookie-banner-title {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: .25rem;
}
.cookie-banner-desc {
    color: rgba(255, 255, 255, 0.75);
    font-size: .84rem;
    line-height: 1.45;
    margin: 0;
}
.cookie-banner-desc a {
    color: var(--color-accent);
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    align-items: center;
    gap: .65rem;
    flex-wrap: wrap;
}
.btn-cookie {
    padding: .6rem 1.2rem;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
    white-space: nowrap;
    border: none;
}
.btn-cookie-accept {
    background: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(139, 90, 43, 0.4);
}
.btn-cookie-accept:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}
.btn-cookie-reject {
    background: rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.18);
}
.btn-cookie-reject:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}
.btn-cookie-config {
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-cookie-config:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

/* Modal de Configuración de Cookies */
.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 2600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}
.cookie-modal.active {
    opacity: 1;
    pointer-events: all;
}
.cookie-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
}
.cookie-modal-dialog {
    position: relative;
    z-index: 1;
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.cookie-modal-header {
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.cookie-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--color-dark);
}
.cookie-modal-close {
    background: transparent;
    border: none;
    font-size: 1.6rem;
    color: #64748b;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
.cookie-modal-body {
    padding: 1.5rem 1.75rem;
}
.cookie-modal-intro {
    font-size: .88rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}
.cookie-pref-group {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}
.cookie-pref-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .35rem;
}
.cookie-pref-header strong {
    font-size: .95rem;
    color: var(--color-dark);
}
.badge-required {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    background: #e2e8f0;
    color: #475569;
    padding: .15rem .5rem;
    border-radius: 999px;
    margin-left: .5rem;
    text-transform: uppercase;
}
.badge-optional {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    background: #dbeafe;
    color: #1e40af;
    padding: .15rem .5rem;
    border-radius: 999px;
    margin-left: .5rem;
    text-transform: uppercase;
}
.cookie-pref-desc {
    font-size: .82rem;
    color: #64748b;
    margin: 0;
    line-height: 1.45;
}
.cookie-modal-footer {
    padding: 1.25rem 1.75rem;
    border-top: 1px solid #e2e8f0;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .75rem;
}

/* Switch toggle */
.switch-label {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}
.cookie-switch {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #cbd5e1;
    transition: .3s;
    border-radius: 24px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}
.cookie-switch:checked + .slider {
    background-color: var(--color-primary);
}
.cookie-switch:checked + .slider:before {
    transform: translateX(20px);
}

@media (max-width: 768px) {
    .cookie-banner-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
    }
    .cookie-banner-actions {
        width: 100%;
    }
    .btn-cookie {
        flex: 1;
        text-align: center;
        justify-content: center;
    }
    .legal-data-list li {
        flex-direction: column;
        gap: .15rem;
    }
    .legal-data-list li strong {
        min-width: unset;
    }
}



