@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Poppins:wght@500;600;700;800;900&display=swap');

:root {
  --vino: #7d002d;
  --vino-oscuro: #56001f;
  --vino-claro: #a42456;
  --vino-suave: #f6e9ee;
  --dorado: #c6a15b;
  --dorado-oscuro: #9c7a34;
  --dorado-suave: #f6efdf;
  --blanco: #ffffff;
  --gris-fondo: #f7f6f4;
  --gris-texto: #5b6470;
  --texto: #1f2937;
  --borde: #ece7e2;
  --sombra: 0 18px 45px rgba(64, 22, 40, 0.09);
  --sombra-suave: 0 10px 30px rgba(64, 22, 40, 0.07);
  --radio: 24px;
  --max: 1280px;

  --font-display: 'Poppins', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--texto);
  background: var(--blanco);
  line-height: 1.65;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.brand-title,
.main-nav a,
.nav-link-dropdown,
.nav-submenu a,
.nav-subitem-dropdown,
.nav-sub-submenu a,
.btn,
.section-tag,
.hero-kicker,
.footer-col h3 {
  font-family: var(--font-display);
}

a {
  text-decoration: none;
  color: inherit;
}

img,
video {
  display: block;
  max-width: 100%;
}

.container {
  width: min(92%, var(--max));
  margin: 0 auto;
}

/* ===== BARRA SUPERIOR ===== */
.top-strip {
  background: var(--vino-oscuro);
  color: #f8dbe4;
  font-size: 0.94rem;
  position: relative;
  z-index: 20;
}

.top-strip .container {
  width: min(94%, 1600px);
  max-width: 1600px;
}

/*
  ESTRUCTURA CORRECTA:
  - Fila 1: izquierda / escudo centrado / accesos derecha
  - Fila 2: hora centrada abajo
*/
.top-strip-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 1.5rem;
  row-gap: 0.18rem;
  padding: 0.55rem 0 0.45rem;
}

.top-strip-left {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.7rem;
  min-width: 0;
  white-space: nowrap;
}

.top-strip-center {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 58px;
  justify-self: center;
}

.top-strip-center::before {
  content: "";
  position: absolute;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background:
    radial-gradient(circle,
      rgba(255, 255, 255, 0.30) 0%,
      rgba(255, 220, 235, 0.16) 38%,
      rgba(255, 220, 235, 0.07) 58%,
      rgba(255, 220, 235, 0) 78%);
  filter: blur(6px);
  animation: haloEscudo 3.2s ease-in-out infinite;
}

.top-strip-shield {
  position: relative;
  z-index: 2;
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter:
    drop-shadow(0 0 7px rgba(255, 255, 255, 0.26))
    drop-shadow(0 0 18px rgba(255, 220, 235, 0.16));
  animation: escudoBrillo 3.2s ease-in-out infinite;
}

/* Permite separar la hora de los links sin tocar el HTML */
.top-strip-right {
  display: contents;
}

.top-clock,
#topClock {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f8dbe4;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  font-size: 0.9rem;
  transform: translateY(-2px);
}

.top-quick-links {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  line-height: 1;
  white-space: nowrap;
}

.top-quick-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.top-quick-links a:hover {
  opacity: 0.78;
  transform: translateY(-1px);
}

.top-quick-links i {
  font-size: 0.84rem;
}

.top-separator {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 700;
}

@keyframes escudoBrillo {
  0% {
    filter:
      drop-shadow(0 0 5px rgba(255, 255, 255, 0.18))
      drop-shadow(0 0 10px rgba(255, 220, 235, 0.10));
    transform: scale(1);
  }
  50% {
    filter:
      drop-shadow(0 0 10px rgba(255, 255, 255, 0.38))
      drop-shadow(0 0 22px rgba(255, 220, 235, 0.22));
    transform: scale(1.05);
  }
  100% {
    filter:
      drop-shadow(0 0 5px rgba(255, 255, 255, 0.18))
      drop-shadow(0 0 10px rgba(255, 220, 235, 0.10));
    transform: scale(1);
  }
}

@keyframes haloEscudo {
  0% {
    opacity: 0.75;
    transform: scale(0.95);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
  100% {
    opacity: 0.75;
    transform: scale(0.95);
  }
}






/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(125, 0, 45, 0.08);
  backdrop-filter: blur(12px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.1rem;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex-shrink: 0;
}

.brand-logo {
  width: 62px;
  height: 62px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.2;
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--vino-oscuro);
}

.brand-subtitle {
  font-size: 0.85rem;
  color: var(--gris-texto);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.main-nav > a,
.nav-link-dropdown {
  color: var(--vino-oscuro);
  font-weight: 700;
  font-size: 0.88rem;
}

.main-nav > a:hover,
.nav-link-dropdown:hover {
  color: var(--vino);
}

/* ===== DROPDOWN PREMIUM ===== */
.nav-item-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-link-dropdown {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
}

.nav-link-dropdown::after {
  content: "▾";
  font-size: 0.72rem;
  transform: translateY(-1px);
  transition: transform 0.25s ease;
  color: var(--vino);
}

.nav-item-dropdown:hover .nav-link-dropdown::after {
  transform: translateY(-1px) rotate(180deg);
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 16px);
  left: 0;
  min-width: 280px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(125, 0, 45, 0.08);
  border-radius: 18px;
  box-shadow: 0 20px 45px rgba(33, 10, 19, 0.10);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease;
  z-index: 1500;
}

.nav-submenu::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 24px;
  width: 14px;
  height: 14px;
  background: rgba(255, 255, 255, 0.96);
  border-left: 1px solid rgba(125, 0, 45, 0.08);
  border-top: 1px solid rgba(125, 0, 45, 0.08);
  transform: rotate(45deg);
}

.nav-submenu a {
  display: block;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  color: var(--vino-oscuro);
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.nav-submenu a:hover {
  background: rgba(125, 0, 45, 0.06);
  color: var(--vino);
  transform: translateX(3px);
}

.nav-item-dropdown:hover .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ===== NESTED SUBMENU (SUB-SUBMENU) ===== */
.nav-subitem-dropdown {
  position: relative;
}

.nav-sub-link-dropdown {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  cursor: default;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  color: var(--vino-oscuro);
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
  transition: background 0.22s ease, color 0.22s ease;
  text-decoration: none;
}

.nav-sub-link-dropdown:hover {
  background: rgba(125, 0, 45, 0.06);
  color: var(--vino);
}

.nav-sub-link-dropdown::after {
  content: "\25B8";
  font-size: 0.8rem;
  color: var(--vino);
  margin-left: 0.5rem;
}

.nav-sub-submenu {
  position: absolute;
  top: 0;
  left: calc(100% + 12px);
  min-width: 250px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(125, 0, 45, 0.08);
  border-radius: 18px;
  box-shadow: 0 20px 45px rgba(33, 10, 19, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease;
  z-index: 1600;
}

.nav-sub-submenu::before {
  content: "";
  position: absolute;
  top: 20px;
  left: -7px;
  width: 14px;
  height: 14px;
  background: rgba(255, 255, 255, 0.97);
  border-left: 1px solid rgba(125, 0, 45, 0.08);
  border-bottom: 1px solid rgba(125, 0, 45, 0.08);
  transform: rotate(45deg);
}

.nav-sub-submenu a {
  display: block;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  color: var(--vino-oscuro);
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
  text-decoration: none;
}

.nav-sub-submenu a:hover {
  background: rgba(125, 0, 45, 0.06);
  color: var(--vino);
  transform: translateX(3px);
}

.nav-subitem-dropdown:hover .nav-sub-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--vino);
  color: var(--blanco) !important;
  padding: 0.95rem 1.3rem;
  border-radius: 999px;
  transition: background 0.25s ease, transform 0.25s ease;
}

.nav-cta:hover {
  background: var(--vino-oscuro);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 52px;
  height: 52px;
  border: 1px solid var(--borde);
  border-radius: 14px;
  background: var(--blanco);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--vino-oscuro);
  display: block;
  transition: 0.25s ease;
}

