/* ==========================================================================
   Landing page - Tormesol Frigorífico (app/Views/index.php)
   Bootstrap 5.3 (solo esta vista, vía CDN) + paleta de marca.
   Azul #093FB4 / blanco #FFFCFB (predominante) / rosa #FFD8D8 / rojo #ED3500
   ========================================================================== */

:root {
    --tf-blue: #093FB4;
    --tf-blue-dark: #062C7E;
    --tf-cream: #FFFCFB;
    --tf-sand: #FFD8D8;
    --tf-red: #ED3500;
    --tf-text: #2b2d33;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--tf-cream);
    color: var(--tf-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------------- Navbar ---------------- */
.tf-navbar {
    background-color: rgba(237, 53, 0, 0.96);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    transition: box-shadow .2s ease;
}

.tf-navbar.scrolled {
    box-shadow: 0 2px 12px rgba(6, 44, 126, 0.25);
}

.tf-navbar .navbar-brand {
    font-weight: 800;
    color: #fff;
}

.tf-navbar .navbar-brand i {
    color: #fff;
    margin-right: 8px;
}

.tf-navbar .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.tf-navbar .nav-link:hover {
    color: #fff;
}

.tf-navbar .btn-tf-outline {
    border-color: #fff;
    color: #fff;
}

.tf-navbar .btn-tf-outline:hover {
    background-color: #fff;
    color: var(--tf-red);
}

.btn-tf-primary {
    background-color: var(--tf-blue);
    border-color: var(--tf-blue);
    color: #fff;
    font-weight: 600;
}

.btn-tf-primary:hover,
.btn-tf-primary:focus {
    background-color: var(--tf-blue-dark);
    border-color: var(--tf-blue-dark);
    color: #fff;
}

.btn-tf-cta {
    background-color: var(--tf-red);
    border-color: var(--tf-red);
    color: #fff;
    font-weight: 600;
}

.btn-tf-cta:hover,
.btn-tf-cta:focus {
    background-color: #b22800;
    border-color: #b22800;
    color: #fff;
}

.btn-tf-outline {
    border: 1.5px solid var(--tf-blue);
    color: var(--tf-blue-dark);
    font-weight: 600;
    background: transparent;
}

.btn-tf-outline:hover {
    background-color: var(--tf-blue);
    color: #fff;
}

/* ---------------- Hero ---------------- */
.tf-hero {
    padding: 140px 0 90px;
    background:
        radial-gradient(circle at 15% 20%, rgba(9, 63, 180, 0.10), transparent 45%),
        radial-gradient(circle at 85% 0%, rgba(255, 216, 216, 0.45), transparent 40%),
        var(--tf-cream);
}

.tf-hero .badge-pill {
    background-color: #fff;
    border: 1px solid var(--tf-sand);
    color: var(--tf-blue-dark);
    font-weight: 600;
    padding: .5rem 1rem;
    border-radius: 50px;
}

.tf-hero h1 {
    color: var(--tf-blue-dark);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.tf-hero .lead {
    color: var(--tf-text);
    max-width: 560px;
}

.tf-hero-visual {
    background-color: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 20px 45px -20px rgba(6, 44, 126, 0.35);
    padding: 2.25rem;
    text-align: left;
}

.tf-hero-visual .tf-hero-icon {
    width: 56px;
    height: 56px;
    border-radius: .85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
}

.tf-hero-visual .tf-hero-icon.bg-1 { background-color: var(--tf-blue); }
.tf-hero-visual .tf-hero-icon.bg-2 { background-color: #c9a24a; }
.tf-hero-visual .tf-hero-icon.bg-3 { background-color: var(--tf-red); }

/* ---------------- Secciones ---------------- */
.tf-section {
    padding: 90px 0;
}

.tf-section-alt {
    background-color: #fff;
}

.tf-eyebrow {
    color: var(--tf-red);
    font-weight: 700;
    text-transform: uppercase;
    font-size: .8rem;
    letter-spacing: .08em;
}

.tf-section h2 {
    color: var(--tf-blue-dark);
    font-weight: 800;
}

.tf-section .section-lead {
    max-width: 640px;
    color: #5c5850;
}

/* ---------------- Tarjetas ---------------- */
.tf-card {
    background-color: #fff;
    border: 1px solid rgba(9, 63, 180, 0.08);
    border-radius: 1rem;
    padding: 2rem 1.6rem;
    height: 100%;
    text-align: center;
    transition: transform .18s ease, box-shadow .18s ease;
}

.tf-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -18px rgba(6, 44, 126, 0.35);
}

.tf-card .tf-icon {
    width: 52px;
    height: 52px;
    border-radius: .85rem;
    background-color: rgba(9, 63, 180, 0.1);
    color: var(--tf-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin: 0 auto 1.1rem;
}

.tf-card .tf-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--tf-red);
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
    margin-bottom: .9rem;
}

.tf-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--tf-blue-dark);
}

