/* ============================================
   the_products.html - Custom Styles
   Layout follows PDF reference design
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    --color-primary: #0a1628;        /* Hero dark navy */
    --color-accent: rgba(53, 82, 164, 1);   /* Main accent: navy blue */
    --color-accent-hover: rgba(40, 62, 124, 1);
    --color-text-dark: #1a1a2e;
    --color-text-body: #444455;
    --color-text-light: #8892a0;
    --color-card-bg: #ffffff;
    --color-card-border: #e2e6ec;
    --color-card-shadow: rgba(10, 22, 40, 0.06);
    --color-promo-bg: #0d1b2a;
    --color-footer-bg: #080f1c;
    --font-heading: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    --radius-card: 8px;
    --radius-btn: 6px;
    --transition-base: 0.3s ease;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-heading);
    color: var(--color-text-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ---------- HERO BANNER ---------- */
.hero-banner {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: url('/assets/wp-content/uploads/2025/07/Imagen-Fondo-Inicio-1.jpg') center/cover no-repeat;
    background-color: #0a1628;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 22, 40, 0.65) 0%,
        rgba(13, 27, 42, 0.55) 50%,
        rgba(10, 22, 40, 0.65) 100%
    );
    z-index: 2;
}

.hero-content {
    z-index: 3;
    padding-top: 60px;
    padding-bottom: 60px;
}

.hero-tagline {
    color: var(--color-accent);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-desc {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.72);
    max-width: 520px;
    line-height: 1.8;
    margin-bottom: 12px;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-accent);
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: var(--radius-btn);
    font-weight: 600;
    font-size: 0.98rem;
    text-decoration: none;
    transition: all var(--transition-base);
    cursor: pointer;
}

.btn-hero:hover {
    background: var(--color-accent-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(53, 82, 164, 0.35);
}

/* Hero Visual (right side mockup) */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
}

.hero-mockup {
    width: 100%;
    height: 280px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    animation: floatMockup 6s ease-in-out infinite;
}

.hero-logo-img {
    width: 100%;
    /*max-width: 280px;*/
    height: auto;
    border-radius: 16px;
    display: block;
}

@keyframes floatMockup {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

/* ---------- PRODUCTS SECTION ---------- */
.products-section {
    background: #f7f8fb;
    padding-top: 30px;
    padding-bottom: 30px;
}

.section-title {
    color: var(--color-accent);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 36px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-accent);
    display: inline-block;
    letter-spacing: 0.5px;
}

/* Product Card */
.product-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-card);
    padding: 26px 24px 22px;
    height: 100%;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px var(--color-card-shadow);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(10, 22, 40, 0.12);
    border-color: var(--color-accent);
}

/* Card top: brand label */
.product-brand {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-light);
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    line-height: 1.2;
}

/* Card middle: product name */
.product-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 0;
    line-height: 1.35;
    letter-spacing: -0.2px;
}

/* Card bottom: logo (image) + company name.
   No divider line — gap = 2x the company-name height. */
.product-footer {
    margin-top: 2.4rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-logo {
    flex-shrink: 0;
    /*width: 28px;*/
    height: 28px;
    /*border-radius: 50%;*/
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow var(--transition-base);
}

.product-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /*border-radius: 50%;*/
}

.product-card:hover .product-logo {
    /*box-shadow: 0 4px 12px rgba(53, 82, 164, 0.3);*/
}

.product-category {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-body);
    line-height: 1.3;
}

/* Add-to-list button in product footer (height matches 28px logo) */
.add2list {
    margin-left: auto;
    flex-shrink: 0;
    height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1;
    color: #fff;
    background: var(--color-accent);
    border: none;
    border-radius: var(--radius-btn);
    cursor: pointer;
    transition: background var(--transition-base);
}

.add2list:hover {
    background: var(--color-accent-hover);
}

/* ---------- PROMO BANNER ---------- */
.promo-banner {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Promo Banner 2 (Magnet Why) — video background */
.promo-banner-2 {
    min-height: 520px;
    background-color: #0a1428;
}

.promo-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.promo-overlay-video {
    /*background: linear-gradient(*/
    /*    to right,*/
    /*    rgba(15, 31, 78, 0.92) 0%,*/
    /*    rgba(15, 31, 78, 0.82) 40%,*/
    /*    rgba(15, 31, 78, 0.55) 70%,*/
    /*    rgba(15, 31, 78, 0.35) 100%*/
    /*);*/
}

.promo-text-video {
    padding: 60px 0;
    max-width: 760px;
}

.promo-text-video .promo-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    margin-bottom: 24px;
}

.promo-eyebrow {
    font-size: clamp(0.9rem, 1.3vw, 1.05rem);
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    opacity: 0.85;
    margin-bottom: 18px;
}

.promo-text-video .promo-desc {
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    line-height: 1.6;
    max-width: 640px;
    opacity: 0.92;
}

