/* ── Variables ───────────────────────────────────────────────────────────── */
:root {
  --fondo:        #F5EFE6;
  --fondo-claro:  #FBF7F2;
  --nav-1:        #C07BAF;
  --nav-2:        #9B78C8;
  --nav-dark:     #5C3A78;
  --verde-btn:    #5A9A5A;
  --naranja:      #E8820A;
  --naranja-claro:#FFF0DC;
  --rosa:         #E879A0;
  --rosa-claro:   #FFE0EE;
  --morado:       #9966CC;
  --morado-claro: #EED8FF;
  --celeste:      #5AACDC;
  --celeste-claro:#DCF0FF;
  --amarillo:     #F5C842;
  --amarillo-claro:#FFF8D0;
  --menta:        #5AAA80;
  --menta-claro:  #D8F5E8;
  --texto:        #3A3A3A;
  --texto-light:  #7A7A7A;
  --blanco:       #FFFFFF;
  --borde:        rgba(0,0,0,0.07);
  --sombra-sm:    0 3px 12px rgba(0,0,0,0.08);
  --sombra-md:    0 6px 24px rgba(0,0,0,0.12);
  --radio:        18px;
  --radio-sm:     10px;
  --radio-lg:     28px;
  --radio-pill:   50px;
  --trans:        0.3s ease;
}

/* ── Reset & Base ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  background: var(--fondo);
  color: var(--texto);
  line-height: 1.65;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Tipografía ─────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Fredoka One', cursive;
  color: var(--texto);
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: 0.5px;
}
.titulo-naranja { color: var(--naranja); }
.titulo-rosa    { color: var(--rosa); }
.titulo-morado  { color: var(--morado); }
.titulo-verde   { color: var(--verde-btn); }
.titulo-script  {
  font-family: 'Dancing Script', cursive;
  font-weight: 700;
  color: var(--rosa);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}
.section-title {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(2rem, 5vw, 3rem);
  text-align: center;
  margin-bottom: 0.5rem;
}
.section-subtitle {
  text-align: center;
  font-family: 'Dancing Script', cursive;
  font-weight: 700;
  color: var(--rosa);
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  margin-bottom: 1rem;
}
.section-intro { text-align: center; max-width: 700px; margin: 0 auto 2.5rem; font-size: 0.95rem; color: var(--texto-light); }

/* ── Navbar ─────────────────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, var(--nav-1), var(--nav-2));
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem; height: 58px;
  box-shadow: 0 2px 14px rgba(155,120,200,0.35);
}
.nav-hamburger {
  background: none; border: none; cursor: pointer;
  color: white; font-size: 1.5rem; padding: 4px 8px;
  display: flex; flex-direction: column; gap: 5px;
}
.nav-hamburger span { display: block; width: 24px; height: 2px; background: white; border-radius: 2px; transition: var(--trans); }
.navbar-brand {
  font-family: 'Dancing Script', cursive;
  font-size: 1.6rem; font-weight: 700; color: white;
  display: flex; align-items: center; gap: 0.4rem;
}
.navbar-brand .flower { font-size: 1.3rem; }
.nav-login-btn {
  background: rgba(255,255,255,0.15);
  color: white; border: 1px solid rgba(255,255,255,0.3);
  padding: 0.3rem 1rem; border-radius: var(--radio-pill);
  font-size: 0.82rem; font-weight: 600; cursor: pointer;
  transition: var(--trans); font-family: 'Poppins', sans-serif;
  white-space: nowrap;
}
.nav-login-btn:hover { background: rgba(255,255,255,0.3); }


/* Overlay menu */
.nav-overlay {
  position: fixed; top: 58px; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5); z-index: 998;
  display: none;
}
.nav-overlay.open { display: block; }
.nav-drawer {
  position: fixed; top: 58px; left: 0; width: 280px; bottom: 0;
  background: linear-gradient(180deg, var(--nav-1), var(--nav-2) 60%); z-index: 999;
  transform: translateX(-100%); transition: var(--trans);
  overflow-y: auto; padding: 1.5rem 0;
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer-link {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.9rem 1.5rem; color: rgba(255,255,255,0.85);
  font-size: 0.95rem; font-weight: 500;
  transition: var(--trans); border-left: 3px solid transparent;
}
.nav-drawer-link:hover, .nav-drawer-link.active {
  background: rgba(255,255,255,0.1); color: white;
  border-left-color: var(--amarillo);
}
.nav-drawer-sep { height: 1px; background: rgba(255,255,255,0.1); margin: 0.8rem 1.5rem; }

/* ── Page wrapper ────────────────────────────────────────────────────────── */
.page-wrapper { padding-top: 58px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4rem 0; }
.section-beige { background: var(--fondo); }
.section-blanco { background: var(--fondo-claro); }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.6rem 1.5rem; border-radius: var(--radio-pill);
  font-weight: 600; font-size: 0.88rem; cursor: pointer; border: none;
  transition: var(--trans); font-family: 'Poppins', sans-serif;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sombra-md); }
