/* ============================================
   CECOMSYS — Sitio institucional moderno
   ============================================ */

:root {
  /* Identidad CECOMSYS (kit de marca) */
  --navy: #0a2540;
  --navy-2: #0d3358;
  --blue: #0a2540;
  --blue-light: #1a4a7a;
  --teal: #278289;
  --gold: #c9a227;
  --gold-soft: #e8d48a;
  --bg: #f6f8fc;
  --surface: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --success: #059669;
  --shadow: 0 10px 40px rgba(10, 37, 64, 0.08);
  --shadow-lg: 0 20px 60px rgba(10, 37, 64, 0.14);
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1140px;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --transition: 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  padding: 0.55rem 0;
}

.topbar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.topbar a {
  color: inherit;
  transition: color var(--transition);
}

.topbar a:hover {
  color: var(--gold-soft);
}

.topbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.topbar-links span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* ---------- Header / Nav ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-img {
  height: 56px;
  width: auto;
  max-width: min(280px, 62vw);
  object-fit: contain;
  display: block;
  background: #fff;
  border-radius: 10px;
  padding: 0.25rem 0.45rem;
}

.logo-img--footer {
  height: 72px;
  max-width: 200px;
  background: #fff;
  border-radius: 12px;
  padding: 0.45rem 0.6rem;
}

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
  color: #fff;
  display: none;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(10, 37, 64, 0.25);
}

.logo-text {
  display: none;
  flex-direction: column;
  line-height: 1.15;
}

.logo-text strong {
  font-size: 1.15rem;
  color: var(--navy);
}

.logo-text small {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.brand-seal {
  width: min(160px, 40vw);
  height: auto;
  display: block;
  margin: 0 auto 1rem;
  filter: drop-shadow(0 8px 20px rgba(10, 37, 64, 0.2));
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-menu a {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  transition: background var(--transition), color var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
  background: #eef2ff;
  color: var(--blue);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--navy) !important;
  color: #fff !important;
  padding: 0.6rem 1.1rem !important;
}

.nav-cta:hover {
  background: var(--blue) !important;
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  cursor: pointer;
  place-items: center;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: var(--transition);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--navy), var(--teal));
  color: #fff;
  box-shadow: 0 10px 25px rgba(10, 37, 64, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 14px 30px rgba(10, 37, 64, 0.4);
}

.btn-secondary {
  background: #fff;
  color: var(--navy);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.btn-gold {
  background: linear-gradient(135deg, #e0b23a, var(--gold));
  color: var(--navy);
  box-shadow: 0 10px 25px rgba(212, 160, 23, 0.3);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  background: transparent;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  padding: 5.5rem 0 6rem;
  min-height: min(88vh, 820px);
  overflow: hidden;
  display: flex;
  align-items: center;
  background: #071528;
}

/* Foto super grande de lado a lado detrás de todo el hero */
.hero-bg {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  min-height: 100% !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  /* Fallback CSS por si el <img> tarda o falla (sin !important en image para permitir override del CMS) */
  background-color: #0b1f3a !important;
  background-image: url("../assets/campana-estudio.jpg");
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  overflow: hidden !important;
  display: block !important;
  aspect-ratio: auto !important;
}

.hero-bg.img-slot {
  aspect-ratio: auto !important;
  min-height: 100% !important;
}

.hero-bg .img-placeholder {
  display: none !important;
}

.hero-bg img.cms-img,
.hero-bg img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  z-index: 0;
}

/* Capa semitransparente: la foto se ve, el texto se lee */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(105deg, rgba(7, 17, 31, 0.72) 0%, rgba(7, 17, 31, 0.55) 45%, rgba(7, 17, 31, 0.4) 100%),
    linear-gradient(to top, rgba(7, 17, 31, 0.55) 0%, transparent 50%);
}

.hero-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.4;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  width: min(100% - 2rem, var(--max));
}

.hero-content {
  max-width: 38rem;
}

.hero-side .img-slot-hero {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
}

.hero-badge i {
  color: var(--gold);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.1rem;
}

.hero h1 span {
  background: linear-gradient(90deg, #93c5fd, #5eead4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 28rem;
}

.hero-stats div {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  text-align: center;
}

.hero-stats strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gold-soft);
}

.hero-stats span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

.hero-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 1.5rem;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg);
}

.hero-card h3 {
  font-size: 1.05rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-card ul {
  display: grid;
  gap: 0.75rem;
}

.hero-card li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
}

.hero-card .icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--teal), #14b8a6);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* ---------- Sections ---------- */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--surface);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section-head.center {
  text-align: center;
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  margin-bottom: 0.6rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
}