@media (max-width: 768px) {
    .promo-banner-1 { min-height: 420px; }
    .promo-banner-2 { min-height: 420px; }
    .promo-banner-3 { min-height: 460px; }
    .promo-text-video { padding: 40px 0; }
}

.promo-banner-1 {
    min-height: 520px;
    background-color: #0a1428;
}

.promo-banner-2 {
    background-color: var(--color-promo-bg);
    background-size: cover;
    background-position: center;
}

.promo-banner-3 {
    min-height: 560px;
    background-color: #0a1428;
}

.promo-overlay {
    position: absolute;
    inset: 0;
    /*background: linear-gradient(*/
    /*    to right,*/
    /*    rgba(2, 62, 127, 0.94) 0%,*/
    /*    rgba(13, 27, 42, 0.75) 60%,*/
    /*    rgba(13, 27, 42, 0.92) 100%*/
    /*);*/
    z-index: 1;
}

.promo-banner .container {
    z-index: 2;
    position: relative;
    padding-top: 48px;
    padding-bottom: 48px;
}

/* Promo Banner 1 - Image Left + Text Right */
.promo-image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.promo-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.promo-placeholder {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, rgba(53, 82, 164, 0.15), rgba(40, 62, 124, 0.08));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(53, 82, 164, 0.3);
}

.promo-placeholder i {
    font-size: 4rem;
    color: rgba(53, 82, 164, 0.5);
}

.promo-text {
    padding-left: 20px;
}

.promo-text-centered {
    padding: 20px 0;
}

.promo-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 18px;
}

.promo-desc {
    font-size: 0.96rem;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.8;
    margin-bottom: 24px;
    max-width: 500px;
}

.promo-text-centered .promo-desc {
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.btn-promo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 11px 28px;
    border-radius: var(--radius-btn);
    font-weight: 600;
    font-size: 0.93rem;
    text-decoration: none;
    transition: all var(--transition-base);
    cursor: pointer;
}

.btn-promo:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(53, 82, 164, 0.3);
}

/* ---------- FOOTER ---------- */
.site-footer {
    background: var(--color-footer-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-text {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.86rem;
}

/* ---------- FOOTER EXTENDED (contact + disclaimer) ---------- */
.footer-logo {
    max-width: 220px;
    height: auto;
    display: block;
}

.footer-top {
    padding-bottom: 28px;
}

.footer-col {
    min-width: 0;
}

.footer-heading {
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.footer-line {
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.footer-line a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-line a:hover {
    color: var(--color-accent);
}

.footer-divider {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0 0 22px;
}

.footer-disclaimer {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.83rem;
    line-height: 1.6;
}

/* ---------- SCROLL ANIMATIONS ---------- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- RESPONSIVE ADJUSTMENTS ---------- */

/* Tablet & Small Desktop */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.6rem;
    }

    .hero-desc {
        max-width: 100%;
    }

    .hero-visual {
        height: 260px;
        margin-top: 30px;
    }

    .hero-mockup {
        width: 200px;
        height: 200px;
    }

    .hero-mockup i {
        font-size: 3.5rem;
    }

    .promo-text {
        padding-left: 0;
        margin-top: 24px;
    }

    .promo-banner {
        min-height: auto;
    }
}

/* Mobile Landscape / Large Phone */
@media (max-width: 767.98px) {
    .hero-banner {
        min-height: 90vh;
    }

    .hero-content {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .hero-tagline {
        font-size: 0.82rem;
        letter-spacing: 1.5px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-desc {
        font-size: 0.94rem;
    }

    .btn-hero {
        padding: 12px 26px;
        font-size: 0.92rem;
    }

    .section-title {
        font-size: 1.3rem;
        margin-bottom: 24px;
    }

    .product-card {
        padding: 22px 20px 18px;
    }

    .product-name {
        font-size: 1.1rem;
        margin-bottom: 0;
    }

    .promo-title {
        font-size: 1.5rem;
    }

    .promo-desc {
        font-size: 0.9rem;
    }
}

/* Mobile Portrait / Small Phone */
@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.7rem;
    }

    .hero-mockup {
        width: 160px;
        height: 160px;
    }

    .hero-mockup i {
        font-size: 2.8rem;
    }

    .section-title {
        font-size: 1.15rem;
    }

    .product-logo img {
        width: 28px;
        height: 28px;
    }

    .product-footer {
        margin-top: 2.2rem;
    }

    .product-card {
        padding: 20px 16px 16px;
    }

    .product-name {
        font-size: 1.05rem;
        margin-bottom: 0;
    }

    .product-category {
        font-size: 0.8rem;
    }

    .product-brand {
        font-size: 0.75rem;
    }

    .promo-title {
        font-size: 1.3rem;
    }

    .btn-promo {
        padding: 10px 22px;
        font-size: 0.87rem;
    }
}

/* Extra small devices */
@media (max-width: 374.98px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .product-grid > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