/* ===== BOTONES ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  border: none;
  transition: 0.25s ease;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--vino) 0%, var(--vino-oscuro) 100%);
  color: var(--blanco);
  box-shadow: 0 12px 28px rgba(125, 0, 45, 0.22);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--vino-claro) 0%, var(--vino-oscuro) 100%);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(125, 0, 45, 0.30);
}

.btn-secondary {
  background: transparent;
  color: var(--blanco);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
}

.btn-full {
  width: 100%;
}

.btn-outline-pie {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  background: transparent;
  color: var(--vino);
  border: 1px solid rgba(125, 0, 45, 0.22);
  transition: 0.25s ease;
}

.btn-outline-pie:hover {
  background: rgba(125, 0, 45, 0.06);
  transform: translateY(-2px);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--blanco);
  background: #000;
  text-align: center;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(28, 10, 17, 0.82) 0%,
    rgba(28, 10, 17, 0.6) 45%,
    rgba(28, 10, 17, 0.34) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 6rem 0;
}

.hero-text {
  width: min(100%, 980px);
  margin: 0 auto;
  text-align: center;
}

.hero-kicker {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f3d7e0;
  margin-bottom: 1rem;
}

.hero-kicker::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: 0.9rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--dorado), #e8cd8f);
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  max-width: 16ch;
  margin-left: auto;
  margin-right: auto;
}

.hero-description {
  max-width: 760px;
  margin: 0 auto 2rem;
  color: #f6e8ee;
  font-size: 1.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ===== FONDO GENERAL ===== */
.content-background {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f8eff3 0%, #f7f1f4 45%, #ffffff 100%);
}

.content-background::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(255, 248, 251, 0.95) 0%,
      rgba(250, 242, 246, 0.96) 25%,
      rgba(250, 246, 248, 0.97) 55%,
      rgba(255, 255, 255, 0.995) 78%,
      rgba(255, 255, 255, 1) 100%
    ),
    url("img/escuela.jpg") 50% 45% / 115% auto no-repeat;
  z-index: 0;
  pointer-events: none;
}

.content-background > * {
  position: relative;
  z-index: 1;
}

/* ===== INTRO ===== */
.intro-block {
  position: relative;
  z-index: 5;
  margin-top: -70px;
  padding: 95px 0 90px;
  overflow: hidden;
  background: transparent;
}

.intro-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(125, 0, 45, 0.08), transparent 35%),
    radial-gradient(circle at bottom right, rgba(125, 0, 45, 0.06), transparent 35%);
  z-index: 0;
  pointer-events: none;
}

.intro-block .container {
  position: relative;
  z-index: 1;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.intro-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.97)),
    url("img/escuela.jpg") center 42% / cover no-repeat;
  border: 1px solid rgba(125, 0, 45, 0.08);
  border-radius: 30px;
  padding: 2.2rem;
  box-shadow: 0 20px 50px rgba(70, 15, 35, 0.10);
  backdrop-filter: blur(4px);
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.intro-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(70, 15, 35, 0.14);
}

.intro-card.small {
  padding: 2rem;
}

.intro-label {
  display: inline-block;
  margin-bottom: 0.9rem;
  color: var(--vino);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

.intro-card h2,
.section-head h2,
.text-side h2,
.contact-copy h2 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.12;
  color: var(--vino-oscuro);
  margin-bottom: 1rem;
}

.intro-card h3 {
  color: var(--vino-oscuro);
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.intro-card p,
.text-side p,
.news-body p,
.feature-card p,
.contact-copy p,
.contact-list,
.stat-card span {
  color: var(--gris-texto);
  font-size: 1.05rem;
}

/* ===== SECCIONES GENERALES ===== */
.cards-section {
  padding: 5rem 0;
  background: transparent;
}

.news-section {
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
  background: transparent;
}

.news-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.92) 0%,
      rgba(255, 255, 255, 0.95) 55%,
      rgba(255, 255, 255, 0.97) 100%
    ),
    url("img/escuela.jpg") center 45% / cover no-repeat;
  z-index: 0;
  pointer-events: none;
}

.news-section .container {
  position: relative;
  z-index: 1;
}

.contact-section {
  padding: 5rem 0;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(2px);
}

.stats-section {
  padding: 4.5rem 0 3.5rem;
  background: transparent;
}

.image-text-section {
  padding: 5rem 0;
  background: rgba(255, 255, 255, 0.70);
  backdrop-filter: blur(2px);
}

.nosotros-section {
  position: relative;
  overflow: hidden;
  background: transparent !important;
  backdrop-filter: none !important;
}

.nosotros-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.88) 0%,
      rgba(255, 255, 255, 0.92) 50%,
      rgba(255, 255, 255, 0.95) 100%
    ),
    url("img/escuela.jpg") center 45% / cover no-repeat;
  z-index: 0;
  pointer-events: none;
}

.nosotros-section .container {
  position: relative;
  z-index: 1;
}

.image-text-section .container {
  width: min(92%, 1320px);
}

.image-text-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.image-side {
  min-height: 560px;
  border-radius: 30px;
  box-shadow: var(--sombra);
}

.image-side-one {
  background:
    linear-gradient(rgba(125, 0, 45, 0.20), rgba(125, 0, 45, 0.14)),
    url("img/escuela.jpg") 50% 45% / cover no-repeat;
}

.section-tag {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: var(--vino);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.86rem;
}

.section-tag::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin-top: 0.6rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--dorado), var(--dorado-oscuro));
}

.section-head.center .section-tag::after {
  margin-left: auto;
  margin-right: auto;
}

.text-side {
  max-width: 640px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.text-side p {
  margin-bottom: 1rem;
}

.text-link {
  display: inline-flex;
  margin-top: 0.7rem;
  color: var(--vino);
  font-weight: 800;
  font-size: 1rem;
}

.section-head {
  margin-bottom: 2.2rem;
}

.section-head.center {
  text-align: center;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.section-head.center .section-tag {
  display: block;
  margin-bottom: 0.7rem;
}

.section-head.center h2 {
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}

/* ===== STATS ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  justify-content: center;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.stat-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(244, 230, 235, 0.92), rgba(244, 230, 235, 0.94)),
    url("img/escuela.jpg") center 42% / cover no-repeat;
  border: 1px solid rgba(125, 0, 45, 0.08);
  border-radius: 24px;
  padding: 2rem 1.6rem;
  text-align: center;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  backdrop-filter: blur(3px);
}

.stat-card strong {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 74px;
  margin-bottom: 1rem;
  font-size: 2rem;
  line-height: 1.15;
  color: var(--vino-oscuro);
}

.stat-card span {
  max-width: 28ch;
  margin: 0 auto;
  line-height: 1.7;
  text-align: center;
}

/* ===== FEATURES ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.feature-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.93), rgba(255, 255, 255, 0.95)),
    url("img/escuela.jpg") center 42% / cover no-repeat;
  border: 1px solid var(--borde);
  border-radius: 26px;
  padding: 1.9rem;
  box-shadow: var(--sombra-suave);
  height: 100%;
  backdrop-filter: blur(3px);
}

.feature-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--vino-suave);
  color: var(--vino-oscuro);
  font-weight: 800;
  margin-bottom: 1rem;
}

.feature-card h3 {
  color: var(--vino-oscuro);
  margin-bottom: 0.8rem;
  font-size: 1.28rem;
}

/* ===== NOTICIAS ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.news-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.96)),
    url("img/escuela.jpg") center 42% / cover no-repeat;
  border-radius: 26px;
  box-shadow: var(--sombra);
  height: 100%;
  backdrop-filter: blur(3px);
}

.news-image {
  height: 250px;
}

.news-image-1 {
  background:
    linear-gradient(rgba(125, 0, 45, 0.16), rgba(125, 0, 45, 0.16)),
    url("img/anuncios.jpg") center/cover no-repeat;
}

.news-image-2 {
  background:
    linear-gradient(rgba(125, 0, 45, 0.16), rgba(125, 0, 45, 0.16)),
    url("img/feria.jpg") center/cover no-repeat;
}

.news-image-3 {
  background:
    linear-gradient(rgba(125, 0, 45, 0.16), rgba(125, 0, 45, 0.16)),
    url("img/documentos.avif") center/cover no-repeat;
}

.news-body {
  position: relative;
  z-index: 1;
  padding: 1.6rem;
}

.news-body h3 {
  color: var(--vino-oscuro);
  margin-bottom: 0.8rem;
  font-size: 1.28rem;
}

/* ===== CONTACTO ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-copy {
  max-width: 640px;
}

.contact-list {
  list-style: none;
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.contact-box {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.96)),
    url("img/escuela.jpg") center 42% / cover no-repeat;
  border: 1px solid var(--borde);
  border-radius: 28px;
  padding: 2rem;
  box-shadow: var(--sombra);
  backdrop-filter: blur(3px);
}

.contact-box h3 {
  color: var(--vino-oscuro);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

form {
  display: grid;
  gap: 1rem;
}

input,
textarea {
  width: 100%;
  padding: 1rem 1.1rem;
  border-radius: 15px;
  border: 1px solid var(--borde);
  font: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--texto);
}

textarea {
  min-height: 160px;
  resize: vertical;
}

/* ===== FOOTER ===== */
.site-footer {
  position: relative;
  overflow: hidden;
  color: #f6d7e2;
  padding: 2.8rem 0 1.1rem;
  background:
    linear-gradient(
      180deg,
      rgba(89, 0, 31, 0.82) 0%,
      rgba(89, 0, 31, 0.90) 42%,
      rgba(89, 0, 31, 0.94) 100%
    ),
    url("img/escuela.jpg") center 60% / cover no-repeat;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(125, 0, 45, 0.08) 0%,
      rgba(125, 0, 45, 0.03) 50%,
      rgba(125, 0, 45, 0.08) 100%
    );
  pointer-events: none;
}

.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  pointer-events: none;
}

