/*
Theme Name: AutoSpa Luxury Detailing
Theme URI:  https://autospa.local
Author:     Hule
Author URI: https://hulepro.com
Description: Tema one-page de AutoSpa · 3 pantallas · nueva identidad (grafito + lima + verde GNS). Pensado para usarse junto al plugin "AutoSpa Config" que gestiona las imágenes del hero y de los pasos desde el admin.
Version:    2.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: autospa-theme
*/

/* ============================================================
   SISTEMA DE DISEÑO
   Grafito + Lima + Verde GNS + Tipografía condensada itálica
   ============================================================ */
:root {
    --grafito:   #0f1011;
    --grafito-2: #18191b;
    --grafito-3: #1f2022;
    --lima:      #dcff48;
    --teal:      #0c4651;
    --gns-verde: #26282b;
    --blanco:    #ffffff;
    --gris-claro:#dddddd;

    --font-head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    --font-body: 'Open Sans', system-ui, sans-serif;

    --nav-h: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--grafito);
    color: var(--blanco);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
img { max-width: 100%; height: auto; display: block; }

/* ============================================================
   LOGO
   ============================================================ */
.logo-link {
    display: inline-flex; align-items: center; gap: 9px;
    text-decoration: none; color: var(--blanco);
}
.logo-mark { width: 32px; height: 32px; }
.logo-word {
    font-family: var(--font-head);
    font-style: italic; font-weight: 900;
    font-size: 20px; letter-spacing: -0.01em; line-height: 1;
}
.logo-spa { color: var(--lima); }

/* ============================================================
   PRELOADER
   ============================================================ */
#loader {
    position: fixed; inset: 0;
    background: var(--grafito); z-index: 9999;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    transition: opacity 0.5s ease;
}
#loader .loader-mark { width: 70px; height: 70px; }
#loader .progress-container {
    width: 140px; height: 2px;
    background: rgba(255, 255, 255, 0.06);
    margin-top: 30px; overflow: hidden; border-radius: 2px;
}
#loader .progress-bar {
    height: 100%; width: 0%;
    background: var(--lima);
    box-shadow: 0 0 10px var(--lima);
    transition: width 2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
#loader .loader-text {
    font-size: 9px; letter-spacing: 0.5em;
    text-transform: uppercase; color: rgba(255, 255, 255, 0.4);
    margin-top: 20px; font-weight: 700;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100; height: var(--nav-h);
    background: rgba(15, 16, 17, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.nav-inner {
    max-width: 1240px; margin: 0 auto;
    padding: 0 24px; height: 100%;
    display: flex; justify-content: space-between; align-items: center;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-link {
    color: var(--blanco); text-decoration: none;
    font-size: 10px; font-weight: 700;
    letter-spacing: 0.22em; text-transform: uppercase;
    transition: color 0.25s ease;
}
.nav-link:hover { color: var(--lima); }

.nav-cta {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 16px;
    background: var(--lima); color: var(--grafito);
    border-radius: 999px; text-decoration: none;
    font-size: 10px; font-weight: 800;
    letter-spacing: 0.18em; text-transform: uppercase;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(220, 255, 72, 0.3);
}

.menu-btn {
    display: none; background: none; border: none;
    color: var(--blanco); cursor: pointer; padding: 4px;
}

#mobile-menu {
    position: fixed; inset: 0;
    background: rgba(15, 16, 17, 0.97);
    backdrop-filter: blur(20px);
    z-index: 90;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    gap: 24px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.7, 0, 0.3, 1);
}
#mobile-menu.open { transform: translateX(0); }
#mobile-menu a {
    color: var(--blanco); text-decoration: none;
    font-family: var(--font-head);
    font-style: italic; font-weight: 800; font-size: 28px;
    text-transform: uppercase;
}
#mobile-menu a:hover { color: var(--lima); }
.close-menu-btn {
    position: absolute; top: 20px; right: 20px;
    background: none; border: none; color: var(--blanco); cursor: pointer;
}

@media (max-width: 860px) {
    .nav-links { display: none; }
    .nav-cta { display: none; }
    .menu-btn { display: block; }
}

/* ============================================================
   PANTALLA 1 — HERO
   ============================================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex; align-items: center;
    overflow: hidden; isolation: isolate;
}
.hero-bg {
    position: absolute; inset: 0; z-index: -2;
    clip-path: inset(0 100% 0 0);
    animation: storyOpen 1.4s cubic-bezier(0.65, 0, 0.35, 1) 0.4s forwards;
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center center; }
@keyframes storyOpen { to { clip-path: inset(0 0 0 0); } }

/* Barra de progreso estilo Instagram Stories sobre el hero */
.story-progress {
    position: absolute;
    top: calc(var(--nav-h) + 12px);
    left: 50%;
    transform: translateX(-50%);
    width: min(180px, 28%);
    height: 3px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    overflow: hidden;
    z-index: 2;
    opacity: 0;
    animation: fadeIn 0.4s 0.2s forwards;
}
.story-progress::after {
    content: '';
    display: block;
    height: 100%;
    width: 0;
    background: var(--blanco);
    animation: progressFill 1.4s cubic-bezier(0.65, 0, 0.35, 1) 0.4s forwards;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}
