/* ===== AI SHOWCASE SECTION - HIGH FIDELITY ===== */
.ai-showcase-section {
  padding: 140px 0;
  background: radial-gradient(circle at 10% 10%, #f4f7ff, #fff 50%);
  overflow: hidden;
  border-bottom: 1px solid rgba(0,0,0,0.03);
}

.showcase-container {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  align-items: center;
  gap: 100px;
}

.showcase-content h2 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.ai-stats-row {
  display: flex;
  gap: 50px;
  margin: 40px 0;
}

.ai-stat-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--navy);
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ai-stat-lbl {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 5px;
}

.ai-features-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ai-feat {
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
}

.ai-feat-icon {
  width: 32px;
  height: 32px;
  background: var(--soft);
  color: var(--blue);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ===== PHOTOREALISTIC iPHONE 15 PRO FRAME ===== */
.dual-phone-display {
  display: flex;
  gap: 60px;
  justify-content: center;
  align-items: flex-start;
  perspective: 2000px;
  padding: 60px 0;
}

/* Subtle 3D tilt */
.phone-frame:first-child { transform: rotateY(10deg) rotateX(2deg); }
.phone-frame:last-child { transform: rotateY(-10deg) rotateX(2deg); }

.phone-frame:first-child:hover { transform: rotateY(4deg) rotateX(1deg) translateY(-10px); }
.phone-frame:last-child:hover { transform: rotateY(-4deg) rotateX(1deg) translateY(-10px); }

.phone-frame {
  width: 285px;
  height: 585px;
  background: 
    linear-gradient(145deg, #2a2a2e 0%, #1c1c1e 30%, #0d0d0f 100%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-blend-mode: overlay;
  border-radius: 54px;
  position: relative;
  padding: 12px;
  border: 1px solid #1a1a1c;
  outline: 0.5px solid rgba(255,255,255,0.1);
  box-shadow:
    0 40px 80px -20px rgba(0, 0, 0, 0.4),
    0 20px 40px -10px rgba(0, 0, 0, 0.3),
    inset 0 1px 1px rgba(255,255,255,0.1),
    inset 0 0 0 2px #000;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.8s ease;
  z-index: 10;
}

.phone-frame::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px; right: -1px; bottom: -1px;
  border-radius: 54px;
  background: linear-gradient(165deg, rgba(255,255,255,0.1) 0%, transparent 40%);
  pointer-events: none;
  z-index: 5;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 42px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 0 2px rgba(0,0,0,0.2);
  z-index: 1;
}

/* Glass Reflection Overlay */
.phone-frame::after {
  content: "";
  position: absolute;
  top: 12px; left: 12px; right: 12px; bottom: 12px;
  border-radius: 42px;
  background: 
    linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 25%),
    linear-gradient(315deg, rgba(255,255,255,0.02) 0%, transparent 15%);
  pointer-events: none;
  z-index: 200;
}

/* ===== Hardware Elements ===== */
.dynamic-island {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 94px;
  height: 31px;
  background: #000;
  border-radius: 18px;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 14px;
}

