/* Estilos propios de HA Pinturas. Extraídos del HTML para aplicar una CSP más segura. */
.material-symbols-outlined {
            font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
        }
        .paint-stroke-diagonal {
            clip-path: polygon(0 15%, 100% 0, 100% 85%, 0 100%);
        }
        .fade-in-up {
            opacity: 0;
            transform: translateY(20px);
            transition: all 0.6s ease-out;
        }
        .fade-in-up.visible {
            opacity: 1;
            transform: translateY(0);
        }
        .before-after-container {
            position: relative;
            overflow: hidden;
            border-radius: 0.75rem;
            cursor: ew-resize;
            touch-action: none;
            user-select: none;
        }
        .before-after-container.dragging,
        .before-after-container.dragging #after-img-container,
        .before-after-container.dragging #slider-handle {
            transition: none !important;
        }
        #after-img-container,
        #slider-handle {
            transition: clip-path 150ms ease-out, left 150ms ease-out;
            will-change: clip-path, left;
        }
        .slider-handle {
            position: absolute;
            top: 0;
            bottom: 0;
            width: 4px;
            background: white;
            cursor: ew-resize;
            z-index: 10;
            pointer-events: none;
        }
        .slider-handle::after {
            content: "";
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 56px;
            height: 56px;
            background: white;
            border-radius: 50%;
            box-shadow: 0 4px 14px rgba(0,0,0,0.3);
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2387CEFA' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 6 21 12 15 18'%3E%3C/polyline%3E%3Cpolyline points='9 18 3 12 9 6'%3E%3C/polyline%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: center;
        }
        /* Filtro "Nuestros Trabajos" */
        .work-filter-btn {
            min-height: 44px;
            padding: 0.6rem 1.4rem;
            border-radius: 9999px;
            font-family: 'Hanken Grotesk', sans-serif;
            font-size: 14px;
            font-weight: 600;
            letter-spacing: 0.02em;
            background: #ffffff;
            color: #002f42;
            border: 1px solid rgba(135,206,250,0.4);
            cursor: pointer;
            transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 150ms ease;
        }
        .work-filter-btn:hover {
            border-color: rgba(135,206,250,0.8);
            transform: translateY(-1px);
        }
        .work-filter-btn.active {
            background: #87CEFA;
            color: #002f42;
            border-color: #87CEFA;
        }
        .work-item {
            transition: opacity 400ms ease, transform 400ms ease;
        }
        .work-item-hidden {
            display: none !important;
        }
        /* Selector de idioma */
        .lang-btn {
            min-width: 32px;
            min-height: 32px;
            padding: 0.25rem 0.6rem;
            border-radius: 9999px;
            font-weight: 700;
            letter-spacing: 0.03em;
            color: inherit;
            opacity: 0.55;
            cursor: pointer;
            transition: background-color 200ms ease, opacity 200ms ease, color 200ms ease;
        }
        .lang-btn.active {
            opacity: 1;
            background: #87CEFA;
            color: #002f42;
        }
        .lang-btn-drawer {
            min-height: 44px;
            padding: 0.5rem 0.9rem;
            border-radius: 9999px;
            border: 1px solid rgba(0,47,66,0.2);
            color: #002f42;
        }
        .header-lang-switch {
            background: rgba(255,255,255,0.08);
        }
        .header-menu-btn {
            transition: background-color 200ms ease;
        }
        .header-menu-btn:hover {
            background: rgba(255,255,255,0.08);
        }
        #main-header.header-scrolled .header-lang-switch {
            background: rgba(0,47,66,0.08);
            border-color: rgba(0,47,66,0.25);
        }
        #main-header.header-scrolled .header-menu-btn {
            border-color: rgba(0,47,66,0.2);
        }
        #main-header.header-scrolled .header-menu-btn:hover {
            background: rgba(0,47,66,0.08);
        }
        .hamburger-icon {
            pointer-events: none;
        }
        a:focus-visible,
        button:focus-visible,
        input:focus-visible,
        select:focus-visible,
        textarea:focus-visible {
            outline: 3px solid #ff8925;
            outline-offset: 3px;
        }
        @media (max-width: 420px) {
            #main-header > div { padding-left: 0.75rem; }
            #main-header .logo-img { height: 2.25rem; }
            #main-header .header-lang-switch { gap: 0; padding: 0.125rem; }
            #main-header .lang-btn {
                min-width: 28px;
                min-height: 28px;
                padding: 0.125rem 0.35rem;
            }
            #main-header a[href="#quote"] {
                padding-left: 0.75rem;
                padding-right: 0.75rem;
                font-size: 0.75rem;
            }
            #main-header .header-menu-btn { width: 3rem; }
        }
        /* Por qué elegirnos */
        .why-card {
            position: relative;
            padding: 2rem 1.75rem;
            background: rgba(255,255,255,0.03);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 1.25rem;
            overflow: hidden;
            transition: transform 300ms cubic-bezier(0.22,1,0.36,1), background-color 300ms ease, border-color 300ms ease;
        }
        .why-card:hover {
            transform: translateY(-6px);
            background: rgba(255,255,255,0.06);
            border-color: rgba(255,137,37,0.35);
        }
        .why-card-index {
            position: absolute;
            top: 0.5rem;
            right: 1rem;
            font-family: 'Hanken Grotesk', sans-serif;
            font-size: 3rem;
            font-weight: 800;
            color: rgba(255,255,255,0.06);
            line-height: 1;
        }
        .why-card-icon {
            position: relative;
            z-index: 1;
            width: 64px;
            height: 64px;
            border-radius: 9999px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1.25rem;
            color: #ff8925;
            background: radial-gradient(circle at 35% 30%, rgba(255,137,37,0.22), rgba(255,137,37,0.05));
            border: 1px solid rgba(255,137,37,0.25);
            transition: transform 300ms cubic-bezier(0.22,1,0.36,1);
        }
        .why-card:hover .why-card-icon {
            transform: scale(1.08) rotate(-4deg);
        }
        @media (prefers-reduced-motion: reduce) {
            .why-card, .why-card-icon { transition: none; }
            .why-card:hover { transform: none; }
            .why-card:hover .why-card-icon { transform: none; }
        }
        /* Carrusel "Sobre Nosotros" */
        .about-slide {
            position: absolute;
            inset: 0;
            background-size: cover;
            background-position: center;
            opacity: 0;
            transition: opacity 1.1s ease;
        }
        .about-slide.active {
            opacity: 1;
        }
        .about-carousel-dots {
            position: absolute;
            bottom: 1.1rem;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 0.5rem;
            z-index: 5;
        }
        .about-dot {
            width: 8px;
            height: 8px;
            border-radius: 9999px;
            background: rgba(255,255,255,0.5);
            border: none;
            padding: 0;
            cursor: pointer;
            transition: width 300ms ease, background-color 300ms ease;
        }
        .about-dot.active {
            width: 24px;
            background: #ffffff;
        }
        /* Separadores tipo pincelada entre secciones */
        .paint-divider {
            position: absolute;
            left: 0;
            right: 0;
            bottom: -1px;
            height: 44px;
            z-index: 25;
            line-height: 0;
            pointer-events: none;
        }
        .paint-divider svg {
            width: 100%;
            height: 100%;
            display: block;
        }
        .paint-divider-services { color: #f6f3f2; }
        .paint-divider-about { color: #fcf9f8; }
        @media (min-width: 768px) {
            .paint-divider { height: 60px; }
        }

        /* Texturas de fondo muy sutiles (trazo de pintura) */
        .texture-canvas {
            position: relative;
        }
        .texture-canvas::before {
            content: '';
            position: absolute;
            inset: 0;
            pointer-events: none;
            opacity: 0.035;
            background-image: repeating-linear-gradient(115deg, #87CEFA 0px, #87CEFA 1px, transparent 1px, transparent 46px), repeating-linear-gradient(25deg, #ff8925 0px, #ff8925 1px, transparent 1px, transparent 64px);
            z-index: 0;
        }
        .texture-canvas > * {
            position: relative;
            z-index: 1;
        }

        /* Parallax sutil del carrusel "Sobre Nosotros" */
        .about-carousel-parallax {
            will-change: transform;
        }
        @media (prefers-reduced-motion: reduce) {
            .about-slide { transition: none; }
        }
        .lang-btn-drawer.active {
            background: #ffffff;
            color: #002f42;
            border-color: #ffffff;
        }
        @media (prefers-reduced-motion: reduce) {
            .work-filter-btn { transition: none; }
        }
        @keyframes bounce-slow {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-10px); }
        }
        .animate-bounce-slow {
            animation: bounce-slow 2s infinite;
        }
        @keyframes kenburns {
            0% { transform: scale(1) translate(0, 0); }
            100% { transform: scale(1.12) translate(-1.5%, -1%); }
        }
        .animate-kenburns {
            animation: kenburns 20s ease-in-out infinite alternate;
        }

        /* ===================================================== */
        /* LOGO 3D — moneda giratoria (fondo negro, doble cara)   */
        /* ===================================================== */
        .logo-coin-stage {
            position: relative;
            width: clamp(200px, 26vw, 400px);
            aspect-ratio: 1 / 1;
            margin-inline: auto;
        }
        /* Variante gigante para ocupar todo el fondo del hero */
        .logo-coin-stage--hero {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: min(92vh, 88vw);
            max-width: 900px;
            margin-inline: 0;
            z-index: 10;
        }
        @media (min-width: 768px) {
            .logo-coin-stage--hero {
                left: auto;
                right: -4%;
                transform: translateY(-50%);
                width: min(88vh, 60vw);
            }
        }
        .logo-coin-glow {
            position: absolute;
            inset: -18%;
            border-radius: 50%;
            background: radial-gradient(circle, #000 0%, #050505 45%, rgba(0,14,66,0) 72%);
            z-index: 0;
        }
        .logo-coin-ring {
            position: absolute;
            inset: -6%;
            border-radius: 50%;
            border: 1px solid rgba(255,137,37,0.25);
            z-index: 1;
            animation: coin-ring-spin 18s linear infinite;
        }
        .logo-coin-ring.ring-2 {
            inset: 4%;
            border-color: rgba(255,255,255,0.12);
            animation-duration: 24s;
            animation-direction: reverse;
        }
        @keyframes coin-ring-spin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }
        .logo-coin-perspective {
            position: absolute;
            inset: 12%;
            z-index: 2;
            perspective: 1400px;
        }
        .logo-coin {
            position: relative;
            width: 100%;
            height: 100%;
            transform-style: preserve-3d;
            animation: coin-spin 9s linear infinite;
        }
        @keyframes coin-spin {
            from { transform: rotateY(0deg); }
            to { transform: rotateY(360deg); }
        }
        .logo-coin-face {
            position: absolute;
            inset: 0;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            backface-visibility: hidden;
            background:
                radial-gradient(circle at 32% 28%, #87CEFA 0%, #050608 62%, #000000 100%);
            box-shadow:
                0 25px 60px -10px rgba(0,0,0,0.65),
                inset 0 0 0 1.5px rgba(255,137,37,0.35),
                inset 0 0 30px rgba(0,0,0,0.6);
            overflow: hidden;
        }
        .logo-coin-face::after {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: 50%;
            background: linear-gradient(115deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0) 30%, rgba(255,255,255,0) 70%, rgba(255,255,255,0.08) 100%);
            animation: coin-sheen 4.5s ease-in-out infinite;
            mix-blend-mode: screen;
        }
        @keyframes coin-sheen {
            0%, 100% { opacity: 0.5; transform: translateX(-8%); }
            50% { opacity: 1; transform: translateX(8%); }
        }
        .logo-coin-face img {
            width: 66%;
            height: 66%;
            object-fit: contain;
            filter: drop-shadow(0 6px 14px rgba(0,0,0,0.55));
            position: relative;
            z-index: 1;
        }
        .logo-coin-front { transform: rotateY(0deg); }
        .logo-coin-back { transform: rotateY(180deg); }
        .logo-coin-back img { transform: scaleX(-1); }
        .logo-coin-shadow {
            position: absolute;
            left: 50%;
            bottom: -6%;
            width: 70%;
            height: 10%;
            background: radial-gradient(ellipse at center, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 75%);
            transform: translateX(-50%);
            animation: coin-shadow-pulse 9s linear infinite;
            z-index: 1;
        }
        @keyframes coin-shadow-pulse {
            0%, 100% { transform: translateX(-50%) scaleX(1); opacity: 0.6; }
            25%, 75% { transform: translateX(-50%) scaleX(0.55); opacity: 0.35; }
            50% { transform: translateX(-50%) scaleX(1); opacity: 0.6; }
        }
        .logo-coin-stage.is-loaded .logo-coin-perspective {
            animation: coin-intro 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
        }
        @keyframes coin-intro {
            from { opacity: 0; transform: scale(0.7) translateY(24px); }
            to { opacity: 1; transform: scale(1) translateY(0); }
        }

        @media (prefers-reduced-motion: reduce) {
            .logo-coin,
            .logo-coin-ring,
            .logo-coin-face::after,
            .logo-coin-shadow,
            .animate-kenburns,
            .animate-bounce-slow {
                animation: none !important;
            }
            .logo-coin { transform: rotateY(0deg); }
            .fade-in-up {
                transition: none !important;
                animation: none !important;
                opacity: 1 !important;
                transform: none !important;
            }
        }

        /* ===================================================== */
        /* PRELOADER — manchas de pintura + logo "estampado"       */
        /* ===================================================== */
        html.preload-lock, html.preload-lock body {
            overflow: hidden;
            height: 100%;
        }
        #preloader {
            position: fixed;
            inset: 0;
            z-index: 9999;
            background: #fcf9f8;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: opacity 0.55s ease, visibility 0.55s ease;
        }
        #preloader.hide {
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
        }
        .preloader-inner {
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        .preloader-blob {
            position: absolute;
            width: 150px;
            height: 150px;
            opacity: 0;
            transform: scale(0) rotate(0deg);
        }
        .blob-a {
            background: #87CEFA;
            border-radius: 62% 38% 33% 67% / 64% 33% 67% 36%;
            top: -55px;
            left: -100px;
            animation: preloaderBlobPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.05s forwards;
        }
        .blob-b {
            background: #ff8925;
            border-radius: 33% 67% 68% 32% / 30% 33% 67% 70%;
            bottom: -45px;
            right: -95px;
            animation: preloaderBlobPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.18s forwards;
        }
        @keyframes preloaderBlobPop {
            0% { opacity: 0; transform: scale(0) rotate(0deg); }
            60% { opacity: 0.85; }
            100% { opacity: 0.55; transform: scale(1) rotate(10deg); }
        }
        .preloader-logo-wrap {
            position: relative;
            z-index: 2;
            width: 112px;
            height: 112px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .preloader-logo {
            width: 100%;
            height: 100%;
            object-fit: contain;
            opacity: 0;
            transform: scale(1.8);
            filter: drop-shadow(0 10px 20px rgba(0,0,0,0.18));
            animation: preloaderStamp 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.32s forwards;
        }
        @keyframes preloaderStamp {
            0% { opacity: 0; transform: scale(1.9); }
            55% { opacity: 1; transform: scale(0.9); }
            100% { opacity: 1; transform: scale(1); }
        }
        .preloader-impact-ring {
            position: absolute;
            inset: -14px;
            border-radius: 50%;
            border: 3px solid #ff8925;
            opacity: 0;
            transform: scale(0.4);
            animation: preloaderRing 0.55s ease-out 0.38s forwards;
        }
        @keyframes preloaderRing {
            0% { opacity: 0.8; transform: scale(0.4); }
            100% { opacity: 0; transform: scale(1.9); }
        }
        .preloader-brand {
            margin-top: 1.5rem;
            font-family: 'Hanken Grotesk', sans-serif;
            font-weight: 800;
            font-size: 1.15rem;
            letter-spacing: 0.03em;
            color: #002f42;
            opacity: 0;
            transform: translateY(10px);
            animation: preloaderBrandUp 0.5s ease 0.62s forwards;
        }
        .preloader-brand span {
            color: #ff8925;
        }
        @keyframes preloaderBrandUp {
            to { opacity: 1; transform: translateY(0); }
        }
        @media (prefers-reduced-motion: reduce) {
            .preloader-blob, .preloader-logo, .preloader-impact-ring, .preloader-brand {
                animation: none !important;
                opacity: 1 !important;
                transform: none !important;
            }
        }

/* Forzar visibilidad del lang-switch en cabecera */
#lang-switch {
    display: flex !important;
}
/* Ocultar el del drawer si queremos, aunque el usuario pidio que este en cabecera siempre */
#lang-switch-drawer {
    display: none !important;
}

