/* css/v.css */
:root {
    --primary: #3b82f6;      
    --success: #10b981;      
    --bg-body: #f8fafc;      
    --surface: #ffffff;      
    --text-main: #0f172a;    
    --text-muted: #64748b;   
    --border-color: #e2e8f0; 
}

body { 
    font-family: 'Inter', sans-serif; 
    background-color: #f1f5f9; 
    margin: 0; 
    display: flex; 
    justify-content: center; 
}

.mobile-container {
    width: 100%;
    max-width: 420px;
    background-color: var(--surface); /* Fondo blanco limpio para Flat Design */
    min-height: 100vh;
    box-shadow: 0 0 40px rgba(0,0,0,0.08);
    position: relative;
    padding-bottom: 1px; /* Para que el contenido respire al final */
    transition: all 0.3s ease;
}

.topbar {
    background: var(--surface);
    color: var(--text-main);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 800;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.hero {
    background-color: transparent;
    padding-bottom: 25px;
    text-align: center;
    border-bottom: 1px solid var(--border-color); /* Separador sutil */
}

.hero-banner {
    background-color: var(--bg-body); /* Color sólido y limpio, sin gradiente */
    height: 120px;
}

.profile-icon {
    width: 145px;      /* Antes 120px */
    height: 145px;     /* Antes 120px */
    margin: -72px auto 10px; /* Ajustado para mantener el centro exacto */
    background-color: var(--surface);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--surface);
    box-shadow: 0 4px 15px -3px rgba(0,0,0,0.08);
    object-fit: cover;
}

/* ================= BOTONES PRINCIPALES ================= */
.action-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 20px;
    margin-top: 20px;
}
.action-row {
    display: flex;
    gap: 10px;
    width: 100%;
}
.btn {
    flex: 1;
    padding: 14px;
    border-radius: 20px;
    border: none;
    color: white;
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: transform 0.2s, opacity 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.btn:active { transform: scale(0.96); }
.btn-call { background-color: var(--primary); box-shadow: 0 8px 20px -6px var(--primary); }
.btn-wa { background-color: #25D366; box-shadow: 0 8px 20px -6px rgba(37, 211, 102, 0.5); }
.btn-share { 
    background-color: transparent; 
    color: var(--primary); 
    border: 2px solid var(--primary); 
}
.btn-share:hover { background-color: var(--primary); color: white; }

.btn-purple {
    background-color: var(--primary);
    color: white;
    padding: 14px 20px;
    border-radius: 20px;
    border: none;
    font-weight: 800;
    cursor: pointer;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    box-shadow: 0 8px 20px -6px var(--primary);
}

/* ================= TARJETAS PLANAS ================= */
.card {
    background-color: transparent; /* Flat design sin cajas blancas cerradas */
    margin: 0; 
    padding: 30px 24px;
    border-radius: 0; 
    box-shadow: none; 
    border: none;
    border-bottom: 1px solid var(--border-color); /* Línea separadora simple */
}

.card:last-of-type {
    border-bottom: none;
}

.card-title {
    color: var(--text-main);
    font-size: 1.15rem; /* Letra un poco más grande y elegante */
    font-weight: 600; /* Medium/Semi-bold en vez de Black (900) */
    margin-top: 0;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    text-transform: none; /* Elimina MAYÚSCULAS forzadas */
    letter-spacing: normal;
}

.badge-verified {
    display: block;
    width: fit-content;
    margin: 0 auto 15px;
    background-color: #d1fae5;
    color: #059669;
    padding: 4px 8px;      /* Antes 6px 12px */
    font-size: 0.55rem;    /* Antes 0.75rem */
    font-weight: 800;      /* Ligeramente más grueso para legibilidad */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 12px;
}

.locked-card {
    text-align: center;
    padding: 15px 10px;
    background-color: var(--bg-body); 
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    margin-top: 5px;
}

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li {
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    gap: 14px;
    font-size: 0.9rem;
    color: #334155;
    font-weight: 500;
}
.contact-list li:last-child { border-bottom: none; }
.contact-icon-wrapper {
    background-color: var(--bg-body);
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
    border: 1px solid var(--border-color);
}

.gallery-scroll {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 15px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; 
    cursor: grab;
}
.gallery-scroll:active { cursor: grabbing; } 
.gallery-scroll::-webkit-scrollbar { display: none; } 
.gallery-scroll > div {
    flex: 0 0 42%; 
    scroll-snap-align: center;
    border-radius: 12px; 
}
.gallery-scroll img { pointer-events: none; }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}
.faq-answer.open {
    max-height: 500px;
}
.faq-icon {
    transition: transform 0.3s ease;
}
.faq-icon.rotate {
    transform: rotate(45deg);
}
.testimonials-scroll > div {
    flex: 0 0 85%;
    scroll-snap-align: center;
}

.floating-wa-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 50;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: pulse-green 2s infinite;
}
.floating-wa-btn:hover { transform: scale(1.1) rotate(-5deg); }
.floating-wa-btn svg { width: 34px; height: 34px; fill: currentColor; }
.floating-wa-tooltip {
    position: absolute;
    right: 75px;
    background: white;
    color: #0f172a;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}
.floating-wa-btn:hover .floating-wa-tooltip { opacity: 1; transform: translateX(0); }
@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ================= REDES SOCIALES UNIFICADAS ================= */
.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    justify-content: center;
}
.social-circle {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease-in-out;
    
    /* Estado Base Neutro */
    color: var(--text-muted);
    background-color: var(--bg-body);
    border: 1px solid var(--border-color);
}
.social-circle svg { width: 22px; height: 22px; fill: currentColor; }