@keyframes progressFill { to { width: 100%; } }
@keyframes fadeIn { to { opacity: 1; } }

.hero-overlay {
    position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(ellipse at center 40%, transparent 0%, transparent 35%, rgba(15, 16, 17, 0.75) 70%, rgba(15, 16, 17, 0.95) 100%),
        linear-gradient(180deg, rgba(15, 16, 17, 0.6) 0%, rgba(15, 16, 17, 0.3) 30%, rgba(15, 16, 17, 0.85) 70%, rgba(15, 16, 17, 0.98) 100%);
}
.hero-inner {
    max-width: 1240px; margin: 0 auto;
    padding: 0 24px; width: 100%;
    display: flex; flex-direction: column; justify-content: center;
    height: 100%; padding-top: var(--nav-h);
}
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 10px; font-weight: 700;
    letter-spacing: 0.3em; text-transform: uppercase;
    color: var(--lima); margin-bottom: 16px;
    opacity: 0; animation: fadeUp 0.8s 0.2s forwards;
}
.hero-eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--lima); }
.hero-title {
    display: block;
    width: min(100%, 560px);
    height: auto;
    margin-bottom: 20px;
    opacity: 0; animation: fadeUp 0.8s 0.4s forwards;
}
.hero-title img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}
.hero-tagline {
    font-family: var(--font-head);
    font-style: italic; font-weight: 700;
    font-size: clamp(18px, 2.2vw, 28px);
    line-height: 1.15; color: var(--blanco);
    max-width: 580px; margin-bottom: 28px;
    opacity: 0; animation: fadeUp 0.8s 0.6s forwards;
}
.hero-tagline .lima { color: var(--lima); }
.hero-actions {
    display: flex; flex-wrap: wrap; gap: 12px;
    opacity: 0; animation: fadeUp 0.8s 0.8s forwards;
}
.hero-cta {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 28px;
    background: var(--lima); color: var(--grafito);
    border-radius: 999px;
    text-decoration: none;
    font-size: 11px; font-weight: 800;
    letter-spacing: 0.22em; text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 10px 24px rgba(220, 255, 72, 0.3);
}
.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(220, 255, 72, 0.4);
}
.hero-cta-ghost {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--blanco);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    text-decoration: none;
    font-size: 11px; font-weight: 800;
    letter-spacing: 0.22em; text-transform: uppercase;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}
.hero-cta-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   PANTALLA 2 — PRESENTACIÓN + 3 PASOS
   ============================================================ */
.screen-2 {
    background: var(--grafito);
    padding: 56px 0;
    position: relative;
}
.screen-2-inner {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
    align-items: center;
}
.pres-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 10px; font-weight: 700;
    letter-spacing: 0.4em; text-transform: uppercase;
    color: var(--lima); margin-bottom: 14px;
}
.pres-eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--lima); }
.pres-title {
    font-family: var(--font-head);
    font-style: italic; font-weight: 900;
    font-size: clamp(36px, 4.5vw, 64px);
    line-height: 0.95; letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--blanco); margin-bottom: 18px;
}
.pres-title .lima { color: var(--lima); }
.pres-title .question { color: var(--gris-claro); }
.pres-body p {
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    margin-bottom: 12px;
}
.pres-body p strong { color: var(--lima); font-weight: 600; }

.pasos-compact {
    display: flex; flex-direction: column; gap: 14px;
}
.paso-row {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 18px; align-items: center;
    padding: 16px;
    background: var(--grafito-2);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s ease;
}
.paso-row:hover {
    border-color: rgba(220, 255, 72, 0.3);
    background: var(--grafito-3);
    transform: translateX(4px);
}
.paso-row .img-mini {
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}
.paso-row.revealed .img-mini { clip-path: inset(0 0 0 0); }
.paso-row .img-mini img { width: 100%; height: 100%; object-fit: cover; }
.paso-row .num {
    position: absolute;
    top: 6px; left: 6px;
    background: var(--lima); color: var(--grafito);
    width: 24px; height: 24px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-head);
    font-style: italic; font-weight: 900;
    font-size: 12px; line-height: 1;
}
.paso-tag {
    font-size: 9px; font-weight: 700;
    letter-spacing: 0.3em; text-transform: uppercase;
    color: var(--lima); margin-bottom: 4px;
    display: block;
}
.paso-row h3 {
    font-family: var(--font-head);
    font-style: italic; font-weight: 900;
    font-size: 22px; line-height: 1;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.paso-row p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4; font-weight: 300;
}
.paso-row.video .img-mini {
    background: var(--grafito);
    display: flex; align-items: center; justify-content: center;
}
.paso-row.video .img-mini img {
    object-fit: contain;
    padding: 10px;
    filter: drop-shadow(0 8px 16px rgba(220, 255, 72, 0.2));
}
.paso-row.video .play-mini {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(15, 16, 17, 0.4);
}
.paso-row.video .play-mini svg {
    color: var(--lima);
    background: rgba(220, 255, 72, 0.15);
    border-radius: 50%; padding: 6px;
    backdrop-filter: blur(4px);
}