.btn-verde   { background: var(--verde-btn); color: white; }
.btn-naranja { background: var(--naranja); color: white; }
.btn-rosa    { background: var(--rosa); color: white; }
.btn-morado  { background: var(--morado); color: white; }
.btn-celeste { background: var(--celeste); color: white; }
.btn-outline { background: white; border: 2px solid var(--verde-btn); color: var(--verde-btn); }
.btn-sm   { padding: 0.35rem 1rem; font-size: 0.78rem; }
.btn-info { background: var(--verde-btn); color: white; padding: 0.3rem 1.1rem; font-size: 0.78rem; border-radius: var(--radio-pill); font-weight: 700; display: inline-block; transition: var(--trans); }
.btn-info:hover { background: #3D7A3D; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--naranja), #D46A00); color: white; }
.btn-danger  { background: #FFD0D0; color: #c0392b; }
.btn-dark    { background: var(--texto); color: white; }

/* ── HOME: Hero ─────────────────────────────────────────────────────────── */
.home-hero {
  text-align: center;
  padding: 3rem 0 2rem;
  background: var(--fondo);
}
.hero-illustration {
  display: flex; justify-content: center; align-items: flex-end;
  gap: 0.5rem; margin-bottom: 1.5rem; min-height: 180px;
  position: relative;
}
.hero-char-main {
  font-size: 7rem; position: relative; z-index: 2;
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.12));
}
.hero-lotus { font-size: 3rem; align-self: flex-end; opacity: 0.85; }
.hero-leaf  { font-size: 2.5rem; align-self: flex-end; opacity: 0.7; }
.hero-bg-pond {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 320px; height: 80px;
  background: radial-gradient(ellipse, rgba(100,180,100,0.2) 0%, transparent 70%);
  border-radius: 50%;
}
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-14px)} }
.hero-img-custom {
  max-height: 200px; max-width: 100%;
  object-fit: contain;
  border-radius: var(--radio-lg);
  animation: float 4s ease-in-out infinite;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,0.15));
  position: relative; z-index: 2;
}
.hero-title {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #2D5A2D; letter-spacing: 1px; margin-bottom: 0.8rem;
  line-height: 1.1;
}
.hero-subtitle { font-size: 0.95rem; color: var(--texto-light); max-width: 500px; margin: 0 auto 2rem; }
.hero-subtitle p, .section-intro p, .mv-rich p { margin: 0; }
.hero-scroll-hint { font-size: 1.5rem; animation: bounce 2s ease-in-out infinite; color: var(--rosa); }
@keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(6px)} }

