/* ===================================================================
   css/site.css — Sistema visual compartido: Sandra Rivera
   Usado por index.php, dashboard.php, herramientas/h1-h4.php y
   admin/admin.php. Mismos dos colores de marca de siempre, mismo
   logo — solo se refina tipografía, espaciado, tarjetas y botones.
=================================================================== */

:root {
  --sr-purple: #a3509a;
  --sr-orange: #f59a4a;
  --sr-purple-deep: #7a3b74;
  --sr-purple-mist: #f6eef5;
  --sr-dark: #241e26;
  --sr-ink-muted: #6e5f70;
  --sr-light: #faf6fa;
  --sr-line: #ece1eb;
  --sr-shadow-sm: 0 6px 18px -12px rgba(36, 30, 38, 0.28);
  --sr-shadow-md: 0 14px 34px -18px rgba(122, 59, 116, 0.35);
  --sr-radius-lg: 20px;
  --sr-radius-md: 14px;
}

/* ---------- Base ---------- */
body {
  font-family: 'Montserrat', sans-serif;
  color: var(--sr-dark);
  background-color: var(--sr-light);
}
h1, h2, h3, h4, h5, .navbar-brand, .font-family-playfair {
  font-family: 'Playfair Display', serif;
}
.section-title {
  color: var(--sr-purple);
  font-weight: 700;
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 3px;
  background-color: var(--sr-orange);
  bottom: -10px;
  left: 0;
}
.section-title.text-center::after { left: 25%; }
html { scroll-behavior: smooth; }

