/* Configuracion Base Colorida y Limpia */
:root {
    --o-bg: #f8f9fa;
    --o-text: #2d3436;
    --o-primary: #ff7675;
    /* Salmon/Coral */
    --o-secondary: #00cec9;
    /* Teal */
    --o-font-main: 'Outfit', sans-serif;
    --o-font-serif: 'Playfair Display', serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--o-font-main);
    background-color: var(--o-bg);
    color: var(--o-text);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* Navbar Clean */
.navbar {
    padding: 20px 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--o-font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--o-text);
}

.logo-accent {
    color: var(--o-primary);
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--o-primary);
}

/* Header Compacto y Vibrante */
.header-ofertas {
    background: linear-gradient(135deg, #a29bfe 0%, #74b9ff 100%);
    color: #fff;
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 60px;
}

.header-bg {
    position: absolute;
    top: -50%;
    left: -20%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 20%, transparent 20%),
        radial-gradient(circle, rgba(255, 255, 255, 0.1) 20%, transparent 20%);
    background-size: 50px 50px;
    opacity: 0.3;
    animation: moveBg 60s linear infinite;
}

@keyframes moveBg {
    to {
        transform: translate(-50px, -50px);
    }
}

.header-content {
    position: relative;
    z-index: 1;
}

.badge-promo {
    background: var(--o-primary);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(255, 118, 117, 0.4);
}

.bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {

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

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

.header-title {
    font-family: var(--o-font-serif);
    font-size: 3rem;
    margin: 0 0 10px 0;
}

.header-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Lista de Ofertas Unica (Zig Zag) */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.offer-row {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.offer-row.visible {
    opacity: 1;
    transform: translateY(0);
}

.offer-row.reversed {
    flex-direction: row-reverse;
}

.offer-image-wrapper {
    flex: 1;
    position: relative;
    border-radius: 20px;
    overflow: visible;
    /* Permitir que el precio flote fuera */
}

.offer-image-wrapper img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s;
    display: block;
}

.offer-image-wrapper:hover img {
    transform: scale(1.02);
}

.floater-price {
    position: absolute;
    bottom: 30px;
    right: -20px;
    /* Floats outside */
    background: #fff;
    padding: 15px 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    font-size: 2rem;
    font-weight: 700;
    color: var(--o-text);
    display: flex;
    align-items: center;
    gap: 5px;
}

.offer-row.reversed .floater-price {
    right: auto;
    left: -20px;
}

.currency {
    font-size: 1rem;
    color: var(--o-text);
    opacity: 0.6;
}

.discount-tag {
    position: absolute;
    top: -15px;
    right: -10px;
    background: var(--o-secondary);
    color: #fff;
    font-size: 0.8rem;
    padding: 5px 10px;
    border-radius: 10px;
    font-weight: 700;
}

.offer-details {
    flex: 1;
}

.offer-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.offer-meta i {
    color: var(--o-secondary);
}

.offer-details h2 {
    font-family: var(--o-font-serif);
    font-size: 2.5rem;
    margin: 0 0 20px 0;
    color: var(--o-text);
    line-height: 1.1;
}

.description {
    line-height: 1.7;
    color: #636e72;
    margin-bottom: 25px;
}

.price-comparison {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    width: fit-content;
    border: 1px solid #eee;
}

.was-price {
    text-decoration: line-through;
    color: #b2bec3;
}

.saves {
    color: var(--o-primary);
    font-weight: 700;
}

.btn-claim {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--o-text);
    color: #fff;
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 500;
    transition: 0.3s;
}

.btn-claim:hover {
    background: var(--o-primary);
    gap: 15px;
    transform: translateX(5px);
}

.footer-o {
    text-align: center;
    padding: 40px;
    font-size: 0.8rem;
    opacity: 0.6;
    margin-top: 50px;
}

@media (max-width: 768px) {

    .offer-row,
    .offer-row.reversed {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 60px;
    }

    .floater-price,
    .offer-row.reversed .floater-price {
        right: 10px;
        left: auto;
        bottom: -15px;
    }

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

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.3s;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-card {
    background: #fff;
    width: 90%;
    max-width: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: 0.3s;
}

.modal.show .modal-card {
    transform: scale(1);
}

.modal-header-img {
    height: 200px;
    position: relative;
}

.modal-header-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #fff;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.modal-body {
    padding: 30px;
    text-align: center;
}

.modal-body h3 {
    font-family: var(--o-font-serif);
    margin: 0 0 10px 0;
    font-size: 1.8rem;
}

.modal-price-tag {
    font-size: 2.5rem;
    color: var(--o-primary);
    font-weight: 700;
    margin: 10px 0 20px 0;
}

.btn-call {
    display: block;
    width: 100%;
    background: var(--o-secondary);
    color: #fff;
    padding: 15px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: 0.3s;
}

.btn-call:hover {
    background: var(--o-text);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}