/* =============================================
   SERIGRAFÍA UTOPIA - PREMIUM DESIGN OVERRIDES
   Green accent (#10b981) + Dark elegance
   ============================================= */

/* ---- Smooth global rendering ---- */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #fafafa;
}

/* =====================================================================
   DETALLES DECORATIVOS LOCALIZADOS — como en /tecnica/... : cuadrados de
   rejilla de puntos en esquinas (arriba-dcha y abajo-izq) por cada sección.
   NO es un patrón uniforme de fondo: son swatches puntuales, repetidos por
   la web. Se aplica a marketing salvo la home; el configurador no carga este
   CSS. cta-section se excluye (fondo oscuro + ya usa ::before animado).
   ===================================================================== */
body:not(.home-page) .gallery-section,
body:not(.home-page) .about-section,
body:not(.home-page) .tecnicas-page-section,
body:not(.home-page) .faq-section,
body:not(.home-page) .cuenta-section,
body:not(.home-page) .contact-section,
body:not(.home-page) .ciudades-index,
body:not(.home-page) .ciudad-hero,
body:not(.home-page) .ciudad-content,
body:not(.home-page) .blog-section {
    position: relative;
}
/* Swatch de puntos: esquina superior derecha */
body:not(.home-page) .gallery-section::before,
body:not(.home-page) .about-section::before,
body:not(.home-page) .tecnicas-page-section::before,
body:not(.home-page) .faq-section::before,
body:not(.home-page) .cuenta-section::before,
body:not(.home-page) .contact-section::before,
body:not(.home-page) .ciudades-index::before,
body:not(.home-page) .ciudad-hero::before,
body:not(.home-page) .ciudad-content::before,
body:not(.home-page) .blog-section::before {
    content: '';
    position: absolute;
    z-index: 0;
    pointer-events: none;
    top: 48px;
    right: 4%;
    width: 168px;
    height: 148px;
    background-image: radial-gradient(rgba(16,185,129,0.34) 2.4px, transparent 2.7px);
    background-size: 22px 22px;
    opacity: 0.7;
    box-shadow: 0 0 200px 90px rgba(16,185,129,0.09);
    border-radius: 40%;
}
/* Swatch de puntos: esquina inferior izquierda */
body:not(.home-page) .gallery-section::after,
body:not(.home-page) .about-section::after,
body:not(.home-page) .tecnicas-page-section::after,
body:not(.home-page) .faq-section::after,
body:not(.home-page) .cuenta-section::after,
body:not(.home-page) .contact-section::after,
body:not(.home-page) .ciudades-index::after,
body:not(.home-page) .ciudad-hero::after,
body:not(.home-page) .ciudad-content::after,
body:not(.home-page) .blog-section::after {
    content: '';
    position: absolute;
    z-index: 0;
    pointer-events: none;
    bottom: 48px;
    left: 4%;
    width: 168px;
    height: 148px;
    background-image: radial-gradient(rgba(16,185,129,0.30) 2.4px, transparent 2.7px);
    background-size: 22px 22px;
    opacity: 0.6;
    box-shadow: 0 0 200px 90px rgba(16,185,129,0.08);
    border-radius: 40%;
}
/* La primera sección de cada página empieza bajo la cabecera fija:
   se baja el swatch superior para que no quede tapado por el header. */
body:not(.home-page) section:first-of-type::before {
    top: 118px;
}

/* Navegación por secciones del área de cliente */
.cuenta-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 20px;
}
.cuenta-navbtn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 12px;
    border: 1px solid #e0ddd3;
    background: #fff;
    color: #5a544a;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.cuenta-navbtn i { font-size: 0.9rem; }
