/* ============================================
   KOA — Centro de Estética & SPA
   Coming Soon Landing Page
   ============================================ */

/* === Custom Fonts === */
@font-face {
    font-family: 'Montserrat';
    src: url('assets/fonts/Montserrat-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* === Variables de color (exactas del cliente) === */
:root {
    --brown:        #8d7867;  /* logo, textos, barra de progreso */
    --bg-light:     #dbd1c7;  /* fondo sección superior */
    --section-dark: #685649;  /* fondo sección inferior */
    --text-light:   #dbd1c7;  /* texto sobre fondo oscuro */

    --font-display: 'Montserrat', 'Helvetica Neue', sans-serif;
    --font-serif:   Georgia, serif;
    --font-sans:    'Montserrat', 'Helvetica Neue', sans-serif;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* === Reset === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-light);
    color: var(--brown);
    min-height: 100vh;
    overflow-x: hidden;
    cursor: none;
}

a { color: inherit; text-decoration: none; }

/* === Cursor personalizado === */
.cursor-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    background: radial-gradient(
        circle,
        rgba(141, 120, 103, 0.15) 0%,
        rgba(141, 120, 103, 0.06) 25%,
        transparent 60%
    );
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    opacity: 0;
}
.cursor-glow::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(141, 120, 103, 0.65);
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(141,120,103,0.35), 0 0 24px rgba(141,120,103,0.15);
}
body:hover .cursor-glow { opacity: 1; }

/* === Canvas fondo (blobs suaves) === */
#bgCanvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    opacity: 0.3;
    pointer-events: none;
}

/* === Partículas flotantes === */
.particles {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}
.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat linear infinite;
}
@keyframes particleFloat {
    0%   { opacity: 0; transform: translateY(100vh) scale(0); }
    10%  { opacity: 0.4; }
    90%  { opacity: 0.4; }
    100% { opacity: 0; transform: translateY(-10vh) scale(1); }
}

.grain-overlay { display: none; }

/* =============================================
   LAYOUT
   ============================================= */
.main-container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Sección superior: fondo claro ── */
.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 72px 32px 64px;
    gap: 48px;
    background: var(--bg-light);
}

/* ── Ocultar elementos no usados en este diseño ── */
.top-bar,
.brand-decorator,
.brand-tagline,
.features-preview,
.footer-decoration { display: none; }

/* === Logo + "IS COMING." === */
.brand-container {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInUp 1s var(--ease-out-expo) 0.2s both;
    width: 100%;
}

/*
  El PNG es 1300×1300px pero el contenido real ocupa:
    - verticalmente: 37.6% top → 62.5% bottom  (franja central del 25%)
    - horizontalmente: 12.8% left → 91.2% right
  Usamos position:relative en .brand-logo y position:absolute en .is-coming
  para clavar el texto exactamente al borde inferior-derecho del contenido visible.
*/
.brand-logo {
    position: relative;
    display: inline-block; /* se ajusta al tamaño de la imagen */
}

.logo-main {
    height: clamp(160px, 34vw, 320px);
    width: auto;
    display: block;
    object-fit: contain;
}

.is-coming {
    position: absolute;
    bottom: 30%;
    /* Anclado desde la izquierda al borde derecho del contenido del PNG (91.2%) */
    left: 91.2%;
    transform: translateX(-100%); /* el texto crece hacia la izquierda desde ese punto */

    font-family: var(--font-sans);
    font-size: clamp(0.5rem, 1vw, 0.72rem);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brown);
    white-space: nowrap;
    line-height: 1;
    padding-bottom: 3px;
    border-bottom: 1.5px solid var(--brown);

    /* Estado inicial: recortado de derecha → revela de izquierda a derecha */
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.8s var(--ease-out-expo),
                opacity 0.01s ease;
}

.brand-logo.shifted .is-coming {
    opacity: 1;
    clip-path: inset(0 0% 0 0);
}

/* === Mensaje principal === */
.message-container {
    animation: fadeInUp 1s var(--ease-out-expo) 0.45s both;
}

.message-main {
    font-family: var(--font-sans);
    font-size: clamp(1rem, 2.8vw, 1.65rem);
    font-weight: 500;
    line-height: 1.3;
    color: var(--brown);
    letter-spacing: 0;
}

.message-main .message-regular {
    font-weight: 400;
    display: block;
    line-height: 1.3;
}

/* === Barra de progreso minimalista === */
.progress-section {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: fadeInUp 1s var(--ease-out-expo) 0.7s both;
}

.progress-info {
    display: none; /* oculto — el número va centrado debajo de la barra */
}

.progress-bar-track {
    width: 100%;
    height: 6px;
    background: rgba(141, 120, 103, 0.22);
    border-radius: 999px;
    overflow: visible;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--brown);
    border-radius: 999px;
    transition: width 2s var(--ease-out-expo);
    position: relative;
}