/* Efecto Hover tomando el Color de Acento Dinámico */
.social-circle:hover { 
    background-color: var(--primary); 
    color: #ffffff; 
    border-color: var(--primary); 
    transform: translateY(-4px); 
    box-shadow: 0 8px 15px -4px color-mix(in srgb, var(--primary) 40%, transparent); 
}

.banner-register-mini {
    background: var(--bg-body);
    margin: 10px 24px 20px;
    padding: 12px 15px;
    border-radius: 16px;
    border: 1px dashed #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.banner-text-mini strong {
    display: block;
    color: var(--text-main);
    font-size: 0.8rem;
    margin-bottom: 2px;
}
.banner-text-mini span { font-size: 0.65rem; color: var(--text-muted); font-weight: 500; }
.btn-register-mini {
    background-color: var(--text-main);
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.masonry-grid { display: flex; flex-direction: column; }
.hidden-item { display: none !important; }
.desktop-qr-card { display: none !important; }

/* ================= MODO ESCRITORIO ================= */
@media (min-width: 800px) {
    .mobile-container {
        max-width: 1000px;
        background-color: transparent;
        box-shadow: none;
        padding: 40px 20px;
    }
    .topbar { border-radius: 20px; margin-bottom: 20px; border: 1px solid var(--border-color); background-color: var(--surface); }
    .hero { border-radius: 24px; border: 1px solid var(--border-color); background-color: var(--surface); }
    .hero-banner { border-top-left-radius: 24px; border-top-right-radius: 24px; }
    
    .action-wrapper {
        flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 15px; padding: 0 40px;
    }
    .action-row { width: auto; gap: 15px; }
    .action-row .btn, .action-wrapper .btn-purple { width: auto; min-width: 160px; flex: 0 0 auto; }

    .masonry-grid {
        display: block; column-count: 2; column-gap: 20px; margin-top: 20px;
    }
    
    /* En escritorio sí recuperamos la forma de "Caja" para que cuadre en la rejilla */
    .card {
        margin: 0 0 20px 0; 
        break-inside: avoid; 
        display: inline-block; 
        width: 100%;
        background-color: var(--surface);
        border: 1px solid var(--border-color);
        border-radius: 16px;
    }
    
    .footer-container { max-width: 500px; margin: 20px auto 0; }
    .desktop-qr-card { display: inline-block !important; }
    .floating-wa-btn { right: calc(50% - 480px); }
}