/* ── HOME: Misión/Visión ─────────────────────────────────────────────────── */
.mv-section { padding: 4rem 0; background: var(--fondo-claro); }
.mv-container { display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: center; max-width: 1000px; margin: 0 auto; }
.mv-text-block { }
.mv-item { margin-bottom: 2rem; }
.mv-item h3 { font-family: 'Dancing Script', cursive; font-weight: 700; color: var(--rosa); font-size: 2rem; margin-bottom: 0.5rem; }
.mv-item p { font-size: 0.92rem; line-height: 1.7; max-width: 500px; }
.mv-rich { font-size: 0.92rem; line-height: 1.7; max-width: 500px; }
.mv-rich p { margin: 0 0 0.5rem; }
.mv-rich p:last-child { margin-bottom: 0; }
.mv-photo { flex-shrink: 0; }
.mv-photo-frame {
  width: 280px; height: 320px;
  border-radius: 50% 40% 50% 40% / 40% 50% 40% 50%;
  overflow: hidden; border: 5px solid var(--verde-btn);
  box-shadow: var(--sombra-md);
  background: linear-gradient(135deg, var(--menta-claro), var(--celeste-claro));
  display: flex; align-items: center; justify-content: center; font-size: 5rem;
}
.mv-photo-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ── HOME: Secciones cards ───────────────────────────────────────────────── */
.secciones-section { padding: 4rem 0; background: var(--fondo); }
.secciones-top { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-bottom: 1.5rem; }
.secciones-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.sec-card {
  border-radius: var(--radio-lg); overflow: hidden;
  box-shadow: var(--sombra-sm); transition: var(--trans);
  text-decoration: none; color: var(--texto); display: block;
  background: white;
}
.sec-card:hover { transform: translateY(-6px); box-shadow: var(--sombra-md); }
.sec-card-img {
  width: 100%; height: 170px;
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem; position: relative; overflow: hidden;
}
.sec-card-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; }
.sec-card-img .emoji-placeholder { position: relative; z-index: 1; animation: float 3s ease-in-out infinite; }
.sec-edu  .sec-card-img { background: linear-gradient(135deg, #FFF8D0, #FFE890, #FFFADC); }
.sec-ent  .sec-card-img { background: linear-gradient(135deg, #FFE0EE, #FFDCE8, #FFE9F5); }
.sec-news .sec-card-img { background: linear-gradient(135deg, #DCF0FF, #C8E8FF, #E8F5FF); }
.sec-tal  .sec-card-img { background: linear-gradient(135deg, #EED8FF, #E0C8FF, #F0E8FF); }
.sec-exp  .sec-card-img { background: linear-gradient(135deg, #D8FFE8, #C0F5D8, #E0FFF0); }
.sec-card-body { padding: 1rem 1.2rem; text-align: center; }
.sec-card-title { font-family: 'Fredoka One', cursive; font-size: 1.1rem; color: var(--texto); margin-bottom: 0.4rem; letter-spacing: 0.5px; }
.sec-card-desc { font-size: 0.8rem; color: var(--texto-light); line-height: 1.5; margin-bottom: 0.6rem; }

/* ── PAGE HEADERS (sección pages) ───────────────────────────────────────── */
.page-header { text-align: center; padding: 3rem 0 2rem; background: var(--fondo-claro); }
.page-header h1 { font-family: 'Fredoka One', cursive; font-size: clamp(2rem,5vw,3rem); }
.page-header .script-sub { font-family: 'Dancing Script',cursive; font-weight:700; color:var(--rosa); font-size:1.4rem; display:block; margin:0.3rem 0 0.8rem; }
.page-header p { font-size:0.9rem; color:var(--texto-light); max-width:600px; margin:0 auto; }
.page-header-desc { font-size:0.9rem; color:var(--texto-light); max-width:600px; margin:0.6rem auto 0; line-height:1.6; }
.page-header-desc p { margin:0 0 0.4rem; }

/* ── Wave separators ────────────────────────────────────────────────────── */
.wave-sep { line-height: 0; overflow: hidden; }
.wave-sep svg { display: block; width: 100%; }
.zigzag-top, .zigzag-bottom { overflow: hidden; line-height: 0; }

/* ── EDUCACIÓN page ─────────────────────────────────────────────────────── */
.datos-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 1.2rem; }
.dato-card {
  border-radius: var(--radio); overflow: hidden; padding: 1.5rem;
  box-shadow: var(--sombra-sm); position: relative; min-height: 160px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: var(--trans);
}
.dato-card:hover { transform: translateY(-4px); box-shadow: var(--sombra-md); }
.dato-card h3 { font-family:'Fredoka One',cursive; font-size:1rem; margin-bottom:0.5rem; }
.dato-card p { font-size:0.82rem; line-height:1.55; }
.dato-card .dato-label { font-family:'Fredoka One',cursive; font-size:0.75rem; letter-spacing:1px; text-transform:uppercase; margin-bottom:0.5rem; opacity:0.7; }
.dc-amarillo { background:#F7D840; color:#3A2A00; }
.dc-morado   { background:var(--morado); color:white; }
.dc-verde    { background:var(--verde-btn); color:white; }
.dc-rosa     { background:var(--rosa); color:white; }
.dc-celeste  { background:var(--celeste); color:white; }
.dc-naranja  { background:var(--naranja); color:white; }
.dc-claro    { background:white; color:var(--texto); border:2px solid var(--borde); }
.dato-card-img { background:#F0F0F0; border-radius:var(--radio-sm); overflow:hidden; min-height:120px; display:flex; align-items:center; justify-content:center; }
.dato-card-img img { width:100%; height:160px; object-fit:cover; }

.videos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; }
.video-card { background:white; border-radius:var(--radio); overflow:hidden; box-shadow:var(--sombra-sm); transition:var(--trans); }
.video-card:hover { transform:translateY(-4px); box-shadow:var(--sombra-md); }
.video-thumb { width:100%; height:180px; object-fit:cover; background:linear-gradient(135deg,var(--celeste-claro),var(--menta-claro)); display:flex; align-items:center; justify-content:center; font-size:3.5rem; }
.video-thumb img { width:100%; height:100%; object-fit:cover; }
.video-body { padding:1rem 1.2rem; }
.video-body h4 { font-size:0.9rem; margin-bottom:0.5rem; }

/* ── ENTRETENIMIENTO ─────────────────────────────────────────────────────── */
.ent-hero-img {
  display:flex; justify-content:center; padding:2rem 0 1.5rem;
}
.ent-hero-img img { max-height:250px; border-radius:var(--radio-lg); }
.ent-hero-img .ent-emoji { font-size:8rem; animation:float 3s ease-in-out infinite; }

.ent-section { padding:4rem 0; }
.ent-section-title {
  font-family:'Fredoka One',cursive;
  font-size:clamp(1.8rem,4vw,2.8rem);
  text-align:center; margin-bottom:1.5rem;
}

/* Horóscopos */
.horo-intro { background:var(--fondo-claro); padding:2rem; border-radius:var(--radio); margin-bottom:2rem; }
.horo-intro .fecha-line { font-size:0.82rem; color:var(--texto-light); margin-bottom:0.3rem; }
.horo-intro .autor-line { font-size:0.82rem; color:var(--texto-light); margin-bottom:1rem; display:flex; gap:1.5rem; }
.horo-intro p { font-size:0.9rem; line-height:1.7; }
.horo-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:1.5rem; }
.horo-card {
  background:white; border-radius:var(--radio-lg); overflow:hidden;
  box-shadow:var(--sombra-sm); transition:var(--trans);
  display:flex; flex-direction:column;
}
.horo-card:hover { transform:translateY(-5px); box-shadow:var(--sombra-md); }
.horo-card-img {
  height:160px; display:flex; align-items:center; justify-content:center;
  font-size:5rem; position:relative; overflow:hidden;
}
.horo-card-img img { width:100%; height:100%; object-fit:cover; position:absolute; }
.horo-card-img .sign-emoji { position:relative; z-index:1; }
.horo-sign-aries       .horo-card-img { background:linear-gradient(135deg,#FFD0C0,#FFB8A0); }
.horo-sign-tauro       .horo-card-img { background:linear-gradient(135deg,#D0FFD0,#A0F0A0); }
.horo-sign-geminis     .horo-card-img { background:linear-gradient(135deg,#FFFFD0,#FFEE90); }
.horo-sign-cancer      .horo-card-img { background:linear-gradient(135deg,#D0E8FF,#B0D0F8); }
.horo-sign-leo         .horo-card-img { background:linear-gradient(135deg,#FFE890,#FFCC40); }
.horo-sign-virgo       .horo-card-img { background:linear-gradient(135deg,#D8FFE8,#B0F0C8); }
.horo-sign-libra       .horo-card-img { background:linear-gradient(135deg,#F0D8FF,#E0B8FF); }
.horo-sign-escorpio    .horo-card-img { background:linear-gradient(135deg,#FFD0D0,#FFB0B0); }
.horo-sign-sagitario   .horo-card-img { background:linear-gradient(135deg,#D0EEFF,#90CCFF); }
.horo-sign-capricornio .horo-card-img { background:linear-gradient(135deg,#E8E8D0,#D0D0A0); }
.horo-sign-acuario     .horo-card-img { background:linear-gradient(135deg,#C8F0FF,#90DCFF); }
.horo-sign-piscis      .horo-card-img { background:linear-gradient(135deg,#D8D0FF,#B8A8FF); }
.horo-card-body { padding:1.2rem; flex:1; }
.horo-card-name { font-family:'Fredoka One',cursive; font-size:1.1rem; margin-bottom:0.5rem; }
.horo-card-date { font-size:0.72rem; color:var(--texto-light); margin-bottom:0.5rem; }
.horo-card-pred { font-size:0.82rem; line-height:1.55; color:var(--texto); margin-bottom:0.6rem; }
.horo-mensaje { background:var(--fondo); padding:0.6rem; border-radius:var(--radio-sm); font-size:0.78rem; }
.horo-mensaje strong { color:var(--morado); }

/* Apuntes accordion */
.apuntes-accordion { max-width:700px; margin:0 auto; }
.apunte-item {
  background:white; border-radius:var(--radio); margin-bottom:0.8rem;
  box-shadow:var(--sombra-sm); overflow:hidden;
}
.apunte-item summary {
  padding:1rem 1.5rem; cursor:pointer; font-size:0.95rem; font-weight:600;
  display:flex; justify-content:space-between; align-items:center;
  list-style:none; color:var(--texto);
  user-select:none;
}
.apunte-item summary::-webkit-details-marker { display:none; }
.apunte-item summary::after { content:'▼'; font-size:0.75rem; color:var(--naranja); transition:var(--trans); }
.apunte-item[open] summary::after { transform:rotate(180deg); }
.apunte-item[open] summary { background:var(--naranja-claro); }
.apunte-body {
  padding:1rem 1.5rem 1.2rem; border-top:1px solid var(--borde);
  font-size:0.88rem; line-height:1.65; color:var(--texto-light);
  display:grid; gap:1rem;
}
.apunte-body p { margin:0; }
.apunte-num {
  width:28px; height:28px; border-radius:50%; background:var(--naranja);
  color:white; font-weight:700; font-size:0.85rem;
  display:inline-flex; align-items:center; justify-content:center;
  margin-right:0.5rem; flex-shrink:0;
}
.apunte-foto-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:1rem; margin-top:1rem; }
.apunte-foto { border-radius:var(--radio-sm); overflow:hidden; }
.apunte-foto img { width:100%; height:160px; object-fit:cover; }

/* Calendario table */
.cal-table-wrap { overflow-x:auto; }
.cal-table {
  width:100%; border-collapse:collapse; background:white;
  border-radius:var(--radio); overflow:hidden; box-shadow:var(--sombra-sm);
  font-size:0.85rem;
}
.cal-table thead th {
  background:var(--morado); color:white;
  padding:0.8rem 0.5rem; font-family:'Fredoka One',cursive;
  font-weight:400; font-size:1rem; text-align:center;
}
.cal-table th.dia-header {
  background:var(--morado-claro); color:var(--morado);
  font-family:'Poppins',sans-serif; font-weight:700;
  font-size:0.8rem; text-transform:uppercase; padding:0.6rem;
}
.cal-table td {
  border:1px solid #EEE; vertical-align:top; height:80px;
  padding:0.4rem 0.5rem; width:calc(100%/7);
}
.cal-td-num { font-weight:700; font-size:0.82rem; color:var(--texto-light); margin-bottom:0.3rem; }
.cal-event {
  background:var(--rosa-claro); color:var(--rosa); border-radius:4px;
  padding:2px 5px; font-size:0.7rem; margin-bottom:2px;
  line-height:1.3; font-weight:600;
}
.cal-event.tipo-escolar   { background:var(--celeste-claro); color:var(--celeste); }
.cal-event.tipo-examen    { background:#FFE0D0; color:#D44400; }
.cal-event.tipo-festivo   { background:var(--amarillo-claro); color:#8A6600; }
.cal-event.tipo-periodo   { background:var(--menta-claro); color:var(--menta); }
.cal-table td.today { background:var(--amarillo-claro); }
.cal-nav { display:flex; justify-content:space-between; align-items:center; margin-bottom:1.5rem; }
.cal-nav h3 { font-family:'Fredoka One',cursive; font-size:1.5rem; }
.cal-nav-btn { background:var(--morado-claro); border:none; cursor:pointer; padding:0.5rem 1.2rem; border-radius:var(--radio-pill); font-size:0.9rem; font-weight:600; color:var(--morado); transition:var(--trans); }
.cal-nav-btn:hover { background:var(--morado); color:white; }

/* Peinados */
.peinados-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:2rem; }
.peinado-card { background:white; border-radius:var(--radio-lg); overflow:hidden; box-shadow:var(--sombra-sm); transition:var(--trans); }
.peinado-card:hover { transform:translateY(-5px); box-shadow:var(--sombra-md); }
.peinado-img { width:100%; height:220px; object-fit:cover; background:linear-gradient(135deg,var(--rosa-claro),var(--celeste-claro)); display:flex; align-items:center; justify-content:center; font-size:4rem; }
.peinado-img img { width:100%; height:100%; object-fit:cover; }
.peinado-body { padding:1rem 1.2rem; }
.peinado-title { font-family:'Dancing Script',cursive; font-weight:700; font-size:1.2rem; color:var(--morado); margin-bottom:0.4rem; }
.peinado-dif { display:inline-block; padding:0.2rem 0.7rem; border-radius:var(--radio-pill); font-size:0.72rem; font-weight:700; margin-bottom:0.5rem; }
.dif-facil  { background:var(--menta-claro); color:var(--menta); }
.dif-medio  { background:var(--celeste-claro); color:var(--celeste); }
.dif-dificil{ background:var(--rosa-claro); color:var(--rosa); }
.peinado-desc { font-size:0.82rem; color:var(--texto-light); line-height:1.55; }

/* ── NOTICIAS ────────────────────────────────────────────────────────────── */
.noticias-banner {
  background:linear-gradient(135deg,#2D1A3A,#4A2060);
  border-radius:var(--radio-lg); overflow:hidden;
  min-height:260px; display:flex; align-items:center; justify-content:center;
  position:relative; margin-bottom:3rem;
  box-shadow:var(--sombra-md);
}
.noticias-banner img { width:100%; height:260px; object-fit:cover; }
.noticias-banner .banner-emoji { font-size:7rem; animation:float 3s ease-in-out infinite; }
.breaking-badge {
  position:absolute; top:1rem; left:1.2rem;
  background:#22DD22; color:black; font-family:'Fredoka One',cursive;
  font-size:1.1rem; padding:0.3rem 1rem; border-radius:4px;
  animation:pulse 1.5s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.6} }
.noticias-scrapbook { margin-top:2rem; }
.scrap-title { font-family:'Fredoka One',cursive; font-size:clamp(1.5rem,3vw,2.2rem); color:var(--naranja); margin-bottom:2rem; text-align:center; }
.scrap-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:2rem; }
.scrap-card { background:white; border-radius:var(--radio-lg); overflow:hidden; box-shadow:var(--sombra-sm); transition:var(--trans); }
.scrap-card:hover { transform:translateY(-5px); box-shadow:var(--sombra-md); }
.scrap-img { width:100%; height:200px; object-fit:cover; background:linear-gradient(135deg,var(--morado-claro),var(--celeste-claro)); display:flex; align-items:center; justify-content:center; font-size:3.5rem; }
.scrap-img img { width:100%; height:100%; object-fit:cover; }
.scrap-body { padding:1.2rem; }
.scrap-date { font-size:0.72rem; color:var(--texto-light); margin-bottom:0.3rem; }
.scrap-title-card { font-family:'Dancing Script',cursive; font-weight:700; font-size:1.3rem; color:var(--morado); margin-bottom:0.4rem; line-height:1.3; }
.scrap-sub { font-size:0.78rem; color:var(--texto-light); font-style:italic; margin-bottom:0.5rem; }
.scrap-text { font-size:0.83rem; color:var(--texto); line-height:1.6; }
.scrap-credit { font-size:0.72rem; color:var(--texto-light); margin-top:0.6rem; font-style:italic; }
.noticia-destacada {
  display:grid; grid-template-columns:1fr 1fr; border-radius:var(--radio-lg);
  overflow:hidden; box-shadow:var(--sombra-md); min-height:320px; margin-bottom:2.5rem;
  background:white;
}
.noticia-destacada img { width:100%; height:100%; object-fit:cover; }
.noticia-destacada-body { padding:2rem; display:flex; flex-direction:column; justify-content:center; }

/* ── TALENTOS ────────────────────────────────────────────────────────────── */
.talentos-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:2rem; }
.talento-card { background:white; border-radius:var(--radio-lg); overflow:hidden; box-shadow:var(--sombra-sm); transition:var(--trans); position:relative; }
.talento-card:hover { transform:translateY(-6px); box-shadow:var(--sombra-md); }
.talento-img { width:100%; height:230px; object-fit:cover; background:linear-gradient(135deg,var(--rosa-claro),var(--morado-claro)); display:flex; align-items:center; justify-content:center; font-size:4rem; }
.talento-img img { width:100%; height:100%; object-fit:cover; }
.talento-body { padding:1.2rem; }
.talento-name { font-family:'Fredoka One',cursive; font-size:1.05rem; margin-bottom:0.4rem; }
.talento-desc { font-size:0.83rem; color:var(--texto-light); line-height:1.55; }
.talento-badge { position:absolute; top:10px; right:10px; background:var(--amarillo); color:#3A2A00; padding:0.2rem 0.7rem; border-radius:var(--radio-pill); font-size:0.72rem; font-weight:700; }
.talento-video { display:inline-flex; align-items:center; gap:0.3rem; margin-top:0.7rem; padding:0.3rem 0.9rem; background:var(--rosa-claro); color:var(--rosa); border-radius:var(--radio-pill); font-size:0.78rem; font-weight:600; transition:var(--trans); }
.talento-video:hover { background:var(--rosa); color:white; }

/* ── EXPERIENCIAS ────────────────────────────────────────────────────────── */
.exp-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:2rem; }
.exp-card { background:white; border-radius:var(--radio-lg); overflow:hidden; box-shadow:var(--sombra-sm); transition:var(--trans); }
.exp-card:hover { transform:translateY(-5px); box-shadow:var(--sombra-md); }
.exp-img { width:100%; height:200px; object-fit:cover; background:linear-gradient(135deg,var(--celeste-claro),var(--menta-claro)); display:flex; align-items:center; justify-content:center; font-size:3.5rem; }
.exp-img img { width:100%; height:100%; object-fit:cover; }
.exp-body { padding:1.2rem; }
.exp-lugar { font-size:0.78rem; color:var(--texto-light); margin-bottom:0.3rem; }
.exp-title { font-family:'Fredoka One',cursive; font-size:1rem; margin-bottom:0.4rem; }
.exp-desc { font-size:0.83rem; color:var(--texto); line-height:1.55; }
.exp-date { font-size:0.72rem; color:var(--texto-light); margin-top:0.6rem; }

/* ── Contador chips (home) ───────────────────────────────────────────────── */
.contadores { display:flex; justify-content:center; gap:2rem; flex-wrap:wrap; padding:3rem 0; background:var(--fondo-claro); }
.contador-item { text-align:center; }
.contador-num { font-family:'Fredoka One',cursive; font-size:2.8rem; color:var(--naranja); line-height:1; }
.contador-label { font-size:0.85rem; color:var(--texto-light); margin-top:0.2rem; }

/* ── Noticias recientes (home) ───────────────────────────────────────────── */
.news-row { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:1.5rem; }
.news-mini { background:white; border-radius:var(--radio); overflow:hidden; box-shadow:var(--sombra-sm); transition:var(--trans); }
.news-mini:hover { transform:translateY(-4px); box-shadow:var(--sombra-md); }
.news-mini img { width:100%; height:150px; object-fit:cover; }
.news-mini .news-no-img { width:100%; height:150px; background:linear-gradient(135deg,var(--morado-claro),var(--celeste-claro)); display:flex; align-items:center; justify-content:center; font-size:3rem; }
.news-mini-body { padding:0.9rem 1rem; }
.news-mini-date { font-size:0.72rem; color:var(--texto-light); }
.news-mini-title { font-family:'Fredoka One',cursive; font-size:0.95rem; margin:0.2rem 0 0.4rem; }
.news-mini-text { font-size:0.78rem; color:var(--texto-light); }

/* ── Empty state ─────────────────────────────────────────────────────────── */
.empty-state { text-align:center; padding:4rem 2rem; color:var(--texto-light); }
.empty-icon { font-size:4rem; margin-bottom:1rem; }
.empty-state h3 { font-family:'Fredoka One',cursive; color:var(--texto); font-size:1.4rem; margin-bottom:0.5rem; }

/* ── Alerts ───────────────────────────────────────────────────────────────── */
.messages-container { position:fixed; top:88px; right:1.5rem; z-index:2000; display:flex; flex-direction:column; gap:0.5rem; }
.alert { padding:0.9rem 1.4rem; border-radius:var(--radio-sm); font-size:0.88rem; font-weight:500; display:flex; align-items:center; gap:0.6rem; box-shadow:var(--sombra-md); animation:slideIn 0.3s ease; min-width:280px; max-width:400px; }
@keyframes slideIn { from{transform:translateX(100%);opacity:0} to{transform:translateX(0);opacity:1} }
.alert-success { background:var(--menta-claro); color:#2d8a60; border-left:4px solid var(--menta); }
.alert-error   { background:#FFD0D0; color:#c0392b; border-left:4px solid #FFB3B3; }
.alert-info    { background:var(--celeste-claro); color:#3a6ea8; border-left:4px solid var(--celeste); }
.alert-close   { margin-left:auto; cursor:pointer; font-size:1.1rem; opacity:0.6; background:none; border:none; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer { background: linear-gradient(135deg, var(--nav-dark), #3D2060); color:rgba(255,255,255,0.85); padding:3rem 0 1.5rem; margin-top:3rem; }
.footer-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:2rem; margin-bottom:2rem; }
.footer h4 { font-family:'Fredoka One',cursive; color:white; margin-bottom:1rem; font-size:1.1rem; font-weight:400; }
.footer p, .footer a { font-size:0.85rem; color:rgba(255,255,255,0.65); line-height:2; }
.footer a:hover { color:var(--amarillo); }
.footer-brand { font-family:'Dancing Script',cursive; font-size:2rem; color:var(--amarillo); margin-bottom:0.5rem; }
.footer-bottom { border-top:1px solid rgba(255,255,255,0.1); padding-top:1.2rem; text-align:center; font-size:0.78rem; color:rgba(255,255,255,0.4); }

/* ════════════════════════════════════════════════════════════════════════════
   PANEL DE ADMINISTRACIÓN
════════════════════════════════════════════════════════════════════════════ */
.panel-layout { display:flex; min-height:100vh; background:#F4F3F8; }
.panel-sidebar { width:260px; min-height:100vh; background:linear-gradient(180deg,#3D3D55 0%,#5A3A6A 100%); color:white; padding:1.5rem 0; flex-shrink:0; position:fixed; top:0; left:0; height:100%; overflow-y:auto; z-index:500; transition:transform 0.3s ease; }
.panel-sidebar-brand { padding:1rem 1.5rem 2rem; border-bottom:1px solid rgba(255,255,255,0.1); margin-bottom:1rem; }
.panel-sidebar-brand .brand-title { font-family:'Dancing Script',cursive; font-size:1.5rem; color:#FFB3C6; }
.panel-sidebar-brand .brand-sub { font-size:0.75rem; color:rgba(255,255,255,0.5); }
.sidebar-section { padding:0 1rem 1rem; }
.sidebar-section-title { font-size:0.65rem; font-weight:700; text-transform:uppercase; letter-spacing:1.5px; color:rgba(255,255,255,0.4); padding:0.5rem 0.5rem 0.3rem; }
.sidebar-link { display:flex; align-items:center; gap:0.7rem; padding:0.65rem 0.8rem; border-radius:10px; font-size:0.85rem; color:rgba(255,255,255,0.75); transition:var(--trans); text-decoration:none; }
.sidebar-link:hover, .sidebar-link.active { background:rgba(255,255,255,0.12); color:white; }
.sidebar-link .icon { width:20px; text-align:center; }
.panel-main { margin-left:260px; flex:1; padding:2rem; min-height:100vh; min-width:0; }
.panel-topbar { display:flex; justify-content:space-between; align-items:center; margin-bottom:2rem; padding-bottom:1rem; border-bottom:1px solid rgba(0,0,0,0.07); }
.panel-topbar h1 { font-family:'Fredoka One',cursive; font-size:1.6rem; font-weight:400; }
.panel-topbar-user { display:flex; align-items:center; gap:0.8rem; font-size:0.85rem; color:#5A5A72; }
.user-avatar { width:36px; height:36px; border-radius:50%; background:linear-gradient(135deg,#FFB3C6,#C9B1E8); display:flex; align-items:center; justify-content:center; color:white; font-weight:700; font-size:0.9rem; }
.stats-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:1.2rem; margin-bottom:2rem; }
.stat-card { background:white; border-radius:var(--radio); padding:1.3rem; box-shadow:0 2px 8px rgba(0,0,0,0.06); display:flex; flex-direction:column; gap:0.5rem; }
.stat-card .stat-icon { font-size:1.8rem; }
.stat-card .stat-num { font-family:'Fredoka One',cursive; font-size:1.8rem; color:#3D3D55; line-height:1; font-weight:400; }
.stat-card .stat-label { font-size:0.78rem; color:#8A8AA0; }
.panel-table-wrap { background:white; border-radius:var(--radio); box-shadow:0 2px 8px rgba(0,0,0,0.06); overflow:hidden; }
.panel-table-header { display:flex; justify-content:space-between; align-items:center; padding:1.2rem 1.5rem; border-bottom:1px solid rgba(0,0,0,0.07); }
.panel-table-header h2 { font-family:'Fredoka One',cursive; font-size:1.1rem; font-weight:400; }
table.ptable { width:100%; border-collapse:collapse; }
table.ptable th { background:#F8F9FA; padding:0.8rem 1.2rem; font-size:0.75rem; font-weight:700; text-align:left; color:#8A8AA0; text-transform:uppercase; letter-spacing:0.5px; }
table.ptable td { padding:0.9rem 1.2rem; border-bottom:1px solid rgba(0,0,0,0.05); font-size:0.85rem; vertical-align:middle; }
table.ptable tr:last-child td { border-bottom:none; }
table.ptable tr:hover td { background:#FAFAFA; }
.table-img { width:44px; height:44px; border-radius:10px; object-fit:cover; }
.table-actions { display:flex; gap:0.5rem; }
.badge { display:inline-block; padding:0.2rem 0.65rem; border-radius:var(--radio-pill); font-size:0.72rem; font-weight:600; }
.badge-on  { background:#D4F5E9; color:#2d8a60; }
.badge-off { background:#FFD0D0; color:#c0392b; }
.panel-form-wrap { background:white; border-radius:var(--radio); box-shadow:0 2px 8px rgba(0,0,0,0.06); width:100%; }
.panel-form-header { padding:1.4rem 2rem; border-bottom:1px solid rgba(0,0,0,0.07); display:flex; align-items:center; gap:1rem; }
.panel-form-header h2 { font-family:'Fredoka One',cursive; font-size:1.2rem; font-weight:400; }
.panel-form-body { padding:2rem; }
/* Two-column auto layout */
.pform-grid { display:grid; grid-template-columns:1fr 300px; gap:2rem; align-items:start; }
.pform-side { background:#faf7ff; border:1.5px solid #ede7f6; border-radius:14px; padding:1.4rem; display:flex; flex-direction:column; gap:0; }
.pform-side .form-group { margin-bottom:1.2rem; }
.pform-side .form-group:last-child { margin-bottom:0; }
.pform-checks { display:flex; flex-direction:column; gap:0.6rem; margin-top:0.4rem; }
@media(max-width:760px){ .pform-grid { grid-template-columns:1fr; } }
/* Config tabs */
.cfg-tabs { display:flex; gap:0; border-bottom:2px solid #ede7f6; padding:0 1.5rem; background:#faf7ff; border-radius:var(--radio) var(--radio) 0 0; overflow-x:auto; }
.cfg-tab-btn { background:none; border:none; border-bottom:3px solid transparent; margin-bottom:-2px; padding:1rem 1.4rem; font-family:'Poppins',sans-serif; font-size:0.85rem; font-weight:600; color:var(--texto-light); cursor:pointer; white-space:nowrap; transition:color .2s, border-color .2s; }
.cfg-tab-btn:hover { color:#7a5aaa; }
.cfg-tab-btn.active { color:#9B78C8; border-bottom-color:#9B78C8; }
.cfg-tab-pane { display:none; padding:2rem; }
.cfg-tab-pane.active { display:block; }
.cfg-pane-grid { display:grid; grid-template-columns:1fr 1fr; gap:2rem; align-items:start; }
@media(max-width:640px){ .cfg-pane-grid { grid-template-columns:1fr; } }
.cfg-secciones-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:1.2rem; }
.cfg-sec-card { background:#faf7ff; border:1.5px solid #ede7f6; border-radius:12px; padding:1.2rem; }
.cfg-sec-card-head { font-family:'Fredoka One',cursive; font-size:1rem; color:#7a5aaa; margin-bottom:1rem; padding-bottom:0.6rem; border-bottom:1px solid #ede7f6; }
/* Sub-tabs secciones */
.sec-sub-tabs { display:flex; flex-wrap:wrap; gap:0.5rem; margin-bottom:1.5rem; }
.sec-sub-btn { background:#f0ebfa; border:1.5px solid #ddd6f5; color:#7a5aaa; border-radius:8px; padding:0.45rem 1rem; font-size:0.82rem; font-weight:600; cursor:pointer; transition:var(--trans); }
.sec-sub-btn:hover { background:#e4dbf5; }
.sec-sub-btn.active { background:linear-gradient(135deg,#9B78C8,#C07BAF); color:white; border-color:transparent; }
.sec-sub-pane { display:none; }
.sec-sub-pane.active { display:block; }
/* ── Bloque de permisos en form usuario ── */
.permisos-block { margin:0 2rem 1.5rem; padding:1.4rem; background:#faf7ff; border:1.5px solid #ede7f6; border-radius:14px; }
.permisos-block-title { font-family:'Fredoka One',cursive; font-size:1rem; color:#7a5aaa; margin-bottom:0.4rem; }
.permisos-block-hint { font-size:0.78rem; color:var(--texto-light); margin-bottom:1.1rem; }
.permisos-grid { display:grid; grid-template-columns:1fr 1fr; gap:1.5rem; }
@media(max-width:600px){ .permisos-grid { grid-template-columns:1fr; } }
.permisos-col-label { font-size:0.72rem; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:#aaa; margin-bottom:.7rem; }
.perm-check { display:flex; align-items:center; gap:.6rem; padding:.45rem .6rem; border-radius:8px; cursor:pointer; transition:background .15s; margin-bottom:.2rem; }
.perm-check:hover { background:#f0ebfa; }
.perm-check input[type="checkbox"] { width:16px; height:16px; accent-color:#9B78C8; cursor:pointer; flex-shrink:0; }
.perm-check span { font-size:.85rem; font-weight:500; color:#3D3D55; }
/* Tabla de permisos */
.permisos-table { width:100%; border-collapse:collapse; font-size:.85rem; }
.permisos-table thead tr { background:linear-gradient(135deg,#9B78C8,#C07BAF); color:white; }
.permisos-table th { padding:.6rem 1rem; font-weight:600; text-align:center; white-space:nowrap; }
.permisos-table th:first-child { text-align:left; }
.permisos-table tbody tr { border-bottom:1px solid #f0ebfa; transition:background .12s; }
.permisos-table tbody tr:hover { background:#faf7ff; }
.permisos-seccion { padding:.55rem 1rem; font-weight:600; color:#3D3D55; white-space:nowrap; }
.permisos-check { text-align:center; padding:.4rem; }
.permisos-check input[type="checkbox"] { width:17px; height:17px; accent-color:#9B78C8; cursor:pointer; }
.form-group { margin-bottom:1.5rem; }
.form-group label { display:block; font-size:0.85rem; font-weight:600; margin-bottom:0.5rem; color:#3D3D55; }
.form-group label .req { color:#E879A0; }
.form-input, .form-textarea, .form-select { width:100%; padding:0.75rem 1rem; border:1.5px solid rgba(0,0,0,0.1); border-radius:var(--radio-sm); font-size:0.9rem; color:#3D3D55; background:white; transition:var(--trans); font-family:'Poppins',sans-serif; }
.form-textarea { resize:vertical; min-height:100px; }
.form-input:focus, .form-textarea:focus, .form-select:focus { outline:none; border-color:#9966CC; box-shadow:0 0 0 3px rgba(153,102,204,0.15); }
/* ── Upload zone ── */
.form-file { display: none; }
.upload-wrap {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 1rem;
  align-items: start;
}
.upload-zone {
  position: relative;
  min-height: 120px;
  border: 2px dashed #c9b8e8;
  border-radius: 14px;
  background: #faf7ff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  overflow: hidden;
  padding: 1.2rem;
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: #9B78C8;
  background: #f0eaff;
}
.upload-zone-icon { font-size: 2rem; line-height: 1; pointer-events: none; }
.upload-zone-text { font-size: 0.85rem; font-weight: 600; color: #7a5aaa; pointer-events: none; text-align: center; }
.upload-zone-hint { font-size: 0.72rem; color: #bbb; pointer-events: none; }
.upload-zone-btn {
  margin-top: 0.4rem;
  background: #9B78C8;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 5px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  pointer-events: none;
  font-family: 'Poppins', sans-serif;
}
/* Preview panel */
.upload-preview {
  width: 180px;
  height: 180px;
  border-radius: 12px;
  border: 2px dashed #ddd;
  background: #f5f5f5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
.upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.upload-preview .preview-empty {
  font-size: 2.5rem;
  color: #ccc;
  pointer-events: none;
}
.upload-preview .preview-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,0.5);
  color: white;
  font-size: 0.65rem;
  text-align: center;
  padding: 3px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.form-check { width:18px; height:18px; accent-color:#9966CC; cursor:pointer; }
.check-row { display:flex; align-items:center; gap:0.5rem; }
.form-actions { display:flex; gap:1rem; padding:1.5rem 2rem; border-top:1px solid rgba(0,0,0,0.07); }
.errorlist { list-style:none; color:#c0392b; font-size:0.8rem; margin-top:0.3rem; }
.confirm-delete-wrap { background:white; border-radius:var(--radio-lg); box-shadow:var(--sombra-md); max-width:500px; margin:4rem auto; padding:3rem; text-align:center; }
.confirm-delete-icon { font-size:3.5rem; margin-bottom:1rem; }
.audit-row td:first-child { font-size:0.75rem; color:#8A8AA0; white-space:nowrap; }
.audit-pagination { display:flex; align-items:center; justify-content:center; gap:0.3rem; padding:1rem 1.5rem; flex-wrap:wrap; }
.audit-page-btn { display:inline-flex; align-items:center; justify-content:center; min-width:32px; height:32px; padding:0 0.5rem; border:1.5px solid #ede7f6; border-radius:8px; background:white; color:#7a5aaa; font-size:0.82rem; font-weight:600; text-decoration:none; transition:var(--trans); }
.audit-page-btn:hover:not(.disabled):not(.current) { background:#f0ebfa; border-color:#9B78C8; color:#9B78C8; }
.audit-page-btn.current { background:linear-gradient(135deg,#9B78C8,#C07BAF); color:white; border-color:transparent; }
.audit-page-btn.disabled { color:#ccc; border-color:#f0f0f0; background:#fafafa; cursor:default; }
.audit-accion { font-size:0.75rem; font-weight:700; padding:0.2rem 0.6rem; border-radius:var(--radio-pill); }
.audit-crear    { background:#D4F5E9; color:#2d8a60; }
.audit-editar   { background:var(--celeste-claro); color:#3a6ea8; }
.audit-eliminar { background:#FFD0D0; color:#c0392b; }
.audit-login    { background:var(--morado-claro); color:var(--morado); }
.audit-logout   { background:#F0F0F0; color:#5A5A72; }
.btn-outline { background:transparent; border:2px solid var(--verde-btn); color:var(--verde-btn); }

/* ── DataTables overrides ────────────────────────────────────────────────── */
div.dt-container { font-family:'Poppins',sans-serif; font-size:0.85rem; }
div.dt-container .dt-layout-row { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:0.6rem; padding:0.9rem 1.2rem; }
div.dt-container .dt-layout-row:first-child { border-bottom:1px solid rgba(0,0,0,0.06); background:#faf7ff; border-radius:0; }
div.dt-container .dt-layout-row:last-child  { border-top:1px solid rgba(0,0,0,0.06); background:#faf7ff; }
/* Search input */
div.dt-container .dt-search input {
  padding:0.45rem 0.85rem;
  border:1.5px solid rgba(0,0,0,0.1);
  border-radius:var(--radio-pill);
  font-family:'Poppins',sans-serif;
  font-size:0.82rem;
  color:#3D3D55;
  background:white;
  transition:var(--trans);
  outline:none;
}
div.dt-container .dt-search input:focus { border-color:#9966CC; box-shadow:0 0 0 3px rgba(153,102,204,0.15); }
div.dt-container .dt-search label { display:flex; align-items:center; gap:0.5rem; color:#8A8AA0; }
/* Length selector */
div.dt-container .dt-length label { display:flex; align-items:center; gap:0.5rem; color:#8A8AA0; }
div.dt-container .dt-length select {
  padding:0.4rem 0.7rem;
  border:1.5px solid rgba(0,0,0,0.1);
  border-radius:var(--radio-sm);
  font-family:'Poppins',sans-serif;
  font-size:0.82rem;
  color:#3D3D55;
  background:white;
  cursor:pointer;
  outline:none;
}
div.dt-container .dt-length select:focus { border-color:#9966CC; }
/* Info text */
div.dt-container .dt-info { color:#8A8AA0; font-size:0.80rem; }
/* Pagination */
div.dt-container .dt-paging .dt-paging-button {
  display:inline-flex; align-items:center; justify-content:center;
  min-width:30px; height:30px; padding:0 0.5rem;
  border:1.5px solid #ede7f6;
  border-radius:8px;
  background:white;
  color:#7a5aaa;
  font-size:0.82rem;
  font-weight:600;
  cursor:pointer;
  transition:var(--trans);
  margin:0 2px;
}
div.dt-container .dt-paging .dt-paging-button:hover:not(.disabled) { background:#f0ebfa; border-color:#9B78C8; color:#9B78C8; }
div.dt-container .dt-paging .dt-paging-button.current { background:linear-gradient(135deg,#9B78C8,#C07BAF); color:white; border-color:transparent; }
div.dt-container .dt-paging .dt-paging-button.disabled { color:#ccc; cursor:default; border-color:#f0f0f0; background:#fafafa; }
/* Column sort arrows */
table.ptable thead th.dt-orderable-asc,
table.ptable thead th.dt-orderable-desc { cursor:pointer; }
table.ptable thead th.dt-ordering-asc::after  { content:' ▲'; font-size:0.65rem; color:#9B78C8; }
table.ptable thead th.dt-ordering-desc::after { content:' ▼'; font-size:0.65rem; color:#9B78C8; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width:900px) {
  .mv-container { grid-template-columns:1fr; }
  .mv-photo { display:none; }
  .secciones-top { grid-template-columns:1fr 1fr; }
  .noticia-destacada { grid-template-columns:1fr; }
}
@media (max-width:768px) {
  .secciones-top { grid-template-columns:1fr 1fr; gap:1rem; }
  .secciones-bottom { grid-template-columns:1fr 1fr; gap:1rem; }
  .panel-sidebar { transform:translateX(-100%); }
  .panel-sidebar.open { transform:translateX(0); }
  .panel-main { margin-left:0; padding:1rem; }
  .stats-grid { grid-template-columns:repeat(2,1fr); }
  .horo-grid { grid-template-columns:1fr 1fr; }
}
@media (max-width:480px) {
  .secciones-top  { grid-template-columns:1fr; }
  .secciones-bottom{ grid-template-columns:1fr; }
  .horo-grid { grid-template-columns:1fr; }
  .container { padding:0 1rem; }
}
