/* ==========================================================================
   TU IPHONE ZONA NORTE - ESTÉTICA OFICIAL BOUTIQUE CHIC
   Inspirado en el logo oficial: Pincelada Rosa Pastel, Tipografía Cursiva y Negro Elegante
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Paleta Inspirada en el Logo */
  --brand-pink: #ff5c8d;
  --brand-pink-light: #fff0f5;
  --brand-pink-soft: #ffdeeb;
  --brand-pink-brush: #fca5c9;
  --brand-pink-dark: #e0386e;
  --brand-black: #16161a;
  --brand-dark-soft: #27272a;
  
  /* Fondos Luminosos & Cristal */
  --bg-page: #fff9fb;
  --bg-card: rgba(255, 255, 255, 0.94);
  --bg-card-hover: #ffffff;
  --bg-card-selected: #fff0f5;
  
  /* Bordes y Sombras */
  --border-subtle: rgba(255, 140, 180, 0.22);
  --border-medium: rgba(255, 92, 141, 0.35);
  --border-active: #ff5c8d;
  --shadow-soft: 0 10px 30px rgba(233, 99, 140, 0.08);
  --shadow-glow: 0 0 20px rgba(255, 92, 141, 0.25);
  --shadow-card: 0 8px 24px rgba(24, 24, 27, 0.06);

  /* Canales de Contacto */
  --whatsapp: #25d366;
  --whatsapp-hover: #1fb855;
  --instagram-grad: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  
  /* Tipografía */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  --font-cursive: 'Dancing Script', cursive;
  
  /* Textos */
  --text-primary: #18181b;
  --text-secondary: #52525b;
  --text-tertiary: #a1a1aa;
  
  /* Dimensiones */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --container-max: 1200px;
  --transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: clip;
  min-height: 100vh;
  position: relative;
  background-image: 
    radial-gradient(ellipse 60% 40% at 20% -10%, rgba(254, 197, 219, 0.45), transparent 70%),
    radial-gradient(ellipse 50% 50% at 90% 20%, rgba(255, 222, 235, 0.5), transparent 60%),
    radial-gradient(ellipse 60% 40% at 50% 80%, rgba(254, 197, 219, 0.35), transparent 70%);
  background-attachment: fixed;
}

h1, h2, h3, h4 {
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.font-script {
  font-family: var(--font-cursive);
  color: var(--brand-pink);
  font-weight: 700;
}

/* Efecto de Pincelada Rosa del Logo */
.brush-text {
  position: relative;
  display: inline-block;
  z-index: 1;
}

.brush-text::after {
  content: "";
  position: absolute;
  left: -8px;
  right: -8px;
  bottom: 6px;
  height: 16px;
  background: linear-gradient(90deg, rgba(254, 197, 219, 0.8) 0%, rgba(252, 165, 201, 0.95) 50%, rgba(255, 182, 217, 0.7) 100%);
  border-radius: 12px 20px 14px 18px;
  transform: rotate(-1.5deg);
  z-index: -1;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   TOP BAR & NAVBAR CON LOGO OFICIAL
   ========================================================================== */
.top-notice {
  background: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  padding: 8px 16px;
  font-size: 13px;
  color: var(--text-secondary);
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #15803d;
  font-weight: 600;
  font-size: 12px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  animation: pulsePink 2s infinite;
}

@keyframes pulsePink {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 92, 141, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(255, 92, 141, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 92, 141, 0); }
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 20px rgba(255, 107, 157, 0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 74px;
}

/* Logo Oficial Circular con Doble Anillo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: contain;
  background: #ffffff;
  border: 1.5px solid var(--brand-black);
  padding: 1px;
  box-shadow: 0 4px 12px rgba(255, 92, 141, 0.15);
  transition: transform 0.3s ease;
}

.brand-logo:hover .brand-logo-img {
  transform: rotate(4deg) scale(1.06);
}

.brand-title-wrap h1 {
  font-size: 19px;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-script-name {
  font-family: var(--font-cursive);
  font-size: 26px;
  color: var(--brand-pink);
  font-weight: 700;
  line-height: 0.9;
}

.brand-tag {
  font-size: 10px;
  text-transform: uppercase;
  background: var(--brand-pink-light);
  color: var(--brand-pink);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
  border: 1px solid var(--border-subtle);
}

.brand-subtitle-text {
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 600;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--brand-pink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-ig-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1.5px solid var(--border-medium);
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-black);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all var(--transition);
}

.btn-ig-nav:hover {
  background: var(--brand-pink-light);
  border-color: var(--brand-pink);
  color: var(--brand-pink);
  transform: translateY(-1px);
}

.btn-wa-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  background: var(--whatsapp);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: all var(--transition);
}

.btn-wa-nav:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

/* ==========================================================================
   HERO SECTION CHIC & BOUTIQUE
   ========================================================================== */
.hero-section {
  padding: 50px 0 40px;
  text-align: center;
  position: relative;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  color: var(--brand-pink-dark);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(255, 92, 141, 0.12);
}

.hero-title {
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-secondary);
  max-width: 660px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #ff5c8d 0%, #ff7ea5 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(255, 92, 141, 0.35);
  transition: all var(--transition);
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 92, 141, 0.45);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1.5px solid var(--border-medium);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 700;
  transition: all var(--transition);
}

