:root {
    --blanco-puro: #FFFFFF;
    --negro-suave: #1a1a1a;
    --rojo-vibrante: #E30022;
    --rojo-intenso: #C2001A;
    --rojo-claro: #FF0026;
    --gris-muy-claro: #FAFAFA;
    --gris-claro: #F5F5F5;
    --fondo-imagen: url('../imagenes/fondo.jpg');
}

/* --- Reset y Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--blanco-puro);
    color: var(--negro-suave);
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

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

/* --- Header (burbujas) --- */
.main-header {
    position: absolute;
    top: 24px;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    min-height: 56px;
}

.header-bubble {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    border-radius: 999px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: var(--negro-suave);
    font-weight: 600;
    font-size: 0.95rem;
    transition: opacity 0.25s ease, transform 0.2s ease;
}

.header-bubble:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* El logo no tiene efecto de escala al pasar el ratón */
.header-bubble-logo:hover {
    transform: translate(-50%, -50%);
}

.header-bubble-logo {
    padding: 10px 20px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.25s ease;
}

.header-bubble-cta {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--rojo-vibrante);
}

.header-bubble-cta:hover {
    transform: translateY(-50%) scale(1.02);
}

.logo {
    width: 175px;
    height: auto;
    display: block;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: var(--fondo-imagen);
    background-size: cover;
    background-position: center;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--blanco-puro);
    max-width: 800px;
    width: 100%;
    padding: 0 40px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 22px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
    font-weight: 400;
    line-height: 1.65;
    margin-bottom: 36px;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Botones CTA --- */
.cta-button {
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: 'Poppins', sans-serif;
    border: none;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.cta-button.primary {
    background: var(--blanco-puro);
    color: var(--rojo-vibrante);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    background: var(--gris-muy-claro);
}

.cta-button.secondary {
    background: transparent;
    color: var(--blanco-puro);
    border: 2px solid var(--blanco-puro);
}

.cta-button.secondary:hover {
    background: var(--blanco-puro);
    color: var(--rojo-vibrante);
    transform: translateY(-2px);
}

.cta-button.large {
    padding: 16px 40px;
    font-size: 1rem;
}

/* --- Sección Beneficios --- */
.benefits-section {
    padding: 80px 0;
    background: var(--blanco-puro);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.benefit-item {
    text-align: center;
    padding: 30px 20px;
}

.benefit-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--negro-suave);
    margin-bottom: 10px;
}

.benefit-item p {
    font-size: 1rem;
    color: var(--negro-suave);
    opacity: 0.8;
    line-height: 1.6;
}

/* --- Sección Productos --- */
.products-section {
    padding: 100px 0;
    background: var(--gris-muy-claro);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-heading {
    font-size: clamp(1.9rem, 3.5vw, 2.9rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 16px;
    color: var(--negro-suave);
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--negro-suave);
    opacity: 0.8;
    line-height: 1.6;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.product-card {
    background: var(--blanco-puro);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.25s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

.product-image-wrapper {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, rgba(227, 0, 34, 0.05) 0%, rgba(255, 0, 38, 0.08) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-placeholder {
    width: 80%;
    height: 80%;
    border: 2px dashed rgba(227, 0, 34, 0.2);
    border-radius: 15px;
}

.product-info {
    padding: 30px;
}

.product-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--negro-suave);
    margin-bottom: 12px;
}

.product-description {
    font-size: 1rem;
    color: var(--negro-suave);
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 20px;
}

.product-cta {
    width: 100%;
    padding: 12px 24px;
    background: var(--rojo-vibrante);
    color: var(--blanco-puro);
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: 'Poppins', sans-serif;
}

.product-cta:hover {
    background: var(--rojo-intenso);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(227, 0, 34, 0.25);
}

.products-cta {
    text-align: center;
}

/* --- Sección Fidelización --- */
.loyalty-section {
    padding: 100px 0;
    background: var(--blanco-puro);
}

.loyalty-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.loyalty-text {
    max-width: 100%;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--rojo-vibrante);
    margin-bottom: 12px;
    padding: 5px 0;
    border-bottom: 2px solid rgba(227, 0, 34, 0.4);
}

.loyalty-description {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--negro-suave);
    opacity: 0.9;
    margin-bottom: 30px;
}

.loyalty-benefits {
    list-style: none;
    margin-bottom: 40px;
}

.loyalty-benefits li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--negro-suave);
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
}

.loyalty-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--rojo-vibrante);
    font-weight: 700;
    font-size: 1.2rem;
}

