/*
=========================================================
ARCHIVO: landing_productos.css
UBICACIÓN: static/css/
FUNCIÓN: estilos exclusivos del Template 1
USO: landing orientada a venta rápida de productos
=========================================================
*/

/* =========================================================
   IDENTIDAD GENERAL DEL TEMPLATE 1
   - Comercial
   - Más dinámica
   - Más orientada a vitrina y acción
   - Distinta a T2: menos editorial, más directa
========================================================= */
.t1-page {
    --max-width: 1280px;
}

/* =========================================================
   TOPBAR
========================================================= */
.t1-topbar {
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(31, 41, 55, 0.96));
    color: rgba(255, 255, 255, 0.94);
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.t1-topbar-inner {
    width: min(var(--max-width), calc(100% - 40px));
    margin: 0 auto;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.t1-topbar-left,
.t1-topbar-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.t1-topbar-left span,
.t1-topbar-right a {
    color: rgba(255, 255, 255, 0.94);
}

.t1-topbar-right a:hover {
    color: #ffffff;
}

/* =========================================================
   HEADER
========================================================= */
.t1-header {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.t1-header-inner {
    width: min(var(--max-width), calc(100% - 40px));
    margin: 0 auto;
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.t1-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.t1-brand-logo {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.t1-brand-logo-placeholder {
    background:
        linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(251, 191, 36, 0.10));
}

.t1-brand-text {
    min-width: 0;
}

.t1-brand-title {
    margin: 0;
    color: var(--brand-primary);
    font-size: 20px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.t1-brand-description {
    margin: 6px 0 0;
    max-width: 520px;
    color: #667085;
    font-size: 14px;
    line-height: 1.65;
}

.t1-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.t1-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    color: #344054;
    font-size: 14px;
    font-weight: 800;
    transition: all 0.22s ease;
}

.t1-nav a:hover {
    background: rgba(15, 23, 42, 0.04);
    color: var(--brand-primary);
}

.t1-nav .t1-btn {
    margin-left: 6px;
}

/* =========================================================
   CONTENEDOR PRINCIPAL
========================================================= */
.t1-main {
    padding-top: 30px;
    padding-bottom: 72px;
}

.t1-stack {
    display: grid;
    gap: 50px;
}

/* =========================================================
   SECCIONES GENERALES
========================================================= */
.t1-section {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.99), rgba(247,249,252,0.98));
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.05);
    padding: 46px;
}

.t1-section::before {
    content: "";
    position: absolute;
    top: -60px;
    left: -60px;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.08), transparent 72%);
    pointer-events: none;
}

.t1-section::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -90px;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.08), transparent 72%);
    pointer-events: none;
}

/* =========================================================
   TITULADO Y TEXTO
========================================================= */
.t1-section-title {
    margin: 0 0 18px;
    max-width: 920px;
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1.04;
    letter-spacing: -0.04em;
    color: var(--brand-primary);
}

.t1-section-text {
    margin: 0;
    max-width: 860px;
    color: #667085;
    font-size: 17px;
    line-height: 1.84;
}

/* =========================================================
   BADGES
========================================================= */
.t1-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.t1-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.18);
    color: #a16207;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.01em;
}

/* =========================================================
   HERO
========================================================= */
.t1-hero {
    display: grid;
    grid-template-columns: 1.04fr 0.96fr;
    gap: 40px;
    align-items: center;
}

.t1-hero-title {
    margin: 0 0 18px;
    max-width: 780px;
    font-size: clamp(40px, 5vw, 72px);
    line-height: 1.01;
    letter-spacing: -0.05em;
    color: var(--brand-primary);
}

.t1-hero-text {
    margin: 0 0 24px;
    max-width: 700px;
    font-size: 18px;
    line-height: 1.85;
    color: #5b6575;
}

.t1-hero-points {
    display: grid;
    gap: 14px;
    margin-bottom: 26px;
}

.t1-hero-point {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 16px;
    line-height: 1.75;
    color: var(--brand-text);
}

.t1-hero-check,
.t1-list-check {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    font-size: 14px;
    font-weight: 900;
}

.t1-hero-actions,
.t1-cta-actions,
.t1-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.t1-hero-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.t1-proof-card {
    padding: 20px;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.99), rgba(248,250,252,0.98));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.t1-proof-number {
    margin-bottom: 8px;
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
    color: var(--brand-primary);
    letter-spacing: -0.03em;
}

