@charset "UTF-8";
/* ==============================================================================
   ESTILOS GENERALES (STYLE.CSS) - COLORES Y DISEÑO
   ==============================================================================
   ¡HOLA! Este archivo controla los colores, tamaños y la forma en que se ve 
   todo. Si no sabes programación web (CSS), te recomendamos NO modificarlo, 
   ya que borrar un simple punto y coma (;) puede desordenar toda tu página.
   ============================================================================== */

:root {
  --primary-pink: #f7a8b8;
  --deep-rose: #d65b74;
  --rose-accent: #b33951;
  --blush-bg: #fdf5f6;
  --cream-bg: #fffbf9;
  --gold-accent: #c69b59;
  --text-dark: #423136;
  --text-muted: #8c7379;
  --card-bg: rgba(255, 255, 255, 0.94);
  --bubble-user: #ffe4e9;
  --bubble-bot: #ffffff;
  --shadow-soft: 0 10px 25px rgba(214, 91, 116, 0.15);
  --shadow-pill: 0 4px 15px rgba(179, 57, 81, 0.25);
  --radius-phone: 48px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(circle at top left, #fef1f3, #fae1e6, #f7d6dc);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-x: hidden;
  padding: 20px 10px;
}

/* Encabezado y Barra de Herramientas Superior */
.top-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  width: 100%;
  max-width: 1300px;
  margin-bottom: 25px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(199, 107, 126, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-badge img {
  width: 38px;
  height: 32px;
}

.brand-badge h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--rose-accent);
  letter-spacing: 0.5px;
}

.view-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.view-btn {
  padding: 8px 16px;
  border-radius: 30px;
  border: 1px solid var(--primary-pink);
  background: white;
  color: var(--deep-rose);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
}

.view-btn.active, .view-btn:hover {
  background: linear-gradient(135deg, var(--deep-rose), var(--rose-accent));
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-pill);
}

.memory-btn-top {
  background: #fff0f3;
  color: var(--rose-accent);
  border-color: #f7a8b8;
  font-weight: 700;
}

/* Contenedor Principal de Teléfonos */
.showcase-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  width: 100%;
  max-width: 1400px;
  padding: 10px;
  transition: all 0.4s ease;
}

/* Modo teléfono único interactivo */
.showcase-container.interactive-mode {
  justify-content: center;
}

.showcase-container.interactive-mode .phone-device:not(.active-phone) {
  display: none !important;
}

/* Chasis de Teléfono Móvil (iPhone 16 Pro Style) */
.phone-device {
  width: 380px;
  min-width: 340px;
  height: 780px;
  background: #fffdfc;
  border-radius: var(--radius-phone);
  position: relative;
  box-shadow: 
    0 0 0 10px #f4cfd7,
    0 0 0 12px #e3a9b6,
    0 25px 50px rgba(138, 47, 68, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.phone-device:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 0 0 10px #f4cfd7,
    0 0 0 12px #e3a9b6,
    0 30px 60px rgba(138, 47, 68, 0.32);
}

/* Isla Dinámica / Parlante iPhone */
.dynamic-island {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 115px;
  height: 28px;
  background: #1c1517;
  border-radius: 20px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}

.camera-lens {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0e090b;
  border: 1px solid #2d2226;
}

.sensor-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0b0709;
}

/* Pantalla interna deslizable */
.screen-viewport {
  width: 100%;
  height: 100%;
  padding-top: 45px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--cream-bg);
}

.screen-viewport::-webkit-scrollbar {
  width: 4px;
}
.screen-viewport::-webkit-scrollbar-thumb {
  background: rgba(214, 91, 116, 0.25);
  border-radius: 10px;
}

/* ==============================================================================
   PANTALLA 1: INICIO Y BIENVENIDA
   ============================================================================== */
.screen-1-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100%;
  padding: 10px 18px 25px 18px;
  text-align: center;
  position: relative;
}

.p1-header-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 12px;
  position: relative;
}

.p1-logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
}

.p1-plane-icon {
  width: 22px;
  height: 22px;
  transform: rotate(25deg);
  opacity: 0.8;
}