.dynamic-island::after {
  content: "";
  width: 10px;
  height: 10px;
  background: radial-gradient(circle at 30% 30%, #1a1a2e 0%, #000 70%);
  border-radius: 50%;
  opacity: 0.8;
  box-shadow: inset 0 0 2px rgba(255,255,255,0.1);
}

.phone-button {
  position: absolute;
  background: #1c1c1e;
  border-radius: 2px;
  z-index: 1;
}

.phone-button.power { width: 3.5px; height: 50px; right: -3px; top: 150px; border-radius: 0 3px 3px 0; }
.phone-button.volume-up { width: 3.5px; height: 30px; left: -3px; top: 130px; border-radius: 3px 0 0 3px; }
.phone-button.volume-down { width: 3.5px; height: 30px; left: -3px; top: 170px; border-radius: 3px 0 0 3px; }

/* ===== Software UI ===== */
.status-bar {
  height: 50px;
  padding: 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 100;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.status-bar .time {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 2px;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

/* ===== Navigation Header ===== */
.phone-header {
  padding-bottom: 8px;
  border-bottom: 0.5px solid rgba(0,0,0,0.05);
  flex-shrink: 0;
  position: relative;
  z-index: 50;
}

.wa-screen .phone-header { background: #fff; }
.msg-screen .phone-header { background: #fff; }

.chat-nav {
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 10px;
  height: 44px;
}

.chat-user {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.chat-user .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: #f0f0f0;
  flex-shrink: 0;
}

.avatar img { width: 100%; height: 100%; object-fit: cover; }

.chat-meta strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.1;
  color: #111b21;
}

.chat-meta .status {
  display: block;
  font-size: 11px;
  color: #667781;
}

/* ===== Chat Body & Messages ===== */
.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: none;
}

.chat-body::-webkit-scrollbar { display: none; }

.wa-screen .chat-body {
  background: #efe7de;
  background-image: url("https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png");
  background-size: 400px;
}

.chat-msg {
  max-width: 85%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
  position: relative;
  box-shadow: 0 1px 0.5px rgba(0,0,0,0.13);
}

/* WA Bubble Tails */
.wa-screen .chat-msg::before {
  content: "";
  position: absolute;
  top: 0;
  width: 12px;
  height: 12px;
  z-index: 1;
}

.wa-screen .msg-received {
  align-self: flex-start;
  background: #fff;
  border-top-left-radius: 0;
}

.wa-screen .msg-received::before {
  left: -8px;
  background: #fff;
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.wa-screen .msg-sent {
  align-self: flex-end;
  background: #d9fdd3;
  border-top-right-radius: 0;
}

.wa-screen .msg-sent::before {
  right: -8px;
  background: #d9fdd3;
  clip-path: polygon(0 0, 0 100%, 100% 0);
}

.chat-msg p { margin: 0; }

.msg-status {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 3px;
  margin-top: 2px;
  font-size: 10px;
  color: rgba(0,0,0,0.45);
}

.msg-status svg {
  width: 14px;
  height: 14px;
  color: #53bdeb;
}

/* ===== Typing Indicator ===== */
.typing-dots {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 15px;
  width: fit-content;
  margin-bottom: 8px;
  position: relative;
  animation: typingFadeIn 0.3s ease;
}

@keyframes typingFadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* WA Styling */
.wa-screen .typing-dots {
  background: #fff;
  box-shadow: 0 1px 0.5px rgba(0,0,0,0.13);
}

.wa-screen .typing-dots.align-left {
  align-self: flex-start;
  border-top-left-radius: 0;
}

.wa-screen .typing-dots.align-left::before {
  content: "";
  position: absolute;
  top: 0; left: -8px;
  width: 12px; height: 12px;
  background: #fff;
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.wa-screen .typing-dots.align-right {
  align-self: flex-end;
  background: #d9fdd3;
  border-top-right-radius: 0;
}

.wa-screen .typing-dots.align-right::before {
  content: "";
  position: absolute;
  top: 0; right: -8px;
  width: 12px; height: 12px;
  background: #d9fdd3;
  clip-path: polygon(0 0, 0 100%, 100% 0);
}

/* MSG Styling */
.msg-screen .typing-dots {
  background: #e4e6eb;
}

.msg-screen .typing-dots.align-left {
  align-self: flex-start;
}

.msg-screen .typing-dots.align-right {
  align-self: flex-end;
  background: #0084ff;
}

.msg-screen .typing-dots.align-right .dot {
  background: #fff;
}

.dot {
  width: 6px;
  height: 6px;
  background: #90949c;
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.dot:nth-child(1) { animation-delay: -0.32s; }
.dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* ===== WhatsApp Info/Encryption Box ===== */
.wa-info-box {
  background: #fff9c4;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 11px;
  color: #54656f;
  text-align: center;
  margin: 12px auto;
  width: 92%;
  box-shadow: 0 1px 1px rgba(0,0,0,0.06);
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wa-info-box svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: #54656f;
  opacity: 0.7;
}

/* ===== Date Separator ===== */
.chat-date-separator {
  align-self: center;
  background: rgba(225, 245, 254, 0.85);
  padding: 5px 14px;
  border-radius: 10px;
  font-size: 11px;
  color: #54656f;
  margin: 16px 0;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  box-shadow: 0 1px 1px rgba(0,0,0,0.05);
}

/* ===== Appointment Card ===== */
.appointment-card {
  align-self: center;
  background: #fff;
  border-radius: 16px;
  padding: 0;
  width: 88%;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1), 0 2px 6px rgba(0,0,0,0.06);
  margin: 10px 0;
  border: 0.5px solid rgba(0,0,0,0.06);
  animation: cardSlideUp 0.5s cubic-bezier(0.23, 1, 0.32, 1) both;
}

@keyframes cardSlideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.card-top {
  background: var(--blue, #007bff);
  color: #fff;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.card-details { padding: 12px 14px; }
.card-details strong { font-size: 14px; color: #1e293b; display: block; margin-bottom: 4px; }
.card-details p { font-size: 12px; color: #64748b; margin: 0; }

.card-actions {
  padding: 10px;
  border-top: 1px solid #f1f5f9;
  color: #007bff;
  font-weight: 700;
  font-size: 12px;
  text-align: center;
}

/* ===== Home Indicator (iOS bottom bar) ===== */
.home-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 134px;
  height: 5px;
  background: rgba(0,0,0,0.15);
  border-radius: 100px;
  z-index: 1000;
}

/* ===== CHAT FOOTERS ===== */
.chat-footer {
  padding: 8px 12px 24px;
  background: rgba(246, 246, 246, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 0.5px solid rgba(0,0,0,0.1);
  position: relative;
  z-index: 100;
}

.wa-screen .chat-footer { background: #f6f6f6; }
.msg-screen .chat-footer { background: #fff; }

.wa-input-container {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
}

.wa-plus {
  color: #007aff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wa-plus svg { width: 24px; height: 24px; }

.wa-input-field {
  flex: 1;
  background: #fff;
  border: 0.5px solid #ccc;
  border-radius: 18px;
  padding: 6px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 36px;
}

.wa-placeholder { font-size: 15px; color: #8e8e93; }

.wa-field-icons svg { width: 20px; height: 20px; color: #007aff; opacity: 0.9; }

.wa-mic {
  background: #007aff;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.wa-mic svg { width: 20px; height: 20px; }

/* Messenger Input Specifics */
.msg-screen .chat-footer {
  padding-bottom: 26px;
  background: #fff;
}

.msg-input-container {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
}

.msg-plus, .msg-media, .msg-like {
  color: #0084ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.msg-plus svg, .msg-media svg, .msg-like svg {
  width: 24px;
  height: 24px;
}

.msg-input-field {
  flex: 1;
  background: #f0f2f5;
  border-radius: 20px;
  padding: 8px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 36px;
}

.msg-placeholder {
  font-size: 15px;
  color: #8e8e93;
}

.msg-emoji svg {
  width: 20px;
  height: 20px;
  color: #0084ff;
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .showcase-container {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }
  .ai-stats-row { justify-content: center; }
  .ai-features-list { align-items: center; }
  .dual-phone-display {
    flex-direction: row;
    gap: 28px;
    transform: scale(0.88);
    transform-origin: center top;
    margin: -16px 0;
  }
}

@media (max-width: 900px) {
  .dual-phone-display {
    transform: scale(0.76);
    transform-origin: center top;
    gap: 20px;
    margin: -32px 0;
  }
}

@media (max-width: 720px) {
  .dual-phone-display {
    transform: scale(0.64);
    transform-origin: center top;
    gap: 16px;
    margin: -60px 0;
  }
}

@media (max-width: 650px) {
  .ai-showcase-section {
    padding: 80px 0;
    overflow: hidden;
  }

  .showcase-container {
    gap: 40px;
  }

  /* En móvil: mostrar solo un teléfono centrado sin overflow */
  .dual-phone-display {
    flex-direction: column;
    transform: none;
    gap: 0;
    margin: 0;
    align-items: center;
    padding: 20px 0;
  }

  /* Ocultar el segundo teléfono en pantallas pequeñas */
  .phone-frame:last-child {
    display: none;
  }

  .phone-frame {
    width: min(270px, calc(100vw - 60px));
    height: 552px;
    transform: none !important;
  }

  .phone-frame:first-child {
    transform: none !important;
  }

  .phone-frame:last-child {
    transform: none !important;
  }

  .showcase-content h2 {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
  }

  .ai-stats-row {
    gap: 30px;
    margin: 24px 0;
  }

  .ai-stat-number {
    font-size: 2.4rem;
  }
}

@media (max-width: 400px) {
  .phone-frame {
    width: calc(100vw - 48px);
    height: auto;
    min-height: 500px;
  }
}