.footer-grid-new {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  align-items: start;
  padding: 1.2rem 0 2rem;
}

.footer-col {
  min-width: 0;
  text-align: left;
}

.footer-col h3 {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 3vw, 3.3rem);
  line-height: 1.05;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.footer-col h3::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin-top: 0.7rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--dorado), #e8cd8f);
}

.footer-col p {
  margin: 0;
  max-width: 320px;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #f3dbe3;
}

.footer-line {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 0.95rem;
  color: #ffffff;
  font-size: 1.02rem;
  line-height: 1.55;
  text-decoration: none;
}

.footer-line:last-child {
  margin-bottom: 0;
}

.footer-icon {
  width: 1.2rem;
  flex: 0 0 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f6d7e2;
  font-size: 0.95rem;
  transform: translateY(0.08rem);
}

.footer-social-icons {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: nowrap;
  margin-top: 0.55rem;
}

.social-circle {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  background: linear-gradient(180deg, rgba(233, 0, 110, 0.95), rgba(180, 0, 92, 0.95));
  color: #ffffff;
  font-size: 1.2rem;
  box-shadow:
    0 10px 24px rgba(60, 0, 28, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.social-circle:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow:
    0 14px 28px rgba(60, 0, 28, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  filter: brightness(1.05);
}

.social-circle i {
  line-height: 1;
}

.social-circle-lirmi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lirmi-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
  border-radius: 0;
  filter: none;
  transform: none;
}

.footer-premium-bottom {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.footer-premium-bottom p {
  margin: 0 auto;
  width: 100%;
  max-width: 100%;
  color: #f1d3dc;
  font-size: 0.95rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

/* ===== EQUIPO DIRECTIVO ===== */
.equipo-directivo-section {
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.90) 0%,
      rgba(255, 255, 255, 0.94) 55%,
      rgba(255, 255, 255, 0.97) 100%
    ),
    url("img/escuela.jpg") center 45% / cover no-repeat;
}

.equipo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.equipo-card {
  background:
    linear-gradient(rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.97)),
    url("img/escuela.jpg") center 42% / cover no-repeat;
  border: 1px solid rgba(125, 0, 45, 0.08);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--sombra);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.equipo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(70, 15, 35, 0.14);
}

.equipo-foto {
  width: 100%;
  height: 340px;
  overflow: hidden;
}

.equipo-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.equipo-info {
  padding: 1.5rem;
  text-align: center;
}

.equipo-info h3 {
  color: var(--vino-oscuro);
  font-size: 1.35rem;
  margin-bottom: 0.45rem;
}

.equipo-info p {
  color: var(--gris-texto);
  font-size: 1rem;
  font-weight: 700;
}

/* ===== EQUIPO PIE ===== */
.pie-team-section {
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.92) 0%,
      rgba(248, 239, 243, 0.90) 52%,
      rgba(255, 255, 255, 0.96) 100%
    ),
    url("img/escuela.jpg") center 45% / cover no-repeat;
}

.pie-team-section .container {
  position: relative;
  z-index: 1;
}

.pie-team-intro {
  max-width: 860px;
  margin: 1rem auto 0;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--gris-texto);
  text-align: center;
}

.pie-team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 0;
}

.pie-team-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(125, 0, 45, 0.08);
  border-radius: 28px;
  box-shadow: var(--sombra);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
  backdrop-filter: blur(3px);
}

.pie-team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(70, 15, 35, 0.14);
}

.pie-team-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.4rem 1.2rem 0.5rem;
  background: linear-gradient(180deg, #fff8fb 0%, #ffffff 100%);
}

.pie-team-photo img {
  width: 100%;
  max-width: 180px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  border: 4px solid #f3e8ed;
  box-shadow: 0 10px 24px rgba(70, 15, 35, 0.10);
  filter: contrast(1.04) saturate(1.02);
}
.pie-coordinator-wrap .pie-team-photo img {
  max-width: 200px;
}

.pie-team-info {
  padding: 0.8rem 1.2rem 1.4rem;
  text-align: center;
}

.pie-team-info h3 {
  color: var(--vino-oscuro);
  font-size: 1.22rem;
  margin-bottom: 0.35rem;
  line-height: 1.25;
}