.loyalty-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tarjeta de fidelidad (estilo sello/punch card, no crédito) */
.loyalty-card-fidelidad {
    width: 100%;
    max-width: 380px;
    background: linear-gradient(180deg, #fef9f6 0%, #fdf5f0 100%);
    border: 3px solid var(--rojo-vibrante);
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(227, 0, 34, 0.2), inset 0 0 0 1px rgba(227, 0, 34, 0.08);
    padding: 28px 24px;
}

.loyalty-card-marca {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--rojo-vibrante);
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.loyalty-card-titulo {
    font-size: 1rem;
    font-weight: 700;
    color: var(--negro-suave);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.loyalty-card-regla {
    font-size: 0.9rem;
    color: var(--negro-suave);
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.loyalty-sellos {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.sello {
    aspect-ratio: 1;
    max-width: 52px;
    margin: 0 auto;
    border: 3px solid var(--rojo-vibrante);
    border-radius: 50%;
    background: #fff;
}

.sello.filled {
    background: var(--rojo-vibrante);
}

.loyalty-card-pie {
    font-size: 0.8rem;
    color: var(--negro-suave);
    opacity: 0.85;
    margin: 0;
}

/* --- Sección Historia --- */
.story-section {
    padding: 100px 0;
    background: var(--gris-muy-claro);
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.story-content p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--negro-suave);
    opacity: 0.9;
    margin-bottom: 20px;
}

.story-content strong {
    color: var(--negro-suave);
    font-weight: 700;
}

/* --- Call to Action Final --- */
.cta-section {
    position: relative;
    padding: 70px 0;
    background: var(--rojo-vibrante);
    text-align: center;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle 5% at 12% 20%, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.25) 22%, rgba(255,255,255,0.06) 48%, transparent 65%),
        radial-gradient(circle 6% at 88% 18%, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.22) 25%, rgba(255,255,255,0.05) 50%, transparent 65%),
        radial-gradient(circle 7% at 50% 88%, rgba(255,255,255,0.48) 0%, rgba(255,255,255,0.2) 28%, rgba(255,255,255,0.04) 52%, transparent 68%),
        radial-gradient(circle 5% at 22% 52%, rgba(255,255,255,0.52) 0%, rgba(255,255,255,0.2) 25%, rgba(255,255,255,0.05) 48%, transparent 62%),
        radial-gradient(circle 6% at 78% 48%, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.18) 28%, rgba(255,255,255,0.04) 50%, transparent 65%),
        radial-gradient(circle 4% at 5% 72%, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.18) 30%, rgba(255,255,255,0.04) 50%, transparent 60%),
        radial-gradient(circle 5% at 96% 78%, rgba(255,255,255,0.48) 0%, rgba(255,255,255,0.2) 25%, rgba(255,255,255,0.05) 48%, transparent 63%),
        radial-gradient(circle 5% at 58% 12%, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.22) 24%, rgba(255,255,255,0.05) 50%, transparent 64%),
        radial-gradient(circle 5% at 32% 82%, rgba(255,255,255,0.46) 0%, rgba(255,255,255,0.18) 28%, rgba(255,255,255,0.04) 50%, transparent 62%),
        radial-gradient(circle 5% at 72% 62%, rgba(255,255,255,0.44) 0%, rgba(255,255,255,0.16) 30%, rgba(255,255,255,0.03) 52%, transparent 65%);
    animation: bubblesFloat 14s ease-in-out infinite;
}

@keyframes bubblesFloat {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(12px, -15px); }
    50% { transform: translate(-18px, -8px); }
    75% { transform: translate(-10px, 12px); }
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.cta-title {
    font-size: clamp(1.9rem, 3.5vw, 3rem);
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.25;
    color: var(--blanco-puro);
    letter-spacing: -0.02em;
    text-align: center;
}

.cta-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 24px;
    color: var(--blanco-puro);
    opacity: 0.95;
    line-height: 1.6;
    text-align: center;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Footer --- */
.main-footer {
    text-align: center;
    padding: 48px 20px;
    background: var(--negro-suave);
    color: var(--blanco-puro);
}

.main-footer p {
    font-size: 0.9rem;
    font-weight: 300;
}

/* --- Animaciones --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive Design --- */

/* Tablets y pantallas medianas */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .main-header {
        top: 20px;
        padding: 0 28px;
    }

    .header-bubble { padding: 10px 20px; font-size: 0.9rem; }
    .header-bubble-logo { padding: 8px 16px; }
    .header-bubble-cta { right: 28px; }

    .logo {
        width: 165px;
    }

    .hero {
        min-height: 600px;
    }

    .loyalty-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }

    .benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 30px;
    }
}

/* Tablets pequeñas */
@media (max-width: 768px) {
    .container {
        padding: 0 25px;
    }

    .main-header {
        top: 15px;
        padding: 0 22px;
    }

    .header-bubble { padding: 10px 18px; font-size: 0.88rem; }
    .header-bubble-logo { padding: 8px 14px; }
    .header-bubble-cta { right: 22px; }

    .logo {
        width: 100px;
    }

    .hero {
        min-height: 550px;
    }

    .hero-content {
        padding: 0 25px 10px;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3.5rem);
        margin-bottom: 18px;
    }

    .hero-subtitle {
        font-size: clamp(1rem, 3vw, 1.2rem);
        margin-bottom: 30px;
    }

    .hero-cta,
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .cta-button {
        width: 100%;
        padding: 14px 30px;
    }

    .benefits-section,
    .products-section,
    .loyalty-section,
    .story-section {
        padding: 70px 0;
    }

    .cta-section {
        padding: 70px 0;
    }

    .section-heading {
        font-size: clamp(1.8rem, 6vw, 2.8rem);
    }

    .section-subtitle {
        font-size: 1.1rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .main-footer {
        padding: 30px 20px;
    }

    .main-footer > .container > div {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        text-align: center !important;
    }
}

