/* ============================================================
   ALTIRA ROSES — Propuesta de rediseño
   Lujo editorial · tema oscuro · 100% HTML + CSS
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
    --black:        #0a0807;
    --black-soft:   #110d0c;
    --black-card:   #141010;
    --ink:          #f4ece6;
    --ink-dim:      #b6a89e;
    --ink-faint:    #7a6e66;
    --rose:         #c8203f;
    --rose-soft:    #e35d74;
    --gold:         #c9a86a;
    --gold-soft:    #e4cd9c;
    --line:         rgba(201,168,106,.22);
    --line-soft:    rgba(244,236,230,.08);

    --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --sans:  "Jost", "Helvetica Neue", Arial, sans-serif;

    --ease: cubic-bezier(.22,.61,.36,1);
    --maxw: 1240px;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    background: var(--black);
    color: var(--ink);
    font-family: var(--sans);
    font-weight: 300;
    line-height: 1.7;
    letter-spacing: .01em;
    overflow-x: hidden;
}

/* Subtle film grain over the whole page for depth */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9;
    opacity: .035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--rose); color: #fff; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.05; letter-spacing: -.01em; }

.eyebrow {
    font-family: var(--sans);
    font-size: .72rem;
    font-weight: 400;
    letter-spacing: .42em;
    text-transform: uppercase;
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    gap: .9rem;
}
.eyebrow::before {
    content: "";
    width: 34px;
    height: 1px;
    background: var(--gold);
    opacity: .7;
}
.eyebrow.centered { justify-content: center; }
.eyebrow.centered::after {
    content: "";
    width: 34px;
    height: 1px;
    background: var(--gold);
    opacity: .7;
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 3rem); }
.section { padding: clamp(4.5rem, 11vw, 9rem) 0; position: relative; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem clamp(1.25rem, 5vw, 3rem);
    transition: background .5s var(--ease), padding .5s var(--ease), border-color .5s var(--ease);
    border-bottom: 1px solid transparent;
}
.navbar.scrolled {
    background: rgba(10,8,7,.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}
.brand {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}
.brand-logo {
    height: 56px;
    width: auto;
    max-width: none;
    transition: height .5s var(--ease), filter .5s var(--ease);
}
.navbar.scrolled .brand-logo { height: 46px; }
/* fallback wordmark (si el logo no cargara) */
.brand .mark { color: var(--rose); font-size: 1.1rem; line-height: 0; }

.nav-links { display: flex; align-items: center; gap: clamp(1.4rem, 3vw, 2.6rem); }
.nav-links a {
    position: relative;
    font-size: .82rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ink-dim);
    padding: .3rem 0;
    transition: color .35s var(--ease);
}
.nav-links a::after {
    content: "";
    position: absolute;
    left: 0; bottom: -2px;
    width: 100%; height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .4s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-links a.active { color: var(--ink); }

/* Selector de idioma */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-left: .4rem;
    padding-left: 1.3rem;
    border-left: 1px solid var(--line);
    font-size: .76rem;
    letter-spacing: .14em;
}
.lang-switch a {
    color: var(--ink-faint);
    padding: .2rem .1rem;
    transition: color .35s var(--ease);
}
.lang-switch a:hover { color: var(--ink); }
.lang-switch a.active { color: var(--gold); }
.lang-switch .div { color: var(--line); }

/* Mobile menu toggle */
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 30px; height: 22px; position: relative; }
.nav-toggle span { position: absolute; left: 0; width: 100%; height: 1.5px; background: var(--ink); transition: .35s var(--ease); }
.nav-toggle span:nth-child(1) { top: 2px; }
.nav-toggle span:nth-child(2) { top: 10px; }
.nav-toggle span:nth-child(3) { top: 18px; }
.nav-toggle.open span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

