:root {
    /* Theme Variables - Default (Light) */
    --bg-body: #ffffff;
    --bg-secondary: #f5f5f7;
    --bg-card: #fbfbfd;
    --text-main: #1d1d1f;
    --text-grey: #86868b;
    --accent-blue: #0071e3;
    --container-width: 1080px;
    --border-radius-card: 28px;
    --nav-height: 48px;
    --nav-bg: rgba(255, 255, 255, 0.8);
    --border-color: rgba(0, 0, 0, 0.1);
    --card-border: rgba(0, 0, 0, 0.02);
    --btn-buy-bg: #1d1d1f;
    --btn-buy-text: #ffffff;
    --video-bg: linear-gradient(135deg, #ffffff 0%, #f5f5f7 100%);
    --video-core-opacity: 0.4;
    --video-ring-opacity: 0.1;
    --video-scanner-opacity: 0.3;
}

/* Theme Overrides - Dark Mode */
[data-theme="dark"] {
    --bg-body: #000000;
    --bg-secondary: #1d1d1f;
    --bg-card: #1d1d1f;
    --text-main: #f5f5f7;
    --text-grey: #86868b;
    --nav-bg: rgba(0, 0, 0, 0.8);
    --border-color: rgba(255, 255, 255, 0.1);
    --card-border: rgba(255, 255, 255, 0.05);
    --btn-buy-bg: #0071e3;
    --btn-buy-text: #ffffff;
    --video-bg: linear-gradient(135deg, #050505 0%, #111115 100%);
    --video-core-opacity: 0.6;
    --video-ring-opacity: 0.2;
    --video-scanner-opacity: 0.5;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Apple Navigation */
.apple-nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: var(--nav-bg);
    backdrop-filter: saturate(180%) blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.5s ease, border-bottom 0.5s ease;
}

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

.logo { font-weight: 600; font-size: 1.1rem; letter-spacing: -0.02em; }
.logo span { color: var(--text-grey); font-weight: 300; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.75rem;
    opacity: 0.8;
    transition: opacity 0.3s, color 0.5s;
}
.nav-links a:hover { opacity: 1; }

.btn-apple-buy {
    background: var(--btn-buy-bg);
    color: var(--btn-buy-text);
    border: none;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.5s ease, color 0.5s ease;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    opacity: 0.8;
    transition: opacity 0.3s, transform 0.3s;
}

.theme-toggle-btn:hover {
    opacity: 1;
    transform: rotate(15deg);
}

.theme-toggle-btn svg {
    width: 18px;
    height: 18px;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: var(--nav-height);
}

.hero h1 {
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-bottom: 24px;
}

.hero h1 span {
    color: var(--text-grey);
}

.hero-sub {
    font-size: 1.5rem;
    color: var(--text-grey);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.3;
}

.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.btn-apple-primary {
    background: var(--accent-blue);
    color: white;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 40px;
    font-weight: 500;
    font-size: 1.1rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-apple-primary:hover {
    transform: scale(1.02);
}

.link-apple-more {
    color: var(--accent-blue);
    text-decoration: none;
    font-size: 1.1rem;
}

.link-apple-more:hover { text-decoration: underline; }

/* Sections Common */
.section { padding: 80px 0; }
.section-intro { text-align: center; margin-bottom: 60px; }
.section-intro h2 { font-size: 3.5rem; font-weight: 700; margin-bottom: 16px; }
.section-intro p { font-size: 1.5rem; color: var(--text-grey); }

/* Apple Grid (Problems) */
.apple-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.apple-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-card);
    padding: 30px;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    transition: transform 0.4s, background 0.5s ease;
    border: 1px solid var(--card-border);
}

.apple-card:hover { transform: scale(1.01); background: var(--bg-card); }

.apple-card h3 { font-size: 1.4rem; margin-bottom: 12px; }
.apple-card p { color: var(--text-grey); font-size: 0.95rem; }

.apple-card-image {
    width: 100%;
    height: 180px;
    margin-top: 30px;
    border-radius: 12px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.apple-card:hover .apple-card-image {
    transform: scale(1.05);
}


/* Solution Card */
.solution-card {
    background: var(--bg-secondary);
    border-radius: 40px;
    display: flex;
    overflow: hidden;
    padding: 60px;
    gap: 60px;
    align-items: center;
    transition: background 0.5s ease;
}

.solution-text { flex: 1; }
.solution-text h2 { font-size: 3rem; margin-bottom: 24px; }
.solution-text p { font-size: 1.1rem; color: var(--text-grey); margin-bottom: 30px; }

.apple-list { list-style: none; }
.apple-list li { margin-bottom: 16px; border-bottom: 1px solid var(--border-color); padding-bottom: 16px; transition: border-bottom 0.5s ease; }

.solution-visual { flex: 1; }

/* CSS Video Player Simulation */
.css-video-player {
    height: 400px;
    border-radius: 20px;
    background: var(--video-bg);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 40px rgba(0,0,0,0.05);
    transition: background 0.5s ease, border 0.5s ease;
}

.ia-core {
    position: absolute;
    right: 15%;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #0071e3;
    border-radius: 50%;
    box-shadow: 0 0 40px rgba(0, 113, 227, 0.4), 0 0 80px rgba(0, 113, 227, 0.2);
    z-index: 1;
    opacity: var(--video-core-opacity);
    transition: opacity 0.5s ease;
}

.ia-ring {
    position: absolute;
    right: 15%;
    top: 50%;
    transform: translate(50%, -50%);
    width: 100px;
    height: 100px;
    border: 1px solid rgba(0, 113, 227, var(--video-ring-opacity));
    border-radius: 50%;
    animation: pulse-ring 4s cubic-bezier(0.25, 1, 0.5, 1) infinite;
    z-index: 0;
    transition: border 0.5s ease;
}

.ia-ring.delay-1 { animation-delay: 1.2s; }
.ia-ring.delay-2 { animation-delay: 2.4s; }

.ia-scanner {
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(0, 113, 227, var(--video-scanner-opacity));
    box-shadow: 0 0 20px rgba(0, 113, 227, 0.5);
    animation: scan-line 3.5s ease-in-out infinite alternate;
    z-index: 3;
    transition: background 0.5s ease;
}

.play-button-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-secondary);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    color: var(--text-main);
    font-size: 0.8rem;
    z-index: 4;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.play-button-overlay:hover { background: var(--bg-card); transform: scale(1.05); }

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(4); opacity: 0; }
}

