/* =========================================================
   BRAVO'S CRITICAL LOGISTICS — STYLE.CSS (FULLY RESPONSIVE)
   Paleta oficial (paleta.png):
   #041C32 (navy) | #04293A (deep) | #064663 (teal) | #ECB365 (accent)
========================================================= */

:root {
    --navy: #041C32;
    --deep: #04293A;
    --teal: #064663;
    --accent: #ECB365;
    --accent-strong: #E0A24A;
    --ink: #EAF3F8;
    --muted: #9FBECB;
    --headline: #8FC4D8;
    --header-h: 76px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--navy);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-x: clip
}

img {
    max-width: 100%;
    height: auto;
    display: block
}

.container {
    width: min(1200px, 100% - 2.5rem);
    margin-inline: auto
}

h1,
h2,
h3 {
    font-family: 'Oswald', sans-serif
}

section[id] {
    scroll-margin-top: calc(var(--header-h) + 40px)
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px
}

/* ============ NOTA: SITIO EN CONSTRUCCIÓN ============ */
.construction {
    background: var(--accent);
    color: var(--navy)
}

.construction::before,
.construction::after {
    content: "";
    display: block;
    height: 8px;
    background: repeating-linear-gradient(-45deg, var(--navy) 0 14px, var(--accent) 14px 28px)
}

.construction-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .9rem;
    padding: .9rem 1.5rem
}

.construction svg {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    color: var(--navy)
}

.construction p {
    font-size: .92rem;
    font-weight: 600;
    color: var(--navy)
}

.construction strong {
    text-transform: uppercase;
    letter-spacing: .06em
}

/* ============ TOP BAR ============ */
.topbar {
    background: var(--deep);
    border-bottom: 1px solid rgba(236, 179, 101, .25);
    font-size: .85rem
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem 1.5rem;
    flex-wrap: wrap;
    padding: .55rem 1.5rem
}

.top-phone {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
    letter-spacing: .03em
}

.top-phone svg {
    width: 15px;
    height: 15px
}

.top-phone:hover {
    color: var(--accent-strong)
}

.top-reg {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: var(--muted)
}

.top-reg svg {
    width: 15px;
    height: 15px;
    color: var(--accent)
}

.top-mail {
    color: var(--muted);
    text-decoration: none
}

.top-mail:hover {
    color: var(--accent)
}

/* ============ HEADER / NAV ============ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(4, 28, 50, .94);
    backdrop-filter: blur(8px);
    border-bottom: 2px solid var(--teal)
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 1.5rem
}

.brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    text-decoration: none
}

.brand svg {
    width: 46px;
    height: 46px;
    flex-shrink: 0
}

.brand-name {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--accent);
    line-height: 1.1;
    letter-spacing: .03em
}

.brand-sub {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: .66rem;
    font-weight: 600;
    letter-spacing: .34em;
    color: var(--headline)
}

/* Menú hamburguesa (solo móvil) */
.nav-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none
}

.nav-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    border-radius: 6px;
    margin-left: auto
}

.nav-burger span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    transition: transform .3s, opacity .3s
}

.nav-toggle:checked~.nav-burger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg)
}

.nav-toggle:checked~.nav-burger span:nth-child(2) {
    opacity: 0
}

.nav-toggle:checked~.nav-burger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg)
}

.menu-cta {
    display: none
}

.menu {
    display: flex;
    gap: 1.6rem;
    list-style: none
}

.menu a {
    color: var(--ink);
    text-decoration: none;
    text-transform: uppercase;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .09em
}

.menu a:hover {
    color: var(--accent)
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .85rem 1.5rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: .25s
}

.btn-accent {
    background: var(--accent);
    color: var(--navy);
    box-shadow: 0 4px 18px rgba(236, 179, 101, .35)
}

.btn-accent:hover {
    background: var(--accent-strong);
    transform: translateY(-2px)
}

.btn-ghost {
    border: 2px solid var(--accent);
    color: var(--accent)
}

.btn-ghost:hover {
    background: rgba(236, 179, 101, .12)
}

.btn svg {
    width: 16px;
    height: 16px
}

/* ============ HERO (hero.png) ============ */
.hero {
    background: linear-gradient(90deg, rgba(4, 28, 50, .9) 0%, rgba(4, 28, 50, .62) 45%, rgba(4, 41, 58, .25) 100%), url('hero.png') center/cover no-repeat;
    padding: clamp(4.5rem, 11vw, 7.5rem) 0 clamp(5rem, 12vw, 8.5rem)
}

.hero h1 {
    text-transform: uppercase;
    color: var(--headline);
    font-size: clamp(2.1rem, 5vw, 4.1rem);
    line-height: 1.1;
    max-width: 820px;
    text-wrap: balance
}

.hero p {
    margin: 1.3rem 0 2.2rem;
    max-width: 580px;
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    color: var(--ink)
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap
}

