/* ==========================================================================
   PET PRO FORMS - DISPLAY STYLES (ESTILO AGENCIA PREMIUM)
   Diseño de 2 Columnas + Sistema de Plantillas (Grid, Carousel, Badges)
   ========================================================================== */

/* NOTA: La fuente Poppins se registra vía wp_enqueue_style() en class-ppf-frontend-display.php
   como dependencia de 'ppf-display-style' para evitar el bloqueo de render del @import. */

/* ==========================================================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   Centraliza colores de marca para evitar hex hardcodeados y facilitar theming.
   ========================================================================== */
:root {
    --ppf-accent:        #3b82f6;
    --ppf-accent-dark:   #1d4ed8;
    --ppf-accent-light:  #eff6ff;
    --ppf-accent-mid:    #dbeafe;
    --ppf-accent-border: #bfdbfe;
    --ppf-text-dark:     #1e293b;
    --ppf-text-mid:      #334155;
    --ppf-text-muted:    #64748b;
    --ppf-border:        #e2e8f0;
    --ppf-border-light:  #f1f5f9;
    --ppf-bg-white:      #ffffff;
    --ppf-bg-subtle:     #f8fafc;
    --ppf-gold:          #d97706;
    --ppf-gold-light:    #fef3c7;
    --ppf-gold-border:   #fbbf24;
    --ppf-shadow-sm:     rgba(0, 0, 0, 0.05);
    --ppf-shadow-accent: rgba(59, 130, 246, 0.08);
}

.ppf-profile-display {
    margin: 20px 0;
    font-family: 'Poppins', sans-serif;
    color: #334155;
}

/* ==========================================================================
   1. ESTRUCTURA PRINCIPAL (TARJETAS DE SECCIÓN)
   ========================================================================== */
.ppf-section-wrap {
    margin-bottom: 35px;
    background: #ffffff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.05); 
    border: none; 
}

.ppf-section-title {
    margin-top: 0; 
    margin-bottom: 25px;
    font-size: 1.4rem; 
    font-weight: 700; 
    color: #1e293b;
    display: flex; 
    align-items: center;
    border-bottom: 2px solid #f1f5f9; 
    padding-bottom: 15px;
}

.ppf-section-title i {
    display: flex; 
    align-items: center; 
    justify-content: center;
    background: #eff6ff; 
    color: #3b82f6; 
    width: 40px; 
    height: 40px; 
    border-radius: 50%;
    margin-right: 15px; 
    font-size: 1.1rem; 
    flex-shrink: 0; 
}

/* ==========================================================================
   2. GRID MÁGICO (2 COLUMNAS) Y SUB-TARJETAS DE CAMPOS
   ========================================================================== */
.ppf-data-list {
    margin: 0; 
    padding: 0;
    display: flex; 
    flex-direction: column;
    gap: 20px; 
}

.ppf-data-item {
    display: flex; 
    flex-direction: column;
    background-color: var(--ppf-bg-white); 
    padding: 20px;
    border-radius: 16px; 
    border: 1px solid var(--ppf-border); 
    /* Especificar solo propiedades necesarias en lugar de 'all' para evitar
       que el browser observe cada propiedad CSS en cada frame */
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease; 
    height: 100%; 
    box-sizing: border-box;
    overflow: hidden;
    /* Promueve el elemento al GPU antes del hover para evitar el "flash" al transformar */
    will-change: transform;
}

.ppf-data-item:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    transform: translateY(-4px); 
    border-color: #cbd5e1;
}

.ppf-data-item.ppf-full-width,
.ppf-data-item.ppf-item-full-width {
    width: 100%;
}

.ppf-data-label {
    font-weight: 600; 
    color: #64748b; 
    margin-bottom: 15px;
    font-size: 0.85rem; 
    display: flex; 
    align-items: flex-start; 
    text-transform: uppercase; 
    letter-spacing: 0.5px;
}

.ppf-data-label i {
    color: #3b82f6; 
    font-size: 1.1rem; 
    margin-right: 10px; 
    margin-top: 2px; 
}

.ppf-data-value {
    color: #1e293b; 
    font-weight: 500; 
    margin: 0; 
    line-height: 1.6;
    font-size: 0.95rem; 
    word-break: break-word; 
    flex-grow: 1; 
}