.pie-team-info p {
  color: var(--gris-texto);
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

/* ===== RESPONSIVE EQUIPO PIE ===== */
@media (max-width: 1100px) {
  .pie-team-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .pie-team-grid {
    grid-template-columns: 1fr;
  }

  .pie-team-photo {
    height: 320px;
  }
}

@media (max-width: 1400px) {
  .top-strip .container {
    width: min(94%, 1360px);
  }

  .top-strip-inner {
    grid-template-columns: minmax(300px, 0.8fr) 70px minmax(650px, 1.3fr);
    gap: 1rem;
  }

  .top-strip {
    font-size: 0.88rem;
  }

  .top-quick-links a {
    font-size: 0.86rem;
  }
}

@media (max-width: 1220px) {
  .top-strip-inner {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    text-align: center;
  }

  .top-strip-left,
  .top-strip-right,
  .top-strip-center,
  .top-quick-links {
    justify-content: center;
  }

  .top-strip-left,
  .top-strip-right,
  .top-quick-links {
    flex-wrap: wrap;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .intro-grid {
    grid-template-columns: 1fr 1fr;
  }

  .intro-card:first-child {
    grid-column: 1 / -1;
  }

  .stats-grid,
  .feature-grid,
  .news-grid {
    grid-template-columns: 1fr 1fr;
  }

  .image-text-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .text-side,
  .contact-copy {
    max-width: 100%;
  }

  .content-background::before {
    background:
      linear-gradient(
        180deg,
        rgba(248, 239, 243, 0.91) 0%,
        rgba(245, 236, 240, 0.94) 35%,
        rgba(255, 255, 255, 0.97) 72%,
        rgba(255, 255, 255, 1) 100%
      ),
      url("img/escuela.jpg") 50% 42% / 120% auto no-repeat;
  }

  .site-footer {
    background:
      linear-gradient(
        180deg,
        rgba(89, 0, 31, 0.90) 0%,
        rgba(89, 0, 31, 0.94) 42%,
        rgba(89, 0, 31, 0.97) 100%
      ),
      url("img/escuela.jpg") center 70% / cover no-repeat;
  }

  .footer-grid-new {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 2rem;
  }

  .footer-col-nosotros {
    grid-column: 1 / -1;
    max-width: 700px;
  }

  .footer-col p {
    max-width: 100%;
  }

  .equipo-grid {
    grid-template-columns: 1fr 1fr;
  }

  .equipo-card:last-child {
    grid-column: 1 / -1;
    max-width: 420px;
    margin: 0 auto;
  }

  .pie-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pie-card-main {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .pie-bottom {
    grid-template-columns: 1fr;
  }

  .pie-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 860px) {
  .main-nav {
    display: none;
  }

  .main-nav.active {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 1rem 0.25rem 1.5rem;
    background: #fff;
  }

  .main-nav a,
  .main-nav .nav-link-dropdown,
  .main-nav .nav-sub-link-dropdown {
    white-space: normal;
    word-break: break-word;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-wrap {
    flex-wrap: wrap;
  }

  .nav-item-dropdown {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-link-dropdown {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-submenu {
    position: static;
    width: 100%;
    min-width: 100%;
    margin-top: 0.45rem;
    padding: 0.3rem 0 0.2rem 0.9rem;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: flex;
  }

  .nav-submenu::before {
    display: none;
  }

  .nav-submenu a {
    padding: 0.55rem 0;
    border-radius: 0;
    background: transparent;
  }

  .nav-submenu a:hover {
    background: transparent;
    transform: none;
  }

  .nav-subitem-dropdown {
    width: 100%;
  }

  .nav-sub-link-dropdown {
    padding: 0.55rem 0 !important;
    border-radius: 0;
    background: transparent;
    width: 100%;
  }

  .nav-sub-link-dropdown:hover {
    background: transparent;
  }

  .nav-sub-link-dropdown::after {
    content: "\25BE";
    font-size: 0.72rem;
  }

  .nav-sub-submenu {
    position: static;
    width: 100%;
    min-width: 100%;
    margin-top: 0.3rem;
    padding: 0.2rem 0 0.2rem 1.2rem;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-sub-submenu::before {
    display: none;
  }

  .nav-sub-submenu a {
    padding: 0.45rem 0;
    border-radius: 0;
    background: transparent;
  }

  .nav-sub-submenu a:hover {
    background: transparent;
    transform: none;
  }

  .hero {
    min-height: 78vh;
  }

  .hero-content {
    padding: 5rem 0;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.4rem, 9vw, 4rem);
  }

  .hero-description {
    font-size: 1.08rem;
  }

  .brand-logo {
    width: 64px;
    height: 64px;
  }

  .brand-title {
    font-size: 1rem;
  }

  .brand-subtitle {
    font-size: 0.9rem;
  }

  .stats-grid,
  .feature-grid,
  .news-grid,
  .intro-grid,
  .pie-grid {
    grid-template-columns: 1fr;
  }

  .intro-block {
    margin-top: -25px;
    padding: 70px 0 70px;
  }

  .content-background::before {
    background:
      linear-gradient(
        180deg,
        rgba(248, 239, 243, 0.93) 0%,
        rgba(247, 241, 244, 0.96) 45%,
        rgba(255, 255, 255, 1) 100%
      ),
      url("img/escuela.jpg") 50% 42% / 125% auto no-repeat;
  }

  .stats-section,
  .image-text-section,
  .cards-section,
  .news-section,
  .contact-section,
  .pie-section {
    padding: 4rem 0;
  }

  .stat-card {
    min-height: auto;
  }

  .stat-card strong {
    min-height: auto;
  }

  .image-side {
    min-height: 380px;
  }

  .site-footer {
    background:
      linear-gradient(
        180deg,
        rgba(89, 0, 31, 0.92) 0%,
        rgba(89, 0, 31, 0.95) 42%,
        rgba(89, 0, 31, 0.98) 100%
      ),
      url("img/escuela.jpg") center 72% / cover no-repeat;
  }

  .footer-grid-new {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0.8rem 0 1.6rem;
  }

  .footer-col-nosotros,
  .footer-col-contacto,
  .footer-col-social {
    max-width: 100%;
  }

  .footer-col h3 {
    font-size: clamp(1.9rem, 7vw, 2.6rem);
  }

  .footer-col p {
    max-width: 100%;
  }

  .footer-social-icons {
    margin-top: 0.2rem;
  }

  .social-circle {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    font-size: 1.08rem;
  }

  .pie-card,
  .pie-highlight {
    padding: 1.6rem;
  }

  .pie-actions {
    flex-direction: column;
  }

  .pie-actions .btn,
  .pie-actions .btn-outline-pie {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .equipo-grid {
    grid-template-columns: 1fr;
  }

  .equipo-card:last-child {
    grid-column: auto;
    max-width: 100%;
  }

  .equipo-foto {
    height: 300px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 1rem;
  }

  .hero-content {
    padding: 4rem 0;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-actions,
  .btn {
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .intro-card,
  .feature-card,
  .news-body,
  .contact-box,
  .stat-card {
    padding: 1.5rem;
  }

  .image-side {
    min-height: 300px;
  }

  .footer-line {
    font-size: 0.98rem;
    gap: 0.6rem;
  }

  .footer-premium-bottom p {
    font-size: 0.88rem;
  }
}

/* ===== EXTRAESCOLAR PRO ===== */
.extra-hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(rgba(18, 8, 13, 0.45), rgba(18, 8, 13, 0.60)),
    url("img/escuela.jpg") center center / cover no-repeat;
  color: #fff;
}

.extra-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.10), transparent 28%),
    radial-gradient(circle at 80% 30%, rgba(255,255,255,0.06), transparent 26%),
    linear-gradient(90deg, rgba(28, 10, 17, 0.90) 0%, rgba(28, 10, 17, 0.55) 50%, rgba(28, 10, 17, 0.75) 100%);
}

.extra-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 6rem 0;
}

.extra-hero-copy {
  max-width: 720px;
}

.extra-kicker {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: #f7d9e4;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.extra-hero h1 {
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 1.05;
  margin-bottom: 1.2rem;
  max-width: 650px;
}

.extra-description {
  max-width: 620px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #f6e8ee;
}

.extra-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* ===== STRIP ===== */
.extra-impact-strip {
  margin-top: -50px;
  position: relative;
  z-index: 5;
}

.extra-impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.extra-impact-card {
  background: rgba(255,255,255,0.96);
  border-radius: 20px;
  padding: 1.4rem;
  box-shadow: var(--sombra-suave);
}

.extra-impact-card strong {
  color: var(--vino-oscuro);
  display: block;
  margin-bottom: 0.4rem;
}

.extra-impact-card span {
  color: var(--gris-texto);
  line-height: 1.6;
}

/* ===== INTRO ===== */
.extra-intro-section {
  padding: 5rem 0 2rem;
}

.extra-intro-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: start;
}

.extra-intro-copy h2 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.1;
  color: var(--vino-oscuro);
  margin-bottom: 1rem;
}

.extra-intro-copy p {
  color: var(--gris-texto);
  line-height: 1.85;
  margin-bottom: 1rem;
}

.extra-intro-panel {
  background: var(--vino);
  color: #fff;
  border-radius: 25px;
  padding: 2rem;
  box-shadow: var(--sombra);
}

.extra-intro-panel h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.extra-intro-panel ul {
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.extra-intro-panel li {
  position: relative;
  padding-left: 1.2rem;
}

.extra-intro-panel li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: rgba(255,255,255,0.9);
}

/* ===== TALLERES ===== */
.extra-categories-section {
  padding: 2rem 0 5rem;
}

.extra-category-block {
  margin-top: 2rem;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(125, 0, 45, 0.08);
  border-radius: 25px;
  padding: 2rem;
  box-shadow: var(--sombra-suave);
  backdrop-filter: blur(3px);
}

.extra-category-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.extra-category-icon {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--vino-suave);
  color: var(--vino-oscuro);
  font-size: 1.35rem;
  flex-shrink: 0;
}

.extra-category-head h3 {
  color: var(--vino-oscuro);
  font-size: 1.55rem;
  margin-bottom: 0.25rem;
}

.extra-category-head p {
  color: var(--gris-texto);
}

.extra-workshop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.extra-workshop-card {
  background: #fff;
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid rgba(125, 0, 45, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.extra-workshop-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(40, 10, 20, 0.10);
}

.extra-workshop-card h4 {
  color: var(--vino-oscuro);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.extra-workshop-card p {
  color: var(--gris-texto);
  line-height: 1.75;
}

/* ===== VALORES ===== */
.extra-values-section {
  padding: 0 0 5rem;
}

.extra-values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.extra-value-card {
  background: #fff;
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid rgba(125, 0, 45, 0.06);
  box-shadow: var(--sombra-suave);
}

.extra-value-card h3 {
  color: var(--vino-oscuro);
  margin-bottom: 0.7rem;
}

.extra-value-card p {
  color: var(--gris-texto);
  line-height: 1.7;
}

/* ===== CIERRE ===== */
.extra-closing-banner {
  padding: 0 0 5rem;
}

.extra-closing-box {
  background: var(--vino);
  color: #fff;
  border-radius: 30px;
  padding: 3rem;
  text-align: center;
  box-shadow: var(--sombra);
}

.extra-closing-box .section-tag {
  color: #f7dce5;
}

.extra-closing-box h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  margin-bottom: 1rem;
}

.extra-closing-box p {
  max-width: 850px;
  margin: 0 auto;
  color: #f8e6ec;
  line-height: 1.85;
  font-size: 1.08rem;
}

@media (max-width: 1100px) {
  .extra-impact-grid,
  .extra-values-grid {
    grid-template-columns: 1fr 1fr;
  }

  .extra-intro-grid,
  .extra-workshop-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .extra-hero {
    min-height: 74vh;
  }

  .extra-hero-content {
    padding: 5rem 0;
  }

  .extra-hero-copy {
    max-width: 100%;
  }

  .extra-hero h1 {
    max-width: 100%;
    font-size: clamp(2.2rem, 8vw, 3.5rem);
  }

  .extra-description {
    font-size: 1rem;
  }

  .extra-impact-grid,
  .extra-values-grid {
    grid-template-columns: 1fr;
  }

  .extra-category-block,
  .extra-closing-box {
    padding: 1.6rem;
  }

  .extra-category-head {
    align-items: flex-start;
  }
}

/* =========================
   PRELOADER INSTITUCIONAL PRO
========================= */
.page-loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  background:
    radial-gradient(circle at center, rgba(125, 0, 45, 0.06) 0%, rgba(125, 0, 45, 0.03) 16%, rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, #fcfafb 0%, #f7f1f4 55%, #ffffff 100%);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  position: relative;
  width: min(92vw, 360px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.loader-glow {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(125, 0, 45, 0.10) 0%, rgba(125, 0, 45, 0.05) 38%, rgba(125, 0, 45, 0.00) 72%);
  filter: blur(8px);
  animation: loaderGlow 2.8s ease-in-out infinite;
  z-index: 0;
}

.loader-ring {
  position: absolute;
  width: 146px;
  height: 146px;
  border-radius: 50%;
  border: 2px solid rgba(125, 0, 45, 0.10);
  border-top: 2px solid var(--vino);
  border-right: 2px solid rgba(125, 0, 45, 0.25);
  animation: loaderSpin 1.35s linear infinite;
  z-index: 1;
}

.loader-logo {
  position: relative;
  z-index: 2;
  width: 88px;
  height: 88px;
  object-fit: contain;
  filter:
    drop-shadow(0 8px 18px rgba(89, 0, 31, 0.12))
    drop-shadow(0 2px 6px rgba(89, 0, 31, 0.10));
  animation: loaderLogoFloat 2.2s ease-in-out infinite;
}

.loader-text {
  position: relative;
  z-index: 2;
  margin: 1.1rem 0 0 0;
  color: var(--vino-oscuro);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.4;
}

.loader-subtext {
  position: relative;
  z-index: 2;
  display: inline-block;
  color: #7d5a66;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

@keyframes loaderSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes loaderLogoFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.98;
  }
  50% {
    transform: translateY(-4px) scale(1.025);
    opacity: 1;
  }
}

@keyframes loaderGlow {
  0%, 100% {
    transform: scale(0.96);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

@media (max-width: 560px) {
  .loader-ring {
    width: 128px;
    height: 128px;
  }

  .loader-logo {
    width: 78px;
    height: 78px;
  }

  .loader-text {
    font-size: 0.9rem;
  }

  .loader-subtext {
    font-size: 0.84rem;
  }
}
/* ===== SECCION PIE BASE ===== */
.pie-section {
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.88) 0%,
      rgba(248, 239, 243, 0.92) 52%,
      rgba(255, 255, 255, 0.96) 100%
    ),
    url("img/escuela.jpg") center 45% / cover no-repeat;
}

.pie-section .container {
  position: relative;
  z-index: 1;
}

.pie-intro {
  max-width: 860px;
  margin: 1rem auto 0;
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--gris-texto);
}

.pie-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.pie-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.97)),
    url("img/escuela.jpg") center 42% / cover no-repeat;
  border: 1px solid rgba(125, 0, 45, 0.08);
  border-radius: 28px;
  padding: 2rem;
  box-shadow: var(--sombra-suave);
  backdrop-filter: blur(3px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(70, 15, 35, 0.14);
}