.p1-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem;
  letter-spacing: 2px;
  font-weight: 800;
  color: #a46d4a;
  text-transform: uppercase;
  margin-top: 2px;
}

.p1-kitty-badge {
  width: 36px;
  height: 32px;
}

.p1-logo-tagline {
  font-family: 'Dancing Script', cursive;
  font-size: 1.15rem;
  color: #b07d5c;
  margin-top: -3px;
}

.p1-hero-container {
  width: 100%;
  height: 280px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 25px rgba(184, 117, 131, 0.22);
  border: 3px solid rgba(255, 255, 255, 0.9);
  margin-bottom: 18px;
}

.p1-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.p1-hero-container:hover .p1-hero-image {
  transform: scale(1.04);
}

.p1-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(253, 245, 246, 0.45), transparent 60%);
}

.p1-title-container {
  position: relative;
  margin-bottom: 10px;
  width: 100%;
}

.p1-romantic-title {
  font-family: 'Dancing Script', cursive;
  font-size: 1.85rem;
  font-weight: 700;
  color: #9d4659;
  line-height: 1.25;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.p1-decor-bow-left, .p1-decor-bow-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 22px;
}

.p1-decor-bow-left { left: 0; }
.p1-decor-bow-right { right: 0; }

.p1-subtitle {
  font-size: 0.88rem;
  color: #7b656b;
  line-height: 1.45;
  margin-bottom: 22px;
  padding: 0 10px;
  font-weight: 500;
}

.p1-btn-cta {
  width: 100%;
  padding: 14px 20px;
  border-radius: 35px;
  background: linear-gradient(135deg, #e5879c, #cb5a75);
  color: white;
  border: none;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  box-shadow: 0 6px 18px rgba(203, 90, 117, 0.4);
  transition: all 0.25s ease;
  margin-bottom: 20px;
}

.p1-btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(203, 90, 117, 0.55);
  background: linear-gradient(135deg, #eb93a7, #d5637e);
}

.p1-btn-cta:active {
  transform: translateY(1px);
}

.p1-btn-bow-icon {
  width: 24px;
  height: 20px;
}

.p1-footer-links {
  font-size: 0.82rem;
  color: #8c7379;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
}

.p1-footer-links a {
  color: #8c7379;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.p1-footer-links a:hover {
  color: var(--deep-rose);
}

/* ==============================================================================
   PANTALLA 2: PREGUNTA DEL CORAZÓN (CONFIRMACIÓN)
   ============================================================================== */
.screen-2-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100%;
  padding: 10px 18px 20px 18px;
  text-align: center;
  background: linear-gradient(180deg, #fff7f8 0%, #fef3f4 100%);
  position: relative;
}

.p2-header-title {
  font-family: 'Dancing Script', cursive;
  font-size: 1.95rem;
  color: #8f3b50;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 6px;
  position: relative;
}

.p2-header-hearts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 10px;
}

.p2-header-hearts span {
  color: var(--primary-pink);
  font-size: 0.95rem;
}

.p2-description {
  font-size: 0.84rem;
  color: #796268;
  line-height: 1.4;
  margin-bottom: 20px;
  padding: 0 12px;
}

.p2-subheading {
  font-family: 'Playfair Display', serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: #924d5e;
  margin-bottom: 12px;
}

.p2-question-box {
  width: 100%;
  background: white;
  border-radius: 24px;
  padding: 16px 14px 16px 55px;
  position: relative;
  box-shadow: 0 6px 20px rgba(214, 91, 116, 0.12);
  border: 1.5px solid #f9d8df;
  margin-bottom: 20px;
  text-align: left;
}

.p2-peeking-kitty {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 38px;
}

.p2-question-text {
  font-size: 0.96rem;
  font-weight: 700;
  color: #63434a;
  line-height: 1.35;
}

.p2-input-container {
  width: 100%;
  position: relative;
  margin-bottom: 16px;
}

.p2-input {
  width: 100%;
  padding: 14px 44px 14px 42px;
  border-radius: 30px;
  border: 2px dashed #f6b5c3;
  background: #fff8f9;
  font-size: 0.9rem;
  color: #4b363c;
  outline: none;
  transition: all 0.25s ease;
  font-family: inherit;
}