.ppf-data-value a { 
    transition: color 0.2s ease; 
    text-decoration: none; 
    color: #3b82f6;
}
.ppf-data-value a:hover { 
    opacity: 0.7; 
    text-decoration: underline; 
}

/* ==========================================================================
   2.1. LÓGICA "MOSTRAR MÁS" (COLLAPSIBLE)
   ========================================================================== */
.ppf-data-list-wrapper {
    position: relative;
    transition: max-height 0.4s ease-in-out;
}
.ppf-section-wrap.ppf-collapsible .ppf-data-list-wrapper {
    max-height: 350px;
    overflow: hidden;
}
.ppf-section-wrap.ppf-collapsible .ppf-data-list-wrapper::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 90%);
    pointer-events: none;
    transition: opacity 0.3s;
}
.ppf-section-wrap.ppf-expanded .ppf-data-list-wrapper {
    /* NOTA: max-height: 5000px causa delay perceptible en el colapso porque el browser
       anima de 0 → 5000px aunque el contenido real sea mucho menor.
       La solución ideal es que ppf-nav.js use el scrollHeight real del elemento
       para setear el max-height en JS antes de aplicar la clase ppf-expanded.
       Este valor alto es un fallback funcional hasta implementar esa mejora. */
    max-height: 5000px;
}
.ppf-section-wrap.ppf-expanded .ppf-data-list-wrapper::after {
    opacity: 0;
}

.ppf-show-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 15px;
    padding: 12px;
    background: var(--ppf-bg-subtle);
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    color: var(--ppf-accent);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.ppf-show-more-btn:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
}
.ppf-show-more-btn i {
    transition: transform 0.3s ease;
}
.ppf-section-wrap.ppf-expanded .ppf-show-more-btn i {
    transform: rotate(180deg);
}

/* ==========================================================================
   3. ESTILOS ESPECIALES Y DE ADMINISTRADOR
   ========================================================================== */
.ppf-admin-only-item {
    background-color: #fffbeb; 
    border-color: #fde68a !important;
}
.ppf-admin-only-item:hover {
    border-color: #fcd34d !important;
}
.ppf-admin-badge {
    display: inline-block;
    background: #ef4444; 
    color: #ffffff;
    font-size: 0.65rem;
    padding: 4px 10px;
    border-radius: 20px; 
    margin-left: 10px; 
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: none;
    vertical-align: middle;
}

.ppf-admin-badge.ppf-badge-hidden {
    background: #475569;
}

.ppf-hidden-public-item {
    background-color: #f1f5f9;
    border-color: #cbd5e1 !important;
    opacity: 0.85;
}
.ppf-hidden-public-item:hover {
    border-color: #94a3b8 !important;
    opacity: 1;
}