.progress-caption {
    text-align: center;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--brown);
    opacity: 0.7;
}

/* =============================================
   SECCIÓN INFERIOR — oscura
   ============================================= */
.cta-section {
    background: var(--section-dark);
    padding: 60px 32px 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

.cta-text {
    font-family: var(--font-sans);
    font-size: clamp(0.7rem, 1.6vw, 0.95rem);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
    text-align: center;
    line-height: 1.7;
}

.subscribe-form {
    width: 100%;
    max-width: 340px;
}

.input-wrapper {
    display: flex;
    background: rgba(219, 209, 199, 0.12);
    border: 1px solid rgba(219, 209, 199, 0.28);
    border-radius: 100px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}
.input-wrapper:focus-within {
    border-color: rgba(219, 209, 199, 0.55);
}

.email-input {
    flex: 1;
    padding: 14px 20px;
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 300;
    color: var(--text-light);
    letter-spacing: 0.04em;
}
.email-input::placeholder { color: rgba(219, 209, 199, 0.45); }

.submit-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 24px;
    background: transparent;
    border: none;
    border-left: 1px solid rgba(219, 209, 199, 0.28);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--text-light);
    cursor: none;
    white-space: nowrap;
    transition: background 0.3s ease;
}
.submit-btn:hover { background: rgba(219, 209, 199, 0.08); }

.btn-icon { transition: transform 0.3s ease; }
.submit-btn:hover .btn-icon { transform: translateX(3px); }

.subscribe-note {
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: rgba(219, 209, 199, 0.7);
    text-align: center;
}
.subscribe-note .note-light {
    font-weight: 300;
}
.subscribe-note.success { color: var(--text-light); }

/* === Footer === */
.footer {
    background: var(--section-dark);
    border-top: 1px solid rgba(219, 209, 199, 0.1);
    padding: 24px 32px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.social-links { display: flex; gap: 14px; }

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border: 1px solid rgba(219, 209, 199, 0.35);
    border-radius: 50%;
    color: rgba(219, 209, 199, 0.65);
    transition: all 0.3s ease;
    cursor: none;
}
.social-link:hover {
    border-color: rgba(219, 209, 199, 0.7);
    color: var(--text-light);
    transform: translateY(-2px);
}
.social-link svg { width: 16px; height: 16px; }

.footer-text {
    font-family: var(--font-sans);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(219, 209, 199, 0.45);
}

.footer-dev {
    font-family: var(--font-sans);
    font-size: 0.55rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(219, 209, 199, 0.3);
}

.footer-dev a {
    color: rgba(219, 209, 199, 0.5);
    text-decoration: none;
    border-bottom: 1px solid rgba(219, 209, 199, 0.2);
    transition: color 0.3s ease, border-color 0.3s ease;
}
.footer-dev a:hover {
    color: var(--text-light);
    border-color: rgba(219, 209, 199, 0.5);
}

/* === Animaciones === */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Isotipo decorativo — solo visible en mobile */
.isotipo-bg { display: none; }

/* === Responsive — Mobile === */
@media (max-width: 600px) {
    body { cursor: auto; }
    .hero {
        padding: 20px 20px 44px;
        gap: 36px;
        min-height: 80vh;
        position: relative;
        overflow: hidden; /* contiene el isotipo absoluto */
    }
    .logo-main { height: clamp(80px, 40vw, 160px); }
    .is-coming { font-size: 0.42rem; letter-spacing: 0.14em; }
    .cta-section { padding: 44px 20px 52px; }
    .input-wrapper { flex-direction: row; border-radius: 100px; }
    .email-input { text-align: left; padding: 12px 16px; font-size: 0.75rem; }
    .submit-btn { justify-content: center; border-left: 1px solid rgba(219,209,199,0.28); border-radius: 0; padding: 12px 16px; font-size: 0.75rem; }

    /* Isotipo blanco como imagen absoluta — control total */
    .isotipo-bg {
        display: block;
        position: absolute;
        width: 250%;          /* tamaño */
        top: -265px;            /* vertical en px: positivo = baja, negativo = sube */
        left: -100%;           /* horizontal */
        opacity: 1;
        pointer-events: none;
        z-index: 0;
    }

    /* El contenido queda encima del isotipo */
    .brand-container,
    .message-container,
    .progress-section { position: relative; z-index: 1; }

    /* Mover el logo independientemente sin afectar el resto */
    .brand-container { top: -30px; }

    /* Mover solo las letras del hero */
    .message-container { top: 80px; }

    /* Bajar la barra de progreso */
    .progress-section {
        top: 100px;
        max-width: 300px;
    }
}

/* === Selection & Scrollbar === */
::selection { background: rgba(141,120,103,0.2); color: var(--brown); }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb { background: rgba(141,120,103,0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--brown); }
