/*
Theme Name:   Línea Magna
Theme URI:    https://lineamagna.com.ar
Description:  Child theme de Astra para Línea Magna, portando el diseño real del sitio HTML original.
Author:       Agustín / Cowork
Template:     astra
Version:      1.0.0
Text Domain:  linea-magna-astra
*/

@import url("../astra/style.css");
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300&family=DM+Sans:opsz,wght@9..40,300;9..40,400&display=swap');

/* ============================================================
   CSS PORTADO DIRECTO DEL SITIO ACTUAL (site-actual/index.html)
   Fuente de verdad para colores, tipografía y componentes.
   No modificar valores sin confirmar con el sitio original.
   ============================================================ */

    /* ── Tokens ── */
    :root {
        --bg-base:      #FDFDFB;
        --bg-surface:   #F7F7F4;
        --bg-dark:      #141412;
        --bg-darker:    #0D0D0B;
        --text-primary: #1C1C1A;
        --text-muted:   #7A7A72;
        --text-faint:   #ADADAA;
        --border:       rgba(0,0,0,0.07);
        --border-mid:   rgba(0,0,0,0.12);
        --font-display: 'Cormorant Garamond', Georgia, serif;
        --font-body:    'DM Sans', system-ui, sans-serif;
    }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body {
        background: var(--bg-base);
        color: var(--text-primary);
        font-family: var(--font-body);
        font-weight: 300;
        -webkit-font-smoothing: antialiased;
    }
    ::selection { background: #1C1C1A; color: #FDFDFB; }
    img { display: block; max-width: 100%; }

    /* ── Navbar ── */
    .navbar {
        position: fixed; top: 0; left: 0; right: 0; z-index: 100;
        background: rgba(253,253,251,0.84);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--border);
    }
    .navbar-inner {
        max-width: 1160px; margin: 0 auto; padding: 0 32px;
        height: 68px; display: flex; align-items: center; justify-content: space-between;
    }
    .brand { display: flex; flex-direction: column; }
    .brand-name {
        font-family: var(--font-body); font-weight: 400;
        font-size: 12.5px; letter-spacing: 0.24em; text-transform: uppercase;
        color: var(--text-primary); line-height: 1;
    }
    .brand-sub {
        font-size: 8px; letter-spacing: 0.18em; text-transform: uppercase;
        color: var(--text-faint); margin-top: 4px;
    }
    .nav-links { display: flex; gap: 32px; list-style: none; }
    .nav-links a {
        font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
        color: var(--text-muted); text-decoration: none; transition: color 0.2s;
    }
    .nav-links a:hover { color: var(--text-primary); }

    /* ── Hero ── */
    .hero {
        height: 100svh; min-height: 580px;
        background-image:
            linear-gradient(to bottom, rgba(14,12,10,0.35) 0%, rgba(14,12,10,0.68) 100%),
            url('img/Miro negro (5).avif');
        background-attachment: fixed;
        background-position: center; background-repeat: no-repeat; background-size: cover;
        display: flex; align-items: center; justify-content: center; padding: 0 24px;
    }
    .hero-content { text-align: center; max-width: 700px; }
    .eyebrow {
        font-size: 9px; letter-spacing: 0.26em; text-transform: uppercase;
        display: block; margin-bottom: 16px;
    }
    .hero .eyebrow { color: rgba(255,255,255,0.55); }
    .hero-title {
        font-family: var(--font-display); font-weight: 300;
        font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.12;
        color: #FDFDFB; letter-spacing: 0.015em; margin-bottom: 22px;
    }
    .hero-title em { font-style: italic; }
    .hero-desc {
        font-size: 15px; line-height: 1.8; color: rgba(255,255,255,0.75);
        max-width: 440px; margin: 0 auto 34px;
        font-family: var(--font-display); font-weight: 300; font-style: italic;
        letter-spacing: 0.03em;
    }
    .btn {
        display: inline-block; text-decoration: none;
        font-size: 9.5px; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase;
        padding: 13px 32px; transition: background 0.25s, color 0.25s, transform 0.2s;
    }
    .btn:hover { transform: translateY(-1px); }
    .btn-light { background: #FDFDFB; color: #1C1C1A; }
    .btn-light:hover { background: #1C1C1A; color: #FDFDFB; }
    .btn-dark { background: #1C1C1A; color: #FDFDFB; box-shadow: 0 4px 20px rgba(0,0,0,0.22); }
    .btn-dark:hover { background: #2e2e2c; }

    /* ── Secciones genéricas ── */
    .section-eyebrow {
        font-size: 9px; letter-spacing: 0.24em; text-transform: uppercase;
        color: var(--text-faint); display: block; margin-bottom: 14px;
    }
    .section-title {
        font-family: var(--font-display); font-weight: 300;
        font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.18;
        color: var(--text-primary); letter-spacing: 0.01em;
    }
    .divider { width: 36px; height: 1px; background: var(--border-mid); margin: 18px 0; }
    .body-text { font-size: 13.5px; line-height: 1.82; color: var(--text-muted); }
    .spec-item {
        display: flex; gap: 10px; font-size: 12.5px; line-height: 1.65; color: var(--text-muted);
        padding: 10px 0; border-bottom: 1px solid var(--border);
    }
    .spec-item::before { content: '—'; color: var(--text-faint); flex-shrink: 0; }
    .spec-item strong { color: var(--text-primary); font-weight: 400; }

    /* ── Imagen cards ── */
    .img-card { overflow: hidden; background: var(--bg-surface); border: 1px solid var(--border); }
    .img-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(.25,.46,.45,.94); }
    .img-card:hover img { transform: scale(1.03); }

    /* ── Sección Filosofía ── */
    .filosofia { padding: 96px 24px; max-width: 680px; margin: 0 auto; text-align: center; }
    .filosofia .divider { margin: 18px auto; }

    /* ── Sección Detalles (half-half) ── */
    .detalles-wrap { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
    .detalles-grid { display: grid; grid-template-columns: 1fr 1fr; }
    .det-img { aspect-ratio: 4/5; }
    .det-content { padding: 64px 52px; display: flex; flex-direction: column; justify-content: center; background: var(--bg-surface); }

    /* ── Video ── */
    .video-section { background: var(--bg-dark); padding: 80px 24px; }
    .video-wrap { max-width: 960px; margin: 0 auto; aspect-ratio: 16/9; overflow: hidden; border: 1px solid rgba(255,255,255,0.06); }
    .video-wrap video { width: 100%; height: 100%; object-fit: cover; display: block; }
    .video-label { text-align: center; margin-top: 16px; font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.22); }

    /* ── CATÁLOGO ── */
    .catalogo-section { padding: 100px 24px; max-width: 1160px; margin: 0 auto; }
    .catalogo-header { margin-bottom: 64px; }

    /* Grid de tarjetas de modelo */
    .modelos-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2px;
    }

    /* Tarjeta de modelo */
    .modelo-card { background: var(--bg-base); cursor: pointer; }
    .modelo-thumb { aspect-ratio: 3/4; overflow: hidden; position: relative; background: var(--bg-surface); }
    .modelo-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(.25,.46,.45,.94); }
    .modelo-card:hover .modelo-thumb img { transform: scale(1.04); }
    .modelo-info { padding: 16px 2px 24px; border-bottom: 1px solid var(--border); }
    .modelo-nombre { font-size: 15px; font-weight: 400; color: var(--text-primary); letter-spacing: 0.01em; }
    .modelo-desc { font-size: 10.5px; color: var(--text-faint); margin-top: 4px; letter-spacing: 0.04em; }
    /* ── Badges de variante (color/medidas) en tarjeta ── */
    .modelo-variante-badge {
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        font-size: 8.5px !important;
        letter-spacing: 0.14em !important;
        text-transform: uppercase !important;
        padding: 5px 10px 5px 7px !important;
        border: 1px solid rgba(0,0,0,0.15) !important;
        color: #7A7A72 !important;
        margin-top: 8px !important;
        margin-right: 4px !important;
        cursor: pointer !important;
        background: #FDFDFB !important;
        opacity: 0.65 !important;
        transition: opacity 0.2s, border-color 0.2s !important;
        font-family: var(--font-body) !important;
        line-height: 1 !important;
        vertical-align: middle !important;
    }
    .modelo-variante-badge::before {
        content: '' !important;
        display: inline-block !important;
        width: 9px !important;
        height: 9px !important;
        border-radius: 50% !important;
        flex-shrink: 0 !important;
    }
    .modelo-variante-badge[data-variante="negro"]::before {
        background: #1C1C1A !important;
        border: 1px solid rgba(0,0,0,0.3) !important;
    }
    .modelo-variante-badge[data-variante="blanco"]::before {
        background: #F4F2EC !important;
        border: 1px solid rgba(0,0,0,0.25) !important;
    }
    .modelo-variante-badge[data-variante="medidas"]::before {
        content: none !important;
    }
    .modelo-variante-badge[data-variante="medidas"]::after {
        display: none;
    }
    .modelo-variante-badge.active {
        opacity: 1 !important;
        border-color: #1C1C1A !important;
        color: #1C1C1A !important;
    }
    .modelo-variante-badge:hover {
        opacity: 1 !important;
        border-color: #7A7A72 !important;
        color: #1C1C1A !important;
    }

    /* ── Panel de detalle expandible ── */
    .modelo-detail-panel {
        display: none;
        grid-column: 1 / -1;
        background: var(--bg-surface);
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        padding: 56px 48px;
        gap: 48px;
    }
    .modelo-detail-panel.open { display: grid; grid-template-columns: 1fr 1fr 1fr; }
    .panel-galeria { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
    .panel-galeria-main { grid-column: 1 / -1; aspect-ratio: 16/9; }
    .panel-galeria-thumb { aspect-ratio: 1/1; }
    .panel-info { padding: 8px 0; }
    .panel-title { font-family: var(--font-display); font-weight: 300; font-size: 2rem; line-height: 1.15; color: var(--text-primary); }
    .panel-title em { font-style: italic; }
    .panel-medidas { margin-top: 28px; }
    .panel-medida-row {
        display: flex; justify-content: space-between; padding: 9px 0;
        border-bottom: 1px solid var(--border); font-size: 12px;
    }
    .panel-medida-row span:first-child { color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; font-size: 10px; }
    .panel-medida-row span:last-child { color: var(--text-primary); font-weight: 400; }
    .panel-ficha-img { align-self: center; }
    .panel-ficha-img img { width: 100%; border: 1px solid var(--border); background: white; padding: 16px; }
    .panel-close {
        grid-column: 1 / -1; text-align: right;
        font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase;
        color: var(--text-faint); cursor: pointer; padding-top: 12px;
        transition: color 0.2s;
    }
    .panel-close:hover { color: var(--text-primary); }

    /* variante toggle dentro del panel */
    .variante-tabs { display: flex; gap: 6px; margin: 18px 0 6px; }
    .variante-tab {
        font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase;
        padding: 5px 12px; border: 1px solid var(--border-mid); color: var(--text-muted);
        cursor: pointer; transition: all 0.2s; background: transparent;
    }
    .variante-tab.active { background: var(--text-primary); color: #FDFDFB; border-color: var(--text-primary); }

    /* ── CTA WhatsApp ── */
    .cta-section { background: var(--bg-dark); padding: 120px 24px; text-align: center; }
    .cta-inner { max-width: 520px; margin: 0 auto; }
    .cta-title { font-family: var(--font-display); font-weight: 300; font-size: clamp(2rem, 4.5vw, 3rem); color: #FDFDFB; line-height: 1.12; margin-bottom: 18px; }
    .cta-body { font-size: 13px; line-height: 1.82; color: rgba(255,255,255,0.42); margin-bottom: 36px; }

    /* ── Footer ── */
    footer { background: var(--bg-darker); padding: 26px 24px; text-align: center; font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.18); }

    /* ── Scroll reveal ── */
    .fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.75s ease, transform 0.75s ease; }
    .fade-in.visible { opacity: 1; transform: translateY(0); }

    /* ── Responsive ── */
    @media (max-width: 900px) {
        .modelos-grid { grid-template-columns: repeat(2, 1fr); }
        .modelo-detail-panel.open { grid-template-columns: 1fr 1fr; }
        .panel-ficha-img { display: none; }
    }
    @media (max-width: 640px) {
        .nav-links { display: none; }
        .hero { background-attachment: scroll; }
        .detalles-grid { grid-template-columns: 1fr; }
        .det-content { padding: 40px 24px; }
        .modelos-grid { grid-template-columns: 1fr; }
        .modelo-detail-panel.open { grid-template-columns: 1fr; }
        .panel-galeria-main { aspect-ratio: 4/3; }
    }

    /* ── Botones flotantes ── */
    .fab-group {
        position: fixed; bottom: 28px; right: 28px;
        display: flex; flex-direction: column; align-items: flex-end;
        gap: 10px; z-index: 200;
    }
    .fab {
        display: flex; align-items: center; justify-content: center;
        width: 52px; height: 52px; border-radius: 50%;
        text-decoration: none; box-shadow: 0 4px 18px rgba(0,0,0,0.22);
        transition: transform 0.2s, box-shadow 0.2s;
    }
    .fab:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
    .fab svg { width: 24px; height: 24px; fill: white; }
    .fab-wa  { background: #25D366; }
    .fab-ig  { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
    .fab-label {
        position: absolute; right: 64px;
        background: rgba(20,20,18,0.88); color: white;
        font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
        padding: 5px 10px; white-space: nowrap; border-radius: 2px;
        opacity: 0; pointer-events: none;
        transition: opacity 0.2s;
    }
    .fab:hover .fab-label { opacity: 1; }
    .fab-wrap { position: relative; display: flex; align-items: center; }
