/* ==========================================================================
   SAXA DESIGN · PHONE SHOWCASE PREMIUM (EDICIÓN PERLADA & CRISTAL BISELADO)
   Arquitectura de 2 Capas (Base Contenida + Pop-out de Mechones)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES DE IDENTIDAD & SISTEMA DE DISEÑO
   -------------------------------------------------------------------------- */
:root {
  /* Paleta Oficial SAXA */
  --saxa-marfil: #F8F6F2;
  --saxa-arena: #F3EFE8;
  --saxa-arena-light: #FAF8F5;
  --saxa-arena-dark: #E6E0D5;
  --saxa-carbon: #2D2D2D;
  --saxa-carbon-pure: #1A1A1A;
  --saxa-carbon-soft: rgba(45, 45, 45, 0.7);

  /* Acentos de Alta Gama */
  --saxa-champagne: #D4AF37;
  --saxa-champagne-light: #EBD7AA;
  --saxa-gold-subtle: rgba(212, 175, 55, 0.25);
  --saxa-petrol: #173633;

  /* Chasis de Cerámica Perlada */
  --pearl-frame-bg: linear-gradient(142deg, #FFFFFF 0%, #FAF8F4 38%, #EAE4D8 100%);
  --pearl-frame-border: rgba(255, 255, 255, 0.95);
  --pearl-inner-bezel: linear-gradient(135deg, #FAF8F5 0%, #EDE7DD 100%);

  /* Tarjetas de Cristal Esmerilado */
  --glass-card-bg: rgba(255, 255, 255, 0.68);
  --glass-card-border: rgba(255, 255, 255, 0.95);
  --glass-card-shadow: 0 12px 28px -6px rgba(45, 45, 45, 0.05), 0 2px 6px rgba(45, 45, 45, 0.02);

  /* Tipografías */
  --font-serif: 'Cormorant Garamond', 'Italiana', Georgia, serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Movimiento */
  --ease-luxury: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #EAE4DB;
  color: var(--saxa-carbon);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --------------------------------------------------------------------------
   3. ESCENARIO SHOWCASE EXTERIOR: DEGRADADOS RADIALES DE ALTA PERCEPCIÓN
   -------------------------------------------------------------------------- */
.showcase-stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 24px 18px;
  background-color: #EAE4DB;
  background-image: 
    radial-gradient(ellipse 65% 50% at 50% 28%, #FFFFFF 0%, rgba(255, 255, 255, 0.6) 45%, transparent 80%);
}

/* Halos radiales atmosféricos perceptibles que abrazan directamente la silueta del teléfono */
.stage-radial-corner {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

/* Esquina superior izquierda del teléfono: Reflector Marfil Puro y Luz Cenital */
.corner-top-left {
  top: 12%;
  left: 15%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(248, 246, 242, 0.5) 35%, transparent 70%);
  filter: blur(45px);
}

/* Esquina superior derecha del teléfono: Destello Champagne Cálido y Lujoso */
.corner-top-right {
  top: 15%;
  right: 15%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(226, 196, 138, 0.48) 0%, rgba(238, 218, 175, 0.2) 38%, transparent 68%);
  filter: blur(48px);
}

/* Esquina inferior izquierda del teléfono: Susurro Verde Petróleo de Alta Costura */
.corner-bottom-left {
  bottom: 12%;
  left: 16%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(20, 52, 48, 0.22) 0%, rgba(28, 65, 62, 0.08) 40%, transparent 70%);
  filter: blur(50px);
}

/* Esquina inferior derecha del teléfono: Arena Sedosa Profunda */
.corner-bottom-right {
  bottom: 14%;
  right: 16%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(215, 202, 185, 0.6) 0%, rgba(235, 226, 214, 0.25) 45%, transparent 70%);
  filter: blur(45px);
}

/* Aura luminosa concéntrica que abraza y resalta la silueta del teléfono */
.stage-phone-aura {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90vw;
  max-width: 480px;
  height: 80vh;
  max-height: 800px;
  background: radial-gradient(ellipse at 50% 48%, rgba(255, 255, 255, 0.95) 0%, rgba(246, 241, 233, 0.6) 45%, rgba(230, 222, 210, 0.2) 70%, transparent 85%);
  filter: blur(38px);
  pointer-events: none;
  z-index: 2;
}