.btn-hero-secondary:hover {
  border-color: var(--brand-pink);
  background: var(--brand-pink-light);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--border-subtle);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.stat-icon {
  font-size: 22px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 12px rgba(255, 92, 141, 0.08);
}

.stat-info h4 {
  font-size: 15px;
  font-weight: 700;
}

.stat-info p {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ==========================================================================
   SECCIÓN NUEVA: CONOCÉ A LA DUEÑA (MÁXIMA CONFIANZA & CERCANÍA)
   ========================================================================== */
.owner-section {
  padding: 40px 0 60px;
}

.owner-card {
  background: #ffffff;
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: center;
  box-shadow: 0 16px 40px rgba(255, 92, 141, 0.08);
  position: relative;
  overflow: hidden;
}

.owner-card::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(254, 197, 219, 0.5), transparent 70%);
  z-index: 0;
}

.owner-photo-wrap {
  position: relative;
  text-align: center;
  z-index: 1;
}

.owner-photo-ring {
  width: 220px;
  height: 220px;
  margin: 0 auto;
  border-radius: 50%;
  padding: 6px;
  background: #ffffff;
  border: 2px solid var(--brand-black);
  box-shadow: 0 0 0 4px #ffffff, 0 0 0 6px var(--brand-pink-brush), 0 12px 30px rgba(255, 92, 141, 0.25);
  overflow: hidden;
}

.owner-photo-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 38%;
}

.owner-badge-float {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-black);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.owner-content {
  position: relative;
  z-index: 1;
}

.owner-content .owner-tag {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-pink);
  margin-bottom: 8px;
}

.owner-content h3 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 14px;
}

.owner-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.owner-bullets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.owner-bullet {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-black);
}

.owner-bullet-icon {
  color: var(--brand-pink);
  font-size: 16px;
}

@media (max-width: 768px) {
  .owner-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 26px 20px;
  }
  .owner-photo-ring {
    width: 180px;
    height: 180px;
  }
  .owner-bullets {
    grid-template-columns: 1fr;
    text-align: left;
  }
}

/* ==========================================================================
   COTIZADOR INTERACTIVO (CORAZÓN DE LA WEB)
   ========================================================================== */
.configurator-section {
  padding: 40px 0 80px;
}

.section-header {
  text-align: center;
  margin-bottom: 36px;
}

.section-tag {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-pink);
  margin-bottom: 6px;
}

.section-title {
  font-size: clamp(26px, 3.5vw, 38px);
  margin-bottom: 10px;
}

.section-desc {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto;
}

.configurator-grid {
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 32px;
  align-items: start;
}

@media (max-width: 1024px) {
  .configurator-grid {
    grid-template-columns: 1fr;
  }
}

.builder-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-soft);
}

.step-block {
  margin-bottom: 34px;
}

.step-block:last-child {
  margin-bottom: 0;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-pink-light);
  border: 1.5px solid var(--brand-pink);
  color: var(--brand-pink);
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-title-wrap h3 {
  font-size: 17px;
  font-weight: 700;
}

.step-title-wrap p {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Filtros por serie */
.series-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 16px;
  -webkit-overflow-scrolling: touch;
}

.series-filters::-webkit-scrollbar {
  height: 4px;
}
.series-filters::-webkit-scrollbar-thumb {
  background: var(--brand-pink-brush);
  border-radius: 4px;
}

.series-filter-btn {
  padding: 7px 16px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: all var(--transition);
}

.series-filter-btn:hover {
  border-color: var(--brand-pink);
  color: var(--brand-pink);
}

.series-filter-btn.active {
  background: var(--brand-black);
  color: #ffffff;
  border-color: var(--brand-black);
  font-weight: 700;
}

/* Grid de Modelos */
.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 6px;
}