/* ---------- Cards grid ---------- */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #dbeafe, #ccfbf1);
  color: var(--blue);
}

.feature-card h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Offer cards ---------- */
.offer-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 280px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.offer-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.offer-card.highlight {
  background: linear-gradient(160deg, var(--navy) 0%, #1e3a5f 100%);
  color: #fff;
  border: 0;
}

.offer-card.highlight p,
.offer-card.highlight .muted {
  color: rgba(255, 255, 255, 0.8);
}

.offer-card .tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.offer-card.highlight .tag {
  color: var(--gold-soft);
}

.offer-card h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin-bottom: 0.65rem;
  color: var(--navy);
}

.offer-card.highlight h3 {
  color: #fff;
}

.offer-card p {
  color: var(--muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.offer-card ul {
  margin-bottom: 1.25rem;
}

.offer-card li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
}

.offer-card li::before {
  content: "✓";
  color: var(--teal);
  font-weight: 800;
}

.offer-card.highlight li::before {
  color: var(--gold);
}

/* ---------- Why us / accordion style ---------- */
.why-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.why-list {
  display: grid;
  gap: 0.85rem;
}

.why-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.why-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.15rem;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.why-item summary::-webkit-details-marker {
  display: none;
}

.why-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--blue);
  font-weight: 400;
}

.why-item[open] summary::after {
  content: "−";
}

.why-item p {
  padding: 0 1.15rem 1.15rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.panel-visual {
  background: linear-gradient(160deg, var(--navy-2), #0c4a6e);
  border-radius: 24px;
  padding: 2rem;
  color: #fff;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.panel-visual::before {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(13, 148, 136, 0.25);
  top: -40px;
  right: -40px;
}

.panel-visual h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  position: relative;
}

.panel-visual > p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
  position: relative;
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  position: relative;
}

.mini-stats div {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem;
}

.mini-stats strong {
  display: block;
  font-size: 1.4rem;
  color: var(--gold-soft);
}

.mini-stats span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Stats band ---------- */
.stats-band {
  background: linear-gradient(90deg, var(--navy), #123a6b 50%, #0f5c56);
  color: #fff;
  padding: 3rem 0;
}

.stats-band .grid-4 {
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--gold-soft);
  font-family: var(--font-display);
}

.stat-item span {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- Team ---------- */
.team-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform var(--transition);
}

.team-card:hover {
  transform: translateY(-4px);
}

.team-avatar {
  height: 120px;
  background: linear-gradient(135deg, #1e3a5f, #0d9488);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-display);
}

.team-card .body {
  padding: 1.15rem;
}

.team-card h3 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.team-card .role {
  font-size: 0.85rem;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.team-card .area {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  height: 100%;
}

.quote {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 1.25rem;
  position: relative;
  padding-top: 0.5rem;
}

.quote::before {
  content: "“";
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--blue-light);
  opacity: 0.35;
  position: absolute;
  top: -0.6rem;
  left: -0.2rem;
  line-height: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.avatar-sm {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.testimonial-author strong {
  display: block;
  font-size: 0.95rem;
  color: var(--navy);
}

.testimonial-author span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- CTA ---------- */
.cta-band {
  background:
    radial-gradient(circle at 20% 50%, rgba(13, 148, 136, 0.2), transparent 40%),
    linear-gradient(135deg, var(--navy), #1e3a5f);
  color: #fff;
  border-radius: 28px;
  padding: 2.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-lg);
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 0.5rem;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 32rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- Page hero (internal) ---------- */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy), #164e63);
  color: #fff;
  padding: 3.5rem 0;
  overflow: hidden;
}

/* Título con foto de fondo de lado a lado (Inicio/Nosotros y demás) */
.page-hero--photo {
  min-height: 280px;
  display: flex;
  align-items: center;
  padding: 4rem 0;
  background: #0b1f3a;
}

.page-hero-bg {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  min-height: 100% !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  display: block !important;
  aspect-ratio: auto !important;
  background-color: #0b1f3a !important;
  background-image: url("../assets/campana-seguridad.jpg");
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

.page-hero-bg .img-placeholder {
  display: none !important;
}

.page-hero-bg img.cms-img,
.page-hero-bg img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(100deg, rgba(7, 17, 31, 0.78) 0%, rgba(7, 17, 31, 0.55) 55%, rgba(13, 148, 136, 0.25) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  margin-bottom: 0.6rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 38rem;
  font-size: 1.05rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.65);
}

.breadcrumb a:hover {
  color: #fff;
}

/* ---------- Content blocks ---------- */
.content-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.25rem;
}

.content-block h2,
.content-block h3 {
  color: var(--navy);
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
}

.content-block h2 {
  font-size: 1.5rem;
}

.content-block h3 {
  font-size: 1.2rem;
}

.content-block p,
.content-block li {
  color: var(--muted);
  margin-bottom: 0.65rem;
}

.content-block ul {
  padding-left: 0;
}

.content-block li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.content-block li::before {
  content: "▸";
  color: var(--teal);
  font-weight: 700;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1.5rem;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}

.contact-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #eef2ff;
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-card h3 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.contact-card p,
.contact-card a {
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-card a:hover {
  color: var(--blue);
}

.form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.8rem 0.95rem;
  font: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-group textarea {
  min-height: 130px;
  resize: vertical;
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

/* ---------- Footer ---------- */
.footer {
  background: #07111f;
  color: rgba(255, 255, 255, 0.75);
  padding: 3.5rem 0 1.5rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.footer p {
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--transition);
}

.footer a:hover {
  color: var(--gold-soft);
}

.footer-links {
  display: grid;
  gap: 0.55rem;
  font-size: 0.92rem;
}

.socials {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.socials a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  font-weight: 700;
}

.socials a:hover {
  background: var(--blue);
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  font-size: 0.85rem;
}

/* ---------- Redes flotantes (esquina inferior derecha) ---------- */
.whatsapp-float {
  display: none !important; /* reemplazado por .social-float */
}

.social-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: center;
}

.social-float a {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}

.social-float a:hover {
  transform: scale(1.1) translateY(-2px);
  color: #fff;
}

.social-float a svg {
  width: 26px;
  height: 26px;
  display: block;
  fill: currentColor;
}

.social-float a[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  right: 62px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--navy);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.social-float a:hover::after {
  opacity: 1;
}

.social-float .sf-facebook {
  background: #1877f2;
  box-shadow: 0 10px 28px rgba(24, 119, 242, 0.4);
}

.social-float .sf-instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
  box-shadow: 0 10px 28px rgba(214, 36, 159, 0.35);
}

.social-float .sf-whatsapp {
  background: #25d366;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
}

/* Iconos en el pie de página */
.socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0;
}