/* ---------- Botones de marca ---------- */
.btn-sr-primary {
  background-color: var(--sr-purple);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 11px 26px;
  font-weight: 600;
  box-shadow: 0 10px 24px -12px rgba(163, 80, 154, 0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.btn-sr-primary:hover {
  background-color: var(--sr-purple-deep);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -12px rgba(163, 80, 154, 0.6);
}
.btn-sr-secondary {
  background-color: var(--sr-orange);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 11px 26px;
  font-weight: 600;
  box-shadow: 0 10px 24px -12px rgba(245, 154, 74, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.btn-sr-secondary:hover {
  background-color: #e0893f;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -12px rgba(245, 154, 74, 0.55);
}
.btn-sr-ghost {
  background: transparent;
  border: 1.5px solid var(--sr-line);
  color: var(--sr-dark);
  border-radius: 999px;
  padding: 10px 24px;
  font-weight: 600;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.btn-sr-ghost:hover { border-color: var(--sr-purple); color: var(--sr-purple); }

/* ---------- Navbar (index.php) ---------- */
.navbar {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(36, 30, 38, 0.06);
}
.nav-link { color: var(--sr-dark); font-weight: 500; transition: 0.2s; }
.nav-link:hover { color: var(--sr-orange); }

/* ---------- Hero (index.php) ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 110px;
  padding-bottom: 90px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sr-purple-mist) 0%, var(--sr-light) 65%);
}
.hero-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--sr-purple);
  background: #fff;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
  box-shadow: var(--sr-shadow-sm);
}
.hero-title { font-size: 3.2rem; color: var(--sr-purple); font-weight: 700; line-height: 1.15; }
.hero-title span { color: var(--sr-orange); font-style: italic; }
.hero-blob-wrap { position: relative; width: 100%; aspect-ratio: 1 / 1; max-width: 420px; margin: 0 auto; }
.hero-blob {
  position: absolute; inset: 0; margin: auto; width: 86%; height: 86%;
  background: linear-gradient(135deg, var(--sr-purple) 0%, var(--sr-purple-deep) 48%, var(--sr-orange) 100%);
  animation: sr-morph 16s ease-in-out infinite;
  box-shadow: 0 30px 60px -30px rgba(122, 59, 116, 0.55);
}
.hero-blob-logo {
  position: relative; z-index: 1; max-width: 46%; filter: drop-shadow(0 8px 20px rgba(36,30,38,0.25));
  background: #fff; border-radius: 50%; padding: 22px;
}
@keyframes sr-morph {
  0%, 100% { border-radius: 42% 58% 65% 35% / 45% 40% 60% 55%; }
  33%      { border-radius: 62% 38% 40% 60% / 60% 45% 55% 40%; }
  66%      { border-radius: 38% 62% 55% 45% / 35% 60% 40% 65%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-blob { animation: none; border-radius: 48% 52% 60% 40% / 50% 45% 55% 50%; }
}
@media (max-width: 768px) {
  .hero { min-height: auto; padding-top: 140px; text-align: center; }
  .hero-title { font-size: 2.3rem; }
  .hero p { font-size: 1.05rem !important; }
  .hero-blob-wrap { max-width: 260px; margin-top: 40px; }
}

/* ---------- Sobre mí ---------- */
.story-box {
  background-color: #ffffff;
  border-left: 4px solid var(--sr-orange);
  border-radius: 6px 18px 18px 6px;
  box-shadow: var(--sr-shadow-sm);
}
.story-box p.fst-italic { font-family: 'Playfair Display', serif; font-size: 1.05rem; }
.card-mision, .card-vision {
  border: 1px solid var(--sr-line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-mision { background-color: #fbf7fb; }
.card-vision { background-color: #fffaf5; }
.card-mision:hover, .card-vision:hover { transform: translateY(-4px); box-shadow: var(--sr-shadow-md); }

/* ---------- Equipo ---------- */
.seccion-equipo { background-color: var(--sr-purple-mist); padding: 88px 0; }
.team-card {
  background: #ffffff; border-radius: var(--sr-radius-lg); border: 1px solid var(--sr-line);
  transition: all 0.25s ease; padding: 34px 20px; text-align: center; height: 100%;
}
.team-card:hover { transform: translateY(-8px); box-shadow: var(--sr-shadow-md); border-color: rgba(163, 80, 154, 0.3); }
.team-avatar {
  width: 100px; height: 100px; border-radius: 50%; background-color: var(--sr-purple-mist);
  color: var(--sr-purple); display: flex; align-items: center; justify-content: center;
  font-size: 2.3rem; margin: 0 auto 20px; border: 3px solid rgba(245, 154, 74, 0.25);
  transition: all 0.25s ease; overflow: hidden;
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card:hover .team-avatar { background-color: var(--sr-purple); color: #fff; border-color: var(--sr-orange); transform: scale(1.05); }
.team-name { font-weight: 700; color: var(--sr-dark); margin-bottom: 4px; font-size: 1.1rem; }
.team-role { color: var(--sr-orange); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0; }

/* ---------- Clientes ---------- */
.seccion-clientes { background-color: #ffffff; padding: 88px 0; }
.cliente-card {
  transition: all 0.25s ease; background-color: #ffffff; min-height: 110px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--sr-line); border-radius: var(--sr-radius-md);
}
.cliente-card:hover { transform: translateY(-6px); box-shadow: var(--sr-shadow-md) !important; border-color: rgba(163, 80, 154, 0.35) !important; }
.cliente-logo { max-width: 100%; max-height: 65px; filter: grayscale(100%) opacity(65%); transition: all 0.35s ease; }
.cliente-card:hover .cliente-logo { filter: grayscale(0%) opacity(100%); }

/* ---------- Sección libro ---------- */
.seccion-libro {
  padding: 88px 0; background: linear-gradient(160deg, #241e26 0%, #34272f 100%); color: #fff;
  border-radius: 32px; margin: 0 12px;
}

/* ---------- Footer ---------- */
footer, .footer-custom {
  background: linear-gradient(160deg, var(--sr-purple) 0%, var(--sr-purple-deep) 100%);
  color: #fff; padding: 64px 0 30px;
}
.hd-link { color: var(--sr-orange); font-weight: 700; text-decoration: none; transition: color 0.2s; }
.hd-link:hover { color: #ffffff; text-decoration: underline; }

/* ---------- Botón flotante WhatsApp ---------- */
.btn-whatsapp {
  position: fixed; bottom: 28px; right: 28px; background-color: #25D366; color: #fff;
  width: 58px; height: 58px; border-radius: 50%; display: flex; justify-content: center;
  align-items: center; font-size: 32px; box-shadow: 0 8px 22px rgba(37, 211, 102, 0.4);
  z-index: 1000; text-decoration: none; transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-whatsapp:hover { transform: scale(1.08); color: #fff; box-shadow: 0 10px 28px rgba(37, 211, 102, 0.55); }

/* ---------- Ojo mostrar/ocultar contraseña ---------- */
.eye-icon { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); cursor: pointer; color: #a89aa8; z-index: 10; transition: color 0.2s; }
.eye-icon:hover { color: var(--sr-purple); }

/* ===================================================================
   Áreas internas: dashboard.php + herramientas/h1-h4.php
=================================================================== */
.card-tool {
  background: #fff; border-radius: var(--sr-radius-lg); border: 1px solid var(--sr-line);
  padding: 28px 22px; height: 100%; transition: all 0.25s ease; box-shadow: var(--sr-shadow-sm);
}
.card-tool:hover { transform: translateY(-6px); box-shadow: var(--sr-shadow-md); border-color: rgba(163, 80, 154, 0.3); }
.card-tool-locked { background: #f4f1f4; border-radius: var(--sr-radius-lg); border: 1px dashed var(--sr-line); padding: 28px 22px; height: 100%; opacity: 0.75; }
.icon-box {
  width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  background: var(--sr-purple-mist); color: var(--sr-purple); font-size: 1.4rem; margin-bottom: 16px;
}

.progress { height: 8px; border-radius: 999px; background-color: var(--sr-purple-mist); overflow: hidden; }
.progress-bar { background: linear-gradient(90deg, var(--sr-purple), var(--sr-orange)); }

.wizard-card {
  border: 1.5px solid var(--sr-line); border-radius: var(--sr-radius-md); padding: 16px 20px;
  margin-bottom: 12px; cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; gap: 14px;
  background: #fff;
}
.wizard-card:hover { border-color: var(--sr-purple); background: var(--sr-purple-mist); }
.wizard-card.selected { border-color: var(--sr-purple); background: var(--sr-purple-mist); box-shadow: var(--sr-shadow-sm); }
.wizard-radio {
  width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--sr-line); flex-shrink: 0; position: relative;
}
.wizard-card.selected .wizard-radio { border-color: var(--sr-purple); }
.wizard-card.selected .wizard-radio::after {
  content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--sr-purple);
}
.wizard-checkbox {
  width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--sr-line); flex-shrink: 0;
}
.wizard-card.selected .wizard-checkbox { border-color: var(--sr-purple); background: var(--sr-purple); }
.question-text { font-family: 'Playfair Display', serif; color: var(--sr-dark); font-weight: 700; }
.fade-step { animation: fadeInRight 0.35s ease; }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: translateX(0); } }
.fase-input {
  border: 1.5px solid var(--sr-line); border-radius: var(--sr-radius-md); padding: 10px 14px; width: 100%; margin-bottom: 10px;
  transition: border-color 0.2s ease;
}
.fase-input:focus { border-color: var(--sr-purple); outline: none; box-shadow: 0 0 0 3px rgba(163, 80, 154, 0.15); }

.history-table th { color: var(--sr-purple); font-weight: 700; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.04em; }
.history-table td { vertical-align: middle; }

/* ===================================================================
   Panel administrativo: admin/admin.php
=================================================================== */
.header-admin {
  background: linear-gradient(135deg, var(--sr-purple) 0%, var(--sr-dark) 100%);
  color: #fff; padding: 22px 0; box-shadow: 0 6px 20px rgba(36, 30, 38, 0.15);
}
.table-wrapper {
  background-color: #fff; border-radius: var(--sr-radius-lg); box-shadow: var(--sr-shadow-sm);
  max-height: 65vh; overflow-y: auto; overflow-x: auto; border: 1px solid var(--sr-line);
}
.table-custom { margin-bottom: 0; white-space: nowrap; }
.table-custom thead th {
  position: sticky; top: 0; z-index: 10; background-color: var(--sr-purple-mist); color: var(--sr-purple);
  font-weight: 700; border-bottom: 2px solid var(--sr-line); text-transform: uppercase; font-size: 0.72rem; padding: 15px;
}
.table-custom tbody td { padding: 12px 15px; vertical-align: middle; border-bottom: 1px solid #f3eef3; }
.table-custom tbody tr:hover { background-color: var(--sr-purple-mist); }
.card-graph {
  background: #fff; border-radius: var(--sr-radius-lg); box-shadow: var(--sr-shadow-sm); padding: 20px;
  height: 100%; border: 1px solid var(--sr-line);
}