.model-grid::-webkit-scrollbar {
  width: 5px;
}
.model-grid::-webkit-scrollbar-thumb {
  background: var(--brand-pink-brush);
  border-radius: 4px;
}

.model-card {
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  text-align: left;
  position: relative;
  cursor: pointer;
  transition: all var(--transition);
}

.model-card:hover {
  border-color: var(--brand-pink);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 92, 141, 0.12);
}

.model-card.selected {
  background: var(--bg-card-selected);
  border-color: var(--border-active);
  box-shadow: var(--shadow-glow);
}

.model-badge-top {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--brand-pink-light);
  color: var(--brand-pink);
}

.model-icon-visual {
  width: 38px;
  height: 52px;
  margin-bottom: 10px;
  border-radius: 7px;
  background: #ffffff;
  border: 2px solid var(--brand-black);
  position: relative;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.camera-bump {
  position: absolute;
  top: 3px;
  left: 3px;
  background: #ffffff;
  border: 1px solid var(--brand-black);
}

.lens {
  border-radius: 50%;
  background: #18181b;
  border: 1px solid #71717a;
}

.pro-bump { width: 18px; height: 18px; border-radius: 4px; position: relative; }
.pro-bump .lens { position: absolute; width: 5.5px; height: 5.5px; }
.pro-bump .lens-top { top: 2px; left: 2px; }
.pro-bump .lens-bot { bottom: 2px; left: 2px; }
.pro-bump .lens-right { top: 5px; right: 2px; }

.pill-bump { width: 10px; height: 21px; border-radius: 5px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 2px 0; }
.pill-bump .lens { width: 5.5px; height: 5.5px; }

.diag-bump { width: 17px; height: 17px; border-radius: 4px; position: relative; }
.diag-bump .lens { position: absolute; width: 5.5px; height: 5.5px; }
.diag-bump .lens-diag-1 { top: 2px; left: 2px; }
.diag-bump .lens-diag-2 { bottom: 2px; right: 2px; }

.vert-bump { width: 10px; height: 19px; border-radius: 4px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 2px 0; }
.vert-bump .lens { width: 5.5px; height: 5.5px; }

.model-card h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}

.model-card p {
  font-size: 11.5px;
  color: var(--text-tertiary);
}

/* Condición */
.condition-switch-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.condition-card {
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  cursor: pointer;
  transition: all var(--transition);
}

.condition-card:hover {
  border-color: var(--brand-pink);
}

.condition-card.selected {
  background: var(--bg-card-selected);
  border-color: var(--border-active);
  box-shadow: var(--shadow-glow);
}

.condition-tag-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
  background: var(--brand-pink-light);
  color: var(--brand-pink);
}

.condition-card h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.condition-card p {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Selector de Batería */
.battery-block {
  margin-top: 20px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid var(--border-subtle);
}

.battery-notice-locked {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #15803d;
  font-size: 14px;
  font-weight: 600;
}

.battery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.battery-card {
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}

.battery-card:hover {
  border-color: var(--brand-pink);
}

.battery-card.selected {
  background: var(--brand-pink-light);
  border-color: var(--brand-pink);
  box-shadow: 0 4px 14px rgba(255, 92, 141, 0.2);
}

.battery-gauge {
  width: 40px;
  height: 18px;
  margin: 0 auto 6px;
  border: 2px solid var(--brand-black);
  border-radius: 5px;
  padding: 2px;
  position: relative;
  display: flex;
  align-items: center;
}

.battery-gauge::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 3px;
  width: 3px;
  height: 8px;
  background: var(--brand-black);
  border-radius: 0 2px 2px 0;
}

.battery-gauge-level {
  height: 100%;
  border-radius: 2px;
}

.battery-card .battery-percent {
  font-size: 15px;
  font-weight: 800;
  display: block;
  color: var(--brand-black);
}

.battery-card .battery-badge {
  font-size: 10.5px;
  color: var(--text-secondary);
  margin-top: 2px;
  display: block;
}

/* Selectores de Memoria y Colores */
.selectors-subgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 640px) {
  .selectors-subgrid {
    grid-template-columns: 1fr;
  }
}

.subgroup-label {
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.storage-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.storage-btn {
  padding: 9px 15px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 13.5px;
  transition: all var(--transition);
}

.storage-btn:hover {
  border-color: var(--brand-pink);
  color: var(--brand-pink);
}

.storage-btn.selected {
  background: var(--brand-black);
  color: #ffffff;
  border-color: var(--brand-black);
}

.colors-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.color-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: all var(--transition);
}

.color-option:hover .color-swatch {
  transform: scale(1.15);
}

.color-option.selected .color-swatch {
  transform: scale(1.2);
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--brand-pink);
}