/* --------------------------------------------------------------------------
   4. ESTRUCTURA DEL SMARTPHONE: REDUCCIÓN DE TAMAÑO & ABUNDANTE AIRE
   -------------------------------------------------------------------------- */
.phone-wrapper {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 310px;
  height: calc(100dvh - 76px);
  max-height: 650px;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 400px) {
  .phone-wrapper {
    max-width: min(294px, calc(100vw - 32px));
    height: calc(100dvh - 54px);
    max-height: 615px;
  }
}

/* --------------------------------------------------------------------------
   4. BOTONES FÍSICOS EXTERIORES DEL SMARTPHONE (Z-INDEX 24)
   -------------------------------------------------------------------------- */
.phone-btn {
  position: absolute;
  background: linear-gradient(180deg, #FFFFFF, #E7E2D8);
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.95), 
    0 1px 2px rgba(45, 45, 45, 0.08);
  border-radius: 2px;
  pointer-events: none;
  z-index: 24;
}

.phone-btn-volume-up {
  left: -2px;
  top: 110px;
  width: 2.5px;
  height: 38px;
}

.phone-btn-volume-down {
  left: -2px;
  top: 158px;
  width: 2.5px;
  height: 38px;
}

.phone-btn-power {
  right: -2px;
  top: 130px;
  width: 2.5px;
  height: 50px;
}

/* --------------------------------------------------------------------------
   5. CAPA 2: FONDO INTERNO DE LA PANTALLA (DETRÁS DEL PERSONAJE, Z-INDEX 2)
   Recortado con máscara limpia a las dimensiones de la pantalla OLED
   -------------------------------------------------------------------------- */
.phone-screen-backdrop {
  position: absolute;
  top: 3.8px;
  left: 3.8px;
  right: 3.8px;
  bottom: 3.8px;
  border-radius: 38.2px;
  overflow: hidden;
  contain: paint;
  z-index: 2;
  background-color: var(--saxa-marfil);
  box-shadow: inset 0 0 0 1px rgba(45, 45, 45, 0.06);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   6. CAPA 4: MARCO / CHASIS DEL SMARTPHONE (POR DELANTE DEL VIDEO, Z-INDEX 20)
   Blanco perlado / cristal claro, borde fino continuo, profundidad y reflejos
   -------------------------------------------------------------------------- */
.phone-chassis-frame {
  position: absolute;
  inset: 0;
  border-radius: 42px;
  pointer-events: none;
  z-index: 20; /* Se sitúa por delante del video del personaje */
  /* Bisel de 3.8px blanco perlado de cristal */
  border: 3.8px solid #FAF7F2;
  box-shadow: 
    /* Contorno continuo fino y limpio */
    0 0 0 1px rgba(255, 255, 255, 0.98),
    0 0 0 2px rgba(228, 220, 208, 0.88),
    /* Profundidad en el canto (sensación de smartphone real 3D) */
    0 1px 3px rgba(45, 45, 45, 0.05),
    0 10px 24px -4px rgba(180, 170, 155, 0.32),
    0 24px 55px -10px rgba(45, 45, 45, 0.16),
    0 34px 75px -15px rgba(23, 54, 51, 0.08),
    /* Filete interior nacarado: arista biselada de la pantalla */
    inset 0 0 0 1px rgba(255, 255, 255, 0.95),
    inset 0 0 0 2px rgba(216, 206, 192, 0.6),
    inset 0 1px 3px rgba(180, 172, 158, 0.22);
}

/* Reflejo especular diagonal cruzado sobre el bisel de cristal */
.phone-chassis-frame::before {
  content: '';
  position: absolute;
  inset: -3.8px;
  border-radius: 42px;
  border: 3.8px solid transparent;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.25) 20%,
    transparent 42%,
    rgba(255, 255, 255, 0.35) 78%,
    rgba(255, 255, 255, 0.9) 100%
  ) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Reflejo de cristal templado sobre la superficie de la pantalla */
