/* ==========================================================================
   SECCIÓN SOBRE MÍ — Laura Álvarez Asesora Inmobiliaria
   Estilo Liquid Glass (Vidrio esmerilado, bordes biselados, reflejos vivos)
   Layout Equilibrado: Proporciones compactas, contenido agrupado y padding generoso
   ========================================================================== */

.about-section {
  --stat-card-height: 226px;
  position: relative;
  width: 100%;
  min-height: 100vh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(90px, 9vh, 115px) clamp(70px, 7.5vw, 120px) clamp(60px, 7vh, 80px);
  background-color: #0E1622;
  background-image: url('../assets/images/hero-background.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* Fallback si no hay soporte WebP */
.no-webp .about-section {
  background-image: url('../assets/images/hero-background.webp');
}

/* Overlay nocturno oscuro con degradado atmosférico azul-gris a negro */
.about-section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: 
    linear-gradient(180deg, rgba(14, 22, 34, 0.94) 0%, rgba(10, 16, 25, 0.92) 50%, rgba(8, 12, 18, 0.97) 100%),
    radial-gradient(circle at 80% 30%, rgba(91, 140, 255, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 20% 80%, rgba(199, 167, 108, 0.07) 0%, transparent 60%);
}

/* Contenedor principal con buen encuadre y sin estiramientos artificiales */
.about-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1670px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: clamp(352px, 27.5vw, 418px) 1fr;
  row-gap: clamp(20px, 2.4vh, 29px);
  column-gap: clamp(35px, 3.8vw, 57px);
  align-items: stretch;
}

/* --------------------------------------------------------------------------
   BLOQUE IZQUIERDO — Tarjeta Liquid Glass de la Asesora
   -------------------------------------------------------------------------- */
.about-advisor-card {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  height: 100%;
  
  /* Liquid Glass Frosted */
  background: rgba(255, 255, 255, 0.08);
  background: color-mix(in oklab, white 10%, transparent);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 
    inset 0 1px 1.5px rgba(255, 255, 255, 0.55),
    inset 0 -1px 1.5px rgba(0, 0, 0, 0.2),
    0 24px 50px -15px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  
  transition: transform 0.4s cubic-bezier(0.34, 1.4, 0.5, 1), box-shadow 0.4s ease;
}

.about-advisor-card:hover {
  transform: translateY(-3px);
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 0.7),
    0 30px 60px -15px rgba(0, 0, 0, 0.75),
    0 0 30px rgba(199, 167, 108, 0.15);
}

/* Contenedor del retrato que acompaña la altura natural sin sobredimensionar */
.advisor-img-box {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background-color: #121A26;
}

.advisor-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 16%;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-advisor-card:hover .advisor-img {
  transform: scale(1.03);
}

/* Viñeta sutil para fusionar suavemente la foto con el panel inferior */
.advisor-img-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: 
    linear-gradient(to top, rgba(10, 16, 24, 0.98) 0%, rgba(10, 16, 24, 0.45) 26%, transparent 60%),
    linear-gradient(to bottom, rgba(10, 16, 24, 0.15) 0%, transparent 25%);
}

/* Panel inferior "footer" de la tarjeta: Mismo alto y alineación exacta con la tarjeta 4 */
.advisor-footer {
  box-sizing: border-box;
  height: var(--stat-card-height, 226px);
  min-height: var(--stat-card-height, 226px);
  max-height: var(--stat-card-height, 226px);
  padding: 20px 26px 20px;
  background: rgba(10, 16, 24, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.advisor-header-group {
  display: flex;
  flex-direction: column;
}

.advisor-name {
  font-family: var(--font-serif);
  font-size: clamp(23px, 2vw, 28px);
  font-weight: 500;
  color: #FFFFFF;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 3px;
}

.advisor-role {
  display: block;
  font-family: var(--font-ui, var(--font-sans));
  font-size: 14px;
  font-weight: 500;
  color: #C9CDD3;
  letter-spacing: 0.02em;
  margin-bottom: 0;
}

.advisor-quote {
  font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif);
  font-size: 14px;
  line-height: 1.48;
  color: rgba(255, 255, 255, 0.82);
  margin: auto 0;
  padding: 0;
}

.advisor-rating {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.rating-stars {
  display: flex;
  gap: 3.5px;
  color: #D4A24E;
}

.rating-stars svg {
  width: 15.5px;
  height: 15.5px;
  fill: currentColor;
}

.rating-text {
  font-family: var(--font-ui, var(--font-sans));
  font-size: 14px;
  font-weight: 500;
  color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   BLOQUE DERECHO — Contenido "Sobre mí"
   -------------------------------------------------------------------------- */
.about-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: clamp(20px, 2.4vh, 29px);
}

/* 3.1 Encabezado */
.about-header {
  flex-shrink: 0;
}

.about-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.4px;
  color: #D4A24E;
  text-transform: uppercase;
  margin-bottom: 9px;
}

.about-eyebrow span:nth-of-type(1) {
  font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif);
}

.about-eyebrow-line {
  width: 40px;
  height: 1.7px;
  background-color: #D4A24E;
  border-radius: 1px;
}

.about-title {
  font-family: var(--font-serif);
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 500;
  color: #FFFFFF;
  line-height: 1.2;
  letter-spacing: -0.015em;
  max-width: 946px;
  margin-bottom: 9px;
}

.about-desc {
  font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif);
  font-size: 16px;
  line-height: 1.6;
  color: #C9CDD3;
  max-width: 880px;
}