@keyframes scan-line {
    0% { transform: translateY(0); }
    100% { transform: translateY(500px); }
}

.video-overlay-text {
    position: absolute;
    top: 50%;
    left: 40%;
    transform: translate(-50%, -50%);
    width: 60%;
    text-align: left;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-main);
    z-index: 5;
    opacity: 0;
    animation: explainSequence 30s infinite;
    transition: color 0.5s ease;
}

.video-overlay-text.phase-1 { animation-delay: 0s; }
.video-overlay-text.phase-2 { animation-delay: 10s; }
.video-overlay-text.phase-3 { animation-delay: 20s; }

@keyframes explainSequence {
    0% { opacity: 0; transform: translate(-50%, -40%); }
    5% { opacity: 1; transform: translate(-50%, -50%); }
    28% { opacity: 1; transform: translate(-50%, -50%); }
    33.33% { opacity: 0; transform: translate(-50%, -60%); }
    100% { opacity: 0; transform: translate(-50%, -60%); }
}

/* Team Section Styles */
.equipo-section {
    background: var(--bg-secondary);
    transition: background 0.5s ease;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.team-card {
    background: var(--bg-body);
    border-radius: 32px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

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

.team-photo-wrapper {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    padding: 6px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, #00c6ff 100%);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
    overflow: hidden;
}

.team-photo svg {
    width: 60px;
    height: 60px;
    opacity: 0.5;
}

.team-role {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-blue);
    font-weight: 700;
    margin-bottom: 12px;
}

.team-card h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
    font-weight: 700;
}