.color-name-label {
  font-size: 10.5px;
  color: var(--text-secondary);
  max-width: 65px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

/* Plan Canje & Medios de Pago */
.tradein-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 18px;
}

.tradein-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.tradein-toggle-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tradein-icon {
  font-size: 20px;
}

.switch-input {
  appearance: none;
  width: 46px;
  height: 26px;
  background: #e4e4e7;
  border-radius: 20px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.3s;
}

.switch-input::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  background: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: transform 0.3s;
}

.switch-input:checked {
  background: var(--brand-pink);
}

.switch-input:checked::before {
  transform: translateX(20px);
}

.tradein-expand-input {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  display: none;
}

.tradein-expand-input.show {
  display: block;
}

.input-styled {
  width: 100%;
  padding: 11px 14px;
  background: #fafafa;
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 13.5px;
  outline: none;
  font-family: inherit;
}

.input-styled:focus {
  border-color: var(--brand-pink);
  background: #ffffff;
}

.payment-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.payment-chip {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.payment-chip:hover {
  border-color: var(--brand-pink);
  color: var(--brand-pink);
}

.payment-chip.selected {
  background: var(--brand-pink-light);
  border-color: var(--brand-pink);
  color: var(--brand-pink-dark);
}

/* ==========================================================================
   TARJETA LATERAL DE RESUMEN Y ACCIÓN
   ========================================================================== */
.preview-sticky-col {
  position: sticky;
  top: 94px;
}

.summary-card {
  background: #ffffff;
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: 0 16px 36px rgba(255, 92, 141, 0.12);
}

.summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

.summary-header h3 {
  font-size: 17px;
  font-weight: 800;
}

.ready-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-pink-dark);
  background: var(--brand-pink-light);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.selected-phone-visual {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--brand-pink-light);
  border: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

.phone-badge-preview {
  width: 44px;
  height: 60px;
  border-radius: 8px;
  background: #ffffff;
  border: 2px solid var(--brand-black);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.selected-phone-details h4 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 2px;
}

.selected-phone-specs {
  font-size: 12px;
  color: var(--text-secondary);
}

.message-preview-container {
  margin-bottom: 18px;
}

.message-preview-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 600;
}

.message-bubble {
  background: #fdf4f7;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--brand-black);
  white-space: pre-wrap;
  max-height: 200px;
  overflow-y: auto;
  font-family: inherit;
}

.actions-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-cta-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px;
  border-radius: var(--radius-md);
  background: var(--whatsapp);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  transition: all var(--transition);
}

.btn-cta-whatsapp:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
}

.btn-cta-instagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px;
  border-radius: var(--radius-md);
  background: var(--instagram-grad);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(220, 39, 67, 0.3);
  transition: all var(--transition);
}

.btn-cta-instagram:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.btn-copy-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: #f4f4f5;
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  transition: all var(--transition);
}

.btn-copy-text:hover {
  background: var(--brand-pink-light);
  color: var(--brand-pink-dark);
}

/* ==========================================================================
   SECCIÓN GARANTÍA & BENEFICIOS
   ========================================================================== */
.trust-section {
  padding: 60px 0;
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.trust-card {
  background: var(--bg-page);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all var(--transition);
}

.trust-card:hover {
  border-color: var(--brand-pink);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 92, 141, 0.1);
}

.trust-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--brand-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.trust-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.trust-card p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   SECCIÓN PLAN CANJE
   ========================================================================== */
.tradein-steps-section {
  padding: 60px 0 80px;
}

.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}

@media (max-width: 768px) {
  .steps-row {
    grid-template-columns: 1fr;
  }
}

.step-flow-card {
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px;
}

.step-tag-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: var(--brand-pink);
  background: var(--brand-pink-light);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.step-flow-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.step-flow-card p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-section {
  padding: 60px 0 80px;
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
}