/* ============================================================
   HERO (home)
   ============================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 6rem;
    overflow: hidden;
}
/* radial glow that picks up the rose */
.hero::before {
    content: "";
    position: absolute;
    right: -10%; top: 50%;
    transform: translateY(-50%);
    width: 70vw; height: 70vw;
    max-width: 880px; max-height: 880px;
    background: radial-gradient(circle, rgba(200,32,63,.20) 0%, rgba(200,32,63,.05) 38%, transparent 66%);
    pointer-events: none;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 4rem);
    width: 100%;
    position: relative;
    z-index: 2;
}
.hero-copy { max-width: 600px; }
.hero h1 {
    font-size: clamp(3rem, 8.2vw, 6.4rem);
    margin: 1.6rem 0 1.4rem;
}
.hero h1 em { font-style: italic; color: var(--gold-soft); }
.hero-lead {
    font-size: 1.06rem;
    color: var(--ink-dim);
    max-width: 46ch;
    margin-bottom: 2.4rem;
}
.hero-figure {
    position: relative;
    justify-self: center;
}
.hero-figure img {
    width: clamp(280px, 38vw, 520px);
    filter: drop-shadow(0 40px 80px rgba(200,32,63,.25));
    animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-16px); }
}
.hero-figure .ring {
    position: absolute;
    inset: -6% -6% -6% -6%;
    border: 1px solid var(--line);
    border-radius: 50%;
    pointer-events: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    font-size: .8rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    padding: 1.05rem 2.1rem;
    border: 1px solid var(--gold);
    color: var(--gold-soft);
    background: transparent;
    cursor: pointer;
    transition: .45s var(--ease);
    position: relative;
    overflow: hidden;
}
.btn::before {
    content: ""; position: absolute; inset: 0;
    background: var(--gold);
    transform: scaleX(0); transform-origin: left;
    transition: transform .45s var(--ease);
    z-index: -1;
}
.btn:hover { color: var(--black); border-color: var(--gold); }
.btn:hover::before { transform: scaleX(1); }
.btn.solid { background: var(--rose); border-color: var(--rose); color: #fff; }
.btn.solid::before { background: var(--rose-soft); }
.btn.solid:hover { color: #fff; }

.scroll-cue {
    position: absolute;
    bottom: 2.2rem; left: 50%;
    transform: translateX(-50%);
    font-size: .66rem;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: var(--ink-faint);
    display: flex; flex-direction: column; align-items: center; gap: .7rem;
    z-index: 3;
}
.scroll-cue .bar { width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); animation: cue 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0%,100% { transform: scaleY(.4); opacity:.4 } 50% { transform: scaleY(1); opacity:1 } }

/* ============================================================
   STORY / EDITORIAL
   ============================================================ */
.story-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
}
.story-grid h2 { font-size: clamp(2.4rem, 5vw, 3.8rem); margin-top: 1.3rem; }
.story-body p { color: var(--ink-dim); font-size: 1.08rem; margin-bottom: 1.3rem; }
.story-body p:first-child::first-letter {
    font-family: var(--serif);
    font-size: 3.4rem;
    float: left;
    line-height: .8;
    padding: .4rem .5rem 0 0;
    color: var(--gold);
}
.drop-rule { width: 60px; height: 1px; background: var(--gold); margin: 2rem 0 0; }

/* Stats strip */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin-top: clamp(3rem, 7vw, 5rem);
}
.stat { padding: 2.4rem 1.4rem; text-align: center; border-right: 1px solid var(--line-soft); }
.stat:last-child { border-right: 0; }
.stat .num { font-family: var(--serif); font-size: clamp(2.4rem, 4vw, 3.4rem); color: var(--ink); line-height: 1; }
.stat .num span { color: var(--rose); }
.stat .lbl { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-faint); margin-top: .8rem; }

/* ============================================================
   VALUE CARDS (Misión / Visión / Promesa)
   ============================================================ */