@media (max-width: 860px) {
    .screen-2-inner { grid-template-columns: 1fr; gap: 36px; }
}

/* ============================================================
   PANTALLA 3 — CONTACTO (FONDO GNS VERDE)
   ============================================================ */
.screen-3 {
    background: var(--gns-verde);
    position: relative;
    overflow: hidden;
}
.screen-3::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(220, 255, 72, 0.4), transparent);
}
.screen-3::after {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at top right, rgba(220, 255, 72, 0.08), transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(0, 0, 0, 0.3), transparent 60%);
    pointer-events: none;
}
.contacto-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    min-height: calc(100vh - var(--nav-h));
    max-height: 800px;
    position: relative;
    z-index: 1;
}
.contacto-info {
    padding: 56px 48px;
    display: flex; flex-direction: column; justify-content: center;
}
.contacto-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 10px; font-weight: 700;
    letter-spacing: 0.4em; text-transform: uppercase;
    color: var(--lima); margin-bottom: 16px;
}
.contacto-eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--lima); }
.contacto-title {
    font-family: var(--font-head);
    font-style: italic; font-weight: 900;
    font-size: clamp(32px, 4.5vw, 60px);
    line-height: 0.92; letter-spacing: -0.01em;
    text-transform: uppercase;
    margin-bottom: 28px;
    color: var(--blanco);
}
.contacto-title .lima { color: var(--lima); }

.contacto-blocks { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.contacto-block {
    display: flex; align-items: center; gap: 16px;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(220, 255, 72, 0.15);
    border-radius: 6px;
    backdrop-filter: blur(8px);
    text-decoration: none; color: var(--blanco);
    transition: all 0.25s ease;
}
.contacto-block:hover {
    border-color: rgba(220, 255, 72, 0.4);
    transform: translateX(3px);
}
.cb-icon {
    width: 40px; height: 40px;
    background: var(--lima); color: var(--grafito);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.cb-lbl {
    font-size: 9px; font-weight: 700;
    letter-spacing: 0.3em; text-transform: uppercase;
    color: var(--lima); opacity: 0.85;
    margin-bottom: 2px;
}
.cb-val {
    font-family: var(--font-head);
    font-style: italic; font-weight: 800;
    font-size: 18px; line-height: 1.1;
    text-transform: uppercase;
}
.cb-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    text-transform: none;
    margin-top: 2px;
}

.contacto-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-wa {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 22px;
    background: var(--lima); color: var(--grafito);
    border-radius: 999px;
    text-decoration: none;
    font-size: 10px; font-weight: 800;
    letter-spacing: 0.22em; text-transform: uppercase;
    transition: all 0.3s ease;
    border: 1px solid var(--lima);
}
.btn-wa:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(220, 255, 72, 0.3);
}
.btn-ig {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 22px;
    background: transparent;
    color: var(--blanco);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    text-decoration: none;
    font-size: 10px; font-weight: 800;
    letter-spacing: 0.22em; text-transform: uppercase;
    transition: all 0.3s ease;
}
.btn-ig:hover {
    background: var(--blanco); color: var(--gns-verde);
    border-color: var(--blanco);
    transform: translateY(-2px);
}

.contacto-img {
    position: relative;
    overflow: hidden;
}
.contacto-img img { width: 100%; height: 100%; object-fit: cover; }
.contacto-img::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(90deg, var(--gns-verde) 0%, transparent 15%);
}

@media (max-width: 860px) {
    .contacto-grid { grid-template-columns: 1fr; min-height: auto; }
    .contacto-info { padding: 40px 24px; }
    .contacto-img { min-height: 280px; }
    .contacto-img::after {
        background: linear-gradient(180deg, transparent 50%, var(--gns-verde) 100%);
    }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--grafito);
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 600;
}
.footer-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
    cursor: pointer;
}
.footer-link:hover { color: var(--lima); }

/* ============================================================
   WHATSAPP FLOTANTE
   ============================================================ */
.wa-float {
    position: fixed;
    bottom: 22px; right: 22px;
    width: 58px; height: 58px;
    background: #25D366;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    z-index: 95;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    text-decoration: none;
    animation: waPulse 2s infinite;
    transition: transform 0.3s ease;
}
.wa-float:hover { transform: scale(1.1); animation: none; }
.wa-float svg { width: 26px; height: 26px; fill: white; }
.wa-tooltip {
    position: absolute; right: 70px;
    background: white; color: var(--grafito);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px; font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(8px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.wa-tooltip::after {
    content: '';
    position: absolute;
    right: -6px; top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: white;
}
.wa-float:hover .wa-tooltip { opacity: 1; transform: translateX(0); }
@keyframes waPulse {
    0%   { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70%  { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45), 0 0 0 14px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0); }
}
@media (max-width: 768px) {
    .wa-float { bottom: 16px; right: 16px; width: 52px; height: 52px; }
    .wa-tooltip { display: none; }
}

/* ============================================================
   MOBILE HEIGHT FIX
   ============================================================ */
@media (max-width: 600px) {
    .hero { min-height: 100vh; min-height: 100dvh; }
    .screen-2 { padding: 70px 0; }
}