.socials a svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.socials a.sf-facebook:hover {
  background: #1877f2;
}

.socials a.sf-instagram:hover {
  background: #d6249f;
}

.socials a.sf-whatsapp:hover {
  background: #25d366;
}

/* ---------- Utilities ---------- */
.muted {
  color: var(--muted);
}

.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}

.mb-0 {
  margin-bottom: 0;
}

.highlight-box {
  background: linear-gradient(135deg, #ecfdf5, #eff6ff);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
}

.highlight-box strong {
  color: var(--navy);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .container,
  .why-layout,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }

  .nav-toggle {
    display: grid;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    display: none;
    box-shadow: var(--shadow);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu a {
    border-radius: 10px;
  }

  .hero-card {
    max-width: 420px;
  }
}

@media (max-width: 640px) {
  .grid-4,
  .grid-3,
  .grid-2,
  .form-row,
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .topbar .container {
    justify-content: center;
    text-align: center;
  }

  .cta-band {
    padding: 1.75rem;
  }

  .section {
    padding: 3.25rem 0;
  }
}

/* ---------- Image slots ---------- */
.img-slot {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, #e2e8f0 25%, #f1f5f9 25%, #f1f5f9 50%, #e2e8f0 50%, #e2e8f0 75%, #f1f5f9 75%);
  background-size: 24px 24px;
  border: 2px dashed #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  min-height: 160px;
}

.img-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.img-slot .img-placeholder {
  position: relative;
  z-index: 1;
  padding: 1rem;
  pointer-events: none;
}

.img-slot.has-image {
  border-style: solid;
  border-color: var(--border);
  background: #0f172a;
}

.img-slot.has-image .img-placeholder {
  display: none;
}

.img-slot-hero {
  min-height: 320px;
  border-radius: 24px;
  aspect-ratio: 4/3;
}

.img-slot-gallery {
  min-height: 200px;
  aspect-ratio: 16/10;
}

.img-slot-team {
  min-height: 160px;
  aspect-ratio: 1;
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: 0;
}

.img-slot-banner {
  min-height: 180px;
  aspect-ratio: 21/9;
}

.img-slot-card {
  min-height: 140px;
  aspect-ratio: 16/9;
  margin-bottom: 1rem;
  border-radius: 12px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.team-card .img-slot-team + .body {
  border-top: 1px solid var(--border);
}

.team-card .team-avatar { display: none; }
.team-card .img-slot-team { display: flex; }

/* ---------- Admin UI ---------- */
.admin-fab {
  position: fixed;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 210;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 0;
  background: var(--navy);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0.55;
  transition: opacity var(--transition), transform var(--transition);
}

.admin-fab:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.admin-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 17, 31, 0.65);
  backdrop-filter: blur(4px);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.admin-overlay.open {
  display: flex;
}

.admin-modal {
  width: min(100%, 720px);
  max-height: min(90vh, 860px);
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.admin-modal header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, var(--navy), #164e63);
  color: #fff;
}

.admin-modal header h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.admin-close {
  border: 0;
  background: rgba(255,255,255,0.15);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.2rem;
}

.admin-body {
  padding: 1.25rem;
  overflow: auto;
  flex: 1;
}

.admin-tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.admin-tabs button {
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--text);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.admin-tabs button.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.admin-panel { display: none; }
.admin-panel.active { display: block; }

.admin-field {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem;
  margin-bottom: 0.75rem;
  background: #fafbfc;
}

.admin-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.admin-field input[type="text"],
.admin-field input[type="password"],
.admin-field input[type="email"],
.admin-field input[type="tel"],
.admin-field input[type="url"],
.admin-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  font: inherit;
}