.faq-list {
  max-width: 780px;
  margin: 36px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item:hover {
  border-color: var(--brand-pink);
}

.faq-question {
  padding: 18px 22px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: transparent;
  width: 100%;
  text-align: left;
}

.faq-chevron {
  transition: transform 0.3s ease;
  font-size: 12px;
  color: var(--brand-pink);
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 22px;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  padding-bottom: 20px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: #18181b;
  color: #a1a1aa;
  padding: 60px 0 110px;
  font-size: 13px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}

.footer-brand h2 {
  font-size: 20px;
  color: #ffffff;
  margin-bottom: 6px;
}

.footer-brand p {
  color: #a1a1aa;
  max-width: 320px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 14px;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a:hover {
  color: var(--brand-pink-brush);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* ==========================================================================
   TOAST NOTIFIER & STICKY MOBILE BAR
   ========================================================================== */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--brand-black);
  border: 1.5px solid var(--brand-pink);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  color: #ffffff;
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}


/* ==========================================================================
   AJUSTES RESPONSIVE FINOS PARA CELULARES
   ========================================================================== */
@media (max-width: 600px) {
  .navbar { height: 64px; }
  .nav-container { height: 64px; }
  .nav-links { display: none; }
  .brand-logo-img { width: 44px; height: 44px; }
  .brand-script-name { font-size: 22px; }
  .brand-title-wrap h1 { font-size: 15px; }
  .btn-ig-nav span { display: none; }
  .btn-ig-nav { padding: 8px 10px; }
  .btn-wa-nav { padding: 8px 14px; font-size: 12px; }
  
  .hero-section { padding: 32px 0 24px; }
  .hero-title { font-size: 29px; }
  .hero-subtitle { font-size: 14.5px; }
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
  }
  .stat-icon { width: 38px; height: 38px; font-size: 18px; }
  .stat-info h4 { font-size: 12.5px; }
  .stat-info p { font-size: 11px; }

  .builder-card { padding: 18px 14px; border-radius: 18px; }
  .model-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; max-height: 320px; }
  .model-card { padding: 10px 8px; }
  .condition-switch-wrap { grid-template-columns: 1fr 1fr; gap: 8px; }
  .condition-card { padding: 12px 8px; }
  .battery-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .battery-card { padding: 8px 4px; }
  .battery-card .battery-percent { font-size: 13px; }
  
  .summary-card { padding: 18px 14px; border-radius: 18px; }
}

/* ==========================================================================
   VISUALIZADOR EN VIVO DEL DISPOSITIVO (DISPOSITIVO EN EL COLOR SELECCIONADO)
   ========================================================================== */
.device-showcase-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 12px 14px;
  background: linear-gradient(180deg, #ffffff 0%, var(--brand-pink-light) 100%);
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  text-align: center;
  box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.8), 0 4px 12px rgba(255, 92, 141, 0.08);
}

.visual-phone-container {
  width: 140px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.visual-phone-container:hover {
  transform: translateY(-4px) scale(1.03);
}

.preview-color-badge {
  display: inline-block;
  font-size: 12px;
  background: #ffffff;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-medium);
  margin-top: 6px;
  color: var(--brand-black);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* ==========================================================================
   CORRECCIÓN DEFINITIVA DE ANCHO Y DESBORDAMIENTO HORIZONTAL EN MÓVILES
   ========================================================================== */
html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;
  position: relative;
}

*, *::before, *::after {
  box-sizing: border-box;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
  min-width: 0;
}

.configurator-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

@media (max-width: 1024px) {
  .configurator-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    width: 100%;
    min-width: 0;
  }
}

.builder-card,
.summary-card,
.step-block {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.series-filters {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  white-space: nowrap;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding-bottom: 8px;
  margin-bottom: 14px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.series-filters::-webkit-scrollbar {
  display: none;
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  max-height: 380px;
  overflow-y: auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 2px;
}

@media (max-width: 600px) {
  .model-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-height: 320px;
    width: 100%;
    min-width: 0;
  }
  .builder-card {
    padding: 16px 12px;
  }
  .condition-switch-wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    min-width: 0;
  }
  .battery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    min-width: 0;
  }
}

.model-card {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  text-align: center;
}

.model-card h4 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.model-card p {
  font-size: 10.5px;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.message-bubble {
  word-break: break-word;
  white-space: pre-wrap;
}

/* ==========================================================================
   CONSULTA PEGAJOSA FLUIDA PARA PC (ACOMPAÑA EL SCROLL EN EL COTIZADOR)
   ========================================================================== */
@media (min-width: 1025px) {
  .configurator-section {
    position: relative;
  }
  
  .configurator-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 32px;
    align-items: start;
    position: relative;
  }

  .preview-sticky-col {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 92px !important;
    align-self: start !important;
    z-index: 20;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    scrollbar-width: thin;
    padding-bottom: 10px;
  }

  .preview-sticky-col::-webkit-scrollbar {
    width: 4px;
  }
  .preview-sticky-col::-webkit-scrollbar-thumb {
    background: var(--brand-pink-brush);
    border-radius: 4px;
  }
}

@media (max-width: 1024px) {
  .preview-sticky-col {
    position: static !important;
    top: auto !important;
    max-height: none !important;
    overflow-y: visible !important;
  }
}