.tf-card p {
    font-size: .92rem;
    color: #5c5850;
    margin-bottom: 0;
}

/* variantes bodega por temperatura */
.tf-card.tf-seca .tf-icon { background-color: rgba(201, 162, 74, 0.15); color: #c9a24a; }
.tf-card.tf-refrigerado .tf-icon { background-color: rgba(9, 63, 180, 0.12); color: var(--tf-blue); }
.tf-card.tf-congelado .tf-icon { background-color: rgba(31, 95, 168, 0.12); color: #1f5fa8; }

/* ---------------- Confianza (fondo oscuro) ---------------- */
.tf-section-dark {
    background-color: var(--tf-blue-dark);
    color: #fff;
}

.tf-section-dark h2,
.tf-section-dark .tf-eyebrow {
    color: #fff;
}

.tf-section-dark .section-lead {
    color: #d9e4f0;
}

.tf-trust-item {
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1rem;
    padding: 1.75rem 1.4rem;
    height: 100%;
    text-align: center;
}

.tf-trust-item i {
    color: var(--tf-sand);
    font-size: 1.6rem;
    margin-bottom: .8rem;
}

.tf-trust-item h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .4rem;
}

.tf-trust-item p {
    font-size: .88rem;
    color: #cbd8e8;
    margin-bottom: 0;
}

/* ---------------- CTA final ---------------- */
.tf-cta-banner {
    background: linear-gradient(120deg, var(--tf-blue), var(--tf-blue-dark));
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    color: #fff;
}

/* ---------------- Footer ---------------- */
.tf-footer {
    background-color: #041d54;
    color: #cbd8e8;
    padding: 28px 0;
    font-size: .85rem;
}

.tf-footer a {
    color: #fff;
}

/* ---------------- Modal login ---------------- */
#loginModal .modal-content {
    border: none;
    border-radius: 1.1rem;
    overflow: hidden;
}

#loginModal .tf-modal-header {
    background-color: var(--tf-blue);
    color: #fff;
    padding: 1.75rem 1.75rem 1.25rem;
    text-align: center;
}

#loginModal .tf-modal-header i {
    font-size: 2.2rem;
    margin-bottom: .5rem;
}

#loginModal .modal-body {
    padding: 1.75rem;
}

#loginModal .form-floating label {
    color: #6c757d;
}

#loginModal .btn-tf-primary {
    padding: .65rem 0;
}

@media (max-width: 767.98px) {
    .tf-hero {
        padding: 110px 0 50px;
        text-align: center;
    }
    .tf-hero .lead {
        margin-left: auto;
        margin-right: auto;
    }
    .tf-hero .d-flex.flex-wrap.gap-3 {
        justify-content: center;
    }
    .tf-section {
        padding: 50px 0;
    }
    .tf-cta-banner {
        padding: 2rem 1.25rem;
    }
}

@media (max-width: 575.98px) {
    .tf-hero h1 {
        font-size: 1.75rem;
    }
    .tf-hero-visual {
        padding: 1.5rem;
    }
    .tf-card,
    .tf-trust-item {
        padding: 1.5rem 1.25rem;
    }
}
