:root {
    --primary: #00E676;
    --primary-dark: #00C853;
    --secondary: #2979FF;
    --bg-dark: #0F172A;
    --bg-card: rgba(30, 41, 59, 0.7);
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --gradient-hero: linear-gradient(135deg, var(--bg-dark) 0%, #1E293B 100%);
    --gradient-accent: linear-gradient(45deg, var(--primary), var(--secondary));
}

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

html {
    scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4,
.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* Utilities */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 4px 15px rgba(0, 230, 118, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 230, 118, 0.4);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.glass {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    background: linear-gradient(to right, #fff, #94A3B8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

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

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
}

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

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
    min-height: 80vh;
}

/* Carousel */
.carousel-container {
    position: relative;
    height: 550px;
}

.carousel-slide {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
    height: 550px;
}

.carousel-slide.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.carousel-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100vw;
    left: 50%;
    margin-left: -50vw;
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 20;
    pointer-events: none;
}

.carousel-btn {
    pointer-events: all;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
    font-size: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 6px;
    line-height: 0;
}

.carousel-btn:hover {
    background: var(--primary);
    color: var(--bg-dark);
    transform: scale(1.1);
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--primary);
    width: 30px;
    border-radius: 6px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 230, 118, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 230, 118, 0.2);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Value Prop */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.card {
    padding: 40px 30px;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.icon-box {
    font-size: 3rem;
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.card p {
    color: var(--text-muted);
}

/* Services / Product */
.services {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #111827 100%);
}

.product-header {
    padding: 40px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.product-header h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.price {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    margin: 10px 0;
}

.currency {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.payment-type {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-body {
    padding: 40px;
}

.feature-list {
    margin: 30px 0;
}

.feature-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

/* Badge Recommended (Fixed) */
.badge-recommended {
    background-color: var(--primary);
    color: var(--bg-dark);
    font-weight: 800;
    text-align: center;
    padding: 8px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    width: 100%;
    display: block;
}

/* --- LOGICA DE PRODUCT CARDS (Restaurada a la versión que te gustaba) --- */

.product-card {
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    max-width: 500px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-accent);
}

/* La tarjeta recomendada */
.product-card.recommended {
    border: 2px solid var(--primary);
    z-index: 2;
    transform: scale(1.05);
}

/* --- HOVER igual a las otras secciones --- */
.product-card:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: var(--primary);
}

.product-card.recommended:hover {
    transform: scale(1.1) translateY(-10px);
}

/* About Us */
.mission {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    font-size: 1.2rem;
    color: var(--text-muted);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.team-member {
    padding: 20px;
}

.avatar {
    width: 100px;
    height: 100px;
    background: var(--bg-card);
    border: 2px solid var(--primary);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.team-member h4 {
    margin-bottom: 5px;
    color: var(--text-main);
}

.team-role {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.team-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-top: 8px;
}

/* Testimonials */
.testimonials {
    background: rgba(0, 230, 118, 0.02);
}

.testimonial-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px;
    text-align: center;
    position: relative;
}

.quote {
    font-size: 6rem;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: 20px;
    left: 40px;
    font-family: serif;
    line-height: 1;
}

.quote-end {
    font-size: 6rem;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    bottom: -40px;
    right: 40px;
    font-family: serif;
    line-height: 1;
}

.testimonial-text {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.client-info strong {
    display: block;
    margin-bottom: 5px;
    color: var(--primary);
}

/* FAQ */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    padding: 30px;
    text-align: left;
}

.faq-item h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

/* Blog */
.blog {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #111827 100%);
}

.blog-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: -40px;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.blog-card {
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.blog-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary);
    color: var(--bg-dark);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-main);
    line-height: 1.4;
}

.blog-excerpt {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.blog-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.blog-date,
.blog-reading-time {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Footer */
.footer {
    background: #020617;
    padding: 80px 0 20px;
    border-top: 1px solid var(--border);
}

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

.footer-col h4 {
    margin-bottom: 20px;
    color: var(--text-main);
}

.footer-col p,
.footer-col a {
    color: var(--text-muted);
    margin-bottom: 10px;
    display: block;
}

.footer-col a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    background-color: #25d366;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7);
    }
}

@media (max-width: 1024px) {
    .carousel-controls {
        width: 100%;
        left: 0;
        margin-left: 0;
        top: auto;
        bottom: 20px;
        transform: none;
        justify-content: center;
        gap: 30px;
        padding: 0;
    }

    .carousel-btn {
        width: 50px;
        height: 50px;
        background: rgba(15, 23, 42, 0.8);
    }

    .product-card.recommended {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

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

    .hero-subtitle {
        margin: 0 auto 40px;
    }

    .hero-visual {
        height: auto;
        margin-top: 30px;
    }

    .hero-visual img {
        height: auto;
        max-height: 300px;
    }

    /* Fix Carousel Overlap */
    .hero,
    .carousel-container,
    .carousel-slide {
        height: auto;
        min-height: auto;
    }

    .carousel-slide {
        display: none;
        /* Keep original toggle logic logic but reset display for active handled by JS, here just resetting layout */
        padding-bottom: 80px;
        /* Space for controls */
    }

    .carousel-slide.active {
        display: block;
    }

    .carousel-controls {
        z-index: 50;
        /* Ensure on top */
    }

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

    .faq-grid {
        grid-template-columns: 1fr;
    }
}