.cuenta-navbtn:hover { border-color: #10b981; color: #0c5c4f; }
.cuenta-navbtn.active {
    background: linear-gradient(135deg, #0c5c4f, #10b981);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 20px rgba(16,185,129,0.24);
}

/* Métodos de pago (tarjetas tokenizadas) */
.pago-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.pago-row {
    display: flex; align-items: center; gap: 14px;
    background: #fff; border: 1px solid #ece8de; border-radius: 14px;
    padding: 14px 18px; box-shadow: 0 8px 22px rgba(27,24,19,0.05);
}
.pago-ico { flex: none; font-size: 1.9rem; color: #0c5c4f; width: 46px; text-align: center; }
.pago-info { flex: 1; min-width: 0; }
.pago-num { font-weight: 700; color: #1b1813; letter-spacing: 0.02em; }
.pago-meta { font-size: 0.82rem; color: #8a8478; display: flex; align-items: center; gap: 8px; }
.pago-def { background: #e7f7f0; color: #0c9c6a; font-weight: 700; font-size: 0.72rem; padding: 2px 8px; border-radius: 999px; }
.pago-set { flex: none; padding: 8px 14px; font-size: 0.82rem; border-radius: 9px; }
.pago-del {
    flex: none; width: 34px; height: 34px; border-radius: 9px;
    border: 1px solid #e6cfce; background: #fdf1f2; color: #c2334d; cursor: pointer;
}
.pago-del:hover { background: #f7dcdf; }
.pago-add {
    background: linear-gradient(135deg, #f0faf5 0%, #ffffff 100%);
    border: 1px solid #cdeadd; border-radius: 14px; padding: 20px 22px;
}
.pago-add-head { font-weight: 700; color: #0c5c4f; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.pago-add p { color: #5a544a; font-size: 0.92rem; line-height: 1.6; margin: 0 0 14px; }
.pago-add .btn-primary[disabled] { opacity: 0.55; cursor: not-allowed; }

/* Lista de facturas del cliente */
.fac-list { display: flex; flex-direction: column; gap: 10px; }
.fac-row {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid #ece8de;
    border-radius: 14px;
    padding: 14px 18px;
    box-shadow: 0 8px 22px rgba(27,24,19,0.05);
}
.fac-ico {
    flex: none;
    width: 42px; height: 42px;
    border-radius: 10px;
    background: #e7f7f0;
    color: #0c9c6a;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
}
.fac-info { flex: 1; min-width: 0; }
.fac-num { font-weight: 700; color: #1b1813; }
.fac-meta { font-size: 0.83rem; color: #8a8478; }
.fac-total { font-weight: 700; color: #0c5c4f; white-space: nowrap; }
.fac-pdf { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; font-size: 0.86rem; border-radius: 10px; }

/* Trazabilidad del pedido (stepper) */
.traza {
    display: flex;
    align-items: flex-start;
    margin: 4px 0 22px;
    padding: 6px 4px 0;
}
.traza-step {
    flex: 1;
    position: relative;
    text-align: center;
    min-width: 0;
}
/* Conector con el paso anterior */
.traza-step::before {
    content: '';
    position: absolute;
    top: 19px;
    left: -50%;
    width: 100%;
    height: 3px;
    background: #e2ded4;
    z-index: 0;
}
.traza-step:first-child::before { display: none; }
.traza-step.done::before,
.traza-step.active::before { background: linear-gradient(90deg, #10b981, #0c9c6a); }
.traza-dot {
    position: relative;
    z-index: 1;
    width: 40px;
    height: 40px;
    margin: 0 auto 8px;
    border-radius: 50%;
    background: #f0eee6;
    color: #b3ada0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    border: 2px solid #e2ded4;
    transition: all 0.2s ease;
}
.traza-step.done .traza-dot {
    background: #10b981;
    border-color: #10b981;
    color: #fff;
}
.traza-step.active .traza-dot {
    background: #fff;
    border-color: #10b981;
    color: #0c9c6a;
    box-shadow: 0 0 0 5px rgba(16,185,129,0.16);
}
.traza-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #8a8478;
    line-height: 1.2;
}
.traza-step.done .traza-label,
.traza-step.active .traza-label { color: #0c5c4f; }
.traza-cancel {
    display: flex;
    align-items: center;
    gap: 9px;
    background: #fdecef;
    border: 1px solid #f2ccd3;
    color: #c2334d;
    font-weight: 600;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 18px;
}
.det-preview-tit {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0c5c4f;
    margin: 6px 0 10px;
}
.det-sinsync { color: #b08a2e; font-style: italic; }

/* Fila compacta de diseño en el detalle del pedido */
.det-row { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px dashed #ece8de; }
.det-row:last-of-type { border-bottom: none; }
.det-thumbs { display: flex; gap: 6px; flex: none; }
.det-thumb { width: 58px; height: 58px; padding: 0; border: 1px solid #ece8de; border-radius: 10px; background: #f7f5f0; overflow: hidden; cursor: pointer; flex: none; transition: transform .15s, box-shadow .15s; }
.det-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.det-thumb:hover { transform: scale(1.06); box-shadow: 0 6px 16px rgba(16,120,90,.18); }
.det-thumb.sin { display: inline-flex; align-items: center; justify-content: center; color: #c3bdb0; cursor: default; }
.det-rowinfo { flex: 1; min-width: 0; }
.det-rowinfo .det-nombre { font-weight: 700; color: #1b1813; margin: 0 0 2px; }
.det-qty { color: #8a8478; font-weight: 600; font-size: .9em; }
.det-disline { font-size: .83rem; color: #6a645a; line-height: 1.4; }
.det-disline b { color: #0c5c4f; }
.det-nomaq { color: #a8a294; font-style: italic; }
.det-tot { flex: none; font-weight: 700; color: #0c5c4f; white-space: nowrap; }

/* Seguimiento del transporte (se rellena cuando el pedido lleva tracking) */
.det-envio { display: flex; align-items: center; gap: 12px; margin: 4px 0 16px; padding: 12px 16px; background: linear-gradient(135deg, #eef6ff 0%, #ffffff 100%); border: 1px solid #cfe1f5; border-radius: 12px; }
.det-envio i { color: #2563eb; font-size: 1.2rem; flex: none; }
.det-envio .de-info { flex: 1; min-width: 0; }
.det-envio .de-tit { font-weight: 700; color: #1b1813; font-size: .92rem; }
.det-envio .de-meta { font-size: .82rem; color: #6a645a; }
.det-envio .de-btn { flex: none; background: #2563eb; color: #fff; border: none; font-weight: 700; font-size: .84rem; padding: 8px 15px; border-radius: 9px; text-decoration: none; }
.det-envio .de-btn:hover { background: #1d4ed8; }

/* Lightbox del diseño */
.cu-lightbox { position: fixed; inset: 0; z-index: 9999; background: rgba(15,20,18,.87); display: none; align-items: center; justify-content: center; padding: 30px; }
.cu-lightbox.on { display: flex; }
.cu-lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.5); background: #fff; }
.cu-lb-close { position: absolute; top: 20px; right: 26px; width: 44px; height: 44px; border-radius: 50%; border: none; background: rgba(255,255,255,.16); color: #fff; font-size: 1.2rem; cursor: pointer; }
.cu-lb-close:hover { background: rgba(255,255,255,.28); }

/* El atributo hidden debe ganar al display:grid/flex de la rejilla y los labels
   (si no, "Razón social"/"Empresa"/envío se ven cuando deberían ocultarse). */
.cuenta-grid[hidden],
.cuenta-grid label[hidden],
.datos-form [hidden] { display: none !important; }

/* Formulario "Mis datos" (personal + facturación + envío) */
.datos-form { display: flex; flex-direction: column; gap: 22px; }
.datos-block {
    background: #fff;
    border: 1px solid #ece8de;
    border-radius: 16px;
    padding: 20px 22px;
    box-shadow: 0 8px 22px rgba(27,24,19,0.05);
}
.datos-h4 {
    margin: 0 0 14px;
    font-size: 1.05rem;
    color: #0c5c4f;
    font-weight: 700;
}
/* Aclaración corta bajo un titulillo del formulario de datos. */
.datos-hint {
    margin: -6px 0 14px;
    font-size: 0.85rem;
    line-height: 1.45;
    color: #6b6459;
}
.datos-check {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.92rem;
    color: #3d382f;
    margin-bottom: 12px;
    cursor: pointer;
}
.datos-check input { width: 17px; height: 17px; accent-color: #10b981; }
.datos-foot { display: flex; align-items: center; gap: 16px; }
.datos-foot .cuenta-msg.ok { color: #0c9c6a; font-weight: 600; }
.datos-foot .cuenta-msg.err { color: #c2334d; font-weight: 600; }

/* Rejilla de favoritos */
.fav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 16px;
}
.fav-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #ece8de;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(27,24,19,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.fav-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(16,185,129,0.16); }
.fav-thumb {
    display: block;
    height: 160px;
    background: #f5f3ec;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fav-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fav-noimg { color: #b3ada0; font-size: 0.85rem; }
.fav-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.fav-name { font-weight: 700; color: #1b1813; font-size: 0.98rem; line-height: 1.25; }
.fav-meta { font-size: 0.82rem; color: #8a8478; margin-bottom: 6px; }
.fav-actions { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.fav-open { flex: 1; text-align: center; padding: 9px 12px; font-size: 0.86rem; border-radius: 10px; }
.fav-del {
    flex: none;
    width: 36px; height: 36px;
    border-radius: 10px;
    border: 1px solid #e6cfce;
    background: #fdf1f2;
    color: #c2334d;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}
.fav-del:hover { background: #f7dcdf; }

/* Aviso de sesión en el formulario de contacto */
.contact-sesion {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.92rem;
    line-height: 1.4;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 18px;
}
.contact-sesion i { font-size: 1.1rem; }
.contact-sesion--on {
    background: #e7f7f0;
    border: 1px solid #bfe8d6;
    color: #0c5c4f;
}
.contact-sesion--guest {
    background: linear-gradient(135deg, #f0faf5 0%, #ffffff 100%);
    border: 1px solid #cdeadd;
    color: #3d382f;
}
.contact-sesion--guest i { color: #10b981; }
.contact-sesion--guest span { flex: 1; min-width: 190px; }
.cs-login-btn {
    flex: none;
    background: linear-gradient(135deg, #0c5c4f, #10b981);
    color: #fff;
    border: none;
    font-weight: 700;
    font-size: 0.86rem;
    padding: 9px 18px;
    border-radius: 10px;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cs-login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(16,185,129,0.32);
}
/* El contenido siempre por encima de los swatches */
body:not(.home-page) .gallery-section > *,
body:not(.home-page) .about-section > *,
body:not(.home-page) .tecnicas-page-section > *,
body:not(.home-page) .faq-section > *,
body:not(.home-page) .cuenta-section > *,
body:not(.home-page) .contact-section > *,
body:not(.home-page) .ciudades-index > *,
body:not(.home-page) .ciudad-hero > *,
body:not(.home-page) .ciudad-content > *,
body:not(.home-page) .blog-section > * {
    position: relative;
    z-index: 1;
}

/* ---- PREMIUM HEADER ---- */
.header {
    background: rgba(10, 10, 10, 0.85) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 4px 30px rgba(0,0,0,0.15);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.header.scrolled {
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(24px);
    box-shadow: 0 4px 40px rgba(0,0,0,0.25);
}

.nav {
    height: 76px;
}

.logo-img {
    height: 46px;
    transition: all 0.35s ease;
}

.logo-text {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #ffffff 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu a {
    font-size: 0.8125rem !important;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-menu a::after {
    height: 2px;
    background: linear-gradient(90deg, #10b981, #34d399) !important;
    border-radius: 1px;
}

/* Personaliza - Disabled State */
.nav-menu a.nav-personaliza.nav-personaliza-disabled {
    background: linear-gradient(135deg, #9ca3af, #6b7280) !important;
    color: #d1d5db !important;
    -webkit-text-fill-color: #d1d5db !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    opacity: 0.6;
    pointer-events: auto;
}

.nav-menu a.nav-personaliza.nav-personaliza-disabled:hover {
    background: linear-gradient(135deg, #9ca3af, #6b7280) !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Personaliza - Enabled State */
.nav-menu a.nav-personaliza.nav-personaliza-enabled {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: white !important;
    -webkit-text-fill-color: white !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3) !important;
}

.nav-menu a.nav-personaliza.nav-personaliza-enabled:hover {
    background: linear-gradient(135deg, #059669, #047857) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4) !important;
}

/* ---- PREMIUM HERO SECTION ---- */
.hero-section {
    /* Altura base (fallback). En la home, .home-fold hace que el héroe absorba
       el espacio sobrante para que héroe+features+cards entren en una pantalla. */
    min-height: 56vh;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(16,185,129,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(16,185,129,0.05) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

.hero-section .hero-overlay {
    /* Foco (spotlight) más oscuro donde va el texto + desenfoque del fondo recargado
       (la captura del configurador) para que el texto destaque sin ocultar la imagen. */
    background: radial-gradient(
        ellipse 82% 74% at 50% 44%,
        rgba(7,20,16,0.82) 0%,
        rgba(7,20,16,0.60) 60%,
        rgba(7,20,16,0.66) 100%
    ) !important;
    backdrop-filter: blur(3px) saturate(0.92);
    -webkit-backdrop-filter: blur(3px) saturate(0.92);
    z-index: 1;
}

.hero-section .hero-content {
    padding-top: 56px !important;
    max-width: 850px;
}

.hero-section .hero-content h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2.5rem, 5.6vw, 4rem) !important;
    font-weight: 600 !important;
    letter-spacing: 1.5px;
    margin-bottom: 14px !important;
    line-height: 1.08 !important;
    text-shadow: 0 2px 40px rgba(0,0,0,0.3);
    animation: heroFadeIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.hero-section .hero-subtitle {
    font-size: clamp(0.95rem, 1.8vw, 1.15rem) !important;
    font-weight: 300 !important;
    letter-spacing: 0.5px;
    line-height: 1.8 !important;
    opacity: 0.85;
    max-width: 650px;
    animation: heroFadeIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s both;
}

.btn-outline-white {
    background: transparent !important;
    border: 1.5px solid rgba(255,255,255,0.6) !important;
    color: #fff !important;
    padding: 14px 44px !important;
    font-size: 0.8rem !important;
    letter-spacing: 3px !important;
    font-weight: 600;
    border-radius: 0 !important;
    transition: all 0.4s ease;
    animation: heroFadeIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s both;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-outline-white::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #fff;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
}

.btn-outline-white:hover {
    color: #0a0a0a !important;
    border-color: #fff !important;
}

.btn-outline-white:hover::before {
    transform: translateY(0);
}

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

/* Hero floating particles */
.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.hero-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(16, 185, 129, 0.35);
    border-radius: 50%;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% {
        transform: translateY(-100vh) translateX(50px);
        opacity: 0;
    }
}

/* ---- PREMIUM TECHNIQUE CARDS (HOME) ---- */
.tecnicas-home-section {
    background: linear-gradient(180deg, #f7f8fa 0%, #ffffff 100%) !important;
    padding: 30px 0 50px !important;
    position: relative;
}

.tecnicas-home-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(16,185,129,0.3), transparent);
}

.tecnica-home-card {
    background: #ffffff !important;
    border: 1px solid rgba(0,0,0,0.06) !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05) !important;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    overflow: hidden !important;
    position: relative;
}

.tecnica-home-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #10b981, #34d399);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    z-index: 10;
}

.tecnica-home-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.12) !important;
    border-color: transparent !important;
}

.tecnica-home-card:hover::after {
    transform: scaleX(1);
}

.tecnica-home-card .tecnica-title-top,
.tecnica-home-card .tecnica-title-bottom {
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    color: #0a0a0a !important;
    padding: 16px 8px !important;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tecnica-home-image img {
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.tecnica-home-card:hover .tecnica-home-image img {
    transform: scale(1.08);
}

/* ---- PREMIUM TECNICAS PAGE ---- */
.tecnicas-page-section {
    padding: 120px 0 80px !important;
    background: linear-gradient(180deg, #f7f8fa 0%, #ffffff 50%, #f7f8fa 100%);
}

.tecnica-full-card {
    position: relative;
    background: #fff !important;
    border: 1px solid #e2dccb !important;
    border-radius: 24px !important;
    box-shadow: 0 20px 46px rgba(27,24,19,0.13) !important;
    transition: transform 0.4s cubic-bezier(0.2,0.7,0.3,1), box-shadow 0.4s ease !important;
    overflow: hidden;
}
.tecnica-full-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, #0c5c4f, #10b981, #34d399);
    z-index: 2;
}
/* La barra va siempre en el lado OPUESTO a la imagen.
   Impares: imagen a la izquierda -> barra a la derecha. */
.tecnica-full-card:nth-child(odd)::before {
    left: auto;
    right: 0;
}

.tecnica-full-card:hover {
    box-shadow: 0 36px 74px rgba(16,185,129,0.24) !important;
    transform: translateY(-8px) !important;
}

.tecnica-full-image img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tecnica-full-card:hover .tecnica-full-image img {
    transform: scale(1.05);
}

.tecnica-full-content h2 {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 1.8rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px;
}

.tecnica-full-icon {
    background: linear-gradient(135deg, #0c5c4f, #10b981) !important;
    border: none !important;
    box-shadow: 0 12px 26px rgba(16,185,129,0.4) !important;
}

.tecnica-full-icon i {
    color: #fff !important;
}

/* ---- PREMIUM CTA SECTION ---- */
.cta-section {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0d0d0d 100%) !important;
    position: relative;
    overflow: hidden;
    padding: 90px 0 !important;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(16,185,129,0.04) 0%, transparent 60%);
    animation: subtleRotate 30s linear infinite;
}

@keyframes subtleRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: clamp(1.8rem, 4vw, 2.8rem) !important;
    font-weight: 600;
    letter-spacing: 1px;
}

.cta-content p {
    font-weight: 300 !important;
    letter-spacing: 0.5px;
}

.cta-buttons .btn-primary {
    background: #10b981 !important;
    color: #ffffff !important;
    border-color: #10b981 !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px;
}

.cta-buttons .btn-primary:hover {
    background: #34d399 !important;
    border-color: #34d399 !important;
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(16,185,129,0.3);
}

/* ---- PREMIUM PAGE HEADERS ---- */
.page-header {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #111 100%) !important;
    position: relative;
    overflow: hidden;
}

.page-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(16,185,129,0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 50%, rgba(16,185,129,0.04) 0%, transparent 50%);
    pointer-events: none;
}

.page-header-content {
    position: relative;
    z-index: 2;
}

.page-header-content h1 {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-weight: 600 !important;
    letter-spacing: 1px;
}

.page-hero {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #111 100%) !important;
}

.page-hero-tag {
    background: rgba(16,185,129,0.15) !important;
    color: #10b981 !important;
    border-color: rgba(16,185,129,0.3) !important;
}

/* ---- PREMIUM ABOUT PAGE ---- */
.about-section {
    background: linear-gradient(180deg, #f7f8fa 0%, #ffffff 100%);
}

.about-intro-text h2 {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: clamp(2rem, 4vw, 2.8rem) !important;
}

.text-olive {
    color: #059669 !important;
}

.section-tag {
    color: #059669 !important;
    font-size: 0.75rem !important;
    letter-spacing: 3px !important;
    font-weight: 700 !important;
}

.about-feature {
    border-left-color: #10b981 !important;
    background: linear-gradient(135deg, #faf8f5 0%, #ffffff 100%) !important;
}

.about-values {
    position: relative;
    overflow: hidden;
    background: linear-gradient(152deg, #10513f 0%, #0b3a2c 52%, #082019 100%) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    box-shadow: 0 30px 66px rgba(8,40,30,0.4) !important;
    border-radius: 28px !important;
}
/* Brillo verde superior + textura de puntos: evita el verde plano sólido */
.about-values::before {
    content: '';
    position: absolute;
    top: -140px; right: -90px;
    width: 440px; height: 440px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(52,211,153,0.3), transparent 66%);
    pointer-events: none;
}
.about-values::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.06) 1.5px, transparent 1.7px);
    background-size: 22px 22px;
    opacity: 0.5;
    pointer-events: none;
}
.about-values > * {
    position: relative;
    z-index: 1;
}
.about-values .section-header h2,
.about-values .value-card h4 {
    color: #ffffff !important;
}
.about-values .section-header h2 .text-olive {
    color: #d9f7ea !important;
    -webkit-text-fill-color: #d9f7ea !important;
}
.about-values .value-card p {
    color: rgba(255,255,255,0.86) !important;
}

/* Frames de secciones (Nuestro Equipo, etc.) igual que "Nuestra Historia" (.about-feature) */
.about-section-content {
    border-left: 4px solid #10b981 !important;
    background: linear-gradient(135deg, #faf8f5 0%, #ffffff 100%) !important;
    border-radius: 0 var(--radius-md, 16px) var(--radius-md, 16px) 0 !important;
    box-shadow: 0 14px 34px rgba(16,120,90,0.10) !important;
}
.about-section-content h3 i {
    margin-right: 8px;
    font-size: 0.85rem;
    color: #10b981;
}
/* Mismo tamaño de título en todas las cards (Nuestra Historia, Valores, Equipo...) */
.about-feature h3,
.about-section-content h3 {
    font-size: 1.3rem !important;
}
/* Cuando el bloque va a la derecha, la raya vertical pasa a la derecha */
.about-section-item.reverse .about-section-content {
    border-left: none !important;
    border-right: 4px solid #10b981 !important;
    border-radius: var(--radius-md, 16px) 0 0 var(--radius-md, 16px) !important;
}

.value-icon {
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.35s ease;
}

.value-icon i {
    color: #059669 !important;
}

.value-card:hover .value-icon {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(16,185,129,0.2);
}

/* ---- PREMIUM GALLERY ---- */
.gallery-section {
    background: linear-gradient(180deg, #f3f4f6 0%, #f7f8fa 100%) !important;
}

.gallery-item {
    border-radius: 12px !important;
    transition: all 0.4s ease !important;
}

.gallery-item:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15) !important;
}

.gallery-tag {
    background: #10b981 !important;
    color: #ffffff !important;
    font-weight: 600;
}

.gallery-zoom:hover {
    background: #10b981 !important;
    color: #ffffff !important;
}

.gallery-modal-close:hover {
    color: #10b981 !important;
}

.filter-btn:hover,
.filter-btn.active {
    background: #0a0a0a !important;
    border-color: #0a0a0a !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* ---- PREMIUM CONTACT PAGE ---- */
.contact-section {
    background: linear-gradient(180deg, #f7f8fa 0%, #ffffff 100%);
}

.contact-form-wrapper h2 {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 2rem !important;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16,185,129,0.1) !important;
}

.contact-info-card {
    background: linear-gradient(135deg, #f7f8fa, #f0f1f3) !important;
    border: 1px solid rgba(0,0,0,0.04);
}

.contact-info-icon {
    background: linear-gradient(135deg, #0a0a0a, #2d2d2d) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* ---- PREMIUM PRODUCTS ---- */
.productos-section {
    background: linear-gradient(180deg, #f7f8fa 0%, #ffffff 50%, #f7f8fa 100%);
}

.producto-card {
    border: 1px solid rgba(0,0,0,0.04) !important;
    border-radius: 20px !important;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.producto-card::before {
    background: linear-gradient(90deg, #10b981, #34d399) !important;
}

.producto-card:hover {
    box-shadow: 0 20px 50px rgba(0,0,0,0.1) !important;
}

.producto-card-content h3 {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
}

/* ---- PREMIUM FOOTER ---- */
.footer {
    background: linear-gradient(180deg, #0a0a0a 0%, #060606 100%) !important;
    padding-top: 50px !important;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(16,185,129,0.4), transparent);
}

.footer-logo span,
.footer-logo-text {
    background: linear-gradient(135deg, #ffffff 0%, #10b981 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    color: transparent !important;
}

.footer-section h4 {
    font-size: 0.8rem !important;
    text-transform: uppercase;
    letter-spacing: 2px !important;
    margin-bottom: 25px !important;
    position: relative;
    padding-bottom: 12px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: #10b981;
}

.footer-links a:hover {
    color: #10b981 !important;
    padding-left: 8px;
}

.footer-contact-list i {
    color: #10b981 !important;
}

.footer-social a {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: #10b981 !important;
    border-color: #10b981 !important;
    color: #ffffff !important;
    transform: translateY(-3px);
}

.footer-brands-title {
    color: #10b981 !important;
    font-weight: 600 !important;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05) !important;
}

/* ---- PREMIUM BUTTONS ---- */
.btn-primary {
    position: relative;
    overflow: hidden;
    font-weight: 600 !important;
    letter-spacing: 1px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.btn-whatsapp:hover {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

/* ---- PREMIUM WHATSAPP FLOAT ---- */
.whatsapp-float {
    box-shadow: 0 4px 25px rgba(16, 185, 129, 0.35) !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.whatsapp-float:hover {
    transform: scale(1.12) translateY(-3px) !important;
    box-shadow: 0 8px 35px rgba(16, 185, 129, 0.5) !important;
}

/* ---- SCROLL REVEAL ANIMATIONS ---- */
.reveal-element {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-element.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-element.reveal-left {
    transform: translateX(-40px) translateY(0);
}
.reveal-element.reveal-left.revealed {
    transform: translateX(0) translateY(0);
}

.reveal-element.reveal-right {
    transform: translateX(40px) translateY(0);
}
.reveal-element.reveal-right.revealed {
    transform: translateX(0) translateY(0);
}

.reveal-element.reveal-scale {
    transform: scale(0.92);
}
.reveal-element.reveal-scale.revealed {
    transform: scale(1);
}

.reveal-delay-1 { transition-delay: 0.1s !important; }
.reveal-delay-2 { transition-delay: 0.2s !important; }
.reveal-delay-3 { transition-delay: 0.3s !important; }
.reveal-delay-4 { transition-delay: 0.4s !important; }
.reveal-delay-5 { transition-delay: 0.5s !important; }

/* ---- PREMIUM SECTION HEADERS ---- */
.section-header h2 {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
}

/* ---- PREMIUM COOKIE CONSENT ---- */
.cookie-consent {
    background: rgba(10,10,10,0.95) !important;
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(16,185,129,0.2);
}

.btn-cookie-accept {
    background: #10b981 !important;
    color: #ffffff !important;
    border-color: #10b981 !important;
    font-weight: 700 !important;
}

.btn-cookie-accept:hover {
    background: #34d399 !important;
    border-color: #34d399 !important;
}

/* ---- SIDEBAR PREMIUM ---- */
.sidebar-cta {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%) !important;
    border-radius: 20px !important;
    position: relative;
    overflow: hidden;
}

.sidebar-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #10b981, #34d399);
}

.sidebar-cta .btn-primary {
    background: #10b981 !important;
    border-color: #10b981 !important;
    color: #ffffff !important;
}

.sidebar-cta .btn-primary:hover {
    background: #34d399 !important;
    border-color: #34d399 !important;
}

.other-tecnicas-list a:hover {
    background: #0a0a0a !important;
    color: #fff !important;
}

.other-tecnicas-list a:hover i {
    color: #10b981 !important;
}

/* ---- TECNICA DETAIL PREMIUM ---- */
.tecnica-content-block {
    border: none !important;
    background: #ffffff;
    border-radius: 24px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05) !important;
    padding: 40px 45px !important;
    position: relative;
    overflow: hidden;
}

.tecnica-content-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #10b981, #34d399);
}

.tecnica-content-block h3 {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 1.8rem;
    color: #0a0a0a;
    margin-top: 35px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(16,185,129,0.2);
    padding-bottom: 10px;
    display: inline-block;
}

.tecnica-content-block h3:first-child {
    margin-top: 0;
}

.tecnica-content-block p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #495057;
    margin-bottom: 20px;
}

.tecnica-content-block p strong {
    color: #0a0a0a;
}

.tecnica-seccion-card {
    border: 1px solid rgba(0,0,0,0.05) !important;
    border-radius: 20px !important;
    transition: all 0.35s ease !important;
}

.tecnica-seccion-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.tecnica-seccion-card h3::before {
    background: #10b981 !important;
}

.tecnica-header-icon-small {
    background: rgba(16,185,129,0.15) !important;
    border-color: rgba(16,185,129,0.3) !important;
}

.tecnica-header-icon-small i {
    color: #10b981 !important;
}

.page-header-tecnica .tecnica-header-icon {
    border-color: rgba(16,185,129,0.4) !important;
    background: rgba(16,185,129,0.1) !important;
}

.tecnica-header-icon i {
    color: #10b981 !important;
}

/* ---- ERROR PAGE PREMIUM ---- */
.error-content h1 {
    color: #10b981 !important;
    font-family: 'Cormorant Garamond', Georgia, serif !important;
}

/* ---- HOME HEADER OVERRIDE ---- */
.home-page .header {
    background: rgba(10, 10, 10, 0.55) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.home-page .header.scrolled {
    background: rgba(10, 10, 10, 0.92) !important;
}

.home-page .header .logo-text {
    background: linear-gradient(135deg, #ffffff 0%, #10b981 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* ---- ACCENT LINE DIVIDER ---- */
.accent-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #10b981, #34d399);
    margin: 15px auto 25px;
}

/* ---- ALERT STYLES PREMIUM ---- */
.alert-success {
    background: #ecfdf5 !important;
    color: #065f46 !important;
    border: 1px solid #a7f3d0 !important;
    border-radius: 12px !important;
}

.alert-error {
    background: #fef2f2 !important;
    color: #991b1b !important;
    border: 1px solid #fecaca !important;
    border-radius: 12px !important;
}

/* ---- INFO BOX PREMIUM ---- */
.info-box {
    border-left-color: #10b981 !important;
}

/* ---- BREADCRUMB ---- */
.breadcrumb a:hover {
    color: #059669 !important;
}

/* ---- MOBILE RESPONSIVE ---- */
@media (max-width: 768px) {
    .nav-menu {
        background: #fff !important;
        box-shadow: -8px 0 40px rgba(0,0,0,0.15) !important;
    }

    .nav-menu a {
        -webkit-text-fill-color: initial !important;
        background: none !important;
        -webkit-background-clip: initial !important;
        background-clip: initial !important;
        color: #0a0a0a !important;
    }

    .nav-menu a.nav-personaliza,
    .nav-menu a.nav-personaliza.nav-personaliza-disabled {
        -webkit-text-fill-color: #d1d5db !important;
    }

    .nav-menu a.nav-personaliza.nav-personaliza-enabled {
        -webkit-text-fill-color: white !important;
    }

    .hero-section .hero-content h1 {
        font-size: clamp(2.2rem, 8vw, 3.5rem) !important;
    }

    .hero-section {
        height: 55vh !important;
        min-height: 400px !important;
    }

    .tecnicas-home-section {
        padding: 20px 0 35px !important;
    }

    .home-page .header .nav-menu.active {
        background: #ffffff !important;
    }

    .home-page .header .nav-menu.active a {
        -webkit-text-fill-color: initial !important;
        background: none !important;
        -webkit-background-clip: initial !important;
        background-clip: initial !important;
        color: #0a0a0a !important;
    }

    .cta-section {
        padding: 60px 0 !important;
    }

    .footer-section h4::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-section .hero-content h1 {
        font-size: 2rem !important;
    }

    .hero-section .hero-subtitle {
        font-size: 0.9rem !important;
    }
}

/* Filtro de precio y de stock (modal de filtros) */
.filtro-precio { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.filtro-precio input {
  width: 96px; padding: 8px 10px; border: 1px solid var(--linea, #ddd);
  border-radius: 8px; font: inherit; font-variant-numeric: tabular-nums;
}
.filtro-precio-ud { font-size: .82rem; opacity: .65; }
.filtro-check { display: flex; align-items: center; gap: 9px; margin-top: 16px; cursor: pointer; font-size: .93rem; }
.filtro-check input { width: 17px; height: 17px; accent-color: var(--acento, #0c5c4f); cursor: pointer; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