.cards-head { text-align: center; max-width: 640px; margin: 0 auto clamp(2.5rem,6vw,4rem); }
.cards-head h2 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-top: 1.1rem; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.vcard {
    background: linear-gradient(180deg, var(--black-card), var(--black-soft));
    border: 1px solid var(--line-soft);
    padding: 2.8rem 2.1rem 2.4rem;
    position: relative;
    transition: .5s var(--ease);
    overflow: hidden;
}
.vcard::before {
    content: ""; position: absolute; top: 0; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, var(--rose), var(--gold));
    transform: scaleX(0); transform-origin: left;
    transition: transform .55s var(--ease);
}
.vcard:hover { border-color: var(--line); transform: translateY(-6px); background: linear-gradient(180deg, #1a1413, var(--black-soft)); }
.vcard:hover::before { transform: scaleX(1); }
.vcard .idx { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--gold); }
.vcard h3 { font-size: 1.85rem; margin: 1rem 0 1rem; }
.vcard p { color: var(--ink-dim); font-size: .98rem; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta {
    text-align: center;
    padding: clamp(4rem, 10vw, 7rem) 0;
    border-top: 1px solid var(--line-soft);
}
.cta h2 { font-size: clamp(2.4rem, 6vw, 4.4rem); margin: 1.2rem auto 1.6rem; max-width: 16ch; }
.cta h2 em { font-style: italic; color: var(--rose-soft); }
.cta p { color: var(--ink-dim); max-width: 48ch; margin: 0 auto 2.4rem; }

/* ============================================================
   PAGE HEADER (productos / contacto)
   ============================================================ */
.page-head {
    padding: clamp(8rem, 16vw, 12rem) 0 clamp(2.5rem, 6vw, 4rem);
    text-align: center;
    position: relative;
}
.page-head::before {
    content: "";
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 80vw; max-width: 760px; height: 420px;
    background: radial-gradient(ellipse at top, rgba(200,32,63,.16), transparent 70%);
    pointer-events: none;
}
.page-head h1 { font-size: clamp(3rem, 9vw, 6rem); margin-top: 1.3rem; position: relative; }
.page-head h1 em { font-style: italic; color: var(--gold-soft); }
.page-head p { color: var(--ink-dim); max-width: 52ch; margin: 1.4rem auto 0; position: relative; }

/* ============================================================
   PRODUCTS GALLERY
   ============================================================ */
.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(.6rem, 1.4vw, 1.1rem);
}
.rose-card {
    position: relative;
    background: var(--black-soft);
    border: 1px solid var(--line-soft);
    overflow: hidden;
    transition: .5s var(--ease);
}
.rose-card:hover { border-color: var(--line); }
.rose-media { position: relative; aspect-ratio: 4/5; overflow: hidden; background: #000; }
.rose-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1.1s var(--ease), filter .6s var(--ease);
}
.rose-card:hover .rose-media img { transform: scale(1.07); }
.rose-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(10,8,7,.92) 4%, rgba(10,8,7,.0) 46%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 1.4rem 1.4rem 1.3rem;
}
.rose-overlay .name { font-family: var(--serif); font-size: 1.7rem; line-height: 1; }
.rose-overlay .meta {
    font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
    color: var(--ink-faint); margin-top: .55rem;
    display: flex; align-items: center; gap: .55rem;
}
.swatch { width: 11px; height: 11px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); flex: none; }
.rose-tag {
    position: absolute; top: 1rem; left: 1rem;
    font-size: .64rem; letter-spacing: .2em; text-transform: uppercase;
    color: var(--gold-soft);
    border: 1px solid var(--line);
    padding: .3rem .7rem;
    background: rgba(10,8,7,.4);
    backdrop-filter: blur(4px);
}

.products-note { text-align: center; color: var(--ink-faint); font-size: .9rem; margin-top: 3rem; letter-spacing: .04em; }
.products-note strong { color: var(--ink-dim); font-weight: 400; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
}
.contact-intro h2 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin: 1.1rem 0 1.3rem; }
.contact-intro > p { color: var(--ink-dim); margin-bottom: 2.4rem; max-width: 42ch; }

.channels { list-style: none; display: flex; flex-direction: column; gap: .2rem; }
.channels li a, .channels li .static {
    display: flex; align-items: center; gap: 1.1rem;
    padding: 1.15rem 0;
    border-bottom: 1px solid var(--line-soft);
    transition: .4s var(--ease);
}
.channels li a:hover { padding-left: .6rem; border-color: var(--line); }
.channels .ic {
    flex: none; width: 44px; height: 44px;
    display: grid; place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--gold-soft);
    font-size: 1.05rem;
    transition: .4s var(--ease);
}
.channels li a:hover .ic { background: var(--gold); color: var(--black); border-color: var(--gold); }
.channels .txt { display: flex; flex-direction: column; }
.channels .txt .who { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); }
.channels .txt .val { font-size: 1.04rem; color: var(--ink); letter-spacing: .02em; }

