/* ============================================================
   ESTILOS DE MARCOS DE DISPOSITIVOS VECTORIALES (CSS/SVG)
   ============================================================ */

/* Contenedor base de cualquier dispositivo */
.mockup-device-root {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  user-select: none;
  transform-origin: center center;
}

/* Área de pantalla interactiva donde se dibuja la captura */
.device-screen {
  position: relative;
  overflow: hidden;
  background-color: #000000;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.device-screen img.screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.device-screen img.screen-img.fit-contain {
  object-fit: contain;
  background-color: #0a0c10;
}

/* Capa de reflejo de cristal (Glass Reflection) */
.glass-glare-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.28) 0%,
    rgba(255, 255, 255, 0.08) 25%,
    rgba(255, 255, 255, 0) 45%
  );
  pointer-events: none;
  z-index: 25;
  transition: opacity 0.2s ease;
}

/* ============================================================
   1. IPHONE 16 PRO
   ============================================================ */
.device-iphone16pro {
  width: 340px;
  height: 690px;
  border-radius: 48px;
  padding: 8px;
  background: #1e1f22;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.15),
    inset 0 0 0 1px rgba(0, 0, 0, 0.8),
    inset 0 1px 2px rgba(255, 255, 255, 0.25);
  position: relative;
}

/* Acabados de titanio para iPhone */
.device-iphone16pro[data-finish="dark"] {
  background: linear-gradient(145deg, #2b2d31 0%, #151618 100%);
  border: 1px solid #3c3e44;
}

.device-iphone16pro[data-finish="natural"] {
  background: linear-gradient(145deg, #a5a29c 0%, #76736d 100%);
  border: 1px solid #b8b5af;
}

.device-iphone16pro[data-finish="silver"] {
  background: linear-gradient(145deg, #ffffff 0%, #cfd3da 100%);
  border: 1px solid #e2e4e8;
}

.device-iphone16pro[data-finish="desert"] {
  background: linear-gradient(145deg, #dfc6b2 0%, #9e826f 100%);
  border: 1px solid #e7d1c0;
}

.device-iphone16pro[data-finish="midnight"] {
  background: linear-gradient(145deg, #232a3c 0%, #10141d 100%);
  border: 1px solid #303a52;
}

/* Bisel de pantalla interno */
.device-iphone16pro .iphone-inner-bezel {
  width: 100%;
  height: 100%;
  background: #000000;
  border-radius: 42px;
  padding: 3px;
  position: relative;
  display: flex;
}

.device-iphone16pro .device-screen {
  width: 100%;
  height: 100%;
  border-radius: 40px;
}

/* Dynamic Island */
.dynamic-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 26px;
  background: #000000;
  border-radius: 20px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.island-camera {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #1f273d 0%, #030407 80%);
  box-shadow: inset 0 0 1px rgba(255, 255, 255, 0.4);
}

.island-sensor {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #080a10;
}

/* Indicador de barra de inicio (Home Bar) */
.iphone-home-bar {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 4px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  z-index: 30;
}

/* ============================================================
   2. MACBOOK PRO M3
   ============================================================ */
.device-macbookpro {
  width: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Tapa / Pantalla superior */
.macbook-lid {
  width: 580px;
  height: 375px;
  background: #000000;
  border-radius: 14px 14px 0 0;
  padding: 10px 10px 0 10px;
  position: relative;
  box-shadow: 
    0 0 0 1px #3a3b40,
    inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

.device-macbookpro[data-finish="silver"] .macbook-lid {
  box-shadow: 0 0 0 1px #d0d3d9, inset 0 1px 2px rgba(255, 255, 255, 0.6);
}

.device-macbookpro .device-screen {
  width: 100%;
  height: 100%;
  border-radius: 6px 6px 0 0;
}

/* Notch de MacBook */
.macbook-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 14px;
  background: #000000;
  border-radius: 0 0 8px 8px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
}

.macbook-camera-lens {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #111a2e;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Base inferior de aluminio */
.macbook-base {
  width: 680px;
  height: 18px;
  background: linear-gradient(180deg, #32353b 0%, #1e2024 100%);
  border-radius: 0 0 16px 16px;
  position: relative;
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.device-macbookpro[data-finish="silver"] .macbook-base {
  background: linear-gradient(180deg, #e4e7ec 0%, #bdc1c9 100%);
}

.macbook-base-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 5px;
  background: #131416;
  border-radius: 0 0 4px 4px;
}

.device-macbookpro[data-finish="silver"] .macbook-base-notch {
  background: #9ca1aa;
}

/* ============================================================
   3. VENTANA DE NAVEGADOR SAFARI MACOS
   ============================================================ */
.device-safari {
  width: 640px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 20px 40px rgba(0, 0, 0, 0.4);
}

.safari-header {
  height: 42px;
  background: #1e212b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 12px;
}

.safari-traffic-lights {
  display: flex;
  gap: 7px;
}

.light-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.light-close { background: #ff5f56; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15); }
.light-min { background: #ffbd2e; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15); }
.light-max { background: #27c93f; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15); }

.safari-url-bar {
  flex: 1;
  max-width: 380px;
  height: 26px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  margin: 0 auto;
  font-size: 0.72rem;
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.safari-url-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device-safari .device-screen {
  width: 100%;
  height: 380px;
}

/* Safari en modo claro */
.device-safari.mode-light .safari-header {
  background: #f1f3f5;
  border-bottom: 1px solid #dcdfe4;
}

.device-safari.mode-light .safari-url-bar {
  background: #ffffff;
  color: #495057;
  border: 1px solid #ced4da;
}

/* ============================================================
   4. CHROME / NAVEGADOR MINIMALISTA
   ============================================================ */
.device-chrome {
  width: 640px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 20px 40px rgba(0, 0, 0, 0.4);
}

.chrome-header {
  height: 40px;
  background: #181a20;
  display: flex;
  align-items: flex-end;
  padding: 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.chrome-tab-pill {
  height: 30px;
  background: #242731;
  border-radius: 8px 8px 0 0;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  color: #e2e8f0;
  max-width: 200px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.device-chrome .device-screen {
  width: 100%;
  height: 380px;
}

/* ============================================================
   5. TERMINAL DE CÓDIGO (RAY.SO STYLE)
   ============================================================ */
.device-terminal {
  width: 620px;
  background: #11141d;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 24px 48px rgba(0, 0, 0, 0.5);
}

.terminal-header {
  height: 36px;
  background: #181c28;
  display: flex;
  align-items: center;
  padding: 0 14px;
  position: relative;
}

.terminal-title-text {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  color: #94a3b8;
}

.device-terminal .device-screen {
  width: 100%;
  height: 360px;
}

/* ============================================================
   6. IPAD PRO (TABLET)
   ============================================================ */
.device-ipadpro {
  width: 480px;
  height: 620px;
  border-radius: 30px;
  padding: 12px;
  background: #1e1f22;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.15),
    inset 0 0 0 1px rgba(0, 0, 0, 0.7);
  position: relative;
}

.device-ipadpro .ipad-camera-dot {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #141b2b;
}

.device-ipadpro .device-screen {
  width: 100%;
  height: 100%;
  border-radius: 20px;
}

/* ============================================================
   7. MONITOR STUDIO DISPLAY
   ============================================================ */
.device-studiodisplay {
  width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.studio-screen-frame {
  width: 620px;
  height: 360px;
  border-radius: 12px;
  padding: 10px;
  background: #121316;
  box-shadow: 0 0 0 1px #3a3b40;
  position: relative;
}

.studio-screen-frame .device-screen {
  width: 100%;
  height: 100%;
  border-radius: 6px;
}

.studio-stand-arm {
  width: 80px;
  height: 50px;
  background: linear-gradient(180deg, #2a2c31 0%, #1a1b1e 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.studio-stand-foot {
  width: 220px;
  height: 10px;
  background: linear-gradient(180deg, #32353b 0%, #1e2024 100%);
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

/* ============================================================
   8. SIN MARCO (FRAMELESS)
   ============================================================ */
.device-frameless {
  width: 600px;
  height: 380px;
}

.device-frameless .device-screen {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* ============================================================
   9. COMPOSICIÓN DÚO (MACBOOK + IPHONE)
   ============================================================ */
.device-duo-wrapper {
  position: relative;
  width: 720px;
  height: 420px;
  display: flex;
  align-items: flex-end;
}

.duo-laptop-part {
  width: 540px;
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
}

.duo-phone-part {
  width: 220px;
  height: 440px;
  position: absolute;
  right: 20px;
  bottom: -20px;
  z-index: 2;
  border-radius: 36px;
  padding: 6px;
  background: #1e1f22;
  box-shadow: 
    -12px 12px 32px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.2);
}

.duo-phone-part .device-screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
}

/* Sombra dinámica configurada mediante CSS variables */
.chassis-shadow {
  transition: filter 0.2s ease, box-shadow 0.2s ease;
}
