/* ==========================================================================
   1. VARIABLES (:root)
   ========================================================================== */
:root {
    --bg: #ffffff;
    --paper: #ffffff;
    --text: #111318;
    --muted: #5b616e;
    --line: #ececec;

    --sp-red: #8d1020;
    --sp-red-2: #6f0c18;
    --sp-gold: #c89b1a;

    --navText: rgba(255, 255, 255, .92);
    --navText2: rgba(255, 255, 255, .72);
    --accent: var(--sp-gold);

    --max: 1120px;
    --pad: 22px;
    --pad-lg: 34px;
    --nav-h: 70px;
}
/* ==========================================================================
   2. RESETEO Y BASE
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.45;
}

a {
    color: inherit;
    text-decoration: none;
}

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

[hidden] {
    display: none !important;
}

.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--pad);
}

section {
    padding: 70px 0;
}

.sec-title {
    font-size: 44px;
    letter-spacing: 1px;
    font-weight: 400;
    text-transform: uppercase;
    line-height: 1;
    margin: 0;
    text-align: center;
}

/* ==========================================================================
   3. NAVEGACIÓN & CABECERA RESPONSIVE
   ========================================================================== */
.nav-flagbar {
    width: 100%;
    height: 7px;
    background: linear-gradient(to right, #aa151b 0%, #aa151b 33.333%, #f1bf00 33.333%, #f1bf00 66.666%, #aa151b 66.666%, #aa151b 100%);
}

header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    background: linear-gradient(180deg, rgba(141, 16, 32, .98), rgba(111, 12, 24, .98));
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.wrap.nav {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 22px;
}

/* Logo en Escritorio (Alineado según tu segunda captura) */
.brand {
    display: inline-flex;
    align-items: center;
}

.brand img {
    height: 56px;
    width: auto;
    display: block;
    border-radius: 12px;
}

.st-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 13px;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .72);
}

.st-nav a {
    padding: 10px 6px;
    border-radius: 12px;
}

.st-nav a:hover {
    color: rgba(255, 255, 255, .92);
    background: rgba(255, 255, 255, .08);
}

.hamburger {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(0, 0, 0, .08);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    z-index: 60;
}

.hamburger span {
    width: 20px;
    height: 2px;
    background: rgba(255, 255, 255, .90);
    border-radius: 3px;
}

/* AJUSTES PARA MÓVIL (< 980px) */
@media (max-width: 980px) {
    .wrap.nav {
        justify-content: center; /* Centra el logo */
    }

    /* Logo perfectamente centrado en móviles */
    .brand {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    /* Botón Hamburguesa colocado a la DERECHA del todo */
    .hamburger {
        display: flex;
        position: absolute;
        right: 22px;
    }

/* Menú desplegable */
    .st-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(111, 12, 24, .98);
        position: absolute;
        top: 100%;
        left: 0;
        padding: 16px 22px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, .2);
    }

    .st-nav.active {
        display: flex;
    }

    .st-nav a {
        padding: 12px 10px;
        border-radius: 8px;
        color: #ffffff;
    }
}


/* ==========================================================================
   4. HERO & STRIP
   ========================================================================== */
.hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url("/img/hero.jpeg");
    background-size: cover;
    background-position: center;
}

.hero-inner {
    position: relative;
    width: 100%;
    text-align: center;
    padding: 64px var(--pad);
    color: #fff;
}

.hero-inner h1 {
    font-size: 62px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 400;
}

.strip {
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.strip-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    align-items: stretch;
}

.strip-item {
    padding: 20px 14px;
    border-right: 1px solid var(--line);
}

.strip-item:last-child {
    border-right: 0;
}

.strip-item-inner {
    width: 100%;
    text-align: center;
}

.strip-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    font-size: 12px;
}

.strip-top img {
    width: 28px;
    height: 28px;
}

.strip-thumb {
    margin: 14px auto 0;
    width: 92%;
    max-width: 360px;
    height: 140px;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}

.strip-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   5. FORMULARIO DE CONTACTO
   ========================================================================== */
.contact {
    border-top: 1px solid var(--line);
    background: #fff;
}

.lm-form-container {
    max-width: 720px;
    margin: 34px auto 0;
}

.form-group {
    margin-bottom: 22px;
}

label {
    display: block;
    font-size: 16px;
    color: #5b616e;
    margin-bottom: 10px;
}

input[type="text"],
input[type="email"],
select,
textarea {
    width: 100%;
    border: 2px solid #ececec;
    border-radius: 18px;
    padding: 16px 18px;
    font-size: 16px;
    outline: none;
    background: #fff;
    color: #111318;
}

textarea {
    min-height: 180px;
    resize: vertical;
}

.lm-bottom {
    margin-top: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-submit {
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 900;
    background: #aa141b;
    color: white;
    border-radius: 18px;
    border: none;
    cursor: pointer;
}

/* ==========================================================================
   6. FOOTER
   ========================================================================== */
footer {
    border-top: 1px solid var(--line);
    padding: 22px 0;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.foot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* ==========================================================================
   7. MEDIA QUERIES (RESPONSIVE)
   ========================================================================== */
@media (min-width: 980px) {
    .wrap {
        padding: 0 var(--pad-lg);
    }

    .hero-inner {
        padding: 86px var(--pad-lg);
    }
}

@media (max-width: 980px) {
    .menu {
        display: none;
    }

    .burger {
        display: flex;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }

    .brand {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
    }

    .brand .logo-card img {
        height: 44px;
    }

    .hero-inner h1 {
        font-size: 40px;
    }

    .strip-row {
        grid-template-columns: 1fr;
    }

    .strip-item {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .strip-item:last-child {
        border-bottom: 0;
    }

    .lm-bottom {
        align-items: flex-start;
    }
}

@media (max-width: 520px) {
    .hero-inner h1 {
        font-size: 34px;
        letter-spacing: 1px;
    }

    .lm-bottom {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-submit {
        width: 100%;
    }
}