.p2-input:focus {
  border-color: var(--deep-rose);
  background: white;
  box-shadow: 0 0 0 4px rgba(247, 168, 184, 0.25);
}

.p2-input-heart-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #e5879c;
  font-size: 1rem;
}

.p2-input-kitty-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 20px;
  opacity: 0.6;
}

.p2-feedback-msg {
  font-size: 0.8rem;
  min-height: 18px;
  margin-top: -8px;
  margin-bottom: 14px;
  font-weight: 600;
  transition: opacity 0.3s;
}

.p2-feedback-msg.error {
  color: #c73752;
}

.p2-feedback-msg.success {
  color: #2e8b57;
}

.p2-btn-unlock {
  width: 100%;
  padding: 14px 20px;
  border-radius: 35px;
  background: linear-gradient(135deg, #e5879c, #ca536f);
  color: white;
  border: none;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 18px rgba(202, 83, 111, 0.38);
  transition: all 0.25s ease;
  margin-bottom: 16px;
}

.p2-btn-unlock:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(202, 83, 111, 0.48);
}

.p2-btn-unlock:active {
  transform: translateY(1px);
}

.p2-secondary-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  margin-bottom: 16px;
}

.p2-secondary-links a {
  color: #8c7379;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
}

.p2-envelope-container {
  width: 100%;
  max-width: 260px;
  margin-top: auto;
  position: relative;
  display: flex;
  justify-content: center;
}

.p2-envelope-svg {
  width: 100%;
  height: auto;
  max-height: 130px;
  filter: drop-shadow(0 6px 14px rgba(203, 90, 117, 0.22));
}

/* ==============================================================================
   PANTALLA 3: CHAT CON IA (GPT-4o-mini & MEMORIA)
   ============================================================================== */
.screen-3-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  background-color: #fff9fa;
  background-image: url('assets/chat_pattern.svg');
  background-repeat: repeat;
  background-size: 80px 80px;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #fae2e6;
  position: sticky;
  top: 0;
  z-index: 20;
}

.chat-back-btn {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--deep-rose);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 50%;
  transition: background 0.2s;
}

.chat-back-btn:hover {
  background: #fde8ed;
}

.chat-profile-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  margin-left: 4px;
}

.chat-avatar-wrapper {
  position: relative;
  width: 44px;
  height: 44px;
}

.chat-avatar-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #f8b4c2;
}

.chat-avatar-bow {
  position: absolute;
  top: -4px;
  right: -5px;
  width: 18px;
  height: 16px;
}

.chat-agent-details {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.chat-agent-role {
  font-size: 0.85rem;
  font-weight: 700;
  color: #5d3f46;
  line-height: 1.2;
}

.chat-agent-status {
  font-size: 0.72rem;
  color: #7d676d;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.online-dot {
  width: 7px;
  height: 7px;
  background: #3ac569;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 6px #3ac569;
}

.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-icon-btn {
  background: none;
  border: none;
  font-size: 1.15rem;
  color: #8a6c73;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
}

.chat-icon-btn:hover {
  background: #fae1e6;
  color: var(--deep-rose);
}

.memory-status-badge {
  background: linear-gradient(90deg, #fff0f3, #ffe6eb);
  padding: 5px 12px;
  border-bottom: 1px dashed #f6b5c3;
  font-size: 0.74rem;
  font-weight: 700;
  color: #a7455d;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.memory-status-badge:hover {
  background: #fde2e8;
}

.chat-messages-container {
  flex: 1;
  padding: 16px 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.message-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

.message-row.bot {
  justify-content: flex-start;
}

.message-row.user {
  justify-content: flex-end;
}

.message-bot-avatar {
  width: 32px;
  height: 28px;
  flex-shrink: 0;
  margin-top: 2px;
}

.message-bubble {
  max-width: 82%;
  padding: 12px 14px;
  border-radius: 18px;
  font-size: 0.88rem;
  line-height: 1.42;
  position: relative;
  word-break: break-word;
}

.message-row.bot .message-bubble {
  background: var(--bubble-bot);
  color: #4b363c;
  border-top-left-radius: 4px;
  box-shadow: 0 4px 12px rgba(206, 92, 117, 0.08);
  border: 1px solid #fbe7ea;
}

.message-row.user .message-bubble {
  background: linear-gradient(135deg, #ffd7df, #f8c3ce);
  color: #3f2a30;
  border-top-right-radius: 4px;
  box-shadow: 0 4px 12px rgba(189, 78, 103, 0.12);
}

.message-sender-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: #925362;
  margin-bottom: 3px;
  display: block;
}

.message-time-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  font-size: 0.68rem;
  color: #9c8087;
  margin-top: 5px;
}

.typing-indicator {
  display: none;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  background: white;
  border-radius: 16px;
  width: fit-content;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  margin-left: 40px;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: #e5879c;
  border-radius: 50%;
  animation: typingBounce 1.3s infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-5px); }
}