.admin-field textarea {
  min-height: 80px;
  resize: vertical;
}

.admin-field .row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.55rem;
}

.admin-field .preview {
  width: 100%;
  max-height: 140px;
  object-fit: cover;
  border-radius: 10px;
  margin-top: 0.5rem;
  border: 1px solid var(--border);
  background: #e2e8f0;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.9rem 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
  background: #f8fafc;
}

.admin-actions .btn {
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
}

.admin-login {
  max-width: 380px;
}

.admin-section-title {
  margin: 0.25rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.admin-hint {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.5rem 0 1rem;
}

.admin-dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin-top: 0.5rem;
  padding: 1.25rem 1rem;
  border: 2px dashed #94a3b8;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  text-align: center;
  color: var(--navy);
}

.admin-dropzone input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.admin-dropzone strong {
  font-size: 0.95rem;
}

.admin-dropzone span {
  font-size: 0.82rem;
  color: var(--muted);
}

.admin-dropzone.is-dragover,
.admin-dropzone:hover {
  border-color: var(--navy);
  background: #f0f7f7;
}

.admin-error {
  color: #b91c1c;
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 0.5rem;
  display: none;
}

.admin-error.show { display: block; }

body.admin-mode [data-edit],
body.admin-mode [data-img],
body.admin-mode [data-edit],
body.admin-mode [data-img],
body.admin-mode [data-video],
body.admin-mode .video-frame {
  outline: 2px dashed rgba(26, 86, 219, 0.55);
  outline-offset: 3px;
  cursor: pointer;
}

body.admin-mode [data-edit]:hover,
body.admin-mode [data-img]:hover {
  outline-color: var(--gold);
}

.admin-badge {
  position: fixed;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 220;
  background: #b45309;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  display: none;
  box-shadow: var(--shadow);
}

body.admin-mode .admin-badge { display: block; }

@media (max-width: 640px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .img-slot-hero { min-height: 220px; }
}

/* ---------- Programa académico (Básica / Bachillerato) ---------- */
.program-window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.program-window-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(90deg, var(--navy), var(--navy-2));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.program-window-bar .dots {
  display: flex;
  gap: 0.35rem;
  margin-right: 0.5rem;
}

.program-window-bar .dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.program-window-bar .dots span:nth-child(1) { background: #f87171; }
.program-window-bar .dots span:nth-child(2) { background: #fbbf24; }
.program-window-bar .dots span:nth-child(3) { background: #34d399; }

.program-window-body {
  padding: 1.75rem 1.5rem 2rem;
}

.program-intro {
  max-width: 48rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.program-intro p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 0.85rem;
}

.program-intro p:last-child {
  margin-bottom: 0;
}

.program-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.program-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  height: 100%;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.program-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.program-card.accent {
  background: linear-gradient(160deg, var(--navy-2), #0c4a6e);
  color: #fff;
  border: 0;
}

.program-card.accent p,
.program-card.accent li {
  color: rgba(255, 255, 255, 0.85);
}

.program-card .card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #dbeafe, #ccfbf1);
}

.program-card.accent .card-icon {
  background: rgba(255, 255, 255, 0.12);
}

.program-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.program-card.accent h3 {
  color: #fff;
}

.program-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0.65rem;
}

.req-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.req-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font-size: 0.95rem;
  color: var(--text);
}

.program-card.accent .req-list li {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.req-list .check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), #14b8a6);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  margin-top: 0.1rem;
}