.t1-proof-text {
    margin: 0;
    color: #667085;
    line-height: 1.7;
    font-size: 14px;
}

.t1-hero-media,
.t1-split-media {
    overflow: hidden;
    min-height: 100%;
    border-radius: 24px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.96), rgba(245,247,250,0.98));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.t1-hero-media img,
.t1-split-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.t1-placeholder {
    min-height: 280px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 28px;
    border-radius: 20px;
    border: 1px dashed rgba(15, 23, 42, 0.12);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.95), rgba(246,247,250,0.98));
    color: #667085;
    line-height: 1.82;
}

/* =========================================================
   GRIDS
========================================================= */
.t1-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.t1-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.t1-split {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: 34px;
    align-items: center;
}

/* =========================================================
   CARDS BASE
========================================================= */
.t1-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 22px;
    border-radius: 22px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: #ffffff;
    transition:
        transform 0.24s ease,
        box-shadow 0.24s ease,
        border-color 0.24s ease;
}

.t1-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 42px rgba(15, 23, 42, 0.08);
    border-color: rgba(245, 158, 11, 0.18);
}

.t1-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
}

.t1-card-title {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--brand-primary);
}

.t1-card-text {
    margin: 0;
    color: #667085;
    font-size: 15px;
    line-height: 1.76;
}

/* =========================================================
   VITRINA DE PRODUCTOS / CATEGORÍAS
========================================================= */
.t1-card-media {
    min-height: 194px;
    margin-bottom: 8px;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #f3f4f6;
}

.t1-card-media img {
    width: 100%;
    height: 214px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.t1-card:hover .t1-card-media img {
    transform: scale(1.04);
}

.t1-list {
    display: grid;
    gap: 10px;
    margin: 2px 0 4px;
}

.t1-list-item {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 14px;
    line-height: 1.6;
    color: var(--brand-text);
}

/* Ajustes específicos del bloque de productos */
#productos .t1-card {
    padding: 18px;
    background:
        linear-gradient(180deg, rgba(255,255,255,1), rgba(250,251,253,0.98));
}

#productos .t1-card-body {
    gap: 10px;
}

#productos .t1-badges {
    margin-bottom: 6px;
    gap: 8px;
}

#productos .t1-badge {
    min-height: 30px;
    padding: 0 10px;
    font-size: 11px;
}

#productos .t1-card-title {
    margin-top: 2px;
    font-size: 18px;
}

#productos .t1-list {
    gap: 8px;
    margin: 0;
}

#productos .t1-list-item {
    font-size: 13px;
    line-height: 1.5;
}

#productos .t1-list-check {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    font-size: 12px;
}

#productos .t1-card-actions {
    margin-top: 6px;
}

/* =========================================================
   BOTONES
========================================================= */
.btn-t1,
.t1-btn {
    appearance: none;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    transition:
        transform 0.22s ease,
        background-color 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease,
        color 0.22s ease;
    cursor: pointer;
}

.btn-t1:hover,
.t1-btn:hover {
    transform: translateY(-2px);
}

