/* ============================================================
   EL MEJOR REGALO — Lotes de España
   Estilo: Visual identity lotesdeespana.es
   ============================================================ */

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

:root {
    --burgundy: #8b1a2a;
    --burgundy-dark: #6a1020;
    --burgundy-light: #a52535;
    --gold: #ffffff;
    --gold-light: #ffffff;
    --cream: #faf8f4;
    --cream-dark: #f2ede4;
    --text: #2a2a2a;
    --text-mid: #555555;
    --text-light: #888888;
    --white: #ffffff;
    --border: #e0d8cc;
    --shadow: 0 4px 24px rgba(139, 26, 42, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    background: var(--cream);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ── TOP BAR ───────────────────────────────────────── */
.topbar {
    background: var(--burgundy-dark);
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    padding: 0.45rem 1rem;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
}

.topbar a {
    color: var(--gold-light);
    text-decoration: none;
}

.topbar a:hover {
    text-decoration: underline;
}

/* ── NAV ────────────────────────────────────────────── */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 2px solid var(--burgundy);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
}

.logo img {
    height: 40px;
    object-fit: contain;
}

.logo-divider {
    width: 1px;
    height: 36px;
    background: var(--border);
    margin: 0 1.1rem;
    flex-shrink: 0;
}

.logo-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    color: var(--burgundy);
    font-weight: 700;
    line-height: 1.1;
}

.logo-text span {
    display: block;
    font-size: 0.65rem;
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    letter-spacing: 0.14em;
    color: var(--text-mid);
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.1rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 0.4rem 0.75rem;
    border-radius: 3px;
    transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
    color: var(--burgundy);
    background: var(--cream-dark);
}

.nav-links a.nav-cta {
    background: var(--burgundy);
    color: var(--white);
    border-radius: 3px;
    padding: 0.5rem 1.1rem;
}

.nav-links a.nav-cta:hover {
    background: var(--burgundy-dark);
    color: var(--white);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
    transition: 0.3s;
}

/* Mobile nav */
@media (max-width: 860px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem 2rem;
        border-bottom: 2px solid var(--burgundy);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
        gap: 0.2rem;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 0.65rem 0;
        font-size: 0.9rem;
        width: 100%;
    }
}

/* ── BUTTONS ────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    border-radius: 3px;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    transition: all 0.25s;
    cursor: pointer;
    border: 2px solid transparent;
    font-family: 'Lato', sans-serif;
}

.btn-gold {
    background: var(--gold);
    color: var(--burgundy-dark);
    border-color: var(--gold);
}

.btn-gold:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
}

.btn-outline-white {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--white);
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

.btn-burgundy {
    background: var(--burgundy);
    color: var(--white);
    border-color: var(--burgundy);
}

.btn-burgundy:hover {
    background: var(--burgundy-dark);
    border-color: var(--burgundy-dark);
}

.btn-outline-burgundy {
    background: transparent;
    border-color: var(--burgundy);
    color: var(--burgundy);
}

.btn-outline-burgundy:hover {
    background: var(--burgundy);
    color: var(--white);
}

/* ── SHARED SECTION ATOMS ───────────────────────────── */
section {
    padding: 5rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.sec-label {
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #6a1020;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
}

.sec-label::before {
    content: '';
    width: 28px;
    height: 1px;
    background: #6a1020;
    display: inline-block;
    flex-shrink: 0;
}

.sec-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.2rem;
    line-height: 1.25;
    color: var(--text);
    margin-bottom: 1.1rem;
}

.sec-title em {
    color: var(--burgundy);
    font-style: italic;
}

.divider {
    width: 48px;
    height: 3px;
    background: #6a1020;
    margin-bottom: 1.5rem;
}

.center {
    text-align: center;
}

.center .sec-label {
    justify-content: center;
}

.center .divider {
    margin-left: auto;
    margin-right: auto;
}

/* ── HERO ────────────────────────────────────────────── */
.hero {
    background-color: var(--burgundy);
    background-image: url('../img/hero-bg.png');
    background-size: cover;
    background-position: center bottom;
    color: var(--white);
    padding: 5.5rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--cream);
    clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-light);
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.hero-eyebrow::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 1px;
    background: var(--gold);
}

.hero h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero h1 em {
    font-style: italic;
    color: var(--gold-light);
}

