:root {
    --apple-bg: #f5f5f7; 
    --apple-surface: #ffffff; 
    --apple-text: #1d1d1f; 
    --apple-text-muted: #86868b;
    --apple-blue: #0071e3; 
    --apple-blue-hover: #0077ed; 
    --apple-border: #d2d2d7; 
    --transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; 
    -webkit-font-smoothing: antialiased; 
}

body { 
    background-color: var(--apple-bg); 
    color: var(--apple-text); 
    line-height: 1.47059; 
    font-weight: 400; 
    letter-spacing: -0.022em; 
    scroll-behavior: smooth; 
}

header { 
    background: rgba(255, 255, 255, 0.72); 
    backdrop-filter: saturate(180%) blur(20px); 
    -webkit-backdrop-filter: saturate(180%) blur(20px); 
    padding: 0.8rem 8%; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    position: fixed; 
    top: 0; 
    width: 100%; 
    z-index: 100; 
    border-bottom: 1px solid rgba(0,0,0,0.05); 
}

.logo { 
    font-size: 1.3rem; 
    font-weight: 600; 
    color: var(--apple-text); 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    letter-spacing: -0.01em; 
}

nav { 
    display: flex; 
    align-items: center; 
}

nav a { 
    margin-left: 2rem; 
    font-size: 0.85rem; 
    font-weight: 400; 
    color: var(--apple-text); 
    text-decoration: none; 
    transition: var(--transition); 
    cursor: pointer; 
    opacity: 0.8; 
}

nav a:hover { 
    opacity: 1; 
}

.btn-nav-portal { 
    background: var(--apple-text); 
    color: white; 
    padding: 0.4rem 1rem; 
    border-radius: 980px; 
    font-size: 0.85rem; 
    opacity: 1; 
}

.btn-nav-portal:hover { 
    background: #333336; 
    color: white !important;
}

.hero { 
    padding: 12rem 8% 6rem; 
    text-align: center; 
    background: var(--apple-bg); 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
}

.hero h1 { 
    font-size: 4rem; 
    font-weight: 600; 
    letter-spacing: -0.005em; 
    margin-bottom: 1rem; 
    color: var(--apple-text); 
    max-width: 900px; 
    line-height: 1.05; 
}

.hero h1 span { 
    background: -webkit-linear-gradient(0deg, #0071e3, #42a1f5); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
}

.hero p { 
    font-size: 1.5rem; 
    color: var(--apple-text-muted); 
    max-width: 700px; 
    margin: 0 auto 2.5rem auto; 
    font-weight: 400; 
    letter-spacing: 0.009em; 
}

.hero-actions { 
    display: flex; 
    gap: 15px; 
    justify-content: center; 
}

.btn-hero { 
    background: var(--apple-blue); 
    color: white; 
    padding: 14px 28px; 
    border-radius: 980px; 
    font-size: 1.05rem; 
    font-weight: 400; 
    text-decoration: none; 
    transition: var(--transition); 
    cursor: pointer; 
    display: inline-block; 
}

.btn-hero:hover { 
    background: var(--apple-blue-hover); 
}

.btn-secondary { 
    background: rgba(0,0,0,0.05); 
    color: var(--apple-text); 
}

.btn-secondary:hover { 
    background: rgba(0,0,0,0.08); 
}

.features { 
    padding: 6rem 8%; 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 1.5rem; 
    background: var(--apple-surface); 
}

.feature-card { 
    padding: 2.5rem; 
    border-radius: 24px; 
    background: var(--apple-bg); 
    text-align: left; 
    transition: var(--transition); 
}

.feature-card:hover { 
    transform: scale(1.02); 
}

.feature-icon { 
    font-size: 2.5rem; 
    margin-bottom: 1.5rem; 
}

.feature-card h3 { 
    font-size: 1.3rem; 
    margin-bottom: 0.8rem; 
    font-weight: 600; 
}

.feature-card p { 
    color: var(--apple-text-muted); 
    font-size: 1rem; 
    line-height: 1.5; 
}

.pricing { 
    padding: 8rem 8%; 
    background: var(--apple-bg); 
    text-align: center; 
}

.pricing-header { 
    margin-bottom: 5rem; 
}

.pricing-header h2 { 
    font-size: 3rem; 
    font-weight: 600; 
    margin-bottom: 1rem; 
    letter-spacing: -0.005em;
}

.pricing-header p { 
    color: var(--apple-text-muted); 
    font-size: 1.3rem; 
    max-width: 600px; 
    margin: 0 auto;
}

.pricing-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 2rem; 
    max-width: 1100px; 
    margin: 0 auto; 
    align-items: stretch; 
}

.price-card { 
    background: var(--apple-surface); 
    border-radius: 24px; 
    padding: 3rem 2.5rem; 
    box-shadow: 0 4px 24px rgba(0,0,0,0.04); 
    transition: var(--transition); 
    position: relative; 
    display: flex; 
    flex-direction: column; 
    text-align: left; 
}