.ppf-value-flex {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ppf-value-flex i {
    color: #4b5563;
}

/* ==========================================================================
   4. SISTEMA DE PLANTILLAS VISUALES (REPETIBLES / CHECKBOXES)
   ========================================================================== */
/* Resets compartidos para listas
   Usamos selector padre .ppf-profile-display para aumentar especificidad
   en lugar de !important, evitando la "guerra de especificidad" con temas. */
.ppf-profile-display .ppf-tpl-list,
.ppf-profile-display .ppf-tpl-badges,
.ppf-profile-display .ppf-tpl-grid-cards,
.ppf-profile-display .ppf-tpl-carousel {
    list-style: none;
    margin: 0;
}
.ppf-profile-display .ppf-tpl-list,
.ppf-profile-display .ppf-tpl-badges,
.ppf-profile-display .ppf-tpl-grid-cards {
    padding: 0;
}
.ppf-profile-display .ppf-tpl-list li,
.ppf-profile-display .ppf-tpl-grid-cards li,
.ppf-profile-display .ppf-tpl-carousel li {
    margin: 0;
}

/* PLANTILLA 1: Lista Clásica (2 Columnas Global) */
.ppf-tpl-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.ppf-tpl-list.ppf-tpl-list-1col {
  grid-template-columns: 1fr;
}
.ppf-tpl-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 0.5px solid #e2e8f0;
  background: #ffffff;
  font-size: 14px;
  color: #1e293b;
  transition: border-color 0.2s ease;
}
.ppf-tpl-list li:hover { border-color: #94a3b8; }
.ppf-tpl-list li.ppf-li-clickable {
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.ppf-tpl-list li.ppf-li-clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-color: #3b82f6;
}
.ppf-item-link-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    width: 100%;
    text-decoration: none !important;
    color: inherit !important;
}
.ppf-li-clickable .ppf-list-value {
    color: #0073aa;
    font-weight: 600;
}
.ppf-tpl-list li.ppf-li-accent {
  border-left: 4px solid var(--ppf-accent);
  padding-left: 12px; /* Ajuste visual para compensar el borde grueso */
}
.ppf-list-icon-wrap {
  display: flex !important; align-items: center !important; justify-content: center !important;
  flex-shrink: 0; padding: 0 !important; line-height: 1 !important;
  width: 24px; height: 24px;
}
.ppf-list-icon-wrap i,
.ppf-list-icon-wrap span.ppf-custom-icon,
.ppf-list-icon-wrap svg {
  margin: 0 !important; padding: 0 !important; line-height: 1 !important;
  font-size: 25px !important; color: #185FA5 !important;
  float: none !important; position: static !important;
}
.ppf-list-icon-wrap .ppf-custom-icon {
  display: inline-flex !important;
}
.ppf-custom-icon svg {
  width: 1.2em;
  height: 1.2em;
  fill: currentColor;
  vertical-align: middle;
}
.ppf-list-icon-wrap i {
  display: block !important;
}
.ppf-list-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ppf-list-value a { color: #1e293b; text-decoration: none; }
.ppf-list-value a:hover { text-decoration: underline; }
.ppf-list-badge {
  font-size: 11px; font-weight: 600; color: #0C447C; background: #E6F1FB;
  border: 0.5px solid #B5D4F4; padding: 3px 10px; border-radius: 20px;
  white-space: nowrap; flex-shrink: 0;
  transition: all 0.2s ease;
}

/* WhatsApp Badge */
.ppf-list-badge.btn-wa {
    background: #f0fdf4;
    color: #15803d;
    border-color: #bbf7d0;
}
.ppf-list-badge.btn-wa:hover {
    background: #16a34a;
    color: #ffffff;
    border-color: #15803d;
    box-shadow: 0 4px 12px rgba(21, 128, 61, 0.25);
}

/* Phone Badge */
.ppf-list-badge.btn-phone {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}
.ppf-list-badge.btn-phone:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #1d4ed8;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25);
}

/* Email Badge */
.ppf-list-badge.btn-mail {
    background: #faf5ff;
    color: #7e22ce;
    border-color: #e9d5ff;
}
.ppf-list-badge.btn-mail:hover {
    background: #7c3aed;
    color: #ffffff;
    border-color: #7e22ce;
    box-shadow: 0 4px 12px rgba(126, 34, 206, 0.25);
}

