﻿@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: #1a1a1a;
  --deep-rose: #8a0303;
  --rose-accent: #b80000;
  --blush-bg: #0d0d0d;
  --cream-bg: #1c1c1c;
  --gold-accent: #cccccc;
  --text-dark: #f0f0f0;
  --text-muted: #888888;
  --card-bg: rgba(25, 25, 25, 0.95);
  --bubble-user: #3d0505;
  --bubble-bot: #262626;
  --shadow-soft: 0 10px 25px rgba(200, 0, 0, 0.15);
  --shadow-pill: 0 4px 15px rgba(200, 0, 0, 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;
  }
}


/* === RESIDENT EVIL THEME OVERRIDES === */
img[src*="kitty_logo"], img[src*="kitty_bow"], .chat-kitty-input-decor, .p2-peeking-kitty, .p1-decor-bow-left, .p1-decor-bow-right, .p1-kitty-badge, .chat-avatar-bow {
    display: none !important;
}

body {
    background-color: #000 !important;
    background-image: none !important;
    font-family: 'Courier New', Courier, monospace;
    color: #e0e0e0;
}

.chat-bubble.user {
    background: #3a0000 !important;
    color: #ffcccc !important;
    border-radius: 12px 12px 0 12px !important;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.4) !important;
    border: 1px solid #ff0000;
}

.chat-bubble.bot {
    background: #111 !important;
    color: #39ff14 !important;
    border-radius: 12px 12px 12px 0 !important;
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.3) !important;
    border: 1px solid #39ff14;
    font-family: 'Courier New', Courier, monospace;
}

.btn-primary {
    background: linear-gradient(135deg, #8a0303 0%, #300000 100%) !important;
    border: 1px solid #ff0000 !important;
    text-shadow: 0 0 5px red;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5) !important;
    color: white !important;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.chat-input-area {
    background: #0d0d0d !important;
    border-top: 1px solid #ff0000 !important;
}

#chat-input-textarea {
    background: #1a1a1a !important;
    color: #39ff14 !important;
    border: 1px solid #555 !important;
    font-family: 'Courier New', Courier, monospace;
}

.chat-header {
    background: #0d0d0d !important;
    border-bottom: 2px solid #8a0303 !important;
    box-shadow: 0 5px 15px rgba(255,0,0,0.2) !important;
}

.chat-header-title {
    color: #ff0000 !important;
    text-shadow: 0 0 5px red;
    text-transform: uppercase;
}

.chat-header-status {
    color: #39ff14 !important;
}

.p1-hero-image-wrapper img, .chat-avatar-wrapper img {
    border: 3px solid #ff0000 !important;
    box-shadow: 0 0 15px red !important;
    filter: grayscale(40%) contrast(120%);
}

.phone-container {
    background: #0a0a0a !important;
    border: 8px solid #333 !important;
    box-shadow: 0 0 40px rgba(255, 0, 0, 0.3) !important;
}

/* ========================================================================
   RECREACIÓN DE DISEÑOS PRO/GOAD (RESIDENT EVIL)
======================================================================== */

/* Fuentes y Fondo General RUSTY */
body {
    background: radial-gradient(circle, #2a2a2a 0%, #0a0a0a 100%) !important;
    font-family: 'Oswald', sans-serif !important;
}

/* Ocultar elementos tiernos */
img[src*="kitty"], img[src*="bow"], svg {
    display: none !important;
}

/* Títulos principales (VIAJES RACCOON) */
h1, .p1-logo-text, .p2-header-title {
    font-family: 'Bebas Neue', cursive !important;
    color: #cc0000 !important;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.8), 0 0 10px #ff0000;
    letter-spacing: 2px;
}

/* Subtítulos */
.p1-subtitle {
    color: #880000 !important;
    font-family: 'Courier Prime', monospace !important;
    font-style: italic;
}

/* Botones: Estilo Cinta de Peligro (Hazard) */
.btn-primary {
    position: relative;
    background: #4a0000 !important;
    color: #ffffff !important;
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: 1.2rem !important;
    letter-spacing: 2px !important;
    border: 4px solid transparent !important;
    background-clip: padding-box !important;
    box-shadow: inset 0 0 10px #000, 0 5px 15px rgba(255,0,0,0.5) !important;
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: -4px; right: -4px; bottom: -4px; left: -4px;
    z-index: -1;
    background: repeating-linear-gradient(
        45deg,
        #000000,
        #000000 10px,
        #ffaa00 10px,
        #ffaa00 20px
    );
    border-radius: inherit;
}

/* Campos de Input de Seguridad (Metal Plates) */
.p2-input-wrapper {
    background: linear-gradient(to bottom, #444, #222) !important;
    border: 2px solid #111 !important;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.2) !important;
    border-radius: 4px !important;
    position: relative;
}
/* Tuercas en las esquinas */
.p2-input-wrapper::before, .p2-input-wrapper::after {
    content: 'O';
    position: absolute;
    color: #111;
    font-size: 8px;
    font-family: sans-serif;
    left: 4px;
}
.p2-input-wrapper::before { top: 4px; }
.p2-input-wrapper::after { bottom: 4px; }

#security-answer {
    background: transparent !important;
    color: #fff !important;
    font-family: 'Courier Prime', monospace !important;
    border: none !important;
}

/* Pantalla de Chat: FONDO DE RADAR VERDE */
.chat-messages {
    background-color: #001100 !important;
    background-image: 
        linear-gradient(90deg, rgba(0, 255, 0, 0.1) 1px, transparent 1px),
        linear-gradient(rgba(0, 255, 0, 0.1) 1px, transparent 1px),
        radial-gradient(circle, transparent 20%, rgba(0, 255, 0, 0.3) 20%, transparent 21%, transparent 40%, rgba(0, 255, 0, 0.3) 40%, transparent 41%, transparent 60%, rgba(0, 255, 0, 0.3) 60%, transparent 61%, transparent 80%, rgba(0, 255, 0, 0.3) 80%, transparent 81%, transparent 100%) !important;
    background-size: 30px 30px, 30px 30px, 100% 100% !important;
    background-position: center center !important;
    position: relative;
}

/* Barrido del Radar */
.chat-messages::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 200%; height: 200%;
    transform: translate(-50%, -50%);
    background: conic-gradient(from 0deg, transparent 70%, rgba(0, 255, 0, 0.4) 100%);
    border-radius: 50%;
    animation: radarSweep 4s linear infinite;
    pointer-events: none;
}
@keyframes radarSweep {
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Burbujas del Chat (Terminal Style) */
.chat-bubble.bot {
    background: rgba(10, 30, 10, 0.9) !important;
    border: 2px outset #39ff14 !important;
    color: #39ff14 !important;
    font-family: 'Courier Prime', monospace !important;
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.5) !important;
    border-radius: 0 !important;
}