/* ============ SECCIONES ============ */
.section {
    padding: clamp(3.5rem, 7vw, 5rem) 0
}

.section-tight {
    padding-top: 0
}

.eyebrow {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: .22em;
    font-size: .78rem;
    font-weight: 700
}

.section h2 {
    text-transform: uppercase;
    color: var(--headline);
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    line-height: 1.15;
    margin-top: .4rem;
    text-wrap: balance
}

.rule {
    width: 72px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
    margin-top: 1.1rem
}

/* ============ SERVICIOS (iconos PNG) ============ */
.services {
    background: var(--deep)
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
    margin-top: 3rem
}

.card {
    background: var(--teal);
    border: 1px solid rgba(236, 179, 101, .22);
    border-radius: 12px;
    padding: 2.4rem 1.8rem;
    text-align: center;
    transition: transform .25s, border-color .25s
}

.card:hover {
    transform: translateY(-6px);
    border-color: var(--accent)
}

.card .icon {
    width: 112px;
    height: 112px;
    object-fit: contain;
    margin: 0 auto 1.3rem;
    background: #F7FAFB;
    border-radius: 14px;
    padding: .7rem;
    border: 1px solid rgba(236, 179, 101, .4);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25)
}

.card h3 {
    color: #fff;
    font-size: 1.25rem;
    letter-spacing: .03em;
    margin-bottom: .6rem
}

.card p {
    color: var(--muted);
    font-size: .95rem
}

/* ============ VENTAJAS + MAPA ============ */
.adv-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 3.5rem;
    align-items: center
}

.bullets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem 1.6rem;
    margin-top: 2.2rem
}

.bullet {
    display: flex;
    gap: .8rem;
    align-items: flex-start
}

.bullet svg {
    width: 26px;
    height: 26px;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px
}

.bullet strong {
    color: #fff;
    font-size: .98rem
}

.bullet span {
    display: block;
    color: var(--muted);
    font-size: .85rem
}

.map-card {
    background: #F4F6F8;
    border-radius: 14px;
    padding: 1.3rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45)
}

.map-card img {
    width: 100%;
    border-radius: 8px
}

.map-caption {
    margin-top: .9rem;
    color: var(--teal);
    font-size: .85rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: .05em
}

/* ============ TESTIMONIOS ============ */
.quotes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
    margin-top: 3rem
}

.quote {
    background: var(--deep);
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    padding: 1.7rem;
    font-size: .93rem;
    color: var(--muted)
}

.quote strong {
    display: block;
    margin-top: 1rem;
    color: var(--ink);
    font-size: .85rem
}

/* ============ CONTACTO ============ */
.contact {
    background: var(--deep)
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr;
    gap: 1.6rem;
    margin-top: 3rem
}

.phone-card {
    background: var(--accent);
    color: var(--navy);
    border-radius: 12px;
    padding: 2.4rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: glow 3s infinite
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(236, 179, 101, .45)
    }

    50% {
        box-shadow: 0 0 0 16px rgba(236, 179, 101, 0)
    }
}

.phone-card .label {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .78rem
}

.big-phone {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    color: var(--navy);
    text-decoration: none;
    line-height: 1.15;
    margin: .4rem 0 .6rem
}

.big-phone:hover {
    color: #02101c
}

.phone-card p {
    font-size: .92rem;
    font-weight: 600;
    color: rgba(4, 28, 50, .85)
}

.info-card {
    background: var(--teal);
    border: 1px solid rgba(236, 179, 101, .22);
    border-radius: 12px;
    padding: 2rem
}

.info-card svg {
    width: 34px;
    height: 34px;
    color: var(--accent);
    margin-bottom: 1rem
}

.info-card h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: .5rem;
    letter-spacing: .04em
}

.info-card a {
    color: var(--accent);
    text-decoration: none;
    word-break: break-all;
    font-weight: 600
}

.info-card a:hover {
    color: var(--accent-strong)
}

.info-card p {
    color: var(--muted);
    font-size: .88rem
}

/* ============ SELLO FLORIDA ============ */
.florida-inner {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    border: 1px solid rgba(236, 179, 101, .4);
    background: linear-gradient(90deg, rgba(6, 70, 99, .35), rgba(4, 28, 50, 0));
    border-radius: 12px;
    padding: 2rem
}

.florida-inner svg {
    width: 56px;
    height: 56px;
    color: var(--accent);
    flex-shrink: 0
}

.florida-inner h3 {
    color: var(--headline);
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: 1.15rem;
    margin-bottom: .4rem
}

.florida-inner strong {
    color: var(--accent)
}

.florida-inner p {
    color: var(--muted);
    font-size: .93rem
}

/* ============ FOOTER ============ */
footer {
    background: #020F1A;
    padding: 4rem 0 0
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 2.5rem
}

.footer-brand {
    margin-bottom: 1rem
}

