/* ================================================================
   NUEVAS FUNCIONALIDADES CSS - Hikari Soluciones
   Testimonios | Clientes | Precios | Citas | WhatsApp Inteligente
   ================================================================ */

/* ─── VARIABLES GLOBALES EXTRA ─────────────────────────────────── */
:root {
    --primary-cyan: #00b4d8;
    --secondary-blue: #0077b6;
    --neon-cyan: #00fff9;
    --bg-card: rgba(15, 23, 42, 0.7);
    --border-glow: rgba(0,180,216,0.25);
}

/* ─── 1. WHATSAPP INTELIGENTE ───────────────────────────────────── */
.wa-float-smart {
    position: fixed;
    bottom: 90px;
    right: 24px;
    z-index: 9990;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}
.wa-smart-bubble {
    background: #075e54;
    color: #fff;
    padding: 10px 16px;
    border-radius: 18px 18px 4px 18px;
    font-size: 0.85rem;
    max-width: 220px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    display: none;
    animation: bubbleIn 0.3s ease;
    line-height: 1.4;
}
.wa-smart-bubble.show { display: block; }
@keyframes bubbleIn {
    from { opacity:0; transform: translateY(10px) scale(0.95); }
    to   { opacity:1; transform: translateY(0)   scale(1); }
}
.wa-smart-btn {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    transition: all 0.3s ease;
    position: relative;
}
.wa-smart-btn:hover { transform: scale(1.1); box-shadow: 0 6px 30px rgba(37,211,102,0.6); }
.wa-pulse-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid #25d366;
    animation: waPulse 2s ease-out infinite;
    pointer-events: none;
}
@keyframes waPulse {
    0%   { width: 56px; height: 56px; opacity: 0.8; }
    100% { width: 90px; height: 90px; opacity: 0; }
}

/* ─── 3. TESTIMONIOS ────────────────────────────────────────────── */
.testimonios-section {
    padding: 5rem 0;
    background: radial-gradient(ellipse at center, rgba(0,180,216,0.05) 0%, transparent 70%), #020617;
}
.testimonios-carousel {
    position: relative;
    overflow: hidden;
}
.testimonios-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 1rem 0.5rem;
}
.testimonio-card {
    background: rgba(15,23,42,0.7);
    border-radius: 16px;
    padding: 2rem;
    min-width: 320px;
    max-width: 360px;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}
.testimonio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,180,216,0.15);
}
.testimonio-quote {
    font-size: 3rem;
    color: var(--primary-cyan);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: Georgia, serif;
}
.testimonio-text {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}
.testimonio-stars {
    color: #fbbf24;
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}
.testimonio-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.testimonio-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    flex-shrink: 0;
}
.testimonio-author-info strong { display: block; color: #fff; font-size: 0.95rem; }
.testimonio-author-info small  { color: var(--text-muted); font-size: 0.8rem; }
.testimonios-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}
.test-btn {
    background: rgba(0,180,216,0.1);
    border: 1px solid var(--border-glow);
    color: var(--primary-cyan);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}
.test-btn:hover { background: rgba(0,180,216,0.3); transform: scale(1.1); }
.test-dots { display: flex; gap: 6px; }
.test-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    cursor: pointer;
    transition: all 0.3s;
}
.test-dot.active { background: var(--primary-cyan); width: 24px; border-radius: 4px; }

/* ─── 5. CLIENTES MARQUEE ───────────────────────────────────────── */
.clientes-section {
    padding: 3rem 0;
    background: rgba(0,0,0,0.3);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
}
.clientes-label {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.clientes-marquee-wrapper {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}
.clientes-marquee {
    display: flex;
    gap: 2rem;
    animation: marqueeScroll 30s linear infinite;
    width: max-content;
}
.clientes-marquee:hover { animation-play-state: paused; }
@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.cliente-logo-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 0.8rem 1.5rem;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s;
    cursor: default;
}
.cliente-logo-item:hover { color: var(--primary-cyan); border-color: var(--border-glow); }
.cliente-logo-item i { color: var(--primary-cyan); font-size: 1.1rem; }