.screen-glass-sheen {
  position: absolute;
  inset: 0;
  border-radius: 38.2px;
  pointer-events: none;
  background: linear-gradient(
    132deg, 
    rgba(255, 255, 255, 0.38) 0%, 
    rgba(255, 255, 255, 0.12) 18%, 
    rgba(255, 255, 255, 0) 36%, 
    rgba(255, 255, 255, 0.05) 65%, 
    rgba(255, 255, 255, 0) 80%
  );
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

/* --------------------------------------------------------------------------
   7. DYNAMIC ISLAND CON BORDE NACARADO
   -------------------------------------------------------------------------- */
.dynamic-island-container {
  position: absolute;
  top: 9px;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.dynamic-island {
  width: 78px;
  height: 22px;
  background: #000000;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 8px;
  gap: 6px;
  box-shadow: 
    0 0 0 0.5px rgba(255, 255, 255, 0.15),
    0 2px 7px rgba(0, 0, 0, 0.35);
}

.sensor-camera {
  width: 9px;
  height: 9px;
  background: radial-gradient(circle at 40% 40%, #1A2E3B 0%, #080D11 80%);
  border-radius: 50%;
  border: 1px solid #1C2329;
}

.sensor-indicator {
  width: 3.5px;
  height: 3.5px;
  background: #0E161D;
  border-radius: 50%;
}

/* --------------------------------------------------------------------------
   8. ENCABEZADO EDITORIAL DE MARCA
   Directamente sobre el retrato/loop, sin bandas ni franjas oscuras
   -------------------------------------------------------------------------- */
.screen-header {
  position: absolute;
  top: 38px; /* Respiración limpia y natural debajo de la Dynamic Island */
  left: 0;
  right: 0;
  z-index: 30;
  padding: 0 16px;
  text-align: center;
  pointer-events: none;
  background: transparent; /* TOTALMENTE LIMPIO: Cero franjas o bandas oscuras */
}

.header-logo-box {
  width: 86px;
  margin: 0 auto 3px;
}

.header-logo-img {
  width: 100%;
  height: auto;
  display: block;
  /* Resplandor óptico sutil para contrastar con perfección sobre el cabello */
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.65));
}

.header-headline {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.headline-light {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.04em;
  color: #FFFFFF; /* Blanco marfil de alta pureza */
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
  opacity: 0.98;
  line-height: 1.15;
}

.headline-bold {
  font-family: var(--font-sans);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: #F8F6F2;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.8);
  text-transform: uppercase;
  opacity: 0.9;
}

/* --------------------------------------------------------------------------
   8.5. CAPA 1: FONDO GENERAL DE PANTALLA
   -------------------------------------------------------------------------- */
.screen-background-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-color: var(--saxa-marfil);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   8.8. CAPA 1.5: FONDO / STAGE INTERNO CON AMPLIA RESPIRACIÓN
   Más amplio y aireado detrás del personaje, sin sentirse ajustado a la cabeza
   -------------------------------------------------------------------------- */
.portrait-stage-backdrop {
  position: absolute;
  top: 72px; /* Más alto, otorgando amplio espacio visual detrás de la coronilla */
  left: 6px;  /* Margen perimetral más amplio y generoso */
  right: 6px;
  bottom: 0;
  z-index: 3;
  border-radius: 34px 34px 0 0;
  background: 
    radial-gradient(circle at 50% 28%, #FFFFFF 0%, #F9F6F0 42%, #EEE6D8 85%, #E3D8C4 100%);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   9. CAPA 3: PROTAGONISTA EN VIDEO TRANSPARENTE (Z-INDEX 10)
   Situado detrás del chasis frontal (Z-INDEX 20); rostro protagonista con gran escala
   -------------------------------------------------------------------------- */
.screen-protagonist-layer {
  position: absolute;
  top: 6px;   /* Desplazado 6px hacia abajo: elimina el sobrante rectangular sobre el marco */
  left: -9.5%; /* Conserva el escalado al 119% y el cabello saliendo por los lados */
  width: 119%;
  height: calc(100% - 6px);
  z-index: 10; /* Detrás del marco (20) y por delante del fondo (2) */
  overflow: visible;
  pointer-events: none;
  /* Borde superior suavemente difuminado para cero cortes rectangulares; 
     mentón y cuello 100% nítidos; saco desvanecido con sedosidad */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 2.5%, #000 44%, rgba(0,0,0,0.85) 52%, rgba(0,0,0,0.3) 64%, transparent 76%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 2.5%, #000 44%, rgba(0,0,0,0.85) 52%, rgba(0,0,0,0.3) 64%, transparent 76%);
  transition: -webkit-mask-image 0.3s ease;
}

/* Modo de prueba controlada: sin máscara para medir impacto en Safari */
.screen-protagonist-layer.test-no-mask {
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

/* Modo de prueba controlada: aceleración por hardware forzada */
.screen-protagonist-layer.test-gpu {
  transform: translateZ(0);
  will-change: transform;
}

.protagonist-media-element {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 0%;
  display: block;
}

.protagonist-fallback-img {
  z-index: 10;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.protagonist-loop-video {
  z-index: 11;
  opacity: 1; /* Activo para Android, Chrome y navegadores con WebM nativo */
  transition: opacity 0.35s ease;
}

.protagonist-gl-canvas {
  z-index: 12;
  opacity: 0; /* Oculto por defecto en navegadores no-Safari */
  display: none;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

/* Modo Safari iOS / WebKit: activa WebGL Stacked Alpha a 60 fps */
.is-safari-gl .protagonist-gl-canvas {
  display: block;
  opacity: 1;
}

.is-safari-gl .protagonist-loop-video {
  display: none;
  opacity: 0;
}

/* Solo si WebGL o el video fallan, se revela el PNG de respaldo */
.video-fallback-active .protagonist-fallback-img {
  opacity: 1;
}

.video-fallback-active .protagonist-loop-video,
.video-fallback-active .protagonist-gl-canvas {
  opacity: 0 !important;
}

/* --------------------------------------------------------------------------
   9.5. CAPA 3.5: ATMÓSFERA INFERIOR RADIAL (FUSIÓN ELEGANTE SIN NUBE BLANCA)
   Inicio desplazado ~28px hacia abajo para liberar el mentón y cuello
   -------------------------------------------------------------------------- */
.dock-atmospheric-vignette {
  position: absolute;
  bottom: 3.8px;
  left: 3.8px;
  right: 3.8px;
  height: 46%; /* Reducido de 52% a 46% (~28px más abajo) recuperando mentón y cuello */
  border-radius: 0 0 38.2px 38.2px;
  pointer-events: none;
  z-index: 15; /* Entre el video (10) y el chasis (20) */
  background: 
    /* Halos radiales en esquinas inferiores que abrazan el dock con profundidad */
    radial-gradient(ellipse 65% 55% at 0% 100%, rgba(20, 52, 48, 0.18) 0%, rgba(240, 235, 226, 0.3) 45%, transparent 75%),
    radial-gradient(ellipse 65% 55% at 100% 100%, rgba(215, 198, 172, 0.28) 0%, rgba(245, 238, 228, 0.2) 45%, transparent 75%),
    /* Fundido vertical sedoso y limpio hacia arriba */
    linear-gradient(to top, 
      rgba(248, 246, 242, 0.88) 0%, 
      rgba(248, 246, 242, 0.55) 32%, 
      rgba(248, 246, 242, 0.18) 65%, 
      transparent 100%
    );
}

/* --------------------------------------------------------------------------
   10. CAPA 5: INTERFAZ FRONTAL (POR DELANTE DEL CHASIS Y PERSONAJE, Z-INDEX 30)
   Dynamic Island, Logotipo SAXA y Carrusel situados por encima de todo
   -------------------------------------------------------------------------- */
.phone-ui-overlay {
  position: absolute;
  top: 3.8px;
  left: 3.8px;
  right: 3.8px;
  bottom: 3.8px;
  z-index: 30;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 38.2px;
}

/* --------------------------------------------------------------------------
   11. SECCIÓN INFERIOR: DOCK & CARRUSEL DE CONTACTOS TÁCTIL
   -------------------------------------------------------------------------- */
.screen-bottom-dock {
  position: relative;
  z-index: 20;
  width: 100%;
  margin-top: auto;
  padding-bottom: 18px;
  display: flex;
  flex-direction: column;
  pointer-events: auto;
}

.dock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 6px;
}

.dock-badge {
  font-family: var(--font-sans);
  font-size: 7.2px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--saxa-carbon);
  opacity: 0.7;
}

.dock-indicator {
  font-family: var(--font-sans);
  font-size: 7.2px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--saxa-carbon);
  opacity: 0.45;
}

/* --------------------------------------------------------------------------
   12. CARRUSEL DESLIZABLE (TARJETAS GLASSMORPHISM DE ALTO LUJO)
   -------------------------------------------------------------------------- */
.contacts-carousel {
  width: 100%;
  display: flex;
  gap: 9px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: none;
  -webkit-overflow-scrolling: touch;
  padding: 4px 14px 10px;
  scrollbar-width: none;
  cursor: grab;
  pointer-events: auto;
  touch-action: pan-x;
  user-select: none;
  -webkit-user-select: none;
}

.contacts-carousel:active {
  cursor: grabbing;
}

.contacts-carousel::-webkit-scrollbar {
  display: none;
}

/* TARJETA INDIVIDUAL DE CONTACTO (CRISTAL ESMERILADO PERLADO) */
.contact-card {
  position: relative;
  flex: 0 0 138px;
  min-width: 138px;
  scroll-snap-align: start;
  background: var(--glass-card-bg);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--glass-card-border);
  border-radius: 18px;
  padding: 12px 11px;
  text-decoration: none;
  color: var(--saxa-carbon);
  box-shadow: 
    var(--glass-card-shadow),
    inset 0 1.5px 1.5px rgba(255, 255, 255, 1),
    inset 0 -1px 2px rgba(230, 224, 213, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.28s var(--ease-luxury), box-shadow 0.28s ease, background 0.28s ease;
  overflow: hidden;
  pointer-events: auto;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

.contact-card:hover, .contact-card:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 
    0 14px 32px -6px rgba(45, 45, 45, 0.09),
    0 3px 8px rgba(45, 45, 45, 0.02),
    inset 0 1.5px 1.5px #FFFFFF;
}

.contact-card:active {
  transform: translateY(0);
}

.card-glass-glow {
  position: absolute;
  top: -24px;
  right: -24px;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, transparent 70%);
  pointer-events: none;
}

/* Iconos de canales */
.card-icon-wrap {
  width: 29px;
  height: 29px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 9px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 
    0 2px 6px rgba(45, 45, 45, 0.04), 
    inset 0 1px 1px rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.85);
  color: var(--saxa-carbon);
  transition: transform 0.25s ease, background 0.25s ease;
}

.card-icon-wrap svg {
  width: 15px;
  height: 15px;
}

.contact-card:hover .card-icon-wrap {
  transform: scale(1.06);
}

.icon-whatsapp { background: rgba(37, 211, 102, 0.12); color: #0F8274; }
.icon-instagram { background: rgba(225, 48, 108, 0.1); color: #BD2D7E; }
.icon-facebook { background: rgba(24, 119, 242, 0.11); color: #1877F2; }
.icon-website { background: rgba(23, 54, 51, 0.09); color: #173633; }
.icon-email { background: rgba(212, 175, 55, 0.12); color: #9A7B1C; }
.icon-vcard { background: rgba(23, 54, 51, 0.1); color: #173633; }

/* Tipografía de tarjeta (Legibilidad editorial optimizada) */
.card-meta {
  display: flex;
  flex-direction: column;
  margin-bottom: 7px;
}

.card-category {
  font-family: var(--font-sans);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(45, 45, 45, 0.5);
  margin-bottom: 2px;
}

.card-title {
  font-family: var(--font-sans);
  font-size: 14.5px; /* Aumentado ~30-35% para máxima presencia y legibilidad sin desborde */
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--saxa-carbon);
  line-height: 1.2;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-placeholder {
  font-family: var(--font-sans);
  font-size: 11.2px; /* Aumentado ~40% (de 8.2px a 11.2px) para lectura clara */
  font-weight: 400;
  color: rgba(45, 45, 45, 0.65);
  letter-spacing: 0.01em;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-action-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  background: rgba(45, 45, 45, 0.05);
  border: 1px solid rgba(45, 45, 45, 0.06);
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 9.8px; /* Aumentado ~26% (de 7.8px a 9.8px) conservando proporción */
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--saxa-carbon);
  transition: all 0.2s ease;
}

.contact-card:hover .card-action-badge {
  background: var(--saxa-carbon);
  border-color: var(--saxa-carbon);
  color: var(--saxa-marfil);
}

/* --------------------------------------------------------------------------
   13. ACCIÓN EDITORIAL INFERIOR: TIPOGRAFÍA LIGERA CON LÍNEA SUTIL
   Sustituye el botón sólido/cápsula por una acción pura, limpia y premium
   -------------------------------------------------------------------------- */
.dock-footer-action {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2px 14px 1px;
}

.dock-editorial-location {
  display: block;
  font-family: var(--font-sans);
  font-size: 6.8px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--saxa-carbon);
  opacity: 0.42;
  margin-top: 2px;
  text-align: center;
  pointer-events: none;
  user-select: none;
  transition: opacity 0.3s ease;
}

.action-editorial-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 12px 8px;
  background: transparent;
  border: none;
  text-decoration: none;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.3s var(--ease-luxury);
}

.editorial-link-text {
  position: relative;
  font-family: var(--font-sans);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--saxa-carbon-pure);
  opacity: 0.88;
  transition: opacity 0.25s ease, color 0.25s ease, letter-spacing 0.25s ease;
}

.editorial-link-arrow {
  position: relative;
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 400;
  color: var(--saxa-carbon-pure);
  opacity: 0.82;
  transition: transform 0.28s var(--ease-luxury), opacity 0.25s ease, color 0.25s ease;
  display: inline-block;
  line-height: 1;
}

/* Línea fina sutil que refuerza que es clicable */
.editorial-link-line {
  position: absolute;
  bottom: 3.5px;
  left: 12px;
  right: 12px;
  height: 1px;
  background: linear-gradient(
    90deg, 
    transparent 0%, 
    rgba(23, 54, 51, 0.25) 20%, 
    rgba(23, 54, 51, 0.45) 50%, 
    rgba(23, 54, 51, 0.25) 80%, 
    transparent 100%
  );
  transition: background 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}

.action-editorial-link:hover .editorial-link-text,
.action-editorial-link:focus-visible .editorial-link-text {
  opacity: 1;
  color: #000000;
}

.action-editorial-link:hover .editorial-link-arrow,
.action-editorial-link:focus-visible .editorial-link-arrow {
  transform: translateX(4px);
  opacity: 1;
  color: #000000;
}

.action-editorial-link:hover .editorial-link-line,
.action-editorial-link:focus-visible .editorial-link-line {
  background: linear-gradient(
    90deg, 
    transparent 0%, 
    rgba(23, 54, 51, 0.6) 20%, 
    rgba(23, 54, 51, 0.8) 50%, 
    rgba(23, 54, 51, 0.6) 80%, 
    transparent 100%
  );
}

.action-editorial-link:active {
  transform: scale(0.98);
}

/* Barra home indicator iOS */
.screen-home-indicator {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 95px;
  height: 3px;
  background: rgba(45, 45, 45, 0.28);
  border-radius: 100px;
  z-index: 30;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   14. SOMBRA DE CONTACTO EXTERIOR DEL SMARTPHONE (SUAVE Y PROFUNDA)
   -------------------------------------------------------------------------- */
.phone-drop-shadow {
  position: absolute;
  bottom: -18px;
  left: 8%;
  right: 8%;
  height: 30px;
  background: radial-gradient(ellipse at 50% 50%, 
    rgba(140, 130, 115, 0.35) 0%, 
    rgba(140, 130, 115, 0.1) 50%, 
    transparent 75%
  );
  filter: blur(14px);
  pointer-events: none;
  z-index: 2;
}

/* --------------------------------------------------------------------------
   15. FIRMA EDITORIAL EXTERIOR & NOTIFICACIÓN TOAST
   -------------------------------------------------------------------------- */
.showcase-caption {
  position: absolute;
  bottom: 6px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  pointer-events: none;
  z-index: 4;
}

.caption-brand {
  font-family: var(--font-sans);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(45, 45, 45, 0.42);
}

.caption-sub {
  font-family: var(--font-sans);
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: rgba(45, 45, 45, 0.28);
}

/* Toast de feedback para enlaces provisionales */
.showcase-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  z-index: 999;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  color: var(--saxa-carbon);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 9px 18px;
  border-radius: 100px;
  box-shadow: 0 10px 30px rgba(45, 45, 45, 0.12), inset 0 1px 1px #FFFFFF;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s var(--ease-luxury);
  white-space: nowrap;
}

.showcase-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* --------------------------------------------------------------------------
   16. AJUSTES RESPONSIVOS ULTRA-PREMIUM
   -------------------------------------------------------------------------- */
@media (max-height: 660px) {
  .phone-wrapper {
    height: calc(100dvh - 36px);
  }
  .screen-header {
    padding-top: 30px;
  }
  .header-logo-box {
    width: 86px;
    margin-bottom: 2px;
  }
  .showcase-media-container {
    top: 86px;
  }
  .popout-content-slot {
    top: 86px;
  }
  .contact-card {
    flex: 0 0 130px;
    min-width: 130px;
    padding: 10px 9px;
  }
}

/* --------------------------------------------------------------------------
   17. PANEL EDITORIAL SAXA · CONTACTO Y TARJETA VIVA (MODAL DIALOG)
   Estética marfil, cristalino, tipografía de lujo y transiciones sutiles
   -------------------------------------------------------------------------- */
.editorial-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(12, 10, 9, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease-luxury), visibility 0.35s ease;
}

.editorial-modal-backdrop.is-active {
  opacity: 1;
  visibility: visible;
}

.editorial-modal-panel {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: rgba(254, 253, 250, 0.92);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 28px;
  padding: 28px 24px 22px;
  box-shadow: 
    0 24px 60px rgba(18, 16, 14, 0.28),
    0 4px 16px rgba(18, 16, 14, 0.08),
    inset 0 1px 2px rgba(255, 255, 255, 1);
  transform: translateY(18px) scale(0.97);
  transition: transform 0.4s var(--ease-luxury), opacity 0.35s ease;
  opacity: 0;
  display: flex;
  flex-direction: column;
}

.editorial-modal-backdrop.is-active .editorial-modal-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Encabezado del modal */
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
}

.modal-brand-wrap {
  display: flex;
  flex-direction: column;
}

.modal-subtitle {
  font-family: var(--font-sans);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--saxa-gold);
  margin-bottom: 2px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--saxa-carbon-pure);
  line-height: 1.1;
  margin: 0;
}

.modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(45, 45, 45, 0.04);
  border: 1px solid rgba(45, 45, 45, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--saxa-carbon);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.modal-close-btn:hover {
  background: rgba(45, 45, 45, 0.09);
  transform: scale(1.05);
}

.modal-close-btn svg {
  width: 14px;
  height: 14px;
}

.modal-tagline {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 13.5px;
  color: rgba(45, 45, 45, 0.72);
  margin: 0 0 20px 0;
  line-height: 1.35;
}

/* Lista de opciones */
.modal-options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-option-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(220, 215, 205, 0.55);
  border-radius: 18px;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s var(--ease-luxury);
  box-shadow: 0 2px 8px rgba(45, 45, 45, 0.02), inset 0 1px 1px #FFFFFF;
}

.modal-option-card:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(197, 160, 89, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(45, 45, 45, 0.06), inset 0 1px 1px #FFFFFF;
}

.modal-option-card:active {
  transform: translateY(0);
}

.option-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(246, 244, 238, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--saxa-carbon);
  flex-shrink: 0;
  transition: transform 0.25s ease, background 0.25s ease;
}

.modal-option-card:hover .option-icon-box {
  background: var(--saxa-carbon);
  color: var(--saxa-marfil);
  transform: scale(1.04);
}

.option-icon-box svg {
  width: 18px;
  height: 18px;
}

