/* ==========================================================
   EDWARD LEMON SHARK × EXPO CHEDRAUI
   Base compartida por el sitio y el panel: paleta, botones,
   formularios, ventanas e iconos. Colores de la marca, tomados
   del logotipo: verde (EDWARD) y negro (LEMONSRK) sobre blanco.
   ========================================================== */

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

:root {
  color-scheme: light;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Verde del logotipo: para cambiar el color de todo el sistema basta editar estas líneas */
  --brand: #2fac66;
  --brand-dark: #1f8a4d;
  --brand-deep: #14663a;
  --brand-bright: #5ad893;   /* Para resaltar sobre fondos negros */
  --brand-light: #e9f8ef;
  --brand-border: #a8e0bf;
  --brand-rgb: 47, 172, 102;

  /* Negro del logotipo */
  --ink: #101613;
  --ink-soft: #1d2622;
  --ink-rgb: 16, 22, 19;

  /* Amarillo del Brand Book: solo para estrellas y avisos */
  --gold: #f9b233;
  --gold-dark: #dd9512;

  /* Nombres anteriores: se conservan para las plantillas que aún los usan */
  --brand-sky: var(--brand-bright);
  --accent: var(--gold);
  --accent-dark: var(--gold-dark);
  --green: var(--brand);
  --green-dark: var(--brand-dark);
  --green-light: var(--brand-light);
  --green-border: var(--brand-border);

  /* Textos y superficies */
  --text-main: #161d19;
  --text-muted: #5d6963;
  --text-sub: #95a19b;
  --bg-main: #f4f7f5;
  --bg-surface: #ffffff;
  --border-light: #e2e8e4;
  --border-subtle: #c9d3cd;

  --shadow-subtle: 0 4px 20px -2px rgba(var(--ink-rgb), 0.07);
  --shadow-card: 0 10px 25px -5px rgba(var(--ink-rgb), 0.09), 0 8px 10px -6px rgba(var(--ink-rgb), 0.04);
  --shadow-hover: 0 20px 30px -10px rgba(var(--brand-rgb), 0.25), 0 10px 15px -5px rgba(var(--ink-rgb), 0.06);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  --transition: all 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
  background-image:
    radial-gradient(circle at 8% 6%, rgba(var(--brand-rgb), 0.1) 0%, transparent 36%),
    radial-gradient(circle at 92% 14%, rgba(var(--ink-rgb), 0.05) 0%, transparent 38%);
  background-attachment: fixed;
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: var(--brand);
  border-radius: var(--radius-full);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.app-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  position: relative;
}

/* Botón principal: verde de la marca con texto negro, como el logotipo
   (btn-chedraui es el nombre que usan las plantillas del panel) */
.btn-brand,
.btn-chedraui,
.btn-primary {
  background: var(--brand);
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(var(--brand-rgb), 0.35);
}

.btn-brand:hover,
.btn-chedraui:hover,
.btn-primary:hover {
  background: #3bbb74;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(var(--brand-rgb), 0.45);
}

.btn-secondary {
  background: #ffffff;
  color: var(--ink);
  border: 1.5px solid var(--border-light);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.btn-secondary:hover {
  background: var(--brand-light);
  border-color: var(--brand);
  color: var(--brand-deep);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

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

.btn-sm {
  padding: 8px 14px;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

/* ---------- Ventanas ---------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(var(--ink-rgb), 0.66);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.25s ease;
}

.modal-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  box-shadow: 0 25px 60px rgba(var(--ink-rgb), 0.3);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #f1f5f9;
  border: none;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close-btn:hover {
  color: #000;
  background: #e2e8f0;
}

/* ---------- Formularios ---------- */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  background: #f8fafc;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  background: #ffffff;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.16);
}

.select-filter {
  background: #f8fafc;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 8px 12px;
  font-size: 0.88rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.select-filter:focus {
  border-color: var(--brand);
}

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

/* ---------- Iconos (trazos SVG de config/icons.php) ---------- */
.x-ico {
  flex: 0 0 auto;
  width: 1em;
  height: 1em;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.14em;
}

/* El icono se dibuja trazo por trazo al aparecer */
.x-ico-draw path {
  animation: x-ico-draw 0.9s cubic-bezier(0.5, 0, 0.2, 1) both;
}

.x-ico-draw path:nth-child(2) { animation-delay: 0.12s; }
.x-ico-draw path:nth-child(3) { animation-delay: 0.24s; }
.x-ico-draw path:nth-child(4) { animation-delay: 0.36s; }
.x-ico-draw path:nth-child(n + 5) { animation-delay: 0.48s; }

.x-anim-float { animation: x-ico-float 3.2s ease-in-out infinite; }
.x-anim-beat { animation: x-ico-beat 1.5s ease-in-out infinite; }
.x-anim-swing { transform-origin: 50% 0; animation: x-ico-swing 2.6s ease-in-out infinite; }
.x-anim-pop { animation: x-ico-pop 0.5s cubic-bezier(0.3, 1.5, 0.5, 1) both; }

@keyframes x-ico-draw {
  from { stroke-dasharray: 1 1.1; stroke-dashoffset: 1; }
  to { stroke-dasharray: 1 0; stroke-dashoffset: 0; }
}

@keyframes x-ico-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes x-ico-beat {
  0%, 60%, 100% { transform: scale(1); }
  20% { transform: scale(1.16); }
  40% { transform: scale(0.96); }
}

@keyframes x-ico-swing {
  0%, 100% { transform: rotate(-7deg); }
  50% { transform: rotate(7deg); }
}

@keyframes x-ico-pop {
  from { transform: scale(0.4); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .x-ico-draw path,
  .x-anim-float,
  .x-anim-beat,
  .x-anim-swing,
  .x-anim-pop {
    animation: none;
  }
}

/* ---------- Detalle del lanzamiento con visor 3D / 360° ---------- */
.modal-box-product {
  max-width: 1040px;
  width: 96%;
  padding: 28px;
}

.product-modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.product-modal-media,
.product-modal-info {
  min-width: 0;
}

.product-modal-info {
  padding-top: 4px;
}

.product-modal-title {
  font-size: 1.5rem;
  line-height: 1.25;
  margin: 8px 36px 8px 0;
  color: var(--ink);
}

.product-modal-desc {
  background: #f8fafc;
  border: 1.5px solid var(--border-light);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 14px;
}

.product-modal-desc p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-main);
  white-space: pre-line;
}

.product-modal-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.product-spec {
  background: #f8fafc;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--border-light);
  min-width: 0;
}

.product-spec span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

.product-spec strong {
  display: block;
  font-size: 0.9rem;
  color: var(--ink);
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.product-modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .product-modal-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .modal-box-product {
    padding: 22px 18px;
  }
}

@media (max-width: 640px) {
  .modal-overlay {
    padding: 10px;
    align-items: flex-end;
  }
  .modal-box {
    padding: 24px 18px 30px !important;
    max-height: 90vh;
    border-radius: 20px 20px 14px 14px;
    width: 100% !important;
  }
  .modal-box-product .modal-close-btn {
    z-index: 20;
  }
  .product-modal-title {
    font-size: 1.25rem;
  }
}
