/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body { font-family: 'Inter', sans-serif; color: #2D2D2D; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* ===== UTILITIES ===== */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-light { background: #FFF9ED; }
.section-dark { background: #2D2D2D; }
.section-title { font-size: 2.25rem; font-weight: 800; text-align: center; margin-bottom: 12px; }
.section-title.light { color: #fff; }
.section-subtitle { text-align: center; color: #666; font-size: 1.1rem; max-width: 600px; margin: 0 auto 48px; }
.section-subtitle.light { color: #ccc; }
.highlight { color: #F5B731; }

/* ===== BUTTONS ===== */
.btn { display: inline-block; font-weight: 600; font-size: 1rem; padding: 14px 32px; border-radius: 8px; transition: all 0.3s; cursor: pointer; border: none; text-align: center; }
.btn-primary { background: #F5B731; color: #2D2D2D; }
.btn-primary:hover { background: #e0a520; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(245,183,49,0.4); }
.btn-outline { background: transparent; border: 2px solid #F5B731; color: #2D2D2D; }
.btn-outline:hover { background: #FFF9ED; }
.btn-lg { font-size: 1.125rem; padding: 16px 40px; }
.btn-block { display: block; width: 100%; }
.btn-nav { padding: 10px 24px; font-size: 0.9rem; }

/* ===== NAVBAR ===== */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); transition: box-shadow 0.3s; }
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
.nav-container { max-width: 1140px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 110px; }
/* Logo container with overflow:hidden crops the PNG's internal white padding */
.nav-logo { display: flex; align-items: center; height: 110px; overflow: hidden; }
.logo-img { height: 220px; width: auto; transition: transform 0.3s ease; display: block; }
.logo-img:hover { transform: scale(1.03); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: #555; transition: color 0.2s; }
.nav-links a:hover { color: #F5B731; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #2D2D2D; transition: 0.3s; }

/* ===== HERO ===== */
.hero { padding: 160px 0 80px; background: linear-gradient(135deg, #FFF9ED 0%, #fff 100%); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero h1 { font-size: 2.75rem; font-weight: 800; line-height: 1.2; margin-bottom: 20px; }
.hero-subtitle { font-size: 1.15rem; color: #555; margin-bottom: 32px; max-width: 480px; }
.hero-note { font-size: 0.85rem; color: #888; margin-top: 12px; }

/* Phone Mockup */
.phone-mockup { background: #2D2D2D; border-radius: 32px; padding: 12px; max-width: 320px; margin: 0 auto; box-shadow: 0 20px 60px rgba(0,0,0,0.15); }
.phone-screen { background: #E5DDD5; border-radius: 22px; overflow: hidden; }
.chat-header { background: #075E54; color: white; padding: 12px 16px; display: flex; align-items: center; gap: 10px; }
.chat-avatar { width: 36px; height: 36px; border-radius: 50%; background: #F5B731; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #2D2D2D; font-size: 1.1rem; }
.chat-name { font-weight: 600; font-size: 0.95rem; }
.chat-status { font-size: 0.75rem; opacity: 0.8; }
.chat-body { padding: 16px 12px; min-height: 280px; display: flex; flex-direction: column; gap: 12px; }
.chat-msg { display: flex; flex-direction: column; }
.chat-msg.user { align-items: flex-end; }
.chat-msg.bot { align-items: flex-start; }
.chat-bubble { padding: 8px 12px; border-radius: 8px; max-width: 85%; font-size: 0.82rem; line-height: 1.4; }
.user-bubble { background: #DCF8C6; border-top-right-radius: 0; }
.bot-bubble { background: #fff; border-top-left-radius: 0; }
.ticket-img {
    width: 100%;
    height: 200px;
    background-image: url('assets/ticket-ejemplo.jpg');
    background-size: cover;
    background-position: center top;
    background-color: #f0f0f0;
    border-radius: 6px;
    margin-bottom: 6px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
}
.chat-time { font-size: 0.65rem; color: #999; margin-top: 2px; padding: 0 4px; }

/* ===== STEPS ===== */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step-card { text-align: center; padding: 32px 24px; background: #fff; border-radius: 16px; position: relative; }
.step-number { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); width: 36px; height: 36px; background: #F5B731; color: #2D2D2D; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1rem; }
.step-icon { margin: 20px 0 16px; }
.step-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step-card p { font-size: 0.95rem; color: #666; }

/* ===== CARDS ===== */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #FFF9ED; padding: 32px; border-radius: 16px; text-align: center; transition: transform 0.3s; }
.card:hover { transform: translateY(-4px); }
.card-icon { margin-bottom: 16px; }
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { font-size: 0.95rem; color: #666; }

/* ===== FEATURES ===== */
.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.feature { display: flex; gap: 16px; align-items: flex-start; padding: 24px; background: #fff; border-radius: 12px; }
.feature-icon { flex-shrink: 0; width: 56px; height: 56px; background: #FFF9ED; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.feature h4 { font-size: 1.05rem; margin-bottom: 4px; }
.feature p { font-size: 0.9rem; color: #666; }

/* ===== PRICING ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.pricing-card { background: #fff; border: 2px solid #eee; border-radius: 16px; padding: 32px; text-align: center; transition: transform 0.3s; }
.pricing-card.featured { border-color: #F5B731; transform: scale(1.05); box-shadow: 0 8px 30px rgba(245,183,49,0.2); }
.pricing-badge { display: inline-block; background: #F5B731; color: #2D2D2D; font-size: 0.75rem; font-weight: 700; padding: 4px 16px; border-radius: 20px; margin-bottom: 16px; letter-spacing: 0.5px; }
.badge-soon { background: #eee; color: #888; }
.pricing-price { font-size: 2.5rem; font-weight: 800; margin-bottom: 8px; }
.pricing-price span { font-size: 1rem; font-weight: 400; color: #888; }
.pricing-desc { color: #666; font-size: 0.9rem; margin-bottom: 24px; }
.pricing-features { margin-bottom: 24px; text-align: left; }
.pricing-features li { padding: 8px 0; font-size: 0.9rem; color: #555; padding-left: 24px; position: relative; }
.pricing-features li::before { content: ''; position: absolute; left: 0; top: 14px; width: 12px; height: 6px; border-left: 2px solid #F5B731; border-bottom: 2px solid #F5B731; transform: rotate(-45deg); }
.pricing-note { font-size: 0.8rem; color: #888; margin-top: 12px; }

/* ===== TRUST ===== */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.trust-item { text-align: center; }
.trust-icon { margin-bottom: 16px; }
.trust-item h3 { color: #fff; font-size: 1.15rem; margin-bottom: 8px; }
.trust-item p { color: #ccc; font-size: 0.9rem; }

/* ===== FAQ ===== */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #eee; }
.faq-question { width: 100%; background: none; border: none; text-align: left; padding: 20px 0; font-size: 1.05rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-family: inherit; color: #2D2D2D; }
.faq-toggle { font-size: 1.5rem; color: #F5B731; transition: transform 0.3s; font-weight: 300; }
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; }
.faq-item.open .faq-answer { max-height: 200px; padding-bottom: 20px; }
.faq-answer p { color: #666; font-size: 0.95rem; }

/* ===== CTA ===== */
.section-cta { background: linear-gradient(135deg, #F5B731 0%, #e0a520 100%); padding: 80px 0; }
.cta-container { text-align: center; }
.cta-container h2 { font-size: 2.25rem; font-weight: 800; color: #2D2D2D; margin-bottom: 16px; }
.cta-container p { color: #444; font-size: 1.1rem; margin-bottom: 32px; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-container .btn-primary { background: #2D2D2D; color: #fff; }
.cta-container .btn-primary:hover { background: #444; }
.cta-note { font-size: 0.85rem; color: #555; margin-top: 12px; }

/* ===== FOOTER ===== */
.footer { background: #1a1a1a; color: #ccc; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-logo { height: 56px; margin-bottom: 12px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 0.9rem; color: #888; }
.footer-links h4, .footer-contact h4 { color: #fff; font-size: 0.9rem; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }
.footer-links a, .footer-contact a { display: block; font-size: 0.9rem; color: #888; margin-bottom: 8px; transition: color 0.2s; }
.footer-links a:hover, .footer-contact a:hover { color: #F5B731; }
.footer-bottom { border-top: 1px solid #333; padding: 20px 0; text-align: center; }
.footer-bottom p { font-size: 0.8rem; color: #666; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-container { height: 80px; }
    .nav-logo { height: 80px; }
    .logo-img { height: 160px; }
    .nav-links { display: none; position: absolute; top: 80px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 24px; gap: 16px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
    .nav-links.active { display: flex; }
    .hero { padding: 110px 0 60px; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero h1 { font-size: 2rem; }
    .hero-visual { order: -1; }
    .phone-mockup { max-width: 280px; }
    .steps-grid, .cards-grid, .pricing-grid, .trust-grid, .features-grid { grid-template-columns: 1fr; }
    .pricing-card.featured { transform: none; }
    .footer-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 1.75rem; }
    .section { padding: 60px 0; }
}

/* ===== REGISTRATION MODAL ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(45, 45, 45, 0.7);
    z-index: 9999;
    overflow-y: auto;
    padding: 40px 16px;
    backdrop-filter: blur(4px);
}
.modal-overlay.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    animation: modalFadeIn 0.2s ease-out;
}
@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.modal-content {
    background: #fff;
    border-radius: 16px;
    max-width: 560px;
    width: 100%;
    position: relative;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideUp 0.3s ease-out;
    margin: auto 0;
}
@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: #f3f3f3;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    transition: all 0.15s;
}
.modal-close:hover { background: #e5e5e5; color: #000; }

.modal-header { text-align: center; margin-bottom: 28px; }
.modal-header h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 8px; }
.modal-header p { color: #666; font-size: 0.95rem; }

/* Form */
.register-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row:has(> .form-group:only-child) { grid-template-columns: 1fr; }
.form-group { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form-group select { text-overflow: ellipsis; max-width: 100%; }
.form-label { font-size: 0.85rem; font-weight: 600; color: #2D2D2D; }
.req { color: #dc2626; }
.form-group input,
.form-group select {
    padding: 11px 14px;
    border: 1.5px solid #e5e5e5;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #F5B731;
    box-shadow: 0 0 0 3px rgba(245, 183, 49, 0.15);
}
.form-group input:invalid:not(:placeholder-shown) {
    border-color: #dc2626;
}
.form-hint {
    font-size: 0.78rem;
    color: #888;
    margin-top: 2px;
}
.form-consent {
    padding: 14px;
    background: #FFF9ED;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #555;
}
.form-consent label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.form-consent input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; }

.form-error {
    padding: 12px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #b91c1c;
    font-size: 0.9rem;
}
.form-footnote {
    font-size: 0.8rem;
    color: #888;
    text-align: center;
    margin-top: -4px;
}

/* Success state */
.modal-success { text-align: center; padding: 20px 0; }
.success-icon {
    width: 80px; height: 80px;
    margin: 0 auto 20px;
    background: #dcfce7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-success h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: #16a34a;
}
.modal-success > p { color: #555; margin-bottom: 20px; }
.whatsapp-number {
    margin: 20px auto;
    padding: 18px;
    background: #dcfce7;
    border-radius: 12px;
    max-width: 320px;
}
.whatsapp-number a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #16a34a;
}
.success-hint {
    font-size: 0.88rem;
    color: #666;
    margin-bottom: 24px;
}

@media (max-width: 600px) {
    .modal-content { padding: 28px 20px; border-radius: 12px; }
    .form-row { grid-template-columns: 1fr; }
    .modal-header h2 { font-size: 1.3rem; }
}

/* ===== FLOATING WHATSAPP BUTTON ===== */
.wa-floating {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: wa-pulse 2.4s ease-out infinite;
}
.wa-floating:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6);
    animation-play-state: paused;
}
.wa-floating svg { width: 32px; height: 32px; }

.wa-tooltip {
    position: absolute;
    right: 72px;
    top: 50%;
    transform: translateY(-50%);
    background: #2D2D2D;
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.wa-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 6px solid #2D2D2D;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}
.wa-floating:hover .wa-tooltip {
    opacity: 1;
}

@keyframes wa-pulse {
    0%   { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70%  { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45), 0 0 0 18px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 600px) {
    .wa-floating { bottom: 16px; right: 16px; width: 56px; height: 56px; }
    .wa-tooltip { display: none; }
}