.price-card:hover { 
    box-shadow: 0 10px 40px rgba(0,0,0,0.08); 
}

.price-card.popular { 
    border: 2px solid var(--apple-blue); 
    transform: scale(1.03); 
    z-index: 1; 
}

.price-card.popular:hover { 
    transform: scale(1.04); 
}

.badge-popular { 
    position: absolute; 
    top: 25px; 
    right: 25px; 
    background: var(--apple-blue); 
    color: white; 
    padding: 0.3rem 1rem; 
    border-radius: 980px; 
    font-weight: 500; 
    font-size: 0.75rem; 
    letter-spacing: 0.5px; 
}

.price-title { 
    font-size: 1.5rem; 
    font-weight: 600; 
    margin-bottom: 0.5rem; 
}

.price-desc { 
    color: var(--apple-text-muted); 
    font-size: 0.95rem; 
    margin-bottom: 1.5rem; 
    height: 40px;
}

.price-amount { 
    font-size: 3.5rem; 
    font-weight: 600; 
    letter-spacing: -0.02em; 
    margin-bottom: 0.2rem; 
    display: flex; 
    align-items: baseline; 
    gap: 5px; 
}

.price-amount .period { 
    font-size: 1rem; 
    color: var(--apple-text-muted); 
    font-weight: 400; 
}

.price-old { 
    text-decoration: line-through; 
    color: var(--apple-border); 
    font-size: 1rem; 
    margin-bottom: 2rem; 
    display: block;
}

.price-features { 
    list-style: none; 
    margin-bottom: 2.5rem; 
    flex-grow: 1;
}

.feature-title { 
    font-weight: 600; 
    color: var(--apple-text); 
    padding-bottom: 0.5rem; 
    margin-bottom: 1rem; 
    font-size: 1rem; 
}

.price-features li:not(.feature-title) { 
    margin-bottom: 1rem; 
    color: var(--apple-text-muted); 
    display: flex; 
    align-items: flex-start; 
    gap: 10px; 
    font-size: 0.95rem; 
}

.price-features li svg { 
    color: var(--apple-text); 
    width: 18px; 
    height: 18px; 
    flex-shrink: 0; 
    margin-top: 2px;
}

.btn-price { 
    display: block; 
    width: 100%; 
    padding: 14px; 
    border-radius: 12px; 
    font-size: 1.05rem; 
    font-weight: 400; 
    text-align: center; 
    transition: var(--transition); 
    text-decoration: none; 
    cursor: pointer; 
    border: none; 
}

.btn-outline { 
    background: var(--apple-bg); 
    color: var(--apple-blue); 
    font-weight: 500;
}

.btn-outline:hover { 
    background: #e8e8ed; 
}

.btn-solid { 
    background: var(--apple-text); 
    color: white; 
}

.btn-solid:hover { 
    background: #333336; 
}

footer { 
    text-align: center; 
    padding: 2rem; 
    background: var(--apple-bg); 
    color: var(--apple-text-muted); 
    font-size: 0.85rem;
}

/* Modales - Actualizado con Glassmorphism estilo Apple */
.modal-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0, 0, 0, 0.4); 
    display: none; 
    justify-content: center; 
    align-items: center; 
    z-index: 2000; 
    padding: 1rem; 
}

.login-modal { 
    background: rgba(255, 255, 255, 0.85); 
    backdrop-filter: saturate(180%) blur(40px); 
    -webkit-backdrop-filter: saturate(180%) blur(40px);
    border: 1px solid rgba(255,255,255,0.4);
    padding: 3rem 2.5rem; 
    border-radius: 24px; 
    width: 100%; 
    max-width: 420px; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.15); 
    position: relative; 
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    max-height: 90vh; 
    overflow-y: auto; 
}

@keyframes popIn { 
    0% { opacity: 0; transform: scale(0.9) translateY(20px); } 
    100% { opacity: 1; transform: scale(1) translateY(0); } 
}

.btn-close { 
    position: absolute; 
    top: 15px; 
    right: 20px; 
    border: none; 
    background: rgba(0,0,0,0.05); 
    width: 30px; 
    height: 30px; 
    border-radius: 50%; 
    font-size: 1.2rem; 
    color: var(--apple-text-muted); 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: var(--transition); 
}

.btn-close:hover { 
    background: rgba(0,0,0,0.1); 
}

.modal-header-icon { 
    font-size: 3rem; 
    text-align: center; 
    margin-bottom: 0.5rem;
}

.login-modal h2 { 
    text-align: center; 
    font-size: 1.5rem; 
    font-weight: 600; 
    margin-bottom: 0.5rem; 
    letter-spacing: -0.01em; 
}

.login-modal p.intro-text { 
    text-align: center; 
    color: var(--apple-text-muted); 
    margin-bottom: 2rem; 
    font-size: 0.95rem; 
    line-height: 1.5; 
}

.form-group { 
    margin-bottom: 1rem; 
}