.about-desc strong {
  color: #FFFFFF;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   3.2 Grilla de Estadísticas (6 Tarjetas Compactas y Bien Proporcionadas)
   -------------------------------------------------------------------------- */
.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: auto;
}

.stat-card {
  position: relative;
  border-radius: 20px;
  padding: 24px 26px 22px;
  height: var(--stat-card-height, 226px);
  min-height: var(--stat-card-height, 226px);
  max-height: var(--stat-card-height, 226px);
  box-sizing: border-box;
  isolation: isolate;
  overflow: hidden;
  cursor: pointer;
  
  /* Liquid Glass Frosted Individual Card */
  background: rgba(255, 255, 255, 0.08);
  background: color-mix(in oklab, white 8.5%, transparent);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.45),
    inset 0 -1px 1px rgba(0, 0, 0, 0.15),
    0 16px 36px -12px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  
  /* Contenido agrupado y compacto hacia arriba — sin huecos vacíos en el centro */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 13px;
  
  transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.5, 1),
              box-shadow 0.35s ease,
              border-color 0.3s ease,
              background 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 
    inset 0 1px 1.5px rgba(255, 255, 255, 0.65),
    0 22px 45px -10px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(212, 162, 78, 0.18);
}

/* Fila Superior de la tarjeta: Ícono & Botón "+" */
.stat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.stat-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(212, 162, 78, 0.2);
  border: 1px solid rgba(212, 162, 78, 0.45);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.3s ease, background 0.3s ease;
}

.stat-card:hover .stat-icon-badge {
  transform: scale(1.08);
  background: rgba(212, 162, 78, 0.32);
}

.stat-icon-badge svg {
  width: 20px;
  height: 20px;
}

/* Botón "+" de interactividad */
.stat-expand-btn {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.5, 1),
              background 0.25s ease,
              border-color 0.25s ease,
              color 0.25s ease,
              box-shadow 0.25s ease;
}

.stat-expand-btn svg {
  width: 15.5px;
  height: 15.5px;
  transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.5, 1);
}

.stat-card:hover .stat-expand-btn {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.08);
}

/* Vista frontal (estado de reposo con número grande protagonista y texto compacto) */
.stat-front {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 4.5px;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-number {
  font-family: var(--font-serif);
  font-size: clamp(42px, 3vw, 51px);
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1;
  margin: 0;
  letter-spacing: -0.01em;
}

.stat-desc {
  font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.38;
  color: #C9CDD3;
  margin-top: 3px;
  letter-spacing: -0.01em;
}

/* Vista expandida (detalle con transición fluida dentro del recuadro compacto) */
.stat-detail {
  position: absolute;
  inset: 68px 24px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-detail p {
  font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: -0.01em;
  font-style: normal;
}

/* Estado Expandido activo al hacer clic */
.stat-card.is-expanded {
  background: rgba(20, 30, 42, 0.85);
  border-color: rgba(212, 162, 78, 0.55);
  box-shadow: 
    inset 0 1px 1.5px rgba(255, 255, 255, 0.6),
    0 24px 50px -10px rgba(0, 0, 0, 0.6),
    0 0 24px rgba(212, 162, 78, 0.25);
}

.stat-card.is-expanded .stat-front {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
}

.stat-card.is-expanded .stat-detail {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.stat-card.is-expanded .stat-expand-btn {
  transform: rotate(45deg);
  background: #D4A24E;
  border-color: #D4A24E;
  color: #0E1622;
}

/* --------------------------------------------------------------------------
   3.3 Barra Inferior (Franja Horizontal Completa De Extremo A Extremo)
   -------------------------------------------------------------------------- */
.about-bottom-bar {
  grid-column: 1 / -1;
  width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 16px 31px;
  border-radius: 999px;
  isolation: isolate;
  margin-top: 0;
  
  /* Liquid Glass Frosted Strip */
  background: rgba(255, 255, 255, 0.08);
  background: color-mix(in oklab, white 8.5%, transparent);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.45),
    inset 0 -1px 1px rgba(0, 0, 0, 0.12),
    0 16px 36px -12px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.about-bottom-bar:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 
    inset 0 1px 1.5px rgba(255, 255, 255, 0.6),
    0 20px 40px -10px rgba(0, 0, 0, 0.45);
}

.bottom-bar-info {
  display: flex;
  align-items: center;
  gap: 15.5px;
}

.bottom-bar-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #FFFFFF;
}

.bottom-bar-icon svg {
  width: 20px;
  height: 20px;
}

.bottom-bar-text {
  font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.45;
}

.about-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #D4A24E;
  font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif);
  font-size: 15.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.25s ease, transform 0.25s ease;
}

.about-cta-link span:nth-of-type(1) {
  font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif);
}

/* Cualquier primer span dentro de la sección Sobre mí */
.about-section span:nth-of-type(1) {
  font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif);
}

.about-cta-link .arrow-circle {
  width: 29px;
  height: 29px;
  border-radius: 50%;
  border: 1.5px solid #D4A24E;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.about-cta-link .arrow-circle svg {
  width: 15.5px;
  height: 15.5px;
  transition: transform 0.25s ease;
}

.about-cta-link:hover {
  color: #e5b667;
  transform: translateX(3px);
}

.about-cta-link:hover .arrow-circle {
  background: #D4A24E;
  color: #0E1622;
}

.about-cta-link:hover .arrow-circle svg {
  transform: translateX(1px);
}

@media (prefers-reduced-motion: reduce) {
  .about-advisor-card,
  .stat-card,
  .stat-front,
  .stat-detail,
  .stat-expand-btn,
  .about-cta-link {
    transition: none !important;
  }
}