.pie-card-main {
  grid-row: span 2;
  background:
    linear-gradient(rgba(125, 0, 45, 0.88), rgba(89, 0, 31, 0.92)),
    url("img/escuela.jpg") center 42% / cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pie-card-main h3,
.pie-card-main p,
.pie-card-main .pie-number {
  color: #ffffff;
}

.pie-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1.1rem;
  border-radius: 16px;
  background: rgba(125, 0, 45, 0.08);
  color: var(--vino);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.pie-card-main .pie-number {
  background: rgba(255, 255, 255, 0.12);
}

.pie-card h3 {
  margin-bottom: 0.85rem;
  color: var(--vino-oscuro);
  font-size: 1.4rem;
  line-height: 1.2;
}

.pie-card p {
  color: var(--gris-texto);
  font-size: 1.02rem;
  line-height: 1.75;
}

.pie-bottom {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 1.5rem;
  align-items: center;
}

.pie-highlight {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(125, 0, 45, 0.08);
  border-radius: 28px;
  padding: 2rem;
  box-shadow: var(--sombra-suave);
  backdrop-filter: blur(3px);
}

.pie-highlight h3 {
  margin-bottom: 0.8rem;
  color: var(--vino-oscuro);
  font-size: 1.45rem;
}

.pie-highlight p {
  color: var(--gris-texto);
  line-height: 1.8;
}

.pie-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ===== INFO PIE SUPERIOR ===== */
/* ===== INFO PIE SUPERIOR ===== */
.pie-info-section {
  padding: 5rem 0 3.5rem;
  background: transparent;
}

.pie-info-box {
  max-width: 1180px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(125, 0, 45, 0.08);
  border-radius: 32px;
  padding: 2.6rem 2rem;
  box-shadow: 0 18px 45px rgba(70, 15, 35, 0.08);
  backdrop-filter: blur(4px);
}

.pie-info-section .section-head.center {
  max-width: 860px;
  margin: 0 auto 2rem;
  text-align: center;
}

.pie-info-section .section-tag {
  display: inline-block;
  margin-bottom: 0.85rem;
}

.pie-info-section .section-head.center h2 {
  max-width: 10ch;
  margin: 0 auto 1rem;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--vino-oscuro);
}

.pie-intro {
  max-width: 760px;
  margin: 0 auto;
  color: var(--gris-texto);
  font-size: 1.06rem;
  line-height: 1.85;
  text-align: center;
}