.form-group label { 
    display: block; 
    font-size: 0.85rem; 
    font-weight: 500; 
    margin-bottom: 5px; 
    color: var(--apple-text-muted); 
    margin-left: 5px; 
}

.form-control { 
    width: 100%; 
    padding: 16px; 
    background: rgba(255, 255, 255, 0.6); 
    border: 2px solid transparent; 
    border-radius: 12px; 
    outline: none; 
    transition: var(--transition); 
    font-size: 1rem; 
    color: var(--apple-text); 
}

.form-control::placeholder { 
    color: #a1a1a6; 
}

.form-control:focus { 
    background: white; 
    border-color: var(--apple-blue); 
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15); 
}

.forgot-password-link { 
    display: block; 
    text-align: center; 
    font-size: 0.9rem; 
    color: var(--apple-blue); 
    text-decoration: none; 
    font-weight: 400; 
    margin-top: 1.5rem; 
    cursor: pointer; 
}

.forgot-password-link:hover { 
    text-decoration: underline; 
}

.btn-submit { 
    width: 100%; 
    background: var(--apple-blue); 
    color: white; 
    border: none; 
    padding: 16px; 
    border-radius: 12px; 
    font-size: 1.05rem; 
    cursor: pointer; 
    transition: var(--transition); 
    margin-top: 0.5rem; 
    font-weight: 500; 
}

.btn-submit:hover { 
    background: var(--apple-blue-hover); 
}

.btn-submit:disabled { 
    background: #a1a1a6; 
    cursor: not-allowed; 
}

.btn-back { 
    width: 100%; 
    background: transparent; 
    color: var(--apple-text-muted); 
    border: none; 
    padding: 14px; 
    font-size: 1rem; 
    cursor: pointer; 
    margin-top: 0.5rem; 
}

.btn-back:hover { 
    color: var(--apple-text); 
}

.checkout-box { 
    background: rgba(255, 255, 255, 0.6); 
    border: 1px solid var(--apple-border); 
    border-radius: 16px; 
    padding: 1.5rem; 
    margin-bottom: 1.5rem; 
    text-align: center; 
}

.checkout-price { 
    font-size: 2.5rem; 
    font-weight: 600; 
    color: var(--apple-text); 
    margin-bottom: 5px; 
    letter-spacing: -1px; 
}

/* SISTEMA DE NOTIFICACIONES PREMIUM (TOAST) */
.toast-container { 
    position: fixed; 
    top: 20px; 
    right: 20px; 
    z-index: 9999; 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
}

.toast { 
    background: rgba(255, 255, 255, 0.9); 
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px); 
    border: 1px solid rgba(226, 232, 240, 0.8); 
    padding: 1rem 1.2rem; 
    border-radius: 14px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    color: var(--apple-text); 
    font-weight: 500; 
    font-size: 0.95rem; 
    animation: slideInRight 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), fadeOut 0.4s ease 3.6s forwards; 
    max-width: 350px; 
    position: relative; 
    overflow: hidden; 
}

.toast::before { 
    content: ''; 
    position: absolute; 
    left: 0; 
    top: 0; 
    height: 100%; 
    width: 4px; 
}

.toast.success::before { background-color: #10b981; }
.toast.error::before { background-color: #ef4444; }
.toast.warning::before { background-color: #f59e0b; }

.toast-icon { 
    font-size: 1.3rem; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.toast-content { 
    display: flex; 
    flex-direction: column; 
    gap: 2px; 
}

.toast-message { 
    white-space: pre-line; 
    line-height: 1.4; 
}

@keyframes slideInRight { 
    from { transform: translateX(100%); opacity: 0; } 
    to { transform: translateX(0); opacity: 1; } 
}

@keyframes fadeOut { 
    from { opacity: 1; } 
    to { opacity: 0; display: none; } 
}

/* EFECTO REVEAL ESTILO APPLE */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 992px) { 
    .hero h1 { font-size: 3rem; } 
    .hero p { font-size: 1.2rem; } 
    .pricing-header h2 { font-size: 2.5rem; } 
    .price-card.popular { transform: none; border-width: 2px; } 
}

@media (max-width: 768px) { 
    header { flex-direction: column; padding: 1rem 5%; gap: 1rem; } 
    nav { flex-wrap: wrap; justify-content: center; gap: 15px; width: 100%; } 
    nav a { margin-left: 0; } 
    .hero { padding: 9rem 5% 4rem; } 
    .hero h1 { font-size: 2.2rem; } 
    .hero-actions { flex-direction: column; width: 100%; max-width: 300px; } 
    .btn-hero { width: 100%; } 
    .features { padding: 4rem 5%; } 
    .feature-card { padding: 1.8rem; } 
    .pricing { padding: 4rem 5%; } 
    .pricing-header { margin-bottom: 3rem; } 
    .pricing-header h2 { font-size: 2rem; } 
    .price-amount { font-size: 3rem; } 
    .login-modal { padding: 2rem 1.5rem; } 
    .toast-container { top: 10px; right: 10px; left: 10px; } 
    .toast { max-width: 100%; } 
}