.option-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.option-name {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--saxa-carbon-pure);
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}

.option-desc {
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 400;
  color: rgba(45, 45, 45, 0.6);
  letter-spacing: 0.01em;
}

.option-action-arrow {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--saxa-carbon);
  opacity: 0.4;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.modal-option-card:hover .option-action-arrow {
  opacity: 0.9;
  transform: translateX(2px);
}

/* Caja instructiva para iOS / Fallback */
.modal-instructions-box {
  margin-top: 14px;
  padding: 12px 14px;
  background: rgba(246, 244, 238, 0.7);
  border: 1px dashed rgba(197, 160, 89, 0.5);
  border-radius: 14px;
  animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.instructions-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.instructions-step-num {
  font-family: var(--font-sans);
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  background: var(--saxa-carbon);
  color: var(--saxa-marfil);
  padding: 2px 5px;
  border-radius: 4px;
}

.instructions-step-title {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  color: var(--saxa-carbon);
}

.instructions-steps {
  margin: 0;
  padding-left: 18px;
  font-family: var(--font-sans);
  font-size: 9px;
  line-height: 1.5;
  color: rgba(45, 45, 45, 0.75);
}

.share-icon-glyph {
  font-size: 11px;
  display: inline-block;
  vertical-align: middle;
}

.modal-footer-editorial {
  margin-top: 16px;
  text-align: center;
}

.modal-footer-editorial span {
  font-family: var(--font-sans);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--saxa-carbon);
  opacity: 0.45;
}

