/* ==========================================
   styles.css — TEMA OSCURO PREMIUM POCLINIC
   ========================================== */
:root {
    --bg-base: #121316;
    --bg-card: #1B1D24;
    --bg-hover: #2A2D35;
    --gold: #B88E28;
    --gold-hover: #98731D;
    --text-main: #FFFFFF;
    --text-muted: #A0AAB2;
    --border: #2A2D35;
    --width: 1240px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    margin: 0;
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

img {
    display: block;
    max-width: 100%;
}

h1,
h2,
h3,
p {
    margin: 0;
}

h1,
h2,
h3 {
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--text-main);
}

h1 {
    font-size: clamp(38px, 4.5vw, 64px);
    font-weight: 800;
}

h2 {
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 700;
}

h3 {
    font-size: 22px;
    font-weight: 600;
}

p {
    color: var(--text-muted);
}

.text-gold {
    color: var(--gold);
}

.wrap {
    width: min(var(--width), calc(100% - 60px));
    margin-inline: auto;
}

.skip {
    position: absolute;
    top: -80px;
    left: 20px;
    z-index: 50;
    background: var(--gold);
    color: #000;
    padding: 12px;
}

.skip:focus {
    top: 8px;
}

/* --- HEADER OSCURO --- */
.header {
    position: sticky;
    top: 0;
    background: rgba(18, 19, 22, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    min-height: 85px;
    gap: 35px;
}

.logo img {
    width: 200px;
    height: auto;
    filter: brightness(0) invert(1);
}

.nav {
    display: flex;
    gap: 32px;
    margin-inline: auto;
    align-items: center;
}

.nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    padding: 12px 0;
    position: relative;
}

.nav a.active,
.nav a:hover {
    color: var(--text-main);
}

.nav a.active:after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gold);
}

.menu {
    display: none;
    background: none;
    border: 0;
    color: var(--text-main);
    padding: 12px;
    font-size: 24px;
}

/* --- BOTONES --- */
.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    min-height: 48px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.button.gold {
    background: var(--gold);
    color: #000;
    border: none;
}

.button.gold:hover {
    background: var(--gold-hover);
    transform: translateY(-2px);
}

.button.outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border);
}

.button.outline:hover {
    background: var(--bg-hover);
    border-color: var(--text-muted);
}

.eyebrow {
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.15em;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(184, 142, 40, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(184, 142, 40, 0.2);
}

.eyebrow::before {
    content: "";
    display: block;
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
}

/* --- HERO INICIO --- */
.hero-dark {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    border-radius: 0 0 24px 24px;
    overflow: hidden;
    margin-bottom: 60px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.5;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: linear-gradient(90deg, #121316 10%, rgba(18, 19, 22, 0.7) 50%, rgba(18, 19, 22, 0.1) 100%);
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 650px;
}

.hero-content p {
    font-size: 18px;
    line-height: 1.6;
    margin: 24px 0 32px 0;
    color: #D1D5DB;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* --- UTILIDADES DE DISEÑO --- */
.three-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.dark-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.dark-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
}

/* --- FOOTER OSCURO --- */
.footer {
    background: var(--bg-card);
    padding-block: 40px;
    border-top: 1px solid var(--border);
    margin-top: 60px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
}

.footer-logo span {
    color: var(--gold);
}

.footer-links {
    display: flex;
    gap: 24px;
    font-size: 13px;
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--gold);
}

/* --- WHATSAPP FLOTANTE --- */
.floating-wa {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    z-index: 90;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
    transition: transform 0.2s;
    border: none;
}

.floating-wa:hover {
    transform: scale(1.1);
}

/* --- FORMULARIOS --- */
.field-dark {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.field-dark label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.field-dark input,
.field-dark textarea {
    background: #0B0C0E;
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 14px;
    border-radius: 8px;
    font-size: 15px;
}

.field-dark input:focus,
.field-dark textarea:focus {
    outline: none;
    border-color: var(--gold);
}

/* --- MAPA INTERACTIVO (LEAFLET) --- */
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
    background-color: var(--bg-card) !important;
    color: var(--text-main) !important;
    border: 1px solid var(--border);
}

.leaflet-popup-content {
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    font-size: 14px;
    margin: 14px 18px;
}

.leaflet-popup-content b {
    color: var(--gold);
    font-size: 15px;
    display: block;
    margin-bottom: 4px;
}

.leaflet-container a.leaflet-popup-close-button {
    color: var(--text-main) !important;
}

/* --- OCULTAR SCROLLBAR CARRUSEL --- */
.hide-scrollbar {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

/* --- RESPONSIVE --- */
@media (max-width: 960px) {
    .header-inner {
        min-height: 70px;
    }

    .header-action {
        display: none;
    }

    .menu {
        display: block;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-card);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--border);
    }

    .nav a {
        width: 100%;
        padding: 10px 0;
        border-bottom: 1px solid var(--border);
    }

    .nav a.active:after {
        display: none;
    }

    .nav a.active {
        color: var(--gold);
    }

    .hero-overlay {
        background: linear-gradient(180deg, rgba(18, 19, 22, 0.4) 0%, #121316 80%);
    }

    .three-cols {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {

    .three-cols,
    .two-cols {
        grid-template-columns: 1fr;
    }

    .hero-dark {
        min-height: 80vh;
        align-items: flex-end;
        padding-bottom: 40px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .button {
        width: 100%;
    }
}

.brillo-barrido {
    position: relative;
    display: block;
    overflow: hidden;
    /* Evita que la luz se salga del área del logo */
}

/* El rayo de luz blanca/dorada */
.brillo-barrido::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    /* Inicia fuera de la pantalla a la izquierda */
    width: 60%;
    /* Grosor del rayo de luz */
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    /* Inclinación del rayo */
    z-index: 10;
    transition: left 0.7s ease-in-out;
    /* Velocidad del barrido */
}

/* Al pasar el cursor, el rayo cruza hacia la derecha */
.brillo-barrido:hover::after {
    left: 150%;
}

/* Ocultar barra de scroll en el carrusel de podólogas (Definitivo) */
#carouselTrack::-webkit-scrollbar {
    display: none !important;
}
#carouselTrack {
    -ms-overflow-style: none !important;  /* Para IE y Edge */
    scrollbar-width: none !important;     /* Para Firefox */
}

@keyframes slowZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}