/* ─── 4. TABLA DE PRECIOS ───────────────────────────────────────── */
.precios-section {
    padding: 5rem 0;
    background: radial-gradient(ellipse at bottom, rgba(0,120,186,0.08) 0%, transparent 60%), #020617;
}
.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}
.toggle-label {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
    cursor: pointer;
}
.toggle-label.active { color: #fff; }
.switch-pricing { position: relative; display: inline-block; width: 52px; height: 28px; }
.switch-pricing input { opacity: 0; width: 0; height: 0; }
.slider-pricing {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: rgba(0,180,216,0.3);
    border: 1px solid var(--primary-cyan);
    border-radius: 34px;
    transition: 0.3s;
}
.slider-pricing:before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: var(--primary-cyan);
    border-radius: 50%;
    transition: 0.3s;
}
.switch-pricing input:checked + .slider-pricing:before { transform: translateX(24px); }
.badge-ahorro {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 700;
    margin-left: 4px;
}
.precios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    align-items: center;
}
@media (max-width: 900px) { .precios-grid { grid-template-columns: 1fr; max-width: 420px; margin: 2rem auto 0; } }
.precio-card {
    background: rgba(15,23,42,0.7);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}
.precio-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,180,216,0.2); }
.precio-card.featured {
    border-color: var(--primary-cyan) !important;
    background: rgba(0,180,216,0.07);
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(0,180,216,0.2);
}
.precio-card.featured:hover { transform: scale(1.05) translateY(-8px); }
.plan-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-cyan), var(--secondary-blue));
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.plan-badge.popular { background: linear-gradient(135deg, #f59e0b, #d97706); }
.plan-icon { font-size: 2.5rem; color: var(--primary-cyan); margin-bottom: 1rem; }
.plan-price { margin-bottom: 0.5rem; }
.plan-price .currency { font-size: 1.3rem; color: var(--text-muted); vertical-align: top; margin-top: 8px; display: inline-block; }
.plan-price .amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    transition: all 0.4s ease;
}
.plan-price .period { font-size: 0.9rem; color: var(--text-muted); }
.plan-desc { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 1.5rem; min-height: 40px; }
.plan-features {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
    space-y: 0.5rem;
}
.plan-features li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.4rem 0;
    color: #cbd5e1;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.plan-features li.disabled { color: rgba(255,255,255,0.25); text-decoration: line-through; }
.plan-features li i.fa-check { color: #22c55e; }
.plan-features li i.fa-xmark  { color: rgba(255,255,255,0.2); }
.btn-plan {
    display: block;
    width: 100%;
    padding: 0.85rem;
    background: linear-gradient(135deg, var(--primary-cyan), var(--secondary-blue));
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,180,216,0.3);
}
.btn-plan:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,180,216,0.5); color: #fff; }
.btn-plan-featured { background: linear-gradient(135deg, #00fff9, #00b4d8); color: #020617; }
.btn-plan-featured:hover { color: #020617; }

/* Price change animation */
@keyframes priceFlip {
    0%   { transform: translateY(-5px); opacity: 0; }
    100% { transform: translateY(0);    opacity: 1; }
}
.price-anim { animation: priceFlip 0.35s ease forwards; }

/* ─── 2. SISTEMA DE CITAS ───────────────────────────────────────── */
.citas-section {
    padding: 5rem 0;
    background: radial-gradient(ellipse at top right, rgba(124,58,237,0.06) 0%, transparent 60%), #020617;
}
.citas-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    margin-top: 3rem;
    align-items: start;
}
@media (max-width: 900px) { .citas-container { grid-template-columns: 1fr; } }
.cita-form-wrapper {
    background: rgba(15,23,42,0.7);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
}
/* Steps indicator */
.cita-steps {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}
.cita-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.3s;
}
.cita-step span {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.3s;
}
.cita-step.active { color: var(--primary-cyan); }
.cita-step.active span { background: var(--primary-cyan); color: #020617; }
.cita-step.done span { background: #22c55e; color: #fff; }
.cita-step-line { flex: 1; height: 2px; background: rgba(255,255,255,0.08); margin: 0 0.5rem; }
/* Paso container */
.cita-paso h3 { color: #fff; margin-bottom: 1.5rem; font-family: 'Rajdhani', sans-serif; font-size: 1.3rem; }
.hidden { display: none !important; }
/* Servicios grid */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}
@media (max-width: 600px) { .servicios-grid { grid-template-columns: repeat(2, 1fr); } }
.servicio-option input { display: none; }
.servicio-card {
    background: rgba(255,255,255,0.03);
    border: 2px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}
.servicio-card i { font-size: 1.5rem; color: var(--text-muted); display: block; margin-bottom: 0.5rem; transition: color 0.3s; }
.servicio-card span { font-size: 0.8rem; color: var(--text-muted); transition: color 0.3s; }
.servicio-option input:checked + .servicio-card {
    border-color: var(--primary-cyan);
    background: rgba(0,180,216,0.1);
}
.servicio-option input:checked + .servicio-card i,
.servicio-option input:checked + .servicio-card span { color: var(--primary-cyan); }
.servicio-card:hover { border-color: rgba(0,180,216,0.4); }
/* Date picker */
.cita-fecha-picker { margin-bottom: 1.5rem; }
.cita-fecha-picker label { display: block; color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.5rem; }
/* Horas grid */
.horas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.7rem;
    margin-bottom: 0.5rem;
}
@media (max-width: 500px) { .horas-grid { grid-template-columns: repeat(3, 1fr); } }
.hora-btn {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 8px;
    padding: 0.6rem;
    cursor: pointer;
    font-size: 0.85rem;
    text-align: center;
    transition: all 0.2s;
}
.hora-btn:hover:not(.ocupada) { border-color: var(--primary-cyan); color: var(--primary-cyan); background: rgba(0,180,216,0.08); }
.hora-btn.selected { background: var(--primary-cyan); color: #020617; font-weight: 700; border-color: var(--primary-cyan); }
.hora-btn.ocupada { opacity: 0.3; cursor: not-allowed; text-decoration: line-through; }
.loading-horas { color: var(--text-muted); font-size: 0.9rem; grid-column: 1/-1; text-align: center; padding: 1rem; }
/* Cita fields */
.cita-fields { display: flex; flex-direction: column; gap: 0.8rem; }
.cita-input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: #fff;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s;
    resize: vertical;
}
.cita-input:focus { outline: none; border-color: var(--primary-cyan); }
.cita-input::placeholder { color: rgba(255,255,255,0.3); }
/* Cita date */
#cita-fecha {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: #fff;
    font-size: 0.9rem;
    width: 100%;
    transition: border-color 0.3s;
    color-scheme: dark;
}
#cita-fecha:focus { outline: none; border-color: var(--primary-cyan); }
/* Resumen */
.cita-resumen {
    background: rgba(0,180,216,0.08);
    border: 1px solid rgba(0,180,216,0.2);
    border-radius: 10px;
    padding: 1rem 1.2rem;
    font-size: 0.85rem;
    color: #cbd5e1;
    margin-bottom: 0.5rem;
    display: none;
}
.cita-resumen.show { display: block; }
.cita-resumen p { margin: 0.25rem 0; }
.cita-resumen strong { color: var(--primary-cyan); }
/* Buttons */
.btn-cita-next {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-cyan), var(--secondary-blue));
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.85rem 1.5rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    transition: all 0.3s;
}
.btn-cita-next:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,180,216,0.3); }
.btn-cita-back {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 8px;
    padding: 0.85rem 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    transition: all 0.3s;
}
.btn-cita-back:hover { background: rgba(255,255,255,0.1); }
/* Info cards */
.cita-info {}
.cita-info-card {
    background: rgba(15,23,42,0.7);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
}
.cita-info-card h4 { color: #fff; margin-bottom: 0.5rem; font-size: 1rem; }
.cita-info-card p  { color: var(--text-muted); font-size: 0.85rem; line-height: 1.5; }