.footer-brand .brand-name {
    font-size: 1.1rem
}

.footer-grid h4 {
    font-family: 'Oswald', sans-serif;
    color: var(--headline);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 1.1rem
}

.footer-grid p,
.footer-grid a {
    color: var(--muted);
    font-size: .9rem;
    text-decoration: none
}

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

.footer-grid ul {
    list-style: none
}

.footer-grid li {
    margin-bottom: .55rem
}

.footer-contact li {
    display: flex;
    gap: .6rem;
    align-items: flex-start;
    margin-bottom: .7rem
}

.footer-contact svg {
    width: 16px;
    height: 16px;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 3px
}

.footer-contact a.tel {
    color: var(--accent);
    font-weight: 700
}

.footer-bottom {
    border-top: 1px solid rgba(159, 190, 203, .15);
    margin-top: 3rem;
    padding: 1.2rem 0
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .6rem;
    font-size: .8rem;
    color: var(--muted)
}

/* =========================================================
   RESPONSIVE — CUALQUIER DISPOSITIVO
========================================================= */

/* Monitores grandes (1440px+) y 4K */
@media (min-width:1440px) {
    html {
        font-size: 17px
    }

    .container {
        width: min(1320px, 100% - 3rem)
    }
}

@media (min-width:1920px) {
    html {
        font-size: 18px
    }
}

/* Tablet horizontal / laptop pequeño */
@media (max-width:1080px) {
    .adv-grid {
        gap: 2.5rem
    }

    .menu {
        gap: 1.1rem
    }
}

/* Tablet vertical */
@media (max-width:980px) {
    .adv-grid {
        grid-template-columns: 1fr
    }

    .cards {
        grid-template-columns: 1fr 1fr
    }

    .quotes {
        grid-template-columns: 1fr 1fr
    }

    .quote:last-child {
        grid-column: 1/-1
    }

    .contact-grid {
        grid-template-columns: 1fr 1fr
    }

    .phone-card {
        grid-column: 1/-1
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr
    }
}

/* Menú hamburguesa activo */
@media (max-width:900px) {
    .nav-cta {
        display: none
    }

    .nav-burger {
        display: flex
    }

    .menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--deep);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height .4s ease;
        border-bottom: 2px solid var(--teal);
        box-shadow: 0 18px 40px rgba(0, 0, 0, .45)
    }

    .nav-toggle:checked~.menu {
        max-height: 480px
    }

    .menu li {
        width: 100%
    }

    .menu a {
        display: block;
        padding: 1rem 1.5rem;
        border-top: 1px solid rgba(159, 190, 203, .12);
        font-size: .9rem;
        min-height: 44px
    }

    .menu-cta {
        display: block
    }

    .menu-cta a {
        color: var(--accent);
        font-weight: 700
    }
}

/* Móviles */
@media (max-width:640px) {
    .container {
        width: min(1200px, 100% - 2rem)
    }

    .cards,
    .quotes,
    .contact-grid,
    .footer-grid,
    .bullets {
        grid-template-columns: 1fr
    }

    .quote:last-child {
        grid-column: auto
    }

    .florida-inner {
        flex-direction: column;
        text-align: center
    }

    .topbar-inner {
        justify-content: center;
        text-align: center
    }

    .construction-inner {
        flex-direction: column;
        text-align: center;
        gap: .4rem;
        padding: .8rem 1.2rem
    }

    .hero {
        background: linear-gradient(180deg, rgba(4, 28, 50, .9) 0%, rgba(4, 28, 50, .72) 55%, rgba(4, 41, 58, .5) 100%), url('hero.png') center 35%/cover no-repeat
    }

    .hero-cta .btn {
        width: 100%
    }

    .footer-bottom .container {
        justify-content: center;
        text-align: center
    }
}

/* Móviles muy pequeños (320px) */
@media (max-width:380px) {
    html {
        font-size: 14.5px
    }

    .brand-name {
        font-size: 1.15rem
    }

    .brand-sub {
        letter-spacing: .22em
    }

    .top-reg {
        font-size: .72rem
    }

    .card .icon {
        width: 92px;
        height: 92px
    }
}

/* Teléfono en horizontal (pantalla baja) */
@media (max-height:520px) and (orientation:landscape) {
    .hero {
        padding: 3rem 0
    }

    .hero h1 {
        font-size: 2rem
    }

    .section {
        padding: 2.5rem 0
    }
}

/* Pantallas táctiles: objetivos de toque ≥44px */
@media (hover:none) and (pointer:coarse) {

    .btn,
    .top-phone,
    .top-mail {
        min-height: 44px
    }

    .card:hover {
        transform: none
    }
}

/* Accesibilidad: usuarios que prefieren menos movimiento */
@media (prefers-reduced-motion:reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important
    }

    html {
        scroll-behavior: auto
    }
}
