/* ═══════════════════════════════════════════════════════
   PRODUCTO — Nature's Green  |  style.css  (rediseño)
   Sigue el sistema de tarjetas de /inicio/
   ═══════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,300&family=Playfair+Display:wght@400;500;600&display=swap');

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

:root {
    --r: 18px;
    --g: 14px;
    --green: #2d6a2f;
    --green-dark: #0f2a11;
    --green-mid: #1a3d1c;
    --green-vivid: #3d8b40;
    --green-lt: #d4edda;
    --green-pale: #c8f0c4;
    --gold: #f0c040;
    --gold-dark: #e6a800;
    --bg: #f5f5f7;
    --surface: #ffffff;
    --border: rgba(0, 0, 0, 0.08);
    --text-pri: #1d1d1f;
    --text-sec: #6e6e73;
    --text-mute: #aeaeb2;
    --wa-green: #25d366;
    --shadow-card: 0 4px 36px rgba(0, 0, 0, .13);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
    background: var(--bg);
    color: var(--text-pri);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

#producto-main {
    flex: 1;
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
    padding: 80px var(--g) 100px;
}

/* ─── Loading ─────────────────────────────────────── */
.prod-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    gap: 16px;
    color: var(--text-sec);
    font-size: .95rem;
}

.prod-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #d2d2d7;
    border-top-color: var(--green);
    border-radius: 50%;
    animation: spin .75s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ─── Error ───────────────────────────────────────── */
.prod-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    gap: 14px;
    padding: 40px 20px;
    text-align: center;
}

.prod-error i {
    font-size: 3rem;
    color: #e07b7b;
    opacity: .8;
}

.prod-error h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--text-pri);
}

.prod-error p {
    color: var(--text-sec);
    max-width: 420px;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════
   HERO — tarjeta grande, imagen que sobresale
   ═══════════════════════════════════════════════════ */
.prod-hero-new {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    justify-content: flex-end;
    background: #111;
    border-radius: var(--r);
    overflow: visible;
    /* permite que la imagen sobresalga */
    margin-bottom: var(--g);
    box-shadow: var(--shadow-card);
    cursor: default;
}

/* clip interno para el video/overlay sin afectar overflow del hero */
.prod-clip {
    position: absolute;
    inset: 0;
    border-radius: var(--r);
    overflow: hidden;
    z-index: 1;
}

.prod-video-fallback {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0a2e0e, #1a4a1f);
    z-index: 0;
}

.prod-video-bg-wrap,
.prod-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.prod-video-bg {
    object-fit: cover;
    z-index: 1;
}

.prod-ov {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(to left,
            rgba(0, 0, 0, .85) 0%,
            rgba(0, 0, 0, .40) 45%,
            rgba(0, 0, 0, .05) 100%);
}

/* ── Imagen flotante (sobresale por la izquierda) ── */
.prod-img-wrap {
    position: absolute;
    left: -14%;
    bottom: -4%;
    width: 54%;
    height: 118%;
    z-index: 10;
    pointer-events: none;
    animation: productEntry 1s cubic-bezier(.34, 1.4, .64, 1) both;
    animation-delay: .15s;
}

@keyframes productEntry {
    from {
        opacity: 0;
        transform: translateY(60px) scale(.8) rotate(-4deg);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
    }
}

.prod-producto-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom center;
    filter:
        drop-shadow(-16px 28px 36px rgba(0, 0, 0, .8)) drop-shadow(0 6px 14px rgba(0, 0, 0, .55));
}

.prod-img-glow {
    position: absolute;
    bottom: 2%;
    left: 5%;
    width: 90%;
    height: 28%;
    background: radial-gradient(ellipse at 50% 100%,
            rgba(80, 180, 60, .28) 0%, transparent 70%);
    filter: blur(22px);
    pointer-events: none;
    animation: glowPulse 3.5s ease-in-out infinite alternate;
}

@keyframes glowPulse {
    from {
        opacity: .5;
        transform: scaleX(1);
    }

    to {
        opacity: 1;
        transform: scaleX(1.12);
    }
}

/* ── Contenido (derecha) ── */
.prod-cnt--r {
    position: relative;
    width: 58%;
    min-height: 76vh;
    padding: 40px 48px 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 5;
    color: #fff;
    animation: fadeUp .6s ease both;
    animation-delay: .25s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tags row */
.prod-tags-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 14px;
}

.prod-tag {
    display: inline-block;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--green-lt);
    margin-bottom: 0;
}

.prod-tag-marca {
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, .55);
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    padding: 3px 10px;
    border-radius: 20px;
}

/* Nombre */
.prod-t {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.1;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .55);
    margin-bottom: 14px;
}

.prod-t--xl {
    font-size: clamp(2.4rem, 5vw, 4.4rem);
}

/* Descripción */
.prod-sub {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, .80);
    margin-bottom: 28px;
    line-height: 1.6;
    max-width: 480px;
}

/* ── Precios ── */
.prod-precios-new {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.prod-precio-item-new {
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--r);
    padding: 12px 20px;
    min-width: 130px;
}

.prod-precio-item--alt-new {
    border-color: rgba(240, 192, 64, .3);
    background: rgba(240, 192, 64, .1);
}

