/* ============================================================
   Ki Tinturas Madre — Estilos
   Paleta: verdes tierra + crema + ámbar · Orgánico elegante
   ============================================================ */

:root {
    --verde-950: #10241a;
    --verde-900: #16301f;
    --verde-800: #1e3d2f;
    --verde-700: #2f5d45;
    --verde-600: #3f7a58;
    --verde-200: #bdd3c3;
    --verde-100: #e3ede5;
    --verde-50:  #eff5ef;

    --crema:      #faf6ec;
    --crema-2:    #f3ecdb;
    --blanco:     #fffdf8;

    --ambar:      #d99a3d;
    --ambar-2:    #e9b45e;
    --ambar-osc:  #b5792a;

    --tinta:      #233028;
    --tinta-suave:#5b6b60;

    --radio: 24px;
    --radio-xl: 32px;
    --sombra: 0 18px 40px -18px rgba(16, 36, 26, 0.35);
    --sombra-suave: 0 10px 30px -14px rgba(16, 36, 26, 0.25);

    --fuente-titulo: "Fraunces", Georgia, serif;
    --fuente-texto: "Inter", system-ui, -apple-system, sans-serif;
}

/* ---------- Reset básico ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
    margin: 0;
    font-family: var(--fuente-texto);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--tinta);
    background: var(--crema);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 {
    font-family: var(--fuente-titulo);
    font-weight: 600;
    line-height: 1.12;
    margin: 0 0 0.6rem;
    color: var(--verde-900);
}
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
    width: min(1120px, 92%);
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    background: var(--ambar);
    color: var(--verde-950);
    padding: 0.6rem 1rem;
    border-radius: 0 0 12px 0;
    font-weight: 600;
    text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---------- Iconos ---------- */
.icon { width: 1.05em; height: 1.05em; fill: currentColor; flex: none; }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    font-family: var(--fuente-texto);
    font-size: 0.98rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primario {
    background: var(--ambar);
    color: var(--verde-950);
    box-shadow: 0 12px 26px -12px rgba(217, 154, 61, 0.65);
}
.btn-primario:hover {
    background: var(--ambar-2);
    transform: translateY(-2px);
    box-shadow: 0 16px 30px -12px rgba(217, 154, 61, 0.75);
}

.btn-secundario {
    background: rgba(250, 246, 236, 0.08);
    border-color: rgba(250, 246, 236, 0.55);
    color: var(--crema);
    backdrop-filter: blur(4px);
}
.btn-secundario:hover {
    background: rgba(250, 246, 236, 0.18);
    transform: translateY(-2px);
}

.btn-secundario-oscuro {
    background: rgba(250, 246, 236, 0.1);
    border-color: rgba(250, 246, 236, 0.5);
    color: var(--crema);
}
.btn-secundario-oscuro:hover {
    background: rgba(250, 246, 236, 0.2);
    transform: translateY(-2px);
}

.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn-sm { padding: 0.55rem 1.15rem; font-size: 0.9rem; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(250, 246, 236, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(30, 61, 47, 0.1);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0;
}
.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}
.logo-mark { width: 40px; height: 40px; flex: none; }
.logo-text {
    font-family: var(--fuente-titulo);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--verde-900);
    white-space: nowrap;
}
.logo-text em { font-style: italic; color: var(--ambar-osc); }
.nav { display: flex; gap: 1.6rem; }
.nav a {
    text-decoration: none;
    color: var(--tinta);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.3rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.nav a:hover { color: var(--ambar-osc); border-color: var(--ambar); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 92vh;
    display: grid;
    align-items: center;
    color: var(--crema);
    background:
        radial-gradient(1100px 500px at 80% 20%, rgba(217, 154, 61, 0.16), transparent 60%),
        linear-gradient(180deg, rgba(16, 36, 26, 0.72) 0%, rgba(16, 36, 26, 0.55) 100%),
        url("../img/hero.jpg") center / cover no-repeat;
    padding: 7rem 0 6rem;
}
.hero-inner {
    max-width: 760px;
    margin-inline: auto;
    text-align: center;
}
.eyebrow {
    font-family: var(--fuente-texto);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--ambar-2);
    margin-bottom: 1rem;
}
.hero h1 {
    color: var(--crema);
    font-size: clamp(2.9rem, 7vw, 4.6rem);
    margin-bottom: 1.2rem;
}
.hero h1 em {
    font-style: italic;
    color: var(--ambar-2);
    display: block;
    font-weight: 500;
}
.hero-text {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    max-width: 36rem;
    margin-inline: auto;
    color: rgba(250, 246, 236, 0.92);
    margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }
.hero-note {
    margin-top: 2.2rem;
    font-size: 0.92rem;
    color: rgba(250, 246, 236, 0.75);
}

/* ---------- Secciones ---------- */
.section { padding: 5.5rem 0; }
.section-alt { background: var(--verde-50); }
.section-head { max-width: 40rem; margin-bottom: 3rem; }
.section-head .eyebrow { color: var(--ambar-osc); }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 2.9rem); }
.section-sub { color: var(--tinta-suave); font-size: 1.05rem; margin: 0; }

