/* ===== Variables ===== */
:root {
    --primary: #ff4e83;
    --primary-dark: #e63d6f;
    --primary-light: #ff8db6;
    --secondary: #04b1f6;
    --dark: #1a1a2e;
    --gray: #6b7280;
    --gray-light: #f3f4f6;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

/* Orbit Layout para el Hero */
.logo-orbit {
    position: relative;
    width: 350px;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.hero-logo {
    width: 180px;
    height: auto;
    z-index: 10;
    filter: drop-shadow(0 10px 25px rgba(0,0,0,0.15));
    animation: float 3s ease-in-out infinite;
}

.orbit-badge {
    position: absolute;
    white-space: nowrap;
    padding: 10px 18px;
    border-radius: 50px;
    color: white !important;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 5;
}

.badge-luz { 
    background-color: #ff4e83 !important; 
    animation: orbit-luz 20s linear infinite;
}
.badge-camara { 
    background-color: #04b1f6 !important; 
    animation: orbit-camara 20s linear infinite;
}
.badge-proyector { 
    background-color: #ffb100 !important; 
    animation: orbit-proyector 20s linear infinite;
}

@keyframes orbit-luz {
    0% { transform: rotate(0deg) translateX(160px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(160px) rotate(-360deg); }
}

@keyframes orbit-camara {
    0% { transform: rotate(120deg) translateX(160px) rotate(-120deg); }
    100% { transform: rotate(480deg) translateX(160px) rotate(-480deg); }
}

@keyframes orbit-proyector {
    0% { transform: rotate(240deg) translateX(160px) rotate(-240deg); }
    100% { transform: rotate(600deg) translateX(160px) rotate(-600deg); }
}

@media (max-width: 768px) {
    .logo-orbit {
        width: 280px;
        height: 280px;
    }
    .hero-logo { width: 140px; }
    .orbit-badge { font-size: 12px; padding: 8px 14px; }
    
    @keyframes orbit-luz {
        0% { transform: rotate(0deg) translateX(125px) rotate(0deg); }
        100% { transform: rotate(360deg) translateX(125px) rotate(-360deg); }
    }
    @keyframes orbit-camara {
        0% { transform: rotate(120deg) translateX(125px) rotate(-120deg); }
        100% { transform: rotate(480deg) translateX(125px) rotate(-480deg); }
    }
    @keyframes orbit-proyector {
        0% { transform: rotate(240deg) translateX(125px) rotate(-240deg); }
        100% { transform: rotate(600deg) translateX(125px) rotate(-600deg); }
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn__icon {
    width: 24px;
    height: 24px;
}

.btn--primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 78, 131, 0.4);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 78, 131, 0.5);
}

.btn--secondary {
    background: var(--white);
    color: var(--dark);
    border: 2px solid var(--gray-light);
}

.btn--secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn--white {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow);
}

.btn--white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.nav__logo-img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav__link {
    font-weight: 500;
    color: var(--dark);
    transition: var(--transition);
}

.nav__link:hover {
    color: var(--primary);
}

.nav__link--cta {
    background: var(--primary);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 50px;
}

.nav__link--cta:hover {
    background: var(--primary-dark);
}

.nav__toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* ===== Hero ===== */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(180deg, var(--gray-light) 0%, var(--white) 100%);
}

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

.hero__title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__description {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 32px;
}

.hero__buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.store-btn {
    display: inline-block;
    transition: var(--transition);
}

.store-btn:hover {
    transform: translateY(-3px);
}

.store-badge {
    height: 50px;
    width: auto;
}

.hero__available {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 32px;
}

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

.hero__stats {
    display: flex;
    gap: 40px;
}

.stat {
    text-align: center;
}

.stat__number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.stat__label {
    font-size: 14px;
    color: var(--gray);
}

.hero__image {
    display: flex;
    justify-content: center;
}

.hero__phone {
    max-width: 350px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ===== Section Titles ===== */
.section__title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
}

.section__title--light {
    color: var(--white);
}

.section__subtitle {
    font-size: 18px;
    color: var(--gray);
    text-align: center;
    margin-bottom: 48px;
}

.section__subtitle--light {
    color: rgba(255, 255, 255, 0.8);
}

/* ===== Features ===== */
.features {
    padding: 100px 0;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-card__icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-card__title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card__description {
    font-size: 15px;
    color: var(--gray);
    margin-bottom: 12px;
}

.feature-card__link {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition);
}

