/* =========================================
   VARIABLES & GLOBALS
   ========================================= */
:root {
    /* Colors */
    --cuesta-green: #0d4a22; /* Dark green from logo */
    --cuesta-light-green: #278b3f; /* Lighter shade */
    --whatsapp-green: #25D366;
    --whatsapp-hover: #128C7E;
    --gold: #d4af37;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --bg-light: #f8fafc;
    --white: #ffffff;
    
    /* Typography */
    --font-main: 'Outfit', sans-serif;
    
    /* Spacing */
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1, h2, h3 {
    font-weight: 800;
    line-height: 1.2;
}

.text-center { text-align: center; }
.text-white { color: var(--white) !important; }
.text-gradient {
    background: linear-gradient(135deg,  var(--gold), #ffdf73);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* =========================================
   LAYOUT
   ========================================= */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-sm {
    max-width: 800px;
}

.mt-md { margin-top: var(--space-md); }
.mt-xl { margin-top: var(--space-xl); }

/* =========================================
   HEADER
   ========================================= */
.header {
    background-color: var(--white);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: relative;
    z-index: 10;
}

.logo {
    max-width: 150px;
    height: auto;
    object-fit: contain;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    background: linear-gradient(135deg, var(--cuesta-green) 0%, #062b12 100%);
    color: var(--white);
    padding: 4rem 0 7rem 0;
    position: relative;
    text-align: center;
    overflow: hidden;
}

.decoration-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(39, 139, 63, 0.15) 0%, transparent 60%);
    animation: rotate 30s linear infinite;
    z-index: 1;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(5px);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero .highlight {
    color: var(--gold);
}

.hero .subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.trust-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
    color: #a7f3d0;
}

.cta-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.micro-text {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Shape divider */
.custom-shape-divider-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}
.custom-shape-divider-bottom svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 50px;
}
.custom-shape-divider-bottom .shape-fill {
    fill: var(--bg-light);
}

/* =========================================
   BUTTONS
   ========================================= */
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--whatsapp-green);
    color: var(--white);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 800;
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: var(--transition-smooth);
    width: 100%;
    max-width: 400px;
}

.btn-whatsapp:hover {
    background-color: var(--whatsapp-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--whatsapp-green);
    color: var(--whatsapp-green);
    box-shadow: none;
}
.btn-outline:hover {
    background-color: var(--whatsapp-green);
    color: var(--white);
}

/* Pulse animation for buttons */
.pulse {
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* =========================================
   STEPS SECTION (COMO PARTICIPAR)
   ========================================= */
.steps-section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--cuesta-green);
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.step-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--cuesta-light-green);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: -40px auto 1.5rem auto;
    box-shadow: 0 4px 10px rgba(39, 139, 63, 0.3);
}

.step-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

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

/* =========================================
   BENEFITS & PRIZE
   ========================================= */
.benefits-prize-section {
    padding: 4rem 0;
    background-color: var(--white);
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.benefits-content {
    padding: 1rem 0;
}

.benefits-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 12px;
    transition: var(--transition-fast);
}

.benefits-list li:hover {
    transform: translateX(5px);
    background: #eef2f6;
}

.icon-box {
    font-size: 1.5rem;
    background: var(--white);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Prize Side */
.glass-panel {
    background: linear-gradient(145deg, var(--cuesta-green) 0%, #021a0a 100%);
    border-radius: 32px;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(13, 74, 34, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: shine 6s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

.prize-name {
    font-size: 1.6rem;
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.prize-image-wrapper {
    position: relative;
    max-width: 290px;
    margin: 0 auto;
}

.prize-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 35px 35px rgba(0,0,0,0.7));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.prize-image-wrapper:hover .prize-img {
    transform: scale(1.05) translateY(-5px);
}

.glow-effect::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130%;
    height: 130%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.4) 0%, rgba(39, 139, 63, 0.4) 40%, transparent 70%);
    z-index: 1;
    filter: blur(25px);
    animation: pulse-glow 4s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    0% { opacity: 0.6; transform: translate(-50%, -50%) scale(0.9); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

.floating {
    animation: floating 5s ease-in-out infinite;
}
@keyframes floating {
    0% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0); }
}

/* =========================================
   URGENCY SECTION
   ========================================= */
.urgency-section {
    padding: 3rem 0;
}
.urgency-box {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}
.urgency-box h2 {
    color: #b48e1a;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* =========================================
   TERMS SECTION
   ========================================= */
.terms-section {
    padding: 3rem 0;
}

.terms-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
}

.terms-card h2 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.terms-list {
    list-style: none;
}

.terms-list li {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.terms-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--cuesta-green);
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1;
}

.terms-list li strong {
    color: var(--text-dark);
}

.terms-footer {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
}

/* =========================================
   FINAL CTA & FOOTER
   ========================================= */
.final-cta {
    background: var(--cuesta-green);
    color: var(--white);
    padding: 5rem 0;
}

.final-cta h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.final-cta p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.footer {
    background: #082913;
    color: rgba(255,255,255,0.6);
    padding: 2rem 0;
    font-size: 0.9rem;
}

/* =========================================
   ANIMATIONS UTILS
   ========================================= */
.fade-in-up, .slide-in, .slide-in-left, .slide-in-right {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up { transform: translateY(30px); }
.slide-in { transform: translateY(40px); }
.slide-in-left { transform: translateX(-40px); }
.slide-in-right { transform: translateX(40px); }

.fade-in-up.visible, 
.slide-in.visible, 
.slide-in-left.visible, 
.slide-in-right.visible {
    opacity: 1;
    transform: translate(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* =========================================
   RESPONSIVE DESIGN (Tablet & Desktop)
   ========================================= */
@media (min-width: 768px) {
    .hero h1 { font-size: 3.5rem; }
    .hero .subtitle { font-size: 1.5rem; }
    
    .steps-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
    
    .split-layout { grid-template-columns: 1fr 1fr; align-items: center; }
    
    .custom-shape-divider-bottom svg { height: 80px; }
}

@media (min-width: 1024px) {
    .hero { padding: 6rem 0 9rem 0; }
    .hero h1 { font-size: 4rem; }
    .prize-image-wrapper { max-width: 320px; }
    .benefits-prize-section { padding: 6rem 0; }
}
