@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary: #1b4332;
    /* Nutritional Deep Green */
    --primary-light: #2d6a4f;
    --accent: #52b788;
    /* Fresh accent green */
    --bg-light: #f8faf9;
    /* Very light, nutritional clean background */
    --bg-card: #ffffff;
    --text-dark: #121212;
    --text-gray: #555555;
    --border: rgba(0, 0, 0, 0.05);
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: default;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Nav */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.nav-logo img {
    height: 48px;
    display: block;
    filter: brightness(0) saturate(100%) invert(20%) sepia(15%) romance(100%) hue-rotate(110deg) brightness(95%) contrast(90%);
    /* Match deep green */
}

/* Hero */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #000;
    /* Fallback for video */
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    /* Maximum visibility */
    background: #000;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    color: #fff;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    /* Boost contrast */
}

.hero-title span {
    color: #84cc16;
    /* Brighter, more vibrant lime-green for contrast */
    text-shadow: 0 0 20px rgba(132, 204, 22, 0.3);
    /* Subtle glow */
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #ffffff;
    /* pure white */
    margin-bottom: 3rem;
    max-width: 550px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    /* Boost contrast */
}

/* Sections */
section {
    padding: 8vw 0;
}

.section-head {
    margin-bottom: 4rem;
    text-align: center;
}

.section-tag {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: block;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--primary);
}

/* Cards (Retos & Plans) */
.retos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.reto-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 0;
    /* Accommodate top image */
    border-radius: 12px;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-image-container {
    height: 450px;
    overflow: hidden;
    position: relative;
    background: #fff;
}

.card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.6s ease;
}

.reto-card:hover .card-image-container img {
    transform: scale(1.1);
}

.card-content {
    padding: 2.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.reto-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    /* Stronger shadow on hover */
    border-color: var(--accent);
}

.reto-card.featured {
    background: var(--primary);
    color: #fff;
}

.reto-card.featured .section-tag,
.reto-card.featured .price-tag,
.reto-card.featured p {
    color: #fff;
    opacity: 0.9;
}

.price-tag {
    font-size: 2.8rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary);
    margin: 1rem 0;
    display: block;
}

/* Buttons (High Contrast) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 2.8rem;
    border-radius: 50px;
    /* More organic circles */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    text-decoration: none;
    font-size: 0.85rem;
    border: none;
}

.btn-primary {
    background-color: var(--text-dark);
    /* High contrast Black */
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary);
    transform: scale(1.05);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

/* WhatsApp floating button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

/* Button with icon */
.btn-price-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-icon-flex {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-icon-flex svg {
    width: 18px;
    height: 18px;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-5px);
    border-color: var(--primary);
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Featured Reto Layout */
.reto-featured-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 0;
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
    margin-top: 3rem;
}

.reto-featured-image {
    position: relative;
}

.reto-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.reto-featured-container:hover .reto-featured-image img {
    transform: scale(1.03);
}

.reto-featured-container .reto-card.featured {
    border-radius: 0;
    margin: 0;
    border: none;
    height: 100%;
}

@media (max-width: 900px) {
    .reto-featured-container {
        grid-template-columns: 1fr;
    }

    .reto-featured-image {
        height: 300px;
    }
}

/* Countdown Timer */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.countdown-box {
    background: #111;
    color: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    min-width: 90px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--accent);
}

.countdown-box .number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    font-family: var(--font-heading);
    line-height: 1;
    color: var(--accent);
}

.countdown-box .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* Reto 30 Tech Aesthetic */
.nav-logo-tech {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.8rem;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(82, 183, 136, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.nav-logo-tech span {
    color: var(--text-dark);
    font-weight: 300;
    opacity: 0.6;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

/* Glitch Effect */
.glitch-hover:hover {
    animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
}

@keyframes glitch {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }

    100% {
        transform: translate(0);
    }
}

/* HUD Scanning Overlay */
.scanline {
    width: 100%;
    height: 100px;
    z-index: 9999;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(82, 183, 136, 0.05) 50%, rgba(0, 0, 0, 0) 100%);
    opacity: 0.15;
    position: absolute;
    bottom: 100%;
    pointer-events: none;
    animation: scan 4s linear infinite;
}

@keyframes scan {
    0% {
        bottom: 100%;
    }

    100% {
        bottom: -100px;
    }
}

/* HUD Borders */
.hud-border {
    position: relative;
    padding: 10px;
}

.hud-border::before,
.hud-border::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border: 3px solid var(--accent);
}

.hud-border::before {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.hud-border::after {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Utility Grids */
.grid-2-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
}

/* Mobile Responsive Overrides */
@media (max-width: 900px) {

    .grid-2-col,
    .grid-3,
    .problem-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .section-padding {
        padding: 8vh 0;
    }

    h1 {
        font-size: 2.8rem !important;
    }

    .hero-vis-container {
        order: -1;
        /* Image first on mobile hero */
        margin-bottom: 2rem;
    }

    .countdown-container {
        gap: 0.5rem;
    }

    .countdown-box {
        min-width: 70px;
        padding: 1rem;
    }

    .countdown-box .number {
        font-size: 1.8rem;
    }

    .offer-card {
        padding: 1rem;
    }

    /* Index Home Specifics */
    .plans-grid {
        gap: 1.5rem !important;
    }

    .plans-grid .card-image-container img {
        object-fit: contain;
        background: #fff;
    }

    #contact .reveal:nth-child(2) {
        padding: 2rem !important;
        margin-top: 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

/* Responsive */
@media (max-width: 900px) {
    .retos-grid {
        grid-template-columns: 1fr;
    }

    .problem-grid,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}