.chat-bubble.user {
    background: rgba(30, 10, 10, 0.9) !important;
    border: 2px outset #ff0000 !important;
    color: #ffcccc !important;
    font-family: 'Courier Prime', monospace !important;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5) !important;
    border-radius: 0 !important;
}

/* Navbar y Header del Chat */
.chat-header, .chat-input-area {
    background: #111 !important;
    border-top: 2px solid #333 !important;
    border-bottom: 2px solid #333 !important;
}
.chat-header-title { color: #39ff14 !important; font-family: 'Courier Prime', monospace !important; }

/* Efectos de sangre / Marco del Teléfono */
.phone-container {
    background: #000 !important;
    border: 10px solid #222 !important;
    box-shadow: inset 0 0 20px #500000, 0 0 40px rgba(255,0,0,0.5) !important;
    border-radius: 40px !important;
}

/* FORCE BLACK BACKGROUNDS EVERYWHERE INSIDE PHONE */
.app-container, .screen, .p1-screen, .p2-screen, .p3-screen {
    background-color: #000000 !important;
    background: #000000 !important;
}
/* ========================================================================
   BASE 64 METAL TEXTURES FOR EXACT REPLICATION
======================================================================== */

.p2-screen, .app-container {
    background-color: #1a1b1a !important;
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(255, 0, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 100%, rgba(255, 0, 0, 0.15) 0%, transparent 50%),
        repeating-linear-gradient(45deg, rgba(0,0,0,0.1) 0px, rgba(0,0,0,0.1) 2px, transparent 2px, transparent 4px) !important;
}

/* Metal Input Fields */
.p2-input-wrapper {
    background: linear-gradient(to bottom, #3a3b3a 0%, #2a2b2a 100%) !important;
    border: 1px solid #111 !important;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.8), 0 1px 0 rgba(255,255,255,0.1) !important;
    border-radius: 4px !important;
}
.p2-input-wrapper::before, .p2-input-wrapper::after,
.p2-input-wrapper span::before, .p2-input-wrapper span::after {
    content: '';
    position: absolute;
    width: 6px; height: 6px;
    background: radial-gradient(circle, #555, #111);
    border-radius: 50%;
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.3), 0 1px 2px rgba(0,0,0,0.8);
}
.p2-input-wrapper::before { top: 6px; left: 6px; }
.p2-input-wrapper::after { bottom: 6px; left: 6px; }
.p2-input-wrapper span::before { top: 6px; right: 6px; }
.p2-input-wrapper span::after { bottom: 6px; right: 6px; }

/* The Envelope */
.p2-envelope-wrapper {
    filter: sepia(1) hue-rotate(-50deg) saturate(2) brightness(0.6) contrast(1.5);
}
.p2-envelope-wrapper::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle, transparent 40%, rgba(255,0,0,0.3) 100%);
    pointer-events: none;
}

/* The Wax Seal */
.p2-envelope-seal {
    background: #8a0303 !important;
    border: 2px solid #300000 !important;
    box-shadow: inset 0 0 10px #000, 0 0 5px rgba(0,0,0,0.5) !important;
}

/* Fix the glowing red border on the phone */
.phone-container {
    border: none !important;
    background: #111 !important;
    box-shadow: 
        inset 0 0 10px #000,
        0 0 20px rgba(255,0,0,0.4),
        -5px 0 30px rgba(255,0,0,0.6),
        5px 0 30px rgba(255,0,0,0.6) !important;
}