/* Form */
.form-wrap {
    background: linear-gradient(180deg, var(--black-card), var(--black-soft));
    border: 1px solid var(--line-soft);
    padding: clamp(1.8rem, 4vw, 2.8rem);
}
.form-wrap h3 { font-size: 1.7rem; margin-bottom: 1.6rem; }
.field { position: relative; margin-bottom: 1.5rem; }
.field label { display: block; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: .6rem; }
.field input, .field textarea {
    width: 100%;
    background: rgba(0,0,0,.3);
    border: 1px solid var(--line-soft);
    color: var(--ink);
    font-family: var(--sans);
    font-size: .98rem;
    font-weight: 300;
    padding: .95rem 1rem;
    transition: border-color .35s var(--ease), background .35s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: rgba(0,0,0,.5); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.form-wrap .btn { width: 100%; justify-content: center; margin-top: .4rem; }
.form-fine { font-size: .76rem; color: var(--ink-faint); margin-top: 1.1rem; text-align: center; }

.map-line {
    margin-top: 3rem; padding-top: 1.8rem;
    border-top: 1px solid var(--line-soft);
    display: flex; align-items: center; gap: 1rem;
    color: var(--ink-dim);
}
.map-line i { color: var(--rose); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    border-top: 1px solid var(--line);
    padding: clamp(3.5rem, 7vw, 5rem) 0 2.5rem;
    background: var(--black-soft);
}
.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}
.footer-logo { height: 96px; width: auto; max-width: none; margin-bottom: .4rem; }
.footer-brand-block p { color: var(--ink-faint); margin-top: 1.1rem; max-width: 34ch; font-size: .95rem; }
.fcol h4 { font-family: var(--sans); font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; font-weight: 400; }
.fcol a, .fcol p { display: block; color: var(--ink-dim); font-size: .95rem; padding: .35rem 0; transition: color .3s var(--ease); }
.fcol a:hover { color: var(--ink); }
.footer-bottom {
    border-top: 1px solid var(--line-soft);
    padding-top: 1.8rem;
    display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
    font-size: .8rem; color: var(--ink-faint); letter-spacing: .04em;
}
.footer-bottom .sep { color: var(--rose); }

/* ============================================================
   FLOATING WHATSAPP
   ============================================================ */
.wa-float {
    position: fixed;
    right: 1.4rem; bottom: 1.4rem;
    z-index: 80;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: #1fae54;
    color: #fff;
    display: grid; place-items: center;
    font-size: 1.5rem;
    box-shadow: 0 12px 30px rgba(31,174,84,.4);
    transition: transform .4s var(--ease);
}
.wa-float:hover { transform: scale(1.1) rotate(6deg); }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero-figure img, .scroll-cue .bar { animation: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-copy { max-width: none; margin: 0 auto; }
    .hero .eyebrow { justify-content: center; }
    .hero-figure { order: -1; margin-bottom: 1.5rem; }
    .hero-figure img { width: clamp(220px, 60vw, 340px); }
    .story-grid { grid-template-columns: 1fr; }
    .cards { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-brand-block { grid-column: 1 / -1; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(2) { border-right: 0; }
    .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line-soft); }
}

@media (max-width: 720px) {
    .nav-links {
        position: fixed;
        inset: 0 0 0 auto;
        width: min(78vw, 320px);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        background: rgba(10,8,7,.97);
        backdrop-filter: blur(16px);
        border-left: 1px solid var(--line);
        transform: translateX(100%);
        transition: transform .5s var(--ease);
        padding: 2rem;
    }
    .nav-links.open { transform: translateX(0); }
    .nav-links a { font-size: 1rem; }
    .nav-toggle { display: block; z-index: 110; }
    .brand-logo, .navbar.scrolled .brand-logo { height: 46px; }
    .footer-logo { height: 84px; }
    .lang-switch { margin-left: 0; padding-left: 0; border-left: 0; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: 1rem; gap: .9rem; }
}

@media (max-width: 480px) {
    .gallery { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr; }
    .stat { border-right: 0 !important; border-bottom: 1px solid var(--line-soft); }
    .footer-top { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
}