.pie-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
  align-items: stretch;
}

.pie-info-card {
  background: #ffffff;
  border: 1px solid rgba(125, 0, 45, 0.08);
  border-radius: 22px;
  padding: 1.5rem;
  box-shadow: var(--sombra-suave);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pie-info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(70, 15, 35, 0.10);
}

.pie-info-card h3 {
  margin-bottom: 0.75rem;
  color: var(--vino-oscuro);
  font-size: 1.2rem;
  line-height: 1.2;
}

.pie-info-card p {
  margin: 0;
  color: var(--gris-texto);
  font-size: 1rem;
  line-height: 1.75;
}

@media (max-width: 1100px) {
  .pie-info-grid {
    grid-template-columns: 1fr;
  }

  .pie-info-box {
    padding: 2.2rem 1.6rem;
  }

  .pie-info-section .section-head.center h2 {
    max-width: 12ch;
    font-size: clamp(2rem, 5vw, 3rem);
  }
}

@media (max-width: 700px) {
  .pie-info-section {
    padding: 4rem 0 2.8rem;
  }

  .pie-info-box {
    border-radius: 24px;
    padding: 1.8rem 1.1rem;
  }

  .pie-info-section .section-head.center {
    margin-bottom: 1.6rem;
  }

  .pie-info-section .section-head.center h2 {
    max-width: 100%;
    font-size: clamp(1.85rem, 8vw, 2.5rem);
    line-height: 1.12;
  }

  .pie-intro {
    font-size: 1rem;
    line-height: 1.75;
  }

  .pie-info-card {
    padding: 1.25rem;
  }
}
.pie-team-section .section-head.center {
  max-width: 900px;
  margin: 0 auto 2rem;
  text-align: center;
}

.pie-team-section .section-head.center h2 {
  max-width: 16ch;
  margin: 0 auto 1rem;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.1;
  color: var(--vino-oscuro);
}

.pie-team-intro {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
/* ===== ENCARGADO EXTRAESCOLAR ===== */
.extra-encargado-section {
  padding: 0 0 5rem;
}

.extra-encargado-box {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(125, 0, 45, 0.08);
  border-radius: 30px;
  padding: 2rem;
  box-shadow: var(--sombra);
  backdrop-filter: blur(3px);
}

.extra-encargado-photo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.extra-encargado-photo img {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  border: 5px solid #f3e8ed;
  box-shadow: 0 14px 28px rgba(70, 15, 35, 0.12);
}

.extra-encargado-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  color: var(--vino-oscuro);
  margin-bottom: 0.8rem;
}

.extra-encargado-content h3 {
  font-size: 1.5rem;
  color: var(--vino);
  margin-bottom: 0.35rem;
}

.extra-encargado-role {
  font-size: 1rem;
  font-weight: 800;
  color: var(--gris-texto);
  margin-bottom: 1rem;
}

.extra-encargado-content p {
  color: var(--gris-texto);
  line-height: 1.85;
  margin-bottom: 1rem;
}

.extra-encargado-content p:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .extra-encargado-box {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .extra-encargado-photo img {
    max-width: 220px;
  }
}
/* =========================================
   EXTRAESCOLAR - FONDO CON IMAGEN + OVERLAY
========================================= */

.extra-categories-section {
  position: relative;
  padding: 90px 0;
  overflow: hidden;
  z-index: 1;
}

.extra-categories-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("img/extraescolar-fondo.jpg") center center / cover no-repeat;
  opacity: 0.16;
  z-index: -2;
  transform: scale(1.03);
}

.extra-categories-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(246, 233, 238, 0.93) 100%);
  z-index: -1;
}

.extra-categories-section .container {
  position: relative;
  z-index: 2;
}

.extra-categories-section .section-head {
  margin-bottom: 44px;
}

.extra-category-block {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 24px;
  padding: 28px;
  margin-bottom: 28px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.07);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.extra-category-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(125, 0, 45, 0.05), rgba(255, 255, 255, 0.04));
  z-index: 0;
}

.extra-category-block > * {
  position: relative;
  z-index: 1;
}

.extra-category-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(125, 0, 45, 0.10);
}

.extra-category-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, #7d002d, #59001f);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 12px 24px rgba(125, 0, 45, 0.18);
}

.extra-category-head h3 {
  margin: 0 0 4px;
  font-size: 1.4rem;
  color: #1f2937;
}

.extra-category-head p {
  margin: 0;
  font-size: 0.96rem;
  color: #5b6470;
}

.extra-workshop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.extra-workshop-card {
  background: rgba(248, 249, 251, 0.92);
  border: 1px solid rgba(125, 0, 45, 0.08);
  border-radius: 18px;
  padding: 18px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.extra-workshop-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
  border-color: rgba(125, 0, 45, 0.18);
}

.extra-workshop-card h4 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: #7d002d;
}

.extra-workshop-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #4b5563;
}

/* Para bloques que tienen solo una tarjeta */
.extra-workshop-grid.single-workshop {
  grid-template-columns: 1fr;
}

.extra-workshop-grid.single-workshop .extra-workshop-card {
  max-width: 560px;
}

/* Responsive */
@media (max-width: 991px) {
  .extra-categories-section {
    padding: 72px 0;
  }

  .extra-category-block {
    padding: 24px;
  }

  .extra-workshop-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .extra-categories-section {
    padding: 58px 0;
  }

  .extra-category-head {
    align-items: flex-start;
    gap: 12px;
  }

  .extra-category-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 14px;
    font-size: 1.05rem;
  }

  .extra-category-head h3 {
    font-size: 1.15rem;
  }

  .extra-category-head p,
  .extra-workshop-card p {
    font-size: 0.92rem;
  }

  .extra-workshop-card {
    padding: 16px;
  }
} 
/* =========================================================
   EXTRAESCOLAR - NUEVA SECCIÓN DE TALLERES
========================================================= */

.extra-talleres-section {
  position: relative;
  padding: 90px 0;
  background: linear-gradient(180deg, #f8f4f6 0%, #ffffff 100%);
}

.extra-talleres-section .section-head {
  max-width: 860px;
  margin: 0 auto 42px;
}

.extra-talleres-intro {
  max-width: 760px;
  margin: 14px auto 0;
  color: var(--gris-texto);
  line-height: 1.75;
}

.extra-talleres-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.extra-taller-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: stretch;
  background: #ffffff;
  border: 1px solid rgba(125, 0, 45, 0.08);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.07);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.extra-taller-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.11);
  border-color: rgba(125, 0, 45, 0.16);
}

.extra-taller-photo {
  position: relative;
  min-height: 100%;
  background: linear-gradient(135deg, rgba(125, 0, 45, 0.12), rgba(89, 0, 31, 0.08));
}

.extra-taller-photo img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: block;
  object-fit: cover;
}

.extra-taller-content {
  padding: 24px 24px 22px;
}

.extra-taller-area {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(125, 0, 45, 0.08);
  color: var(--vino);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.extra-taller-content h3 {
  margin: 0 0 8px;
  font-size: 1.45rem;
  line-height: 1.2;
  color: var(--texto);
}

.extra-taller-monitor {
  margin: 0 0 18px;
  font-size: 0.98rem;
  color: var(--gris-texto);
  font-weight: 600;
}

.extra-taller-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
}

.extra-taller-meta li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--texto);
  line-height: 1.55;
  font-size: 0.96rem;
}

.extra-taller-meta li i {
  width: 18px;
  min-width: 18px;
  margin-top: 4px;
  color: var(--vino);
  text-align: center;
}

.extra-taller-meta li strong {
  color: var(--vino);
  font-weight: 700;
}

/* Ajuste suave con fondo institucional para que no se vea vacío */
.extra-talleres-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("img/extraescolar-fondo.jpg") center/cover no-repeat;
  opacity: 0.06;
  pointer-events: none;
}

.extra-talleres-section .container {
  position: relative;
  z-index: 1;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1200px) {
  .extra-taller-card {
    grid-template-columns: 200px 1fr;
  }
}