.level-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.level-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), border-color var(--transition);
}

.level-box:hover {
  transform: translateY(-3px);
  border-color: var(--teal);
}

.level-box strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.level-box span {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

.level-box .hours {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pensum-section {
  margin-top: 0.5rem;
}

.pensum-section .section-head {
  margin-bottom: 1.25rem;
}

.pensum-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--surface);
}

.pensum-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 560px;
}

.pensum-table thead th {
  background: linear-gradient(90deg, var(--navy), var(--navy-2));
  color: #fff;
  font-weight: 700;
  padding: 0.9rem 0.75rem;
  text-align: center;
  white-space: nowrap;
}

.pensum-table thead th:first-child {
  text-align: left;
  padding-left: 1.1rem;
}

.pensum-table tbody td {
  padding: 0.75rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.pensum-table tbody td:first-child {
  text-align: left;
  padding-left: 1.1rem;
  font-weight: 600;
  color: var(--navy);
}

.pensum-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.pensum-table tbody tr:hover {
  background: #ecfeff;
}

.pensum-table tr.pensum-group td {
  background: #e0f2fe;
  font-weight: 800;
  color: var(--navy);
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.pensum-table tr.pensum-group td:first-child {
  text-align: left;
}

.pensum-table tr.pensum-total td {
  background: linear-gradient(90deg, #0d9488, #0f766e);
  color: #fff;
  font-weight: 800;
  border-bottom: 0;
}

.pensum-table tr.pensum-total td:first-child {
  color: #fff;
}

.pensum-note {
  margin-top: 0.85rem;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
}

.areas-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 1.25rem 0 0;
}

.areas-chips span {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
}

@media (max-width: 980px) {
  .program-cards {
    grid-template-columns: 1fr;
  }

  .level-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .program-window-body {
    padding: 1.25rem 1rem 1.5rem;
  }

  .level-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Video player ---------- */
.video-window {
  max-width: 860px;
  margin-inline: auto;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
}

.video-frame .video-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
  object-fit: cover;
}

.video-frame iframe.video-embed:not([src]),
.video-frame iframe.video-embed[src=""],
.video-frame video.video-embed:not([src]),
.video-frame video.video-embed[src=""],
.video-frame .video-embed[hidden] {
  display: none;
}

.video-frame video.video-embed {
  object-fit: contain;
  background: #000;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 84px;
  height: 84px;
  margin: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: var(--navy);
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
  padding: 0 0 0 6px;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  box-shadow: 0 12px 28px rgba(201, 162, 39, 0.4);
}

.video-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

.video-frame.is-playing .video-play-btn {
  display: none;
}

.video-frame.has-video .video-placeholder {
  display: none;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.5rem;
  padding: 1.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.88);
  background:
    radial-gradient(ellipse at center, rgba(39, 130, 137, 0.28) 0%, transparent 55%),
    linear-gradient(160deg, #0d3358 0%, #0a2540 55%, #0f172a 100%);
}

.video-placeholder-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  box-shadow: 0 12px 30px rgba(201, 162, 39, 0.35);
  margin-bottom: 0.5rem;
}

.video-placeholder p {
  margin: 0;
  max-width: 28rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}

.video-placeholder strong {
  display: block;
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 0.15rem;
}

.video-placeholder code {
  font-size: 0.85em;
  color: var(--gold-soft);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
}

/* Formulario contacto — estado y honeypot */
.form-status {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: #ecfdf5;
  color: #065f46;
  font-weight: 600;
  font-size: 0.9rem;
}
.form-status.is-error {
  background: #fef2f2;
  color: #b91c1c;
}
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Panel admin — leads / clientes */
.lead-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0 0.75rem;
}
.lead-stat {
  min-width: 4.5rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: #f1f5f9;
  border: 1px solid var(--border);
  text-align: center;
}
.lead-stat strong {
  display: block;
  font-size: 1.15rem;
  color: var(--navy);
}
.lead-stat span {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.lead-stat-total {
  background: #e0f2fe;
  border-color: #bae6fd;
}
.leads-table-wrap {
  overflow: auto;
  max-height: min(48vh, 420px);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.leads-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.leads-table th,
.leads-table td {
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  text-align: left;
}
.leads-table th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  color: var(--navy);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  z-index: 1;
}
.leads-table select.lead-status {
  width: 100%;
  margin-bottom: 0.35rem;
  padding: 0.35rem;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.leads-table textarea.lead-notes {
  width: 100%;
  min-height: 2.5rem;
  padding: 0.35rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  font: inherit;
  resize: vertical;
}
.lead-msg {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--muted);
}