.team-bio {
    color: var(--text-grey);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.team-credentials {
    list-style: none;
    text-align: left;
    width: 100%;
    display: grid;
    gap: 12px;
}

.team-credentials li {
    font-size: 0.9rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.team-credentials li span {
    color: var(--accent-blue);
    font-weight: bold;
}

@media (max-width: 768px) {
    .team-grid { grid-template-columns: 1fr; }
    .team-card { padding: 30px 20px; }
}

/* Pricing Grid */
.pricing-apple-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.price-apple-card {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 480px;
    position: relative;
    border: 1px solid var(--card-border);
    transition: background 0.5s ease, color 0.5s ease;
}

.price-apple-card .btn-apple-buy {
    background: var(--accent-blue);
    color: white;
    padding: 12px 24px;
    font-size: 0.9rem;
    border-radius: 12px;
    width: 100%;
}

.price-apple-card.featured {
    background: var(--text-main);
    color: var(--bg-body);
}

.price-apple-card.featured .btn-apple-buy {
    background: #ffffff;
    color: #000000;
}

[data-theme="dark"] .price-apple-card.featured .btn-apple-buy {
    background: var(--accent-blue);
    color: #ffffff;
}

.p-tag { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; font-weight: 600; }
.price-apple-card h3 { font-size: 3.5rem; font-weight: 700; margin-bottom: 20px; }
.price-apple-card h3 span { font-size: 1rem; font-weight: 400; color: var(--text-grey); }

.revolut-alt-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--accent-blue);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.revolut-alt-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.revolut-alt-link.hidden {
    display: none;
}

.popular-label {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent-blue);
    color: white;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Benefits Section Styles */
.beneficios-section {
    background: var(--bg-body);
}

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

.beneficio-card {
    background: var(--bg-secondary);
    border-radius: 32px;
    padding: 60px 40px;
    text-align: center;
    border: 1px solid var(--card-border);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.beneficio-card:hover {
    transform: scale(1.03);
    background: var(--bg-card);
}

.beneficio-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    color: white;
}

.icon-time { background: linear-gradient(135deg, #FF9500 0%, #FF5E3A 100%); }
.icon-money { background: linear-gradient(135deg, #34C759 0%, #1D6222 100%); }
.icon-target { background: linear-gradient(135deg, #5856D6 0%, #0071E3 100%); }

.beneficio-icon-wrapper svg {
    width: 32px;
    height: 32px;
    stroke: white;
}

.beneficio-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 10px;
}

.beneficio-card p {
    color: var(--text-grey);
    font-size: 1.05rem;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .beneficios-grid { grid-template-columns: 1fr; }
    .beneficio-card { padding: 40px 30px; }
}

/* Contact & Agenda Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 100px;
    align-items: center;
}

.contact-info h2 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 24px; }
.contact-info p { font-size: 1.2rem; color: var(--text-grey); margin-bottom: 40px; }

.agenda-options { display: grid; gap: 20px; }

.agenda-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-main);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--card-border);
}

.agenda-card:hover { transform: scale(1.02); background: var(--bg-card); }

.agenda-icon-wrapper {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.calendar-icon { background: linear-gradient(135deg, #ff3b30 0%, #ff2d55 100%); color: white; }
.whatsapp-icon { background: linear-gradient(135deg, #34c759 0%, #30d158 100%); color: white; }

.agenda-icon-wrapper svg { width: 24px; height: 24px; }
.agenda-text strong { display: block; font-size: 1.1rem; margin-bottom: 4px; }
.agenda-text span { font-size: 0.9rem; color: var(--text-grey); }

/* Form Styles */
.apple-form { display: grid; gap: 24px; }
.form-group { display: grid; gap: 8px; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--text-grey); padding-left: 4px; }

.apple-form input, 
.apple-form select, 
.apple-form textarea {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.apple-form input:focus, 
.apple-form select:focus, 
.apple-form textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: var(--bg-body);
}

.checkbox-group {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    margin-top: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    cursor: pointer;
}

.checkbox-group label {
    font-size: 0.8rem;
    line-height: 1.4;
    padding-left: 0;
    cursor: pointer;
}

.checkbox-group a {
    color: var(--accent-blue);
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

.full-width { width: 100%; border-radius: 12px; font-size: 1.1rem; padding: 18px; margin-top: 10px; border: none; cursor: pointer; }
.full-width:disabled { opacity: 0.5; cursor: not-allowed; }

.hidden { display: none !important; }
.form-feedback {
    text-align: center;
    padding: 40px;
    background: var(--bg-secondary);
    border-radius: 24px;
    animation: fadeIn 0.5s ease-out;
}

/* Footer */
.apple-footer { padding: 40px 0; border-top: 1px solid var(--border-color); margin-top: 60px; background-color: var(--bg-secondary); transition: background 0.5s ease; }
.footer-grid { display: flex; justify-content: space-between; color: var(--text-grey); font-size: 0.75rem; }
.f-links a { color: var(--text-grey); text-decoration: none; margin-left: 20px; transition: color 0.3s; }
.f-links a:hover { color: var(--text-main); text-decoration: underline; }

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* Responsiveness */
@media (max-width: 1024px) {
    .apple-grid, .pricing-apple-grid { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 4rem; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 3rem; }
    .hero-sub { font-size: 1.2rem; }
    .apple-grid, .pricing-apple-grid { grid-template-columns: 1fr; }
    .solution-card { flex-direction: column; padding: 40px 20px; }
    .section-intro h2 { font-size: 2.5rem; }
    .section { padding: 50px 0; }
    .nav-links { display: none; }
    .contact-grid { grid-template-columns: 1fr; gap: 60px; }
    .contact-info h2 { font-size: 2.5rem; }
}
/* Premium Checkout Prototype */
.checkout-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.checkout-overlay.active {
    display: flex;
    opacity: 1;
}

.checkout-box {
    background: var(--bg-card);
    width: 90%;
    max-width: 440px;
    padding: 40px;
    border-radius: 32px;
    border: 1px solid var(--border-color);
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    color: var(--text-main);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.checkout-overlay.active .checkout-box {
    transform: scale(1);
}

.checkout-header { text-align: center; margin-bottom: 30px; }
.checkout-header h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.checkout-header p { color: var(--text-grey); font-size: 0.9rem; }

.plan-summary {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.plan-info-title { font-weight: 600; font-size: 0.95rem; }
.plan-price-tag { font-weight: 700; font-size: 1.2rem; }

/* Mock Stripe Elements Styling */
.stripe-element-mock {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    transition: border-color 0.3s;
}

.stripe-element-mock:focus-within {
    border-color: var(--accent-blue);
}

.stripe-input-row { display: flex; gap: 12px; }

/* Apple Pay Button */
.apple-pay-btn {
    background: #000;
    color: #fff;
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.divider-line { height: 1px; background: var(--border-color); margin: 24px 0; position: relative; }
.divider-line::after {
    content: "O PAGA CON TARJETA";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-card);
    padding: 0 12px;
    font-size: 0.6rem;
    color: var(--text-grey);
    letter-spacing: 0.1em;
}

.checkout-btn-primary {
    background: var(--accent-blue);
    color: white;
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
}

.btn-close-checkout {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-grey);
    cursor: pointer;
}

@media (max-width: 480px) {
    .checkout-box { padding: 30px 20px; border-radius: 0; width: 100%; height: 100%; max-width: none; border: none; }
}