/* ---------- Tarjetas de producto ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.8rem; }
.card {
    background: var(--blanco);
    border: 1px solid rgba(30, 61, 47, 0.1);
    border-radius: var(--radio);
    overflow: hidden;
    box-shadow: var(--sombra-suave);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sombra); }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card-body { padding: 1.7rem 1.7rem 1.9rem; display: flex; flex-direction: column; gap: 0.9rem; flex: 1; }
.card-body p { margin: 0; color: var(--tinta-suave); }
.card-body .btn { align-self: flex-start; margin-top: auto; padding-top: 0.8rem; }
.card h3 { font-size: 1.55rem; }

.tag {
    align-self: flex-start;
    background: var(--verde-100);
    color: var(--verde-800);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.32rem 0.8rem;
    border-radius: 999px;
}
.presentaciones {
    font-weight: 600;
    color: var(--tinta) !important;
    margin-top: 0.4rem !important;
}
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
    border: 1.5px dashed var(--verde-600);
    color: var(--verde-800);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.28rem 0.85rem;
    border-radius: 999px;
    background: var(--verde-50);
}
.lista-plantas { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem 1.4rem; margin-bottom: 0.4rem; }
.lista-plantas li {
    position: relative;
    padding-left: 1.1rem;
    font-weight: 500;
    color: var(--tinta);
}
.lista-plantas li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ambar);
}
.muted { color: var(--tinta-suave); font-weight: 400; font-size: 0.88em; }

/* ---------- Cómo se toman ---------- */
.pasos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-bottom: 2rem; }
.paso {
    background: var(--blanco);
    border: 1px solid rgba(30, 61, 47, 0.1);
    border-radius: var(--radio);
    padding: 2rem 1.4rem;
    text-align: center;
    box-shadow: var(--sombra-suave);
}
.paso-icono { font-size: 2.2rem; display: block; margin-bottom: 0.6rem; }
.paso h3 { font-size: 1.25rem; margin-bottom: 0.2rem; }
.paso p {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    font-family: var(--fuente-titulo);
    color: var(--ambar-osc);
}
.nota {
    max-width: 46rem;
    margin: 0 auto;
    text-align: center;
    color: var(--tinta-suave);
    background: var(--crema-2);
    border: 1px solid rgba(181, 121, 42, 0.25);
    border-radius: 16px;
    padding: 1.1rem 1.5rem;
}

/* ---------- Envíos ---------- */
.cards-envio { grid-template-columns: repeat(2, 1fr); }
.card-plana { box-shadow: var(--sombra-suave); }
.card-plana .card-body { gap: 0.7rem; }
.card-icono { font-size: 2rem; }
.card-plana h3 { font-size: 1.35rem; }

/* ---------- Contacto ---------- */
.contacto-card {
    background:
        radial-gradient(800px 300px at 85% 10%, rgba(217, 154, 61, 0.18), transparent 60%),
        linear-gradient(160deg, var(--verde-900), var(--verde-950));
    border-radius: var(--radio-xl);
    color: var(--crema);
    padding: clamp(2.4rem, 6vw, 4.2rem);
    text-align: center;
    box-shadow: var(--sombra);
}
.contacto-card .eyebrow { color: var(--ambar-2); }
.contacto-card h2 {
    color: var(--crema);
    font-size: clamp(1.9rem, 4.5vw, 2.8rem);
}
.contacto-text { color: rgba(250, 246, 236, 0.85); font-size: 1.08rem; max-width: 30rem; margin: 0 auto 2rem; }
.contacto-acciones {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem;
    margin-bottom: 1.8rem;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--verde-950); color: rgba(250, 246, 236, 0.75); }
.footer-inner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1.6fr;
    gap: 2.5rem;
    padding: 3.5rem 0 2.5rem;
}
.footer-marca p { font-size: 0.92rem; margin-top: 0.6rem; }
.logo-text-footer { color: var(--crema); }
.logo-text-footer em { color: var(--ambar-2); }
.footer-nav { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-nav a { text-decoration: none; color: rgba(250, 246, 236, 0.8); font-size: 0.95rem; }
.footer-nav a:hover { color: var(--ambar-2); }
.footer-creditos p { font-size: 0.85rem; color: rgba(250, 246, 236, 0.6); }
.creditos-fotos { font-size: 0.75rem !important; opacity: 0.8; }
.footer-copy {
    margin: 0;
    text-align: center;
    border-top: 1px solid rgba(250, 246, 236, 0.12);
    padding: 1.2rem;
    font-size: 0.85rem;
    color: rgba(250, 246, 236, 0.55);
}

/* ---------- Botón flotante ---------- */
.btn-flotante {
    position: fixed;
    right: 1.3rem;
    bottom: 1.3rem;
    z-index: 60;
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    background: #22b15d;
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 12px 30px -8px rgba(20, 105, 55, 0.65);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    animation: pulso 2.6s ease-out infinite;
}
.btn-flotante svg { width: 28px; height: 28px; fill: currentColor; }
.btn-flotante:hover { transform: scale(1.08); }
@keyframes pulso {
    0%   { box-shadow: 0 12px 30px -8px rgba(20, 105, 55, 0.65), 0 0 0 0 rgba(34, 177, 93, 0.5); }
    70%  { box-shadow: 0 12px 30px -8px rgba(20, 105, 55, 0.65), 0 0 0 18px rgba(34, 177, 93, 0); }
    100% { box-shadow: 0 12px 30px -8px rgba(20, 105, 55, 0.65), 0 0 0 0 rgba(34, 177, 93, 0); }
}

/* ---------- Aparición al hacer scroll ---------- */
.js .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .cards, .cards-envio { grid-template-columns: 1fr; }
    .pasos { grid-template-columns: 1fr; gap: 1rem; }
    .footer-inner { grid-template-columns: 1fr; gap: 1.8rem; }
    .nav { display: none; }
}
@media (max-width: 520px) {
    .header-inner .btn span { display: none; }
    .btn-sm .icon { margin: 0; }
    .hero-actions .btn { width: 100%; }
    .hero { min-height: 88vh; }
    .section { padding: 4rem 0; }
    .lista-plantas { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