.feature-card__link:hover {
    color: var(--primary-dark);
    transform: translateX(4px);
}

/* ===== Flutter Section ===== */
/* ===== Audiences (PNL) ===== */
.audiences {
    padding: 60px 0;
    background-color: #f9fafb;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.audiences__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    text-align: center;
}

.audience-block h4 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 16px;
    font-weight: 700;
}

.audience-block p {
    font-size: 16px;
    color: var(--gray);
    line-height: 1.6;
    max-width: 450px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .audiences__grid {
        grid-template-columns: 1fr;
    }
}

.flutter-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.flutter__content {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.flutter__image {
    width: 150px;
    height: auto;
    flex-shrink: 0;
}

.flutter__text h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
}

.flutter__text p {
    font-size: 16px;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 8px;
}

.flutter__dev {
    font-style: italic;
    color: var(--primary) !important;
    font-weight: 500;
}

@media (max-width: 768px) {
    .flutter__content {
        flex-direction: column;
        text-align: center;
    }
    
    .flutter__image {
        width: 120px;
    }
}

/* ===== YouTube Section ===== */
.youtube-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.youtube-section .section__title,
.youtube-section .section__subtitle {
    color: white;
}

.youtube-section .section__subtitle {
    opacity: 0.9;
}

.youtube__content {
    max-width: 600px;
    margin: 0 auto;
}

.youtube__embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.youtube__embed--short {
    padding-bottom: 177.78%;
    max-width: 315px;
    margin: 0 auto;
}

.youtube__embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.youtube__label {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.youtube__card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.youtube__icon {
    margin-bottom: 20px;
}

.youtube__card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.youtube__card p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 24px;
}

.youtube__btn {
    display: inline-block;
    background: #ff0000;
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
}

.youtube__btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.5);
}

/* ===== How it Works ===== */
.how-it-works {
    padding: 100px 0;
    background: var(--gray-light);
}

/* ===== CalcaConnect Section ===== */
.calcaconnect {
    padding: 100px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: var(--white);
    overflow: hidden;
}

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

.calcaconnect__image {
    position: relative;
}

.calcaconnect__img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.calcaconnect__badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.calcaconnect__title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.calcaconnect__description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 28px;
    line-height: 1.7;
}

.calcaconnect__features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.calcaconnect__features li {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    padding-left: 8px;
}

@media (max-width: 992px) {
    .calcaconnect__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .calcaconnect__title {
        font-size: 28px;
    }
    
    .calcaconnect__features {
        align-items: center;
    }
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.step {
    text-align: center;
    position: relative;
}

.step__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    font-size: 24px;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 20px;
}

.step__title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.step__description {
    font-size: 15px;
    color: var(--gray);
}

/* ===== Download ===== */
.download {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    text-align: center;
}

.download__content {
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Chatbot Widget ===== */
.chatbot-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
}

.chatbot-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    padding: 14px 24px;
    border-radius: 50px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255, 78, 131, 0.4);
    transition: var(--transition);
}

.chatbot-toggle:hover {
    transform: scale(1.05);
}

.chatbot-toggle__icon {
    font-size: 20px;
}

.chatbot-iframe-container {
    display: none;
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 380px;
    height: 550px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.chatbot-iframe-container.active {
    display: block;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chatbot-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: var(--gray-light);
    border: none;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.chatbot-close:hover {
    background: var(--primary);
    color: var(--white);
}

.chatbot-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== Footer ===== */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 24px;
}

.footer__content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer__logo {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.footer__tagline {
    color: var(--gray);
    font-size: 14px;
}

.footer__links h4,
.footer__social h4 {
    font-size: 16px;
    margin-bottom: 16px;
}

.footer__links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__links a {
    color: var(--gray);
    font-size: 14px;
    transition: var(--transition);
}

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

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 18px;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary);
}

.footer__bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: var(--gray);
}

.footer__bottom a {
    color: var(--primary);
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero__title {
        font-size: 36px;
    }
    
    .hero__buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero__stats {
        justify-content: center;
    }
    
    .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer__content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav__menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        box-shadow: var(--shadow);
    }
    
    .nav__menu.active {
        display: flex;
    }
    
    .nav__toggle {
        display: block;
    }
    
    .hero__title {
        font-size: 28px;
    }
    
    .section__title {
        font-size: 28px;
    }
    
    .features__grid {
        grid-template-columns: 1fr;
    }
    
    .chatbot-iframe-container {
        width: 320px;
        height: 480px;
        right: -10px;
    }
}