@media (max-width: 991px) {
  .extra-talleres-section {
    padding: 72px 0;
  }

  .extra-talleres-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .extra-taller-card {
    grid-template-columns: 210px 1fr;
  }
}

@media (max-width: 767px) {
  .extra-taller-card {
    grid-template-columns: 1fr;
  }

  .extra-taller-photo {
    height: 250px;
  }

  .extra-taller-photo img {
    height: 250px;
  }

  .extra-taller-content {
    padding: 20px 18px 18px;
  }

  .extra-taller-content h3 {
    font-size: 1.25rem;
  }

  .extra-taller-monitor,
  .extra-taller-meta li {
    font-size: 0.93rem;
  }
}

@media (max-width: 575px) {
  .extra-talleres-section {
    padding: 58px 0;
  }

  .extra-talleres-grid {
    gap: 18px;
  }

  .extra-taller-card {
    border-radius: 22px;
  }

  .extra-taller-photo {
    height: 220px;
  }

  .extra-taller-photo img {
    height: 220px;
  }

  .extra-taller-area {
    font-size: 0.76rem;
    padding: 6px 12px;
  }
}

/* =========================================
   HOVER TARJETAS PIE
========================================= */

.pie-hover-info {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(125, 0, 45, 0.78),
    rgba(89, 0, 31, 0.94)
  );
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 28px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 3;
  border-radius: 30px;
}

.pie-team-card:hover .pie-hover-info {
  opacity: 1;
  visibility: visible;
}

.pie-hover-info p {
  margin: 0 0 12px;
  font-size: 1rem;
  line-height: 1.4;
  max-width: 240px;
}

.pie-hover-info p:last-child {
  margin-bottom: 0;
}

.pie-team-photo,
.pie-team-info {
  position: relative;
  z-index: 1;
}
/* =========================================================
   CONVIVENCIA ESCOLAR
========================================================= */

.convivencia-intro-section {
  padding: 5rem 0 2rem;
}

.convivencia-intro-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: start;
}

.convivencia-intro-copy h2 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.1;
  color: var(--vino-oscuro);
  margin-bottom: 1rem;
}

.convivencia-intro-copy p {
  color: var(--gris-texto);
  line-height: 1.85;
  margin-bottom: 1rem;
}

.convivencia-intro-panel {
  background: var(--vino);
  color: #fff;
  border-radius: 25px;
  padding: 2rem;
  box-shadow: var(--sombra);
}

.convivencia-intro-panel h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.convivencia-intro-panel ul {
  list-style: none;
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
}

.convivencia-intro-panel li {
  position: relative;
  padding-left: 1.2rem;
  line-height: 1.7;
}

.convivencia-intro-panel li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: rgba(255, 255, 255, 0.9);
}

/* ===== PRINCIPIOS / VALORES ===== */
.convivencia-values-section {
  padding: 2rem 0 5rem;
}

.convivencia-values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.convivencia-value-card {
  background: #fff;
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid rgba(125, 0, 45, 0.06);
  box-shadow: var(--sombra-suave);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.convivencia-value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(40, 10, 20, 0.10);
}

.convivencia-value-card h3 {
  color: var(--vino-oscuro);
  margin-bottom: 0.7rem;
  font-size: 1.25rem;
}

.convivencia-value-card p {
  color: var(--gris-texto);
  line-height: 1.75;
  margin: 0;
}

/* ===== EQUIPO CONVIVENCIA ===== */
.convivencia-team-section {
  position: relative;
  overflow: hidden;
  padding: 0 0 5rem;
}

.convivencia-team-intro {
  max-width: 820px;
  margin: 1rem auto 0;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--gris-texto);
  text-align: center;
}

.convivencia-team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 1.6rem;
  max-width: 1100px;
  margin: 2.5rem auto 0;
}

.convivencia-team-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(125, 0, 45, 0.08);
  border-radius: 28px;
  box-shadow: var(--sombra);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  backdrop-filter: blur(3px);
}

.convivencia-team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(70, 15, 35, 0.14);
}

.convivencia-team-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.6rem 1.2rem 0.7rem;
  background: linear-gradient(180deg, #fff8fb 0%, #ffffff 100%);
}

.convivencia-team-photo img {
  width: 185px;
  height: 185px;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  border: 4px solid #f3e8ed;
  box-shadow: 0 10px 24px rgba(70, 15, 35, 0.10);
  flex-shrink: 0;
}

.convivencia-team-info {
  padding: 0.9rem 1.3rem 1.6rem;
  text-align: center;
}

.convivencia-team-info h3 {
  color: var(--vino-oscuro);
  font-size: 1.28rem;
  margin-bottom: 0.4rem;
  line-height: 1.25;
}

.convivencia-team-info p {
  color: var(--gris-texto);
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

/* ===== CIERRE ===== */
.convivencia-closing-banner {
  padding: 0 0 5rem;
}

.convivencia-closing-box {
  background: var(--vino);
  color: #fff;
  border-radius: 30px;
  padding: 3rem;
  text-align: center;
  box-shadow: var(--sombra);
}

.convivencia-closing-box .section-tag {
  color: #f7dce5;
}

.convivencia-closing-box h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  margin-bottom: 1rem;
  color: #fff;
}

.convivencia-closing-box p {
  max-width: 850px;
  margin: 0 auto;
  color: #f8e6ec;
  line-height: 1.85;
  font-size: 1.08rem;
}

/* ===== RESPONSIVE CONVIVENCIA ===== */
@media (max-width: 1100px) {
  .convivencia-values-grid {
    grid-template-columns: 1fr 1fr;
  }

  .convivencia-intro-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .convivencia-team-grid {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    max-width: 100%;
  }

  .convivencia-closing-box,
  .convivencia-intro-panel {
    padding: 1.8rem;
  }

  .convivencia-intro-copy h2 {
    font-size: clamp(2rem, 7vw, 2.8rem);
  }
}

@media (max-width: 700px) {
  .convivencia-team-grid {
    grid-template-columns: 1fr;
  }

  .convivencia-values-section,
  .convivencia-team-section,
  .convivencia-closing-banner {
    padding-bottom: 4rem;
  }

  .convivencia-values-grid {
    grid-template-columns: 1fr;
  }

  .convivencia-team-photo img {
    max-width: 170px;
  }

  .convivencia-closing-box h2 {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .convivencia-closing-box p,
  .convivencia-team-intro,
  .convivencia-intro-copy p {
    font-size: 1rem;
  }
}
@media (max-width: 768px) {
  .extra-talleres-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .extra-taller-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: stretch;
    border-radius: 20px;
    overflow: hidden;
  }

  .extra-taller-photo {
    width: 120px;
    height: 100%;
    min-height: 220px;
  }

  .extra-taller-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }

  .extra-taller-content {
    padding: 16px 16px 14px;
  }

  .extra-taller-area {
    font-size: 0.72rem;
    padding: 6px 10px;
    margin-bottom: 10px;
  }

  .extra-taller-content h3 {
    font-size: 1.2rem;
    line-height: 1.15;
    margin-bottom: 8px;
  }

  .extra-taller-monitor {
    font-size: 0.92rem;
    margin-bottom: 12px;
    line-height: 1.4;
  }

  .extra-taller-meta {
    gap: 8px;
  }

  .extra-taller-meta li {
    display: grid;
    grid-template-columns: 18px 1fr;
    column-gap: 8px;
    align-items: start;
    font-size: 0.88rem;
    line-height: 1.35;
  }

  .extra-taller-meta li i {
    font-size: 0.82rem;
    margin-top: 3px;
  }

  .extra-taller-meta li span {
    word-break: break-word;
  }
}

@media (max-width: 560px) {
  .extra-taller-card {
    grid-template-columns: 100px 1fr;
  }

  .extra-taller-photo {
    width: 100px;
    min-height: 200px;
  }

  .extra-taller-content {
    padding: 14px 14px 12px;
  }

  .extra-taller-content h3 {
    font-size: 1.08rem;
  }

  .extra-taller-monitor {
    font-size: 0.86rem;
  }

  .extra-taller-meta li {
    font-size: 0.82rem;
    grid-template-columns: 16px 1fr;
  }
}
/* ❌ quitar escudo del topbar */
.top-strip-center {
  display: none;
}

