:root {
    --primary: #151d38; /* Dark Blue from RAYS logo */
    --secondary: #f4b41a; /* Warm accent, good for sales/travel */
    --accent: #ff4d4d; /* Red for OFF and important callouts */
    --text-main: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.2);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* TOP BANNER */
.top-banner {
    width: 100%;
    max-height: 450px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.top-banner img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* COUNTDOWN SECTION */
.countdown-section {
    background: linear-gradient(135deg, var(--primary) 0%, #2a3760 100%);
    color: var(--white);
    padding: 3rem 1rem;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 10;
}
.countdown-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #F8655E;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.countdown-header p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-weight: 300;
}
/* Flip Timer Styles */
.flip-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}
.flip-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.flip-card {
    position: relative;
    width: 90px;
    height: 100px;
    background: #f0f2f5;
    border-radius: 8px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.3), inset 0 -3px 8px rgba(0,0,0,0.05);
    font-size: 3.5rem;
    font-weight: 800;
    color: #4b5563;
    line-height: 100px;
    text-align: center;
    perspective: 1000px;
}
.seconds-card {
    color: #d85c5c;
}
.flip-card .top, 
.flip-card .bottom, 
.flip-card .flip-top, 
.flip-card .flip-bottom {
    position: absolute;
    left: 0;
    width: 100%;
    height: 50%;
    overflow: hidden;
    background: #f0f2f5;
    border-radius: 8px 8px 0 0;
}
.flip-card .bottom, 
.flip-card .flip-bottom {
    top: 50%;
    line-height: 0;
    border-radius: 0 0 8px 8px;
}

/* Horizontal split line / hinge */
.flip-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(0,0,0,0.15);
    z-index: 5;
    transform: translateY(-50%);
    box-shadow: 0 1px 1px rgba(255,255,255,0.8);
}

.flip-card .flip-top {
    transform-origin: bottom;
    z-index: 4;
    transition: transform 0.25s ease-in;
    transform: rotateX(0deg);
}
.flip-card .flip-top.animate {
    transform: rotateX(-90deg);
}

.flip-card .flip-bottom {
    transform-origin: top;
    z-index: 4;
    transition: transform 0.25s ease-out;
    transform: rotateX(90deg);
    transition-delay: 0.25s;
}
.flip-card .flip-bottom.animate {
    transform: rotateX(0deg);
}

.colon {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255,255,255,0.5);
    margin-bottom: 2rem;
}
.flip-unit .label {
    margin-top: 0.8rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #e0e0e0;
}

/* MAIN CONTENT */
.main-content {
    padding: 5rem 1rem;
    background: linear-gradient(to bottom, #FFF7F6 0%, var(--white) 100%);
}
.container {
    max-width: 1200px;
    margin: 0 auto;
}
.content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: stretch; /* Stretch to make columns equal height */
}
.benefits-info {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}
.highlight-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}
.subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}
/* Video Section */
.video-wrapper {
    margin-top: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: #000;
    flex: 1;
    position: relative;
    min-height: 300px; /* Fallback for mobile stacking */
}

.promo-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

/* FORM GLASSMORPHISM */
.form-container {
    flex: 1;
    min-width: 300px;
    position: sticky;
    top: 2rem;
}
.form-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    text-align: center;
}
.form-glass h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.form-glass p {
    color: var(--text-light);
    margin-bottom: 2rem;
}
.input-group {
    margin-bottom: 1.5rem;
    text-align: left;
}
.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}
.input-group input, 
.input-group select {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.input-group input:focus, 
.input-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(21, 29, 56, 0.1);
}
.submit-btn {
    width: 100%;
    padding: 1.2rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}
.submit-btn:hover {
    background: #1e294d;
    transform: translateY(-2px);
}
.submit-btn:active {
    transform: translateY(0);
}

/* GALLERY MARQUEE */
.gallery-section {
    padding: 4rem 0;
    background: var(--white);
    overflow: hidden;
}
.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 2rem;
}
.marquee {
    width: 100vw;
    overflow: hidden;
    position: relative;
}
.marquee-content {
    display: flex;
    width: max-content;
    animation: marquee 60s linear infinite;
}
.marquee-content img {
    height: 250px;
    width: 350px;
    object-fit: cover;
    margin: 0 10px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.marquee-content img:hover {
    transform: scale(1.05);
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Banner Cuotas */
.banner-cuotas-section {
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: #fff;
    padding: 2rem 1rem 5rem 1rem; /* Extra space at the bottom */
}
.banner-cuotas-img {
    width: 60%; /* Increased size */
    min-width: 350px; 
    height: auto;
    display: block;
    border-radius: 16px; /* Rounded corners */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* Optional: slight shadow to make it pop */
}

/* FOOTER */
.main-footer {
    background: var(--primary);
    color: #fff;
    font-size: 0.9rem;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
}
.footer-logo-img {
    max-width: 140px;
    margin-bottom: 1rem;
    display: block;
    height: auto;
}
.brand-col p {
    color: #a0a6b5;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}
.brand-col i {
    font-size: 1.2rem;
    margin-top: 3px;
}
.links-col h4, .social-col h4 {
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    color: #fff;
    text-transform: uppercase;
}
.links-col ul {
    list-style: none;
}
.links-col li {
    margin-bottom: 0.8rem;
}
.links-col a {
    color: #a0a6b5;
    text-decoration: none;
    transition: color 0.3s ease;
}
.links-col a:hover {
    color: #fff;
}
.social-icons {
    display: flex;
    gap: 1rem;
}
.social-icons a {
    color: #fff;
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.social-icons a:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(248, 101, 94, 0.3);
    border-color: var(--accent);
}

.footer-bottom {
    background: #e9eff5; /* Light blueish background as requested */
    color: var(--text-main);
    padding: 1.5rem 1rem;
}
.bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.partners-logos {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
    font-weight: 600;
    font-size: 0.8rem;
    color: #3b4b73;
}
.partners-logos img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.partners-logos img.large-logo {
    max-height: 65px; /* Larger size for featured partners */
}
.partners-logos img.ccs-logo {
    max-height: 48px; /* 20% larger than the default 40px */
}
.partners-logos img:hover {
    opacity: 1;
    transform: scale(1.05);
}

@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 768px) {
    .flip-timer { gap: 0.4rem; }
    .flip-card { 
        width: 60px; 
        height: 75px; 
        font-size: 2.2rem; 
        line-height: 75px; 
    }
    .colon { font-size: 1.8rem; margin-bottom: 1.5rem; margin-left: -4px; margin-right: -4px; }
    .flip-unit .label { font-size: 0.65rem; letter-spacing: 1px; margin-top: 0.4rem; }
    .countdown-header h2 { font-size: 1.8rem; }
    
    .footer-container { grid-template-columns: 1fr; }
    .bottom-container { flex-direction: column; text-align: center; justify-content: center; }
}