.hero-sub {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

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

.hero-img-wrap {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-img-inner {
    position: relative;
    display: inline-block;
}

.hero-img-inner img {
    width: 100%;
    max-width: 440px;
    border-radius: 8px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
    animation: float 4s ease-in-out infinite;
    display: block;
}

.hero-badge {
    display: none;
    background: var(--gold);
    color: var(--burgundy-dark);
    padding: 0.45rem 1rem;
    border-radius: 3px;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    margin-bottom: 0.6rem;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ── QUÉ ES ──────────────────────────────────────────── */
.que-es {
    background: var(--cream);
}

.que-es-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.que-es-img {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.que-es-img img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.que-es-img::after {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(196, 163, 90, 0.4);
    border-radius: 2px;
    pointer-events: none;
}

.que-es-text p {
    color: var(--text-mid);
    margin-bottom: 1.2rem;
    font-size: 1.02rem;
}

.que-es-text strong {
    color: var(--burgundy);
}

/* ── VENTAJAS ────────────────────────────────────────── */
.ventajas {
    background: var(--white);
}

.ventajas-intro {
    max-width: 720px;
    margin: 0 auto 3rem;
    text-align: center;
    color: var(--text-mid);
    font-size: 1.02rem;
    line-height: 1.85;
}

.ventajas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    background: var(--border);
    border: 1px solid var(--border);
}

.ventaja-card {
    background: var(--white);
    padding: 2.5rem;
    transition: box-shadow 0.2s;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s ease, transform 0.55s ease, box-shadow 0.2s;
}

.ventaja-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.ventaja-card:hover {
    box-shadow: inset 0 0 0 2px var(--burgundy);
    position: relative;
    z-index: 1;
}

.ventaja-icon {
    width: 52px;
    height: 52px;
    background: var(--burgundy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    color: var(--white);
    flex-shrink: 0;
}

.ventaja-card h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--text);
}

.ventaja-card p {
    color: var(--text-mid);
    font-size: 0.94rem;
    line-height: 1.75;
}

/* ── QUOTE BAND ──────────────────────────────────────── */
.quote-band {
    background: var(--burgundy);
    padding: 4rem 0;
}

.quote-inner {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.quote-mark {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    color: var(--gold);
    line-height: 0.6;
    margin-bottom: 1.2rem;
    display: block;
}

.quote-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.4rem;
    color: var(--white);
    line-height: 1.65;
}

.quote-attr {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-light);
}

/* ── CÓMO FUNCIONA ───────────────────────────────────── */
.como-funciona {
    background: var(--cream-dark);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 3rem;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 26px;
    left: calc(16.66% + 28px);
    right: calc(16.66% + 28px);
    height: 2px;
    background: linear-gradient(90deg, var(--burgundy), var(--gold), var(--burgundy));
    z-index: 0;
}

.step {
    text-align: center;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.step-num {
    width: 52px;
    height: 52px;
    background: var(--burgundy);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    border: 3px solid var(--gold);
    box-shadow: 0 0 0 4px var(--cream-dark);
    position: relative;
    z-index: 2;
}

.step-icon {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.step-icon img {
    height: 90px;
    width: 90px;
    object-fit: contain;
}

.step h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.15rem;
    margin-bottom: 0.8rem;
    color: var(--text);
}

.step p {
    color: var(--text-mid);
    font-size: 0.92rem;
    line-height: 1.75;
}

/* ── SLIDER ──────────────────────────────────────────── */
.products {
    background: var(--white);
}

.slider-wrap {
    margin-top: 2.5rem;
    overflow: hidden;
    position: relative;
}

.slider-track {
    display: flex;
    gap: 1.2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
    cursor: grab;
}

.slider-track:active {
    cursor: grabbing;
}

.slider-track::-webkit-scrollbar {
    display: none;
}

.slide-item {
    flex: 0 0 25%;
    scroll-snap-align: start;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--cream);
    transition: box-shadow 0.25s, transform 0.25s;
}

.slide-item:hover {
    box-shadow: 0 8px 28px rgba(139, 26, 42, 0.18);
    transform: translateY(-4px);
}

.slide-item img {
    width: 100%;
    height: 100px;
    object-fit: contain;
    display: block;
}

/* ── CTA MID ─────────────────────────────────────────── */
.cta-mid {
    background: linear-gradient(135deg, var(--burgundy-dark) 0%, var(--burgundy) 100%);
    padding: 5rem 0;
    text-align: center;
}

.cta-mid h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    color: var(--white);
    max-width: 680px;
    margin: 0 auto 1rem;
    line-height: 1.35;
}

.cta-mid p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

/* ── CONTACT ─────────────────────────────────────────── */
.contact {
    background: var(--cream);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 5rem;
    align-items: start;
}

.contact-info h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-mid);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.contact-phone {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.6rem;
    color: var(--burgundy);
    font-weight: 700;
}

.contact-info .calidad-badge {
    max-width: 160px;
    margin-top: 1.5rem;
    opacity: 0.8;
}

form {
    display: grid;
    gap: 1.2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-mid);
    margin-bottom: 0.4rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: 3px;
    background: var(--white);
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--burgundy);
    box-shadow: 0 0 0 3px rgba(139, 26, 42, 0.08);
}

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

.privacy-check {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 0.87rem;
    color: var(--text-mid);
}

.privacy-check input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}

.privacy-check a {
    color: var(--burgundy);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--burgundy);
    color: var(--white);
    border: none;
    border-radius: 3px;
    font-family: 'Lato', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit:hover {
    background: var(--burgundy-dark);
}

/* ── FOOTER ──────────────────────────────────────────── */
footer {
    background: #1a1a1a;
    color: rgba(255, 255, 255, 0.55);
    padding: 3rem 0 2rem;
    text-align: center;
}

.footer-logo {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 1.2rem 0;
    font-size: 0.8rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--gold-light);
}

.footer-tagline {
    color: var(--gold-light);
    font-style: italic;
    font-size: 0.9rem;
    margin-top: 0.8rem;
}

.footer-copy {
    font-size: 0.78rem;
    margin-top: 1rem;
}

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 860px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-img-wrap {
        display: none;
    }

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

    .que-es-grid {
        grid-template-columns: 1fr;
    }

    .que-es-img {
        order: -1;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .steps::before {
        display: none;
    }

    .step {
        padding: 0 1rem 2.5rem;
    }

    .ventajas-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

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

    .sec-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    section {
        padding: 3.5rem 0;
    }

    .hero-btns {
        flex-direction: column;
    }

    .btn {
        text-align: center;
    }
}

@media (max-width: 860px) {
    .logo-text {
        display: none;
    }
}