:root {
  --vino: #7d002d;
  --vino-oscuro: #59001f;
  --vino-suave: #f6e9ee;
  --blanco: #ffffff;
  --gris-fondo: #f5f6f8;
  --gris-texto: #5b6470;
  --texto: #1f2937;
  --borde: #e8e8eb;
  --sombra: 0 18px 45px rgba(0, 0, 0, 0.08);
  --sombra-suave: 0 10px 30px rgba(0, 0, 0, 0.06);
  --radio: 24px;
  --max: 1280px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--texto);
  background: var(--blanco);
  line-height: 1.65;
  font-size: 1.05rem;
}

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.98rem;
  position: relative;
  z-index: 20;
}

.top-strip-inner {
  display: grid;
  grid-template-columns: 1fr 90px 1fr;
  align-items: center;
  gap: 1.5rem;
  padding: 0.75rem 0;
}

.top-strip-left,
.top-strip-right {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.top-strip-left {
  justify-content: flex-start;
}

.top-strip-right {
  justify-content: flex-end;
}

.top-strip-center {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 60px;
}

.top-strip-center::before {
  content: "";
  position: absolute;
  width: 70px;
  height: 70px;
  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: 54px;
  height: 54px;
  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;
}

@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);
  }
}

.top-clock {
  font-weight: 700;
  color: #f8dbe4;
  letter-spacing: 0.01em;
  text-align: right;
  white-space: nowrap;
  display: inline-block;
}

/* ===== 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: 2rem;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.brand-logo {
  width: 78px;
  height: 78px;
  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.2rem;
  font-weight: 800;
  color: var(--vino-oscuro);
}

.brand-subtitle {
  font-size: 1rem;
  color: var(--gris-texto);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.main-nav > a,
.nav-link-dropdown {
  color: var(--vino-oscuro);
  font-weight: 700;
  font-size: 1rem;
}

.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: 240px;
  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.98rem;
  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);
}

.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: var(--vino);
  color: var(--blanco);
}

.btn-primary:hover {
  background: var(--vino-oscuro);
  transform: translateY(-2px);
}

.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 h1 {
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: 1.05;
  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("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("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("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("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("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;
}

.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("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("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("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("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("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("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("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("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 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("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("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;
}

/* ===== PIE ===== */
.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("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("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("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;
}

/* ===== 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("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("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) {
  .top-strip-inner {
    grid-template-columns: 1fr;
    gap: 0.45rem;
    text-align: center;
  }

  .top-strip-left,
  .top-strip-right,
  .top-strip-center {
    justify-content: center;
  }

  .top-strip-left {
    flex-wrap: wrap;
  }

  .top-clock {
    text-align: center;
    white-space: normal;
  }

  .top-strip-center {
    width: auto;
    height: auto;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 1rem;
    gap: 1rem;
  }

  .main-nav.active {
    display: flex;
  }

  .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;
  }

  .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("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("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("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;
  }
}