/* PLANTILLA 2: Etiquetas / Badges */
.ppf-tpl-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.ppf-tpl-badges li {
    background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe;
    padding: 8px 16px; border-radius: 30px; font-size: 0.85rem; font-weight: 600;
    display: flex; align-items: center; gap: 8px; transition: all 0.2s;
}
.ppf-tpl-badges li:hover { background: #dbeafe; transform: translateY(-2px); }
.ppf-tpl-badges li i { font-size: 1rem; color: #3b82f6; }

/* PLANTILLA 3: Cuadrícula de Trofeos */
.ppf-tpl-grid-cards {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 15px;
}
.ppf-tpl-grid-cards li {
    background: var(--ppf-bg-white); border: 1px solid var(--ppf-border); border-radius: 12px;
    padding: 15px 10px; display: flex; flex-direction: column; align-items: center; text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    will-change: transform;
}
.ppf-tpl-grid-cards li:hover { border-color: var(--ppf-gold-border); box-shadow: 0 5px 15px rgba(245, 158, 11, 0.1); transform: scale(1.02); }
.ppf-tpl-grid-cards li .ppf-tpl-icon-wrapper {
    background: #fef3c7; color: #d97706; width: 50px; height: 50px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; margin-bottom: 10px;
}
.ppf-tpl-grid-cards li .ppf-tpl-text { font-size: 0.8rem; color: #475569; font-weight: 600; line-height: 1.3; }

/* PLANTILLA 4: Carrusel Deslizable */
.ppf-tpl-carousel {
    padding: 5px 5px 15px 5px !important; display: flex; gap: 15px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent;
}
.ppf-tpl-carousel::-webkit-scrollbar { height: 6px; }
.ppf-tpl-carousel::-webkit-scrollbar-track { background: transparent; }
.ppf-tpl-carousel::-webkit-scrollbar-thumb { background-color: #cbd5e1; border-radius: 20px; }
.ppf-tpl-carousel li {
    scroll-snap-align: start; flex-shrink: 0; width: 140px; 
    background: var(--ppf-bg-white); border: 1px solid var(--ppf-border); border-radius: 20px; 
    padding: 25px 15px; display: flex; flex-direction: column;
    align-items: center; text-align: center; box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    will-change: transform;
}
.ppf-tpl-carousel li:hover { border-color: var(--ppf-gold-border); box-shadow: 0 8px 25px rgba(245, 158, 11, 0.15); transform: translateY(-5px); }
.ppf-tpl-carousel li .ppf-tpl-icon-wrapper {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); color: #d97706; width: 60px; height: 60px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; margin-bottom: 15px; box-shadow: 0 4px 12px rgba(217, 119, 6, 0.2);
}
.ppf-tpl-carousel li .ppf-tpl-text { font-size: 0.85rem; color: #1e293b; font-weight: 600; line-height: 1.4; }

/* ==========================================================================
   5. FRONTEND GALLERY (AISLADO / MASONRY GRID)
   ========================================================================== */
.ppf-masonry-gallery { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; max-width: 600px; }
.ppf-masonry-row { display: flex; gap: 8px; width: 100%; }
.ppf-masonry-col { flex: 1; position: relative; aspect-ratio: 16 / 9; }
.ppf-masonry-item {
    display: block; width: 100%; height: 100%; position: relative; overflow: hidden;
    border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.ppf-masonry-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.ppf-masonry-item:hover .ppf-masonry-img { transform: scale(1.05); }
.ppf-masonry-row-top .ppf-masonry-item { aspect-ratio: 16 / 9; }
.ppf-masonry-badge {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); color: white; display: flex;
    align-items: center; justify-content: center; font-size: 1.5rem;
    font-weight: bold; pointer-events: none;
}
.ppf-masonry-gallery .slbElement, .ppf-data-item .slbElement { display: none !important; }

/* ==========================================================================
   6. VANILLA JS LIGHTBOX (MODAL DE GALERÍA)
   ========================================================================== */
.ppf-lightbox-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.9); z-index: 999999; display: flex;
    align-items: center; justify-content: center; opacity: 0;
    pointer-events: none; transition: opacity 0.3s ease;
}
.ppf-lightbox-overlay.ppf-lightbox-active { opacity: 1; pointer-events: auto; }
.ppf-lightbox-content { position: relative; width: 90%; height: 90%; display: flex; align-items: center; justify-content: center; }
.ppf-lightbox-img {
    max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5); transition: transform 0.3s ease, opacity 0.3s ease;
}
.ppf-lightbox-btn {
    position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1);
    color: white; border: none; width: 50px; height: 50px; border-radius: 50%;
    font-size: 24px; cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background 0.3s;
}
.ppf-lightbox-btn:hover { background: rgba(255,255,255,0.3); }
.ppf-lightbox-prev { left: 10px; }
.ppf-lightbox-next { right: 10px; }
.ppf-lightbox-close {
    position: absolute; top: -40px; right: 0; background: transparent; color: white;
    border: none; font-size: 30px; cursor: pointer; padding: 10px;
}
.ppf-lightbox-counter {
    position: absolute; bottom: -40px; left: 50%; transform: translateX(-50%);
    color: #cbd5e1; font-size: 0.9rem;
}

/* ==========================================================================
   7. MENÚ FLOTANTE DE NAVEGACIÓN (PPF STICKY NAV)
   ========================================================================== */