.btn-primary,
.t1-btn.t1-btn-primary {
    background: linear-gradient(135deg, var(--brand-primary), #1f2937);
    color: #ffffff !important;
    border-color: rgba(0,0,0,0.06);
    box-shadow: 0 14px 28px rgba(17, 24, 39, 0.16);
}

.btn-primary:hover,
.t1-btn.t1-btn-primary:hover {
    box-shadow: 0 18px 34px rgba(17, 24, 39, 0.22);
}

.btn-secondary,
.t1-btn.t1-btn-secondary {
    background: linear-gradient(135deg, var(--brand-secondary), #fbbf24);
    color: #111111 !important;
    border-color: rgba(0,0,0,0.04);
    box-shadow: 0 14px 26px rgba(245, 158, 11, 0.18);
}

.btn-secondary:hover,
.t1-btn.t1-btn-secondary:hover {
    box-shadow: 0 18px 34px rgba(245, 158, 11, 0.24);
}

.btn-light,
.t1-btn.t1-btn-light {
    background: #ffffff;
    color: #111827 !important;
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.btn-light:hover,
.t1-btn.t1-btn-light:hover {
    background: #f8fafc;
}

/* =========================================================
   CTA FINAL
========================================================= */
.t1-cta-final {
    background:
        linear-gradient(135deg, rgba(245, 158, 11, 0.10), rgba(255,255,255,0.98) 54%, rgba(17,24,39,0.06));
    border-color: rgba(245, 158, 11, 0.12);
}

.t1-cta-final .t1-section-title {
    max-width: 980px;
}

.t1-cta-final .t1-section-text {
    max-width: 860px;
}

/* =========================================================
   FOOTER
========================================================= */
.t1-footer {
    margin-top: 10px;
    padding-top: 24px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.t1-footer-inner {
    width: min(var(--max-width), calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr 1fr;
    gap: 28px;
    padding: 0 0 22px;
}

.t1-footer-title {
    margin: 0 0 14px;
    font-size: 18px;
    line-height: 1.2;
    color: var(--brand-primary);
}

.t1-footer-text,
.t1-footer-links {
    display: grid;
    gap: 12px;
    color: #667085;
    font-size: 15px;
    line-height: 1.75;
}

.t1-footer-links a {
    color: #667085;
    transition: color 0.2s ease;
}

.t1-footer-links a:hover {
    color: var(--brand-primary);
}

.t1-footer-bottom {
    width: min(var(--max-width), calc(100% - 40px));
    margin: 0 auto;
    padding: 18px 0 34px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    color: #98a2b3;
    font-size: 14px;
    line-height: 1.6;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1180px) {
    .t1-topbar-inner,
    .t1-header-inner,
    .t1-footer-inner,
    .t1-footer-bottom {
        width: min(var(--max-width), calc(100% - 28px));
    }

    .t1-header-inner {
        min-height: auto;
        padding: 16px 0;
        flex-direction: column;
        align-items: stretch;
    }

    .t1-nav {
        justify-content: flex-start;
    }

    .t1-hero,
    .t1-split {
        grid-template-columns: 1fr;
    }

    .t1-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .t1-grid-3,
    .t1-hero-proof {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .t1-footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .t1-main {
        padding-top: 22px;
        padding-bottom: 42px;
    }

    .t1-stack {
        gap: 30px;
    }

    .t1-section {
        padding: 28px 24px;
        border-radius: 22px;
    }

    .t1-topbar-inner {
        min-height: auto;
        padding: 10px 0;
        flex-direction: column;
        align-items: flex-start;
    }

    .t1-topbar-left,
    .t1-topbar-right {
        gap: 10px;
    }

    .t1-brand {
        align-items: flex-start;
    }

    .t1-nav {
        gap: 8px;
    }

    .t1-nav .t1-btn {
        margin-left: 0;
    }

    .t1-section-title {
        font-size: 30px;
        line-height: 1.12;
    }

    .t1-section-text,
    .t1-hero-text,
    .t1-card-text {
        font-size: 16px;
    }

    .t1-grid-3,
    .t1-grid-4,
    .t1-hero-proof {
        grid-template-columns: 1fr;
    }

    .t1-card-media img {
        height: 200px;
    }

    .btn-t1,
    .t1-btn {
        width: 100%;
    }

    .t1-footer-inner {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}
/* =========================================================
   AJUSTE T1 - 5 PRODUCTOS DESTACADOS
   Mantiene el diseño actual y centra la segunda fila
========================================================= */

#productos .t1-grid-3 {
    align-items: stretch;
}

/* asegurar altura consistente en las cards */
#productos .t1-card {
    height: 100%;
}

/* la segunda fila con 2 cards queda más equilibrada */
#productos .t1-grid-3 + .t1-grid-3 {
    grid-template-columns: repeat(2, minmax(280px, 420px));
    justify-content: center;
    gap: 28px;
    margin-top: 28px;
}

/* mejorar aire interno de cada card de producto */
#productos .t1-card-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* espacio más limpio entre imagen y título */
#productos .t1-card-media {
    margin-bottom: 8px;
}

/* listas con mejor respiración */
#productos .t1-list {
    gap: 12px;
}

/* separa mejor texto de apoyo y botones */
#productos .t1-card-support {
    margin-top: 6px;
}

/* evita que los botones queden pegados al texto */
#productos .t1-card-actions {
    margin-top: 10px;
}

/* móvil */
@media (max-width: 768px) {
    #productos .t1-grid-3 + .t1-grid-3 {
        grid-template-columns: 1fr;
        justify-content: stretch;
        gap: 22px;
        margin-top: 22px;
    }

    #productos .t1-card-body {
        gap: 16px;
    }
}