/* ❌ quitar hora */
.top-clock,
#topClock {
  display: none;
}
.news-section .btn {
  display: block;
  margin: 2rem auto 0;
}
.top-quick-links a {
  background: rgba(255,255,255,0.08);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  transition: all 0.25s ease;
}

.top-quick-links a:hover {
  background: rgba(255,255,255,0.15);
}
/* ===== CONTADOR DE VISITAS PREMIUM ===== */
.site-counter-section {
  padding: 3.0rem 0 0;
}

.site-counter-box {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.site-counter-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;

  min-width: 220px;

  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(125, 0, 45, 0.06);
  border-radius: 18px;

  padding: 0.85rem 1rem;

  box-shadow: 0 8px 22px rgba(40, 10, 20, 0.05);
  backdrop-filter: blur(4px);

  transition: all 0.25s ease;
}

.site-counter-card:hover {
  transform: translateY(-2px);
}

.site-counter-icon {
  width: 42px;
  height: 42px;

  border-radius: 14px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #f8edf2;
  color: var(--vino);

  font-size: 1rem;

  flex-shrink: 0;
}

.site-counter-icon.online {
  color: #16a34a;
}

.site-counter-card strong {
  display: block;
  font-size: 1.4rem;
  line-height: 1;
  font-weight: 900;
  color: var(--vino-oscuro);
  margin-bottom: 0.15rem;
}

.site-counter-card p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gris-texto);
}

@media (max-width: 600px) {
  .site-counter-box {
    flex-direction: column;
    align-items: center;
  }

  .site-counter-card {
    width: 100%;
    max-width: 280px;
  }
}
/* =====================================================
   PERFIL DE USUARIO
   ===================================================== */

.profile-layout{
  display:grid;
  grid-template-columns:340px 1fr;
  gap:28px;
  align-items:start;
}

.profile-card{
  position:sticky;
  top:110px;
  background:#fff;
  border:1px solid #ead3dc;
  border-radius:28px;
  padding:30px;
  text-align:center;
  box-shadow:0 14px 34px rgba(89,0,31,.08);
}

.profile-avatar{
  width:132px;
  height:132px;
  margin:0 auto 18px;
  border-radius:50%;
  overflow:hidden;
  background:linear-gradient(135deg,#59001f,#9f1239);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-size:3rem;
  font-weight:900;
  border:5px solid #f7e8ef;
}

.profile-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.profile-card h2{
  margin:0;
  color:#59001f;
}

.profile-card p{
  margin:8px 0 4px;
  font-weight:900;
  color:#7d002d;
  text-transform:capitalize;
}

.profile-card small{
  color:#64748b;
  word-break:break-word;
}

.profile-upload{
  margin-top:24px;
  text-align:left;
}

.profile-upload button{
  width:100%;
}

.profile-content{
  display:flex;
  flex-direction:column;
  gap:24px;
}

.check-group{
  display:flex;
  align-items:center;
}

.check-group label{
  display:flex;
  gap:10px;
  align-items:center;
  margin-top:32px;
}

.check-group input{
  width:auto;
  min-height:auto;
}

/* Preferencias visuales */
.vista-grande{
  font-size:108%;
}

.alto-contraste{
  --fondo:#ffffff;
  --texto:#0f172a;
  --gris:#334155;
  --borde:#7d002d;
}

.alto-contraste .panel,
.alto-contraste .card,
.alto-contraste .profile-card{
  border:2px solid #7d002d;
}

@media(max-width:950px){
  .profile-layout{
    grid-template-columns:1fr;
  }

  .profile-card{
    position:relative;
    top:auto;
  }
}

/* =========================================================
   RESPONSIVE 768px — MÓVILES Y TABLETS
   ========================================================= */
@media (max-width: 768px) {

  /* --- Menú hamburguesa: botón más grande para táctiles --- */
  .menu-toggle {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    gap: 6px;
  }

  .menu-toggle span {
    width: 24px;
    height: 2.2px;
  }

  /* Links del menú hamburguesa con buen tap target */
  .main-nav.active > a,
  .main-nav.active .nav-link-dropdown {
    padding: 0.8rem 0;
    font-size: 1.1rem;
    width: 100%;
  }

  /* Submenú en móvil: espaciado generoso para tocar */
  .main-nav.active .nav-submenu {
    margin-top: 0.3rem;
    padding: 0.2rem 0 0.2rem 1.2rem;
    gap: 0.1rem;
  }

  .main-nav.active .nav-submenu a {
    padding: 0.7rem 0;
    font-size: 1.02rem;
    line-height: 1.4;
  }

  /* --- Hero: ajuste fino en tablets --- */
  .hero {
    min-height: 70vh;
  }

  .hero-content {
    padding: 4.5rem 0;
  }

  .hero h1 {
    font-size: clamp(2rem, 7vw, 3.2rem);
    max-width: 100%;
    padding: 0 0.5rem;
  }

  .hero-description {
    font-size: 1rem;
    padding: 0 1rem;
    max-width: 100%;
  }

  .hero-kicker {
    font-size: 0.88rem;
    letter-spacing: 0.06em;
  }

  /* --- Noticias: forzar columna única + imágenes proporcionales --- */
  .news-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .news-image {
    height: 200px;
  }

  .news-body {
    padding: 1.3rem;
  }

  .news-body h3 {
    font-size: 1.18rem;
  }

  .news-body p {
    font-size: 0.98rem;
  }

  /* --- Sección acción (botón centrado) --- */
  .section-action {
    text-align: center;
  }

  .section-action .btn {
    width: auto;
    min-width: 240px;
  }

  /* --- Brand / logo más compacto --- */
  .brand-logo {
    width: 60px;
    height: 60px;
  }

  .brand-title {
    font-size: 1rem;
  }

  .brand-subtitle {
    font-size: 0.85rem;
  }

  .nav-wrap {
    padding: 0.8rem 0;
  }

  /* --- Footer: espaciado reducido --- */
  .footer-grid-new {
    gap: 1.8rem;
    padding: 0.6rem 0 1.4rem;
  }

  .footer-col h3 {
    font-size: clamp(1.7rem, 6vw, 2.2rem);
  }

  .footer-col p,
  .footer-line {
    font-size: 0.95rem;
  }

  .social-circle {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    font-size: 1rem;
  }

  /* --- Contador de visitas: centrado y flexible --- */
  .site-counter-box {
    gap: 0.7rem;
  }

  .site-counter-card {
    min-width: 180px;
    padding: 0.7rem 0.9rem;
  }

  .site-counter-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .site-counter-card strong {
    font-size: 1.25rem;
  }

  .site-counter-card p {
    font-size: 0.82rem;
  }
}

/* =========================================================
   MENÚ MÓVIL — garantía: todo vertical y visible
========================================================= */
@media (max-width: 860px) {
  .main-nav.active .nav-submenu,
  .main-nav.active .nav-sub-submenu {
    position: static !important;
    left: auto !important;
    top: auto !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0.4rem 0 0 !important;
    padding: 0 0 0 1rem !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    transition: none !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .main-nav.active .nav-submenu::before,
  .main-nav.active .nav-sub-submenu::before {
    display: none !important;
  }

  .main-nav.active .nav-submenu a,
  .main-nav.active .nav-sub-submenu a {
    display: block !important;
    width: 100% !important;
    padding: 0.6rem 0 !important;
    white-space: normal !important;
    word-break: break-word !important;
    font-size: 0.98rem !important;
    line-height: 1.35 !important;
  }

  .main-nav.active .nav-subitem-dropdown {
    width: 100% !important;
  }

  .main-nav.active .nav-sub-link-dropdown {
    display: block !important;
    width: 100% !important;
    padding: 0.6rem 0 !important;
    white-space: normal !important;
    word-break: break-word !important;
  }
}