.chat-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: white;
  border-top: 1px solid #fae2e6;
  position: sticky;
  bottom: 0;
  z-index: 10;
}

.chat-input-btn {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: #9e7f86;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-text-input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 25px;
  border: 1.5px solid #f6c0cc;
  background: #fff8f9;
  font-size: 0.88rem;
  outline: none;
  font-family: inherit;
  color: #4b363c;
}

.chat-text-input:focus {
  border-color: var(--deep-rose);
  background: white;
}

.chat-kitty-input-decor {
  width: 24px;
  height: 22px;
  opacity: 0.8;
  cursor: pointer;
}

.chat-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e67d94, #cd4f6d);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(205, 79, 109, 0.35);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.chat-send-btn:hover {
  transform: scale(1.06);
  background: linear-gradient(135deg, #eb879d, #d85776);
}

.chat-send-btn:active {
  transform: scale(0.95);
}

.chat-send-btn svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  transform: translateX(1px);
}

.chat-bottom-ribbon {
  height: 32px;
  background: #fdecee;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
  border-top: 1px solid #fad3db;
}

.chat-bottom-ribbon img, .chat-bottom-ribbon span {
  width: 18px;
  height: 16px;
  opacity: 0.85;
}

/* ==============================================================================
   MODAL DE INSPECTOR DE MEMORIA (memoria.json Viewer)
   ============================================================================== */
.memory-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(46, 26, 32, 0.45);
  backdrop-filter: blur(5px);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

.memory-modal-content {
  background: #fffdfd;
  width: 100%;
  max-width: 520px;
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 20px 45px rgba(122, 38, 56, 0.3);
  border: 2px solid #fad4dc;
  display: flex;
  flex-direction: column;
  max-height: 85vh;
}

.memory-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.memory-modal-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: var(--rose-accent);
  display: flex;
  align-items: center;
  gap: 8px;
}

.memory-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #8c7379;
  cursor: pointer;
}

.memory-modal-body {
  overflow-y: auto;
  flex: 1;
  padding-right: 5px;
}

.memory-card-item {
  background: #fff3f5;
  border-left: 4px solid var(--deep-rose);
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 0.86rem;
}

.memory-card-meta {
  font-size: 0.74rem;
  color: #9d757e;
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
}

.memory-json-raw {
  background: #2a1f23;
  color: #f7ced7;
  padding: 14px;
  border-radius: 12px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.78rem;
  overflow-x: auto;
  white-space: pre-wrap;
  margin-top: 12px;
}

.memory-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.btn-secondary {
  flex: 1;
  padding: 10px;
  border-radius: 20px;
  border: 1px solid #f6b5c3;
  background: white;
  color: var(--deep-rose);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

.btn-primary {
  flex: 1;
  padding: 10px;
  border-radius: 20px;
  border: none;
  background: linear-gradient(135deg, var(--deep-rose), var(--rose-accent));
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

@keyframes shakeAnimation {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.shake {
  animation: shakeAnimation 0.4s ease;
}

@media (max-width: 1100px) {
  .showcase-container:not(.interactive-mode) {
    flex-direction: column;
    align-items: center;
  }
}