.prod-precio-label-new {
    display: block;
    font-size: .66rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
    margin-bottom: 4px;
}

.prod-precio-val-new {
    font-size: 1.45rem;
    font-weight: 600;
    color: #fff;
}

.prod-precio-item--alt-new .prod-precio-val-new {
    color: var(--gold);
}

/* ── Botones y Acciones ── */
.prod-actions-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 6px;
}

.prod-btn-wa-new {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 24px;
    background: linear-gradient(135deg, #25d366 0%, #1da851 100%);
    border-radius: 98px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: .9rem;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, .4);
    transition: transform .2s, box-shadow .2s, filter .2s, background .2s, border-color .2s;
    width: fit-content;
}

.prod-btn-cart {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.prod-btn-wa-new:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(37, 211, 102, .55);
    filter: brightness(1.06);
}

.prod-btn-cart:hover {
    background: rgba(255, 255, 255, 0.22);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.1);
}

.prod-btn-wa-new i {
    font-size: 1.05rem;
}

/* ═══════════════════════════════════════════════════
   TABS  — sobre fondo claro
   ═══════════════════════════════════════════════════ */
.prod-tabs-section {
    padding: 40px 0 0 0;
}

.prod-tabs-inner {
    max-width: 100%;
}

/* Nav */
.prod-tabs-nav {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--border);
    margin-bottom: 32px;
    overflow-x: auto;
    scrollbar-width: none;
}

.prod-tabs-nav::-webkit-scrollbar {
    display: none;
}

.prod-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-family: 'DM Sans', sans-serif;
    font-size: .84rem;
    font-weight: 500;
    color: var(--text-mute);
    cursor: pointer;
    white-space: nowrap;
    transition: color .2s, border-color .2s;
    letter-spacing: .01em;
}

.prod-tab-btn i {
    font-size: .78rem;
}

.prod-tab-btn:hover {
    color: var(--text-sec);
    border-bottom-color: rgba(45, 106, 47, .3);
}

.prod-tab-btn.active {
    color: var(--green);
    border-bottom-color: var(--green);
    font-weight: 600;
}

/* Paneles */
.prod-tab-panel {
    display: none;
    animation: fadeInUp .3s ease;
}

.prod-tab-panel.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tarjeta de contenido */
.prod-info-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 36px 40px;
    line-height: 1.8;
    color: var(--text-sec);
    font-size: .95rem;
    box-shadow: 0 2px 16px rgba(0, 0, 0, .06);
    transition: box-shadow .3s;
}

.prod-info-card:hover {
    box-shadow: 0 6px 28px rgba(0, 0, 0, .1);
}

.prod-info-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--green);
    font-weight: 600;
    margin-bottom: 14px;
}

/* Grid 2 col para fichas */
.prod-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Ficha individual */
.prod-ficha {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 22px 26px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
    transition: box-shadow .25s;
}

.prod-ficha:hover {
    box-shadow: 0 6px 22px rgba(0, 0, 0, .1);
}

.prod-ficha-label {
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--green);
    display: flex;
    align-items: center;
    gap: 7px;
}

.prod-ficha-val {
    font-size: .93rem;
    color: var(--text-sec);
    line-height: 1.65;
}

/* Warn card */
.prod-warn-card {
    background: #fff7f7;
    border: 1px solid rgba(220, 80, 80, .15);
    border-radius: var(--r);
    padding: 28px 36px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 2px 16px rgba(220, 80, 80, .06);
}

.prod-warn-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: #c0392b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.prod-warn-card p {
    color: #7f3030;
    line-height: 1.75;
    font-size: .93rem;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .prod-img-wrap {
        width: 50%;
    }

    .prod-cnt--r {
        width: 60%;
        padding-right: 32px;
    }

    .prod-grid-2 {
        grid-template-columns: 1fr;
    }

    .prod-info-card {
        padding: 24px 22px;
    }
}

@media (max-width: 640px) {
    #producto-main {
        padding-top: 60px;
    }

    .prod-hero-new {
        height: auto;
        justify-content: flex-start;
    }

    .prod-img-wrap {
        width: 55%;
        height: 110%;
        left: auto;
        right: -6%;
        transform-origin: bottom right;
    }

    .prod-cnt--r {
        width: 72%;
        min-height: 60vh;
        padding: 32px 24px 36px;
        justify-content: flex-end;
        align-items: flex-start;
        text-align: left;
    }

    .prod-ov {
        background: linear-gradient(to right,
                rgba(0, 0, 0, .9) 0%,
                rgba(0, 0, 0, .6) 55%,
                rgba(0, 0, 0, 0) 100%);
    }

    .prod-t--xl {
        font-size: 2rem;
        margin-bottom: 8px;
    }

    .prod-sub {
        font-size: .95rem;
        margin-bottom: 14px;
    }

    .prod-precios-new {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 16px;
    }

    .prod-precio-item-new {
        min-width: unset;
        padding: 10px 16px;
    }
}

@media (max-width: 480px) {
    .prod-btn-wa-new {
        width: 100%;
        justify-content: center;
    }

    .prod-info-card {
        padding: 18px 16px;
    }

    .prod-warn-card {
        padding: 18px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .prod-img-wrap,
    .prod-img-glow,
    .prod-video-bg {
        animation: none;
        transition: none;
    }
}