/* Glassmorphism para las tarjetas de "Por qué elegirnos" y "Sobre Nosotros" */
.why-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

#about {
    position: relative;
    overflow: hidden;
}
#about::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(20,36,92,0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(240,126,23,0.03) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

/* Mejoras en botones */
.hover\:scale-105:hover {
    transform: scale(1.03) translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Glassmorphism en tarjetas de galeria (opcional, ya tienen from-black) */

/* Preguntas frecuentes */
.faq-list {
    display: grid;
    gap: 0.875rem;
}
.faq-item {
    background: #ffffff;
    border: 1px solid rgba(0, 47, 66, 0.12);
    border-radius: 1rem;
    overflow: hidden;
    transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}
.faq-item:hover {
    border-color: rgba(135, 206, 250, 0.7);
    box-shadow: 0 10px 30px rgba(0, 47, 66, 0.07);
}
.faq-item[open] {
    border-color: rgba(255, 137, 37, 0.45);
    box-shadow: 0 12px 32px rgba(0, 47, 66, 0.08);
}
.faq-item summary {
    min-height: 68px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: #002f42;
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}
.faq-item summary::-webkit-details-marker {
    display: none;
}
.faq-icon {
    flex: 0 0 auto;
    color: #ff8925;
    transition: transform 200ms ease;
}
.faq-item[open] .faq-icon {
    transform: rotate(45deg);
}
.faq-answer {
    padding: 0 1.5rem 1.4rem;
    color: #52636b;
    line-height: 1.7;
}
@media (max-width: 640px) {
    .faq-item summary {
        min-height: 62px;
        padding: 1rem 1.1rem;
        font-size: 1rem;
    }
    .faq-answer {
        padding: 0 1.1rem 1.15rem;
    }
}
@media (prefers-reduced-motion: reduce) {
    .faq-item,
    .faq-icon {
        transition: none;
    }
}
