/* ============================================ */
/* components.css — Cards, Acordeón, Botones,   */
/*                  Badges, Equipo              */
/* ============================================ */

/* ============================================ */
/* BOTONES                                      */
/* ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all var(--transition-smooth);
    text-align: center;
    line-height: 1.4;
}

.btn--pill {
    border-radius: var(--radius-pill);
    padding: 14px 32px;
}

.btn--tierra {
    background: var(--color-purpura);
    color: var(--color-white);
    box-shadow: 0 4px 16px oklch(from #3D2B4A l c h / 0.35);
}

.btn--tierra:hover {
    background: var(--color-lavanda);
    box-shadow: 0 6px 24px oklch(from #C9B4D4 l c h / 0.50);
    transform: translateY(-2px);
}

.btn--sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn--whatsapp {
    border-radius: var(--radius-pill);
    padding: 16px 36px;
    background: var(--color-whatsapp);
    color: var(--color-white);
    font-size: 1.1rem;
    box-shadow: 0 4px 20px oklch(from #25D366 l c h / 0.35);
}

.btn--whatsapp:hover {
    background: var(--color-whatsapp-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px oklch(from #25D366 l c h / 0.45);
}

.btn--ghost {
    border-radius: var(--radius-pill);
    padding: 16px 36px;
    background: transparent;
    color: var(--color-marfil);
    border: 2px solid oklch(from #F5EDE3 l c h / 0.30);
    font-size: 1rem;
}

.btn--ghost:hover {
    background: oklch(from #F5EDE3 l c h / 0.08);
    border-color: oklch(from #F5EDE3 l c h / 0.55);
    transform: translateY(-2px);
}

/* ============================================ */
/* GLASS CARD                                   */
/* ============================================ */
.glass-card {
    background: oklch(from #F5EDE3 l c h / 0.70);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-glass);
    padding: 32px 24px;
    transition: all var(--transition-smooth);
}

.glass-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

/* ============================================ */
/* PILAR CARDS                                  */
/* ============================================ */
.pilar-card {
    text-align: center;
    padding: 36px 24px;
}

.pilar-card__icono {
    margin-bottom: 20px;
    display: block;
}

.pilar-card__icono img {
    width: 85px;
    height: 85px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

.pilar-card__titulo {
    font-size: 1.5rem;
    color: var(--color-white);
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

.pilar-card__texto {
    font-size: 0.95rem;
    color: oklch(from var(--color-marfil) l c h / 0.85);
    line-height: 1.6;
}

/* ============================================ */
/* ACORDEÓN                                     */
/* ============================================ */
.acordeon {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.acordeon__item {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: oklch(from #F5EDE3 l c h / 0.70);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
    transition: all var(--transition-smooth);
}

.acordeon__item:hover {
    box-shadow: var(--shadow-hover);
}

.acordeon__header {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 18px 24px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text);
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: all var(--transition-smooth);
    border-radius: var(--radius-md);
}

.acordeon__header:hover {
    background: oklch(from #E8C4C4 l c h / 0.15);
}

.acordeon__header[aria-expanded="true"] {
    background: oklch(from #C9B4D4 l c h / 0.15);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.acordeon__icono {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.acordeon__titulo {
    flex: 1;
    font-family: var(--font-ui);
    font-weight: 500;
}

.acordeon__toggle {
    font-size: 1.4rem;
    color: var(--color-tierra);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: oklch(from #A07860 l c h / 0.10);
}

.acordeon__header[aria-expanded="true"] .acordeon__toggle {
    transform: rotate(45deg);
    background: oklch(from #A07860 l c h / 0.18);
}

.acordeon__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.acordeon__contenido {
    padding: 0 24px 24px 24px;
    padding-left: calc(24px + 1.5rem + 12px);
}

.acordeon__contenido p {
    font-size: 0.95rem;
    color: var(--color-text-soft);
    line-height: 1.7;
    margin-bottom: 12px;
}

.acordeon__precio {
    font-weight: 600;
    color: var(--color-purpura) !important;
    font-size: 1.05rem !important;
    margin-bottom: 16px !important;
}

/* ============================================ */
/* BADGES                                       */
/* ============================================ */
.badge {
    display: inline-block;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 500;
    font-family: var(--font-ui);
    letter-spacing: 0.02em;
}

.badge--lavanda {
    background: oklch(from #C9B4D4 l c h / 0.30);
    color: var(--color-purpura);
    border: 1px solid oklch(from #C9B4D4 l c h / 0.40);
}

.badge--tierra {
    background: transparent;
    color: var(--color-tierra);
    border: 1px solid var(--color-tierra);
}

.badge--blanco {
    background: transparent;
    color: var(--color-white);
    border: 1px solid var(--color-white);
}

/* ============================================ */
/* EQUIPO CARDS                                 */
/* ============================================ */
.equipo-card {
    text-align: center;
    padding: 0;
    transition: all var(--transition-smooth);
    cursor: default;
}

.equipo-card:hover {
    transform: translateY(-6px);
}

.equipo-card:hover .equipo-card__foto {
    box-shadow: 0 0 0 6px oklch(from #C9B4D4 l c h / 0.25);
}

.equipo-card__foto {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 10%;
    margin: 0 auto 16px;
    border: 4px solid oklch(from #E8C4C4 l c h / 0.50);
    box-shadow: 0 4px 16px oklch(from #A07860 l c h / 0.15);
    transition: all var(--transition-smooth);
}

.equipo-card__nombre {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--color-purpura);
    margin-bottom: 4px;
}

.equipo-card__especialidad {
    font-size: 0.9rem;
    color: var(--color-tierra);
    font-weight: 500;
}

/* ============================================ */
/* TESTIMONIO CARDS                             */
/* ============================================ */
.testimonio-card {
    flex: 0 0 360px;
    box-sizing: border-box;
    text-align: center;
    padding: 32px 24px;
    background: #ffffff;
    border: 1px solid oklch(from #C9B4D4 l c h / 0.15);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    transition: all var(--transition-smooth);
}

.testimonio-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.testimonio-card__avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 14px;
    border: 3px solid oklch(from #E8C4C4 l c h / 0.50);
}

.testimonio-card__estrellas {
    font-size: 1.2rem;
    color: #e6b422;
    margin-bottom: 14px;
    letter-spacing: 2px;
}

.testimonio-card__texto {
    font-size: 0.95rem;
    color: var(--color-text);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 14px;
}

.testimonio-card__nombre {
    font-size: 0.85rem;
    color: var(--color-tierra);
    font-weight: 600;
}

/* ============================================ */
/* BOTÓN FLOTANTE WHATSAPP CIRCULAR             */
/* ============================================ */
.floating-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: var(--z-floating);
    background: var(--color-whatsapp);
    color: var(--color-white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 16px oklch(from #25D366 l c h / 0.4);
    animation: breathe 2.5s ease-in-out infinite;
    transition: transform var(--transition-bounce), box-shadow var(--transition-bounce), opacity 0.3s ease;
    cursor: pointer;
}

.floating-whatsapp:hover {
    transform: scale(1.15) translateY(-2px);
    box-shadow: 0 8px 24px oklch(from #25D366 l c h / 0.55);
    animation-play-state: paused;
}

.floating-whatsapp svg {
    width: 30px;
    height: 30px;
    display: block;
}

.floating-whatsapp.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8) translateY(20px);
}

@keyframes breathe {
    0%, 100% {
        box-shadow: 0 4px 16px oklch(from #25D366 l c h / 0.35);
    }
    50% {
        box-shadow: 0 8px 24px oklch(from #25D366 l c h / 0.5);
    }
}