/*
Theme Name: AutoSpa WordPress Theme
Theme URI: https://autospa.local
Author: Codex
Description: Tema one-page para AutoSpa adaptado desde el index.html original.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: autospa-theme
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;300;400;700;900&display=swap');

:root {
    --accent: #52acfa;
    --button-hover: #419ae6;
    --nav-bg: rgba(0, 0, 0, 0.85);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #000;
    color: #fff;
    margin: 0;
    overflow-x: hidden;
}

.glass-nav {
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.nav-link {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #fff;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--accent);
}

.btn-original {
    position: relative;
    padding: 14px 32px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    color: #fff;
    overflow: hidden;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    z-index: 1;
    text-align: center;
    text-decoration: none;
    isolation: isolate;
    transform: translateZ(0);
    will-change: transform;
}

.btn-original::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    transform: translateX(-105%);
    transition: transform 0.4s cubic-bezier(0.7, 0, 0.3, 1);
    z-index: -1;
}

.btn-original:hover::before {
    transform: translateX(0);
}

.btn-original:hover {
    color: #fff;
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(82, 172, 250, 0.18);
}

.btn-original:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.hero-container {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    padding-left: 6%;
    padding-top: 80px;
}

#hero-media {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    z-index: -1;
    object-fit: cover;
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 40%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

.content {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 800px;
}

.main-title {
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    margin-bottom: 0.5rem;
    line-height: 1;
    text-transform: uppercase;
    color: #ffffff;
}

.text-spa {
    color: var(--accent);
}

.sub-title {
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.02em;
    font-size: clamp(0.7rem, 1.5vw, 0.9rem);
    margin-bottom: 2.5rem;
    display: block;
    opacity: 0.85;
    max-width: 500px;
    line-height: 1.5;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
    display: block;
}

.plan-card {
    background: #050505;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.plan-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    background: #080808;
}

.plan-card.premium-highlight {
    border-color: rgba(82, 172, 250, 0.4);
    position: relative;
}

.plan-card.premium-highlight::before {
    content: 'MAS ELEGIDO';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    padding: 4px 12px;
    letter-spacing: 0.2em;
    border-radius: 20px;
}

.status-box {
    background: #080808;
    border: 1px solid #151515;
    padding: 60px 30px;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    border-radius: 4px;
}

.input-code {
    background: transparent;
    border: none;
    border-bottom: 2px solid #1a1a1a;
    width: 100%;
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    color: #fff;
    margin-bottom: 30px;
    outline: none;
    transition: border-color 0.4s;
    letter-spacing: 0.2em;
}

.input-code:focus {
    border-color: var(--accent);
}

.badge {
    display: inline-block;
    padding: 8px 20px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 20px;
    background: var(--accent);
    color: #fff;
}

#loader {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease;
}

.progress-container {
    width: 180px;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    margin-top: 40px;
    border-radius: 2px;
}

.progress-bar {
    position: absolute;
    height: 100%;
    width: 0%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent);
    transition: width 2.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

#mobile-menu {
    transition: transform 0.4s cubic-bezier(0.7, 0, 0.3, 1);
    transform: translateX(100%);
}

#mobile-menu.open {
    transform: translateX(0);
}

.screen-reader-text {
    position: absolute;
    clip: rect(1px, 1px, 1px, 1px);
    padding: 0;
    border: 0;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

@media (max-width: 768px) {
    .hero-container {
        padding-left: 0;
        justify-content: center;
    }

    .content {
        text-align: center;
        padding: 0 20px;
    }

    .sub-title {
        margin-left: auto;
        margin-right: auto;
    }

    .overlay {
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.8) 100%);
    }
}