.ppf-sticky-nav {
    position: sticky; top: 0; z-index: 100; margin-bottom: 28px;
    background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-radius: 16px; box-shadow: 0 4px 24px rgba(59, 130, 246, 0.08), 0 1px 4px rgba(0,0,0,0.06);
    border: 1px solid rgba(226, 232, 240, 0.8); overflow: hidden;
    box-sizing: border-box !important;
}
.ppf-nav-inner {
    display: flex; align-items: center; padding: 0 10px; height: 54px; box-sizing: border-box !important;
}
.ppf-nav-list {
    display: flex; align-items: center; flex-wrap: nowrap; list-style: none !important;
    margin: 0 !important; padding: 0 10px !important; gap: 8px; overflow-x: auto;
    scrollbar-width: none; -ms-overflow-style: none; flex: 1; height: 100%; box-sizing: border-box !important;
}
.ppf-nav-list::-webkit-scrollbar { display: none; }
.ppf-nav-item {
    flex-shrink: 0; height: 100%; display: flex; align-items: center; box-sizing: border-box !important;
}
.ppf-nav-link {
    display: flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 12px;
    line-height: 1.2 !important; box-sizing: border-box !important; font-family: 'Poppins', sans-serif;
    font-size: 0.82rem; font-weight: 500; color: #64748b; white-space: nowrap; cursor: pointer;
    border: none; background: transparent; text-decoration: none; position: relative;
    transition: color 0.25s ease, background 0.25s ease; outline: none;
}
.ppf-nav-link::after {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 0; height: 3px; border-radius: 3px 3px 0 0; background: linear-gradient(90deg, #3b82f6, #6366f1);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.ppf-nav-link:hover:not(.ppf-nav-link--active) { color: #3b82f6; background: rgba(59, 130, 246, 0.06); }
.ppf-nav-link:hover:not(.ppf-nav-link--active)::after { width: 60%; }
.ppf-nav-link--active { color: #3b82f6; background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 100%); font-weight: 600; }
.ppf-nav-link--active::after { width: 100%; }
.ppf-nav-link i { font-size: 0.9rem; opacity: 0.75; flex-shrink: 0; }
.ppf-nav-link--active i { opacity: 1; color: #3b82f6; }
.ppf-nav-scroll-btn {
    flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 50%; border: 1px solid #e2e8f0;
    background: #ffffff; color: #64748b; cursor: pointer; padding: 0;
    transition: all 0.2s ease; box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.ppf-nav-scroll-btn:hover { background: #f1f5f9; box-shadow: 0 3px 10px rgba(0,0,0,0.1); transform: translateY(-1px); color: #3b82f6; }
.ppf-nav-scroll-btn[hidden] { display: none !important; }
.ppf-nav-scroll-btn svg { fill: currentColor; width: 16px; height: 16px; }
.ppf-section-wrap.ppf-spy-target { scroll-margin-top: 70px; }

/* ==========================================================================
   8. RESPONSIVE DESIGN (MÓVILES)
   ========================================================================== */
@media (max-width: 768px) {
    .ppf-section-wrap { padding: 20px; border-radius: 16px; }
    .ppf-data-list { gap: 15px; }
    .ppf-data-item { padding: 16px; height: auto; }
    .ppf-data-label { font-size: 0.8rem; }
    .ppf-tpl-list li { padding: 9px 10px; gap: 8px; }
    .ppf-list-value { font-size: 13px; }
    .ppf-list-badge { font-size: 10px; padding: 2px 8px; }
}

/* ==========================================================================
   9. TARJETA PROFESIONAL (HERO VETERINARIO)
   ========================================================================== */
.hero-veterinario {
    --azul-principal: #112091;
    --texto-gris: #7b7b7b;
    --texto-suave: #95989a;
    --borde: #e5e7eb;
    --blanco: #ffffff;
    --sombra: 0 14px 38px rgba(17, 32, 145, 0.14);
    --space-1: 0.25rem; --space-2: 0.5rem;  --space-3: 0.75rem;
    --space-4: 1rem;    --space-5: 1.25rem; --space-6: 1.5rem;
    --space-8: 2rem;    --space-10: 2.5rem;
    
    width: 100%;
    border-radius: 14px;
    box-shadow: var(--sombra);
    background: var(--blanco);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-bottom: 28px;
    box-sizing: border-box;
}

.hero-veterinario *, 
.hero-veterinario *::before, 
.hero-veterinario *::after { 
    box-sizing: border-box; 
}

/* ---- BANNER ---- */
.hero-veterinario-header {
    position: relative;
    height: 180px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.hero-veterinario-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(5, 85, 134, 0.60) 0%,
        rgba(255, 255, 255, 0.04) 100%
    );
    pointer-events: none;
}

/* ---- BAR: badge + redes ---- */
.hero-header-bar {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4);
    box-sizing: border-box;
}

.hero-verification-badge {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.hero-veterinario-social-accounts {
    display: flex;
    gap: var(--space-2);
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.hero-veterinario-social-accounts a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.30);
    color: #fff;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.hero-veterinario-social-accounts a:hover {
    background-color: rgba(0, 0, 0, 0.50);
    transform: translateY(-2px);
}

.hero-veterinario-social-accounts i { 
    font-size: 14px; 
    color: #fff;
}

.hero-veterinario-profile-image {
    position: absolute;
    z-index: 3;
    bottom: -48px;
    left: 50%;
    transform: translateX(-50%);
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 4px solid #fff;
    background: #f3f4f6;
    box-shadow: 0 6px 20px rgba(0,0,0,0.16);
    display: block;
}

/* ---- BODY ---- */
.hero-veterinario-body {
    background: #fff;
    padding: 64px var(--space-5) var(--space-6) var(--space-5);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
}

.hero-veterinario-name {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
    color: var(--azul-principal);
    margin-bottom: 4px;
    font-family: "DM Serif Text", Georgia, serif;
    line-height: 1.1;
    text-transform: capitalize;
    margin-top: 0;
}

.hero-veterinario-job-title {
    font-size: clamp(0.9rem, 1vw + 0.5rem, 1.05rem);
    font-weight: 400;
    color: #6b7280;
    margin-bottom: 4px;
    margin-top: 0;
}

.hero-veterinario-bio {
    font-size: clamp(0.875rem, 0.5vw + 0.75rem, 0.98rem);
    color: var(--texto-gris);
    font-weight: 400;
    margin-bottom: 4px;
    max-width: 60ch;
    line-height: 1.55;
    margin-top: 0;
}

.hero-medical-license {
    font-size: clamp(0.875rem, 0.5vw + 0.75rem, 0.98rem);
    color: var(--texto-suave);
    font-weight: 400;
    margin-bottom: var(--space-5);
    max-width: 60ch;
    line-height: 1.55;
    margin-top: 0;
}

.hero-medical-license strong { 
    color: var(--texto-gris); 
}

/* ---- STATS ---- */
.hero-veterinario-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    border-top: 1px solid #eef2f7;
    padding-top: var(--space-4);
    margin-top: var(--space-1);
    box-sizing: border-box;
}

.hero-veterinario-stat {
    text-align: center;
    padding: var(--space-2) var(--space-3);
    border-left: 1px solid #e5e7eb;
    box-sizing: border-box;
}

.hero-veterinario-stat:first-child { 
    border-left: none; 
}

.hero-veterinario-stat .label {
    display: block;
    text-transform: uppercase;
    font-weight: 500;
    font-size: clamp(0.62rem, 0.5vw + 0.5rem, 0.72rem);
    color: var(--texto-suave);
    letter-spacing: 0.4px;
    line-height: 1.3;
    word-break: break-word;
}

.hero-veterinario-stat .value {
    display: block;
    font-weight: 700;
    font-size: clamp(1.05rem, 1.5vw + 0.5rem, 1.45rem);
    margin-top: 4px;
    color: #111827;
    font-variant-numeric: tabular-nums;
}

/* =========================================
   TABLET ≥ 600px
========================================= */
@media (min-width: 600px) {
    .hero-veterinario-header { 
        height: 220px; 
    }

    .hero-veterinario-profile-image {
        left: 36px;
        transform: none;
        bottom: -56px;
        width: 120px;
        height: 120px;
    }

    .hero-veterinario-body {
        padding: 16px var(--space-8) var(--space-8) 172px;
        align-items: flex-start;
        text-align: left;
    }

    .hero-veterinario-stats {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-6);
    }

    .hero-veterinario-stat {
        flex: 0 1 auto;
        min-width: 100px;
        text-align: left;
        border-left: none;
        padding: 0;
    }

    .hero-veterinario-stat + .hero-veterinario-stat {
        border-left: 1px solid #e5e7eb;
        padding-left: var(--space-6);
    }
}

/* =========================================
   DESKTOP ≥ 992px
========================================= */
@media (min-width: 992px) {
    .hero-veterinario-header { 
        height: 280px; 
    }

    .hero-veterinario-profile-image {
        left: 48px;
        bottom: -68px;
        width: 160px;
        height: 160px;
    }

    .hero-veterinario-body {
        padding: 18px var(--space-10) var(--space-8) 236px;
    }

    .hero-veterinario-stats { 
        gap: var(--space-8); 
    }
}