/* Móviles */
@media (max-width: 640px) {
    .container {
        padding: 0 20px;
    }

    .main-header {
        top: 10px;
        padding: 0 18px;
    }

    .header-bubble { padding: 8px 14px; font-size: 0.82rem; }
    .header-bubble-logo { padding: 6px 12px; }
    .header-bubble-cta { right: 18px; }

    .logo {
        width: 120px;
    }

    .hero {
        min-height: 500px;
        height: 100vh;
        max-height: 100vh;
    }

    .hero-content {
        padding: 0 20px 10px;
    }

    .hero-title {
        font-size: clamp(1.8rem, 10vw, 2.8rem);
        margin-bottom: 14px;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: clamp(0.95rem, 4vw, 1.1rem);
        margin-bottom: 25px;
        line-height: 1.5;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .cta-button {
        width: 100%;
        padding: 14px 25px;
        font-size: 0.95rem;
    }

    .cta-button.large {
        padding: 16px 30px;
        font-size: 1rem;
    }

    .benefits-section,
    .products-section,
    .loyalty-section,
    .story-section {
        padding: 50px 0;
    }

    .cta-section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-heading {
        font-size: clamp(1.6rem, 8vw, 2.4rem);
        margin-bottom: 15px;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-card {
        border-radius: 10px;
    }

    .product-image-wrapper {
        height: 200px;
    }

    .product-info {
        padding: 20px;
    }

    .product-name {
        font-size: 1.3rem;
    }

    .product-description {
        font-size: 0.95rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .benefit-item {
        padding: 25px 15px;
    }

    .benefit-item h3 {
        font-size: 1.2rem;
    }

    .benefit-item p {
        font-size: 0.95rem;
    }

    .loyalty-content {
        gap: 40px;
    }

    .loyalty-description {
        font-size: 1rem;
        line-height: 1.7;
    }

    .loyalty-benefits li {
        font-size: 0.95rem;
        padding: 10px 0;
        padding-left: 25px;
    }

    .loyalty-card-fidelidad { padding: 24px 20px; }
    .loyalty-card-marca { font-size: 1.3rem; }
    .loyalty-sellos { gap: 8px; }
    .sello { max-width: 46px; }

    .story-content p {
        font-size: 1rem;
        line-height: 1.8;
    }

    .cta-title {
        font-size: clamp(1.8rem, 8vw, 2.8rem);
        margin-bottom: 12px;
    }

    .cta-subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .main-footer {
        padding: 25px 15px;
    }

    .main-footer > .container > div {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
        text-align: center !important;
        margin-bottom: 20px !important;
    }

    .main-footer h4 {
        font-size: 1rem !important;
        margin-bottom: 12px !important;
    }

    .main-footer p,
    .main-footer a,
    .main-footer li {
        font-size: 0.85rem !important;
    }

    .main-footer ul {
        padding: 0 !important;
    }

    .main-footer li {
        margin-bottom: 8px !important;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .main-header {
        top: 8px;
        padding: 0 14px;
    }

    .header-bubble { padding: 6px 12px; font-size: 0.78rem; }
    .header-bubble-logo { padding: 6px 10px; }
    .header-bubble-cta { right: 14px; }

    .logo {
        width: 108px;
    }

    .hero {
        min-height: 450px;
    }

    .hero-content {
        padding: 0 15px 10px;
    }

    .hero-title {
        font-size: clamp(1.6rem, 12vw, 2.4rem);
        margin-bottom: 12px;
    }

    .hero-subtitle {
        font-size: clamp(0.9rem, 4.5vw, 1rem);
    }

    .cta-button {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .benefits-section,
    .products-section,
    .loyalty-section,
    .story-section {
        padding: 40px 0;
    }

    .cta-section {
        padding: 50px 0;
    }

    .section-heading {
        font-size: clamp(1.4rem, 10vw, 2rem);
    }

    .product-image-wrapper {
        height: 180px;
    }

    .product-info {
        padding: 15px;
    }

    .product-name {
        font-size: 1.2rem;
    }

    .loyalty-card-fidelidad { padding: 20px 18px; }
    .loyalty-card-marca { font-size: 1.2rem; }
    .loyalty-card-titulo { font-size: 0.9rem; }
    .loyalty-card-regla { font-size: 0.85rem; margin-bottom: 16px; }
    .loyalty-sellos { gap: 6px; margin-bottom: 12px; }
    .sello { max-width: 40px; }
}

/* Orientación landscape en móviles */
@media (max-width: 896px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        height: auto;
    }

    .hero-content {
        margin-top: 60px;
    }
}

/* Mejoras de accesibilidad y rendimiento */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

