:root {
  --ink: #10242b;
  --ink-2: #24444d;
  --petrol: #0d5865;
  --petrol-dark: #073f49;
  --blue: #4f8fa2;
  --blue-soft: #dbeef3;
  --ice: #f4f8f9;
  --white: #ffffff;
  --line: #d6e0e2;
  --green: #91ba9a;
  --accent: #d5a758;
  --shadow: 0 16px 50px rgba(15, 58, 68, .10);
  --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }

.container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(13, 88, 101, .14);
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 320px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border: 2px solid var(--petrol);
  border-radius: 50%;
  display: grid;
  place-content: center;
  gap: 4px;
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(13,88,101,.28);
  border-radius: 50%;
}

.brand-mark span {
  width: 24px;
  height: 2px;
  background: var(--petrol);
  display: block;
  position: relative;
  z-index: 2;
}

.brand-mark span:nth-child(2) { width: 16px; }

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: "Manrope", sans-serif;
  font-size: 1.6rem;
  letter-spacing: .08em;
  color: var(--petrol-dark);
}

.brand-text small {
  margin-top: 4px;
  font-size: .62rem;
  line-height: 1.25;
  color: #5d7075;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: .84rem;
  font-weight: 700;
}

.main-nav a {
  padding: 34px 0;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 22px;
  height: 2px;
  background: var(--petrol);
  transition: .25s ease;
}

.main-nav a:hover::after { right: 0; }

.hero {
  min-height: 630px;
  background:
    radial-gradient(circle at 75% 20%, rgba(79,143,162,.24), transparent 30%),
    linear-gradient(135deg, #f9fcfc 0%, #e7f2f4 54%, #d5e9ee 100%);
  position: relative;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(13,88,101,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13,88,101,.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to right, black 0%, transparent 72%);
}

.hero-content {
  min-height: 630px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.eyebrow, .section-kicker {
  display: inline-block;
  color: var(--petrol);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero h1,
.section h2,
.cta h2 {
  font-family: "Manrope", sans-serif;
  margin: 0;
  letter-spacing: -.045em;
  line-height: .98;
}

.hero h1 {
  font-size: clamp(3.4rem, 6vw, 6.2rem);
  max-width: 760px;
}

.hero-copy p {
  font-size: 1.16rem;
  max-width: 660px;
  color: #466168;
  margin: 28px 0 34px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 999px;
  font-size: .87rem;
  font-weight: 800;
  transition: .2s ease;
}

.btn-primary {
  color: #fff;
  background: var(--petrol);
  box-shadow: 0 10px 24px rgba(13,88,101,.22);
}

.btn-primary:hover { transform: translateY(-2px); background: var(--petrol-dark); }

.btn-secondary {
  border: 1px solid rgba(13,88,101,.32);
  background: rgba(255,255,255,.48);
}

.btn-secondary:hover { background: #fff; }

.hero-visual {
  width: min(470px, 100%);
  aspect-ratio: 1;
  margin-left: auto;
  position: relative;
  display: grid;
  place-items: center;
}

.core {
  width: 155px;
  height: 155px;
  border-radius: 50%;
  background: var(--petrol-dark);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: "Manrope";
  font-weight: 800;
  letter-spacing: .12em;
  box-shadow: 0 30px 70px rgba(7,63,73,.25);
  position: relative;
  z-index: 5;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(13,88,101,.3);
  border-radius: 50%;
}

.orbit-1 { width: 240px; height: 240px; }
.orbit-2 { width: 335px; height: 335px; }
.orbit-3 { width: 430px; height: 430px; }

.node {
  position: absolute;
  z-index: 6;
  font-size: .62rem;
  letter-spacing: .12em;
  font-weight: 800;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(13,88,101,.18);
  box-shadow: 0 8px 22px rgba(13,88,101,.10);
}

.node-a { top: 13%; left: 14%; }
.node-b { top: 24%; right: 0; }
.node-c { bottom: 12%; left: 12%; }
.node-d { bottom: 25%; right: 2%; }

.quick-links {
  margin-top: -54px;
  position: relative;
  z-index: 10;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
}

.quick-card {
  min-height: 165px;
  padding: 28px;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: .2s ease;
}

.quick-card:last-child { border-right: 0; }

.quick-card:hover {
  background: var(--petrol);
  color: #fff;
}

.quick-number {
  font-size: .67rem;
  letter-spacing: .16em;
  color: var(--blue);
}

.quick-card:hover .quick-number { color: rgba(255,255,255,.62); }

.quick-card strong {
  font-family: "Manrope";
  font-size: 1.08rem;
}

.quick-card span:last-child { font-size: .78rem; opacity: .78; }

.section { padding: 110px 0; }

.section-soft { background: var(--ice); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: start;
}

.section h2,
.cta h2 {
  font-size: clamp(2.5rem, 4vw, 4.8rem);
}

.lead-copy p {
  font-size: 1.18rem;
  color: #536b72;
  margin: 0 0 28px;
}

.text-link {
  color: var(--petrol);
  font-weight: 800;
  font-size: .9rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 50px;
  margin-bottom: 44px;
}

.section-heading > p {
  max-width: 470px;
  color: #5b7177;
  margin: 0;
}

.area-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.area-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
  min-height: 270px;
  transition: .25s ease;
}

.area-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.area-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--petrol);
  font-size: 1.5rem;
}

.area-card h3 {
  font-family: "Manrope";
  font-size: 1.22rem;
  margin: 36px 0 12px;
}

.area-card p {
  color: #63777c;
  font-size: .9rem;
  margin: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.35fr .825fr .825fr;
  gap: 18px;
}

.feature {
  background: var(--ice);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.feature-art {
  min-height: 240px;
  position: relative;
  overflow: hidden;
}

.feature-large .feature-art { min-height: 330px; }

.feature-content { padding: 26px 28px 30px; }

.tag, .news-meta {
  color: var(--petrol);
  font-size: .65rem;
  letter-spacing: .13em;
  font-weight: 800;
}

.feature h3 {
  font-family: "Manrope";
  font-size: 1.65rem;
  margin: 10px 0 8px;
}

.feature p {
  color: #63777c;
  font-size: .9rem;
}

.feature a, .news-card a {
  font-size: .8rem;
  font-weight: 800;
  color: var(--petrol);
}

.art-robot {
  background:
    radial-gradient(circle at 50% 35%, rgba(255,255,255,.7), transparent 22%),
    linear-gradient(145deg, #cbe5eb, #719eaa);
}

.bot-head {
  width: 140px;
  height: 110px;
  border: 7px solid #123941;
  border-radius: 40px 40px 30px 30px;
  position: absolute;
  left: 50%;
  top: 74px;
  transform: translateX(-50%);
  background: #ecf7f9;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

.bot-head i {
  width: 18px;
  height: 18px;
  background: var(--petrol);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(13,88,101,.10);
}

.bot-body {
  width: 210px;
  height: 150px;
  background: #123941;
  border-radius: 90px 90px 20px 20px;
  position: absolute;
  left: 50%;
  top: 180px;
  transform: translateX(-50%);
}

.art-green {
  background:
    radial-gradient(circle at 20% 15%, #eff7e9, transparent 26%),
    linear-gradient(150deg, #d9eadb, #94ba9e);
}

.leaf {
  position: absolute;
  background: rgba(13,88,101,.75);
  width: 76px;
  height: 140px;
  border-radius: 100% 0 100% 0;
  transform-origin: bottom right;
}

.l1 { left: 44%; bottom: -10px; transform: rotate(-25deg); }
.l2 { left: 26%; bottom: -8px; transform: rotate(-58deg) scale(.85); }
.l3 { left: 57%; bottom: 3px; transform: rotate(12deg) scale(.72); }

.art-access {
  background:
    linear-gradient(45deg, rgba(255,255,255,.26) 25%, transparent 25%) 0 0/26px 26px,
    linear-gradient(135deg, #dbeaf0, #8db0bd);
}

.hand {
  position: absolute;
  width: 74px;
  height: 125px;
  border-radius: 40px 40px 24px 24px;
  border: 4px solid var(--petrol-dark);
  opacity: .84;
}

.h1 { left: 32%; top: 58px; transform: rotate(-24deg); }
.h2 { left: 54%; top: 42px; transform: rotate(18deg); }

.impact {
  background: var(--petrol-dark);
  color: #fff;
  padding: 60px 0;
}

.impact-grid {
  display: grid;
  grid-template-columns: 1.7fr repeat(3, 1fr);
  gap: 30px;
  align-items: center;
}

.impact-grid > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.impact strong {
  font-family: "Manrope";
  font-size: 2rem;
}

.impact span {
  color: rgba(255,255,255,.64);
  font-size: .78rem;
}

.metric {
  border-left: 1px solid rgba(255,255,255,.18);
  padding-left: 30px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.news-card {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.news-image {
  aspect-ratio: 16/10;
  border-radius: 16px;
  margin-bottom: 22px;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}

.news-image span {
  font-family: "Manrope";
  font-size: 5rem;
  font-weight: 800;
  color: rgba(255,255,255,.54);
}

.news-1 { background: linear-gradient(135deg, #133f48, #73a5b2); }
.news-2 { background: linear-gradient(135deg, #8aaeb8, #d9eef2); }
.news-3 { background: linear-gradient(135deg, #809e83, #dbe9d5); }

.news-card h3 {
  font-family: "Manrope";
  font-size: 1.28rem;
  line-height: 1.25;
  margin: 10px 0;
}

.news-card p {
  color: #64787d;
  font-size: .88rem;
}

.cta {
  background:
    radial-gradient(circle at 85% 30%, rgba(255,255,255,.12), transparent 25%),
    var(--petrol);
  color: #fff;
  padding: 90px 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta h2 { max-width: 760px; }

.section-kicker-light { color: #b8dce4; }

.btn-white {
  background: #fff;
  color: var(--petrol-dark);
  min-width: 170px;
}

.footer {
  background: #071d23;
  color: rgba(255,255,255,.74);
  padding: 70px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 55px;
}

.footer strong {
  color: #fff;
  font-family: "Manrope";
  font-size: 1.8rem;
}

.footer h4 {
  color: #fff;
  margin: 0 0 14px;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.footer a, .footer p {
  display: block;
  font-size: .8rem;
  margin: 7px 0;
}

.footer a:hover { color: #fff; }

.footer-brand p { max-width: 360px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.10);
  margin-top: 46px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  font-size: .7rem;
}

@media (max-width: 1050px) {
  .main-nav { display: none; }
  .header-inner { min-height: 78px; }
  .hero-content { grid-template-columns: 1fr; padding: 80px 0 120px; }
  .hero-visual { display: none; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-card:nth-child(2) { border-right: 0; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-large { grid-column: 1 / -1; }
  .area-grid { grid-template-columns: repeat(2, 1fr); }
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 28px, 1180px); }
  .brand { min-width: 0; }
  .brand-text small { display: none; }
  .brand-text strong { font-size: 1.35rem; }

  .hero, .hero-content { min-height: 540px; }
  .hero-content { padding-top: 70px; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.7rem); }
  .hero-copy p { font-size: 1rem; }

  .quick-links { margin-top: -38px; }
  .quick-grid { grid-template-columns: 1fr; }
  .quick-card { min-height: 130px; border-right: 0; border-bottom: 1px solid var(--line); }

  .section { padding: 78px 0; }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .section-heading { align-items: start; flex-direction: column; gap: 18px; }

  .area-grid,
  .feature-grid,
  .news-grid,
  .impact-grid,
  .footer-grid { grid-template-columns: 1fr; }

  .feature-large { grid-column: auto; }
  .metric { border-left: 0; border-top: 1px solid rgba(255,255,255,.18); padding: 18px 0 0; }

  .cta-inner { align-items: flex-start; flex-direction: column; }
  .footer-grid > div:last-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}


/* =========================================================
   NOTICIAS AUTOMÁTICAS
   ========================================================= */

.news-source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.news-status {
  min-height: 20px;
  margin: -18px 0 22px;
  color: #6b7e83;
  font-size: .82rem;
}

.news-status:empty {
  display: none;
}

.news-card {
  display: flex;
  flex-direction: column;
}

.news-card .news-image {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #133f48, #73a5b2);
}

.news-card .news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

.news-card:hover .news-image img {
  transform: scale(1.025);
}

.news-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(135deg, #0d5865, #8db5bf);
  background-size: 22px 22px, 22px 22px, auto;
  color: rgba(255,255,255,.82);
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  letter-spacing: .08em;
  font-size: 1.2rem;
}

.news-origin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: var(--petrol);
  font-size: .63rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.news-origin::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

.news-origin.ministry::before {
  background: var(--accent);
}

.news-card h3 a:hover {
  color: var(--petrol);
}

.news-excerpt {
  min-height: 4.4em;
}

.news-fallback {
  padding: 18px 20px;
  background: var(--ice);
  border: 1px solid var(--line);
  border-radius: 14px;
}

@media (max-width: 720px) {
  .news-source-links {
    flex-direction: column;
    gap: 8px;
  }
}


/* =========================================================
   IDENTIDAD OFICIAL CIIDEPT
   ========================================================= */

.brand-official {
  min-width: 0;
  display: flex;
  align-items: center;
}

.official-logo-header {
  display: block;
  width: 100%;
  max-width: 395px;
  height: auto;
}

.footer-brand-official {
  display: flex;
  align-items: flex-start;
}

.official-logo-footer {
  display: block;
  width: 100%;
  max-width: 245px;
  height: auto;
}

@media (max-width: 1050px) {
  .official-logo-header {
    max-width: 340px;
  }
}

@media (max-width: 720px) {
  .official-logo-header {
    max-width: 245px;
  }

  .official-logo-footer {
    max-width: 205px;
  }
}


/* Procedencia de Novedades */
.news-origin.blog {
  color: var(--petrol);
}

.news-origin.ministry {
  color: #0a63a8;
}

.news-origin.ministry::before {
  background: #0a63a8;
}


/* =========================================================
   SECCIONES REALES DEL CIIDEPT
   ========================================================= */

.real-sections {
  margin-top: -54px;
  position: relative;
  z-index: 10;
}

.real-section-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.real-section-card {
  min-height: 245px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 26px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 58, 68, .07);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.real-section-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--petrol), var(--blue));
  opacity: .75;
}

.real-section-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(13, 88, 101, .28);
}

.section-number {
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--blue);
}

.section-icon {
  width: 48px;
  height: 48px;
  margin: 18px 0 24px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--blue-soft);
  color: var(--petrol);
  font-size: 1.35rem;
  font-weight: 700;
}

.real-section-card strong {
  font-family: "Manrope", sans-serif;
  font-size: 1.08rem;
  line-height: 1.25;
}

.real-section-card p {
  margin: 10px 0 22px;
  color: #64787d;
  font-size: .84rem;
}

.section-arrow {
  margin-top: auto;
  color: var(--petrol);
  font-size: .78rem;
  font-weight: 800;
}

.anchor-section {
  height: 1px;
}

@media (max-width: 1050px) {
  .real-section-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .real-sections {
    margin-top: -38px;
  }

  .real-section-grid {
    grid-template-columns: 1fr;
  }

  .real-section-card {
    min-height: 210px;
  }
}


/* =========================================================
   AJUSTE DE PROPORCIONES DEL ENCABEZADO
   ========================================================= */
.site-header .header-inner {
  min-height: 112px;
}

.official-logo-header {
  width: min(455px, 41vw);
  max-width: 455px;
}

.main-nav {
  gap: 26px;
  font-size: .94rem;
  font-weight: 700;
}

.main-nav a {
  padding: 42px 0;
}

.main-nav a::after {
  bottom: 30px;
}

/* =========================================================
   HERO CON SLIDER DE IMÁGENES REALES
   ========================================================= */
.hero-slider {
  min-height: 650px;
  position: relative;
  overflow: hidden;
  background: #0c3d48;
}

.hero-slides,
.hero-slide,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-slide {
  background-size: cover;
  background-position: center center;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity .9s ease, transform 7s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1.0);
}

.hero-slide.portrait-focus {
  background-position: center 38%;
}

.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg,
      rgba(4, 29, 36, .88) 0%,
      rgba(4, 29, 36, .74) 38%,
      rgba(4, 29, 36, .30) 68%,
      rgba(4, 29, 36, .16) 100%),
    linear-gradient(0deg, rgba(4,29,36,.35), transparent 45%);
}

.hero-content-slider {
  position: relative;
  z-index: 2;
  min-height: 650px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.hero-slider .hero-copy {
  max-width: 760px;
}

.hero-slider .eyebrow {
  color: #bfe4eb;
}

.hero-slider h1 {
  color: #fff;
  text-shadow: 0 3px 20px rgba(0,0,0,.22);
}

.hero-slider .hero-copy p {
  color: rgba(255,255,255,.88);
  max-width: 680px;
}

.btn-secondary-light {
  color: #fff;
  border-color: rgba(255,255,255,.62);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(7px);
}

.btn-secondary-light:hover {
  color: var(--petrol-dark);
  background: #fff;
}

.hero-slider-controls {
  position: absolute;
  left: 0;
  bottom: 42px;
  display: flex;
  align-items: center;
  gap: 13px;
}

.slider-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slider-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.46);
  padding: 0;
  cursor: pointer;
  transition: width .2s ease, background .2s ease;
}

.slider-dot.active {
  width: 29px;
  background: #fff;
}

.slider-arrow {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 50%;
  background: rgba(4,29,36,.26);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(5px);
  transition: .2s ease;
}

.slider-arrow:hover {
  background: #fff;
  color: var(--petrol-dark);
}

/* =========================================================
   AUTORIDADES
   ========================================================= */
.section-authorities {
  background: var(--ice);
}

.authority-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.authority-card {
  min-height: 190px;
  padding: 30px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.authority-role {
  color: var(--petrol);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.authority-card strong {
  font-family: "Manrope", sans-serif;
  font-size: 1.28rem;
}

@media (max-width: 1120px) {
  .site-header .header-inner {
    min-height: 92px;
  }

  .official-logo-header {
    width: min(390px, 48vw);
  }

  .main-nav {
    gap: 18px;
    font-size: .86rem;
  }
}

@media (max-width: 1050px) {
  .official-logo-header {
    width: 360px;
    max-width: 75vw;
  }

  .hero-slider,
  .hero-content-slider {
    min-height: 610px;
  }
}

@media (max-width: 720px) {
  .site-header .header-inner {
    min-height: 78px;
  }

  .official-logo-header {
    width: 275px;
    max-width: 82vw;
  }

  .hero-slider,
  .hero-content-slider {
    min-height: 590px;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(4,29,36,.88), rgba(4,29,36,.50));
  }

  .hero-slider-controls {
    bottom: 28px;
  }

  .authority-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   REVISIÓN FINAL 18-09-2026
   ========================================================= */

/* Header más compacto; logo principal reducido aprox. 50 % */
.site-header .header-inner {
  min-height: 72px;
}

.official-logo-header {
  width: min(228px, 30vw);
  max-width: 228px;
  height: auto;
}

.main-nav {
  gap: 24px;
  font-size: .90rem;
}

.main-nav a {
  padding: 25px 0;
}

.main-nav a::after {
  bottom: 17px;
}

/* Footer: logo reducido 50 % */
.official-logo-footer {
  width: 50%;
  max-width: 122px;
  height: auto;
}

/* Secciones principales: seis cards, sin numeración */
.real-section-grid {
  grid-template-columns: repeat(3, 1fr);
}

.real-section-card {
  min-height: 230px;
}

.real-section-card .section-icon {
  margin-top: 0;
}

/* Novedades: mejor aprovechamiento de originales grandes */
.news-image {
  aspect-ratio: 16 / 9;
  background: #dbe8eb;
}

.news-card .news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: auto;
}

/* Autoridades con imágenes institucionales */
.authority-card-photo {
  padding: 0;
  overflow: hidden;
  justify-content: flex-start;
}

.authority-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #dfeaec;
}

.authority-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.authority-card-body {
  padding: 26px 28px 30px;
  margin-top: auto;
  display: flex;
  flex-direction: column;
}

/* Menú móvil */
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  padding: 10px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: var(--petrol-dark);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

@media (max-width: 1050px) {
  .site-header .header-inner {
    min-height: 68px;
  }

  .official-logo-header {
    width: 210px;
    max-width: 55vw;
  }

  .menu-toggle {
    display: block;
    position: relative;
    z-index: 42;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 12px 24px 22px;
    background: rgba(255,255,255,.985);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 34px rgba(10,55,65,.12);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 14px 2px;
    border-bottom: 1px solid rgba(13,88,101,.09);
  }

  .main-nav a:last-child {
    border-bottom: 0;
  }

  .main-nav a::after {
    display: none;
  }

  .menu-toggle.open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .real-section-grid,
  .authority-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .official-logo-header {
    width: 190px;
    max-width: 68vw;
  }

  .official-logo-footer {
    width: 110px;
    max-width: 110px;
  }

  .real-section-grid,
  .authority-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .real-section-card {
    min-height: 195px;
  }

  .news-image {
    aspect-ratio: 16 / 9;
  }
}


/* Las fotos de Autoridades se cargan desde la página oficial del Ministerio.
   Las imágenes locales quedan como respaldo si la fuente externa no responde. */
.authority-photo img {
  object-position: center top;
}


/* Retratos de Autoridades */
.authority-photo {
  aspect-ratio: 4 / 5;
  background: #e6eef0;
}

.authority-photo img {
  object-fit: cover;
  object-position: center top;
}


/* =========================================================
   BARRA DE NAVEGACIÓN SUPERIOR — V9
   Azul institucional + logo blanco
   ========================================================= */

.site-header {
  background: #0b3f73;
  border-bottom: 0;
  box-shadow: 0 4px 18px rgba(5, 35, 65, .18);
  backdrop-filter: none;
}

.site-header .header-inner {
  min-height: 74px;
}

.brand-official {
  flex-shrink: 0;
}

.official-logo-header {
  width: 228px;
  max-width: 228px;
  height: auto;
  display: block;
}

.main-nav {
  gap: 26px;
  font-size: .91rem;
  font-weight: 700;
}

.main-nav a {
  color: #ffffff;
  padding: 26px 0;
  opacity: .94;
  transition: opacity .2s ease;
}

.main-nav a:hover {
  opacity: 1;
}

.main-nav a::after {
  background: #ffffff;
  bottom: 17px;
}

.menu-toggle {
  border-color: rgba(255,255,255,.34);
  background: transparent;
}

.menu-toggle span {
  background: #ffffff;
}

/* Tablet / móvil */
@media (max-width: 1050px) {
  .site-header .header-inner {
    min-height: 70px;
  }

  .official-logo-header {
    width: 205px;
    max-width: 58vw;
  }

  .main-nav {
    background: #0b3f73;
    border-top: 1px solid rgba(255,255,255,.10);
    border-bottom: 0;
    box-shadow: 0 18px 34px rgba(5,35,65,.22);
  }

  .main-nav a {
    color: #ffffff;
    border-bottom: 1px solid rgba(255,255,255,.12);
  }

  .main-nav a:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 720px) {
  .official-logo-header {
    width: 185px;
    max-width: 70vw;
  }
}


/* =========================================================
   V10 — BARRA SUPERIOR NEGRA Y COMPACTA
   ========================================================= */

.site-header {
  background: #071d23;
  border-bottom: 0;
  box-shadow: 0 3px 14px rgba(0,0,0,.20);
}

.site-header .header-inner {
  min-height: 48px;
}

.official-logo-header {
  width: 194px;
  max-width: 194px;
  height: auto;
}

.main-nav {
  gap: 22px;
  font-size: .84rem;
  font-weight: 700;
}

.main-nav a {
  color: #ffffff;
  padding: 15px 0;
  opacity: .93;
}

.main-nav a:hover {
  opacity: 1;
}

.main-nav a::after {
  background: #ffffff;
  bottom: 7px;
  height: 1px;
}

.menu-toggle {
  width: 36px;
  height: 36px;
  border-color: rgba(255,255,255,.28);
  background: transparent;
}

.menu-toggle span {
  background: #ffffff;
}

@media (max-width: 1050px) {
  .site-header .header-inner {
    min-height: 48px;
  }

  .official-logo-header {
    width: 176px;
    max-width: 60vw;
  }

  .main-nav {
    background: #071d23;
    border-top: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 18px 34px rgba(0,0,0,.24);
  }

  .main-nav a {
    color: #ffffff;
    border-bottom: 1px solid rgba(255,255,255,.10);
  }
}

@media (max-width: 720px) {
  .official-logo-header {
    width: 160px;
    max-width: 68vw;
  }
}


/* =========================================================
   V11 — BARRA DE NAVEGACIÓN MÁS BAJA
   ========================================================= */

/* Igual al color exacto del footer */
.site-header {
  background: #071d23;
}

/* Aproximadamente la mitad del alto de V10 */
.site-header .header-inner {
  min-height: 28px;
  padding-top: 0;
  padding-bottom: 0;
}

/* Logo +25% respecto de V10: 194px → 243px */
.official-logo-header {
  width: 243px;
  max-width: 243px;
  height: auto;
}

/* Menú más compacto */
.main-nav a {
  padding: 7px 0;
}

.main-nav a::after {
  bottom: 2px;
}

@media (max-width: 1050px) {
  .site-header .header-inner {
    min-height: 30px;
  }

  .official-logo-header {
    width: 220px;
    max-width: 62vw;
  }
}

@media (max-width: 720px) {
  .site-header .header-inner {
    min-height: 32px;
  }

  .official-logo-header {
    width: 195px;
    max-width: 72vw;
  }
}


/* =========================================================
   V12 — RETRATOS OFICIALES DE AUTORIDADES
   ========================================================= */

.authority-photo {
  aspect-ratio: 4 / 5;
  background: #e8edef;
}

.authority-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* El retrato del coordinador tiene fondo transparente y requiere
   un poco más de aire alrededor para no quedar sobredimensionado. */
.authority-card:nth-child(3) .authority-photo img {
  object-fit: contain;
  object-position: center bottom;
  padding: 8%;
}


/* =========================================================
   V13 — AJUSTE VERIFICADO DE HEADER Y AUTORIDADES
   ========================================================= */

/* Exactamente el mismo color usado en el footer */
.site-header {
  background: #071d23;
  border: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
}

/* Barra visual aproximadamente a la mitad de la altura anterior */
.site-header .header-inner {
  min-height: 26px;
  height: 26px;
  padding-top: 0;
  padding-bottom: 0;
  position: relative;
}

/* El PNG fue recortado: ahora el ancho CSS corresponde al logo real.
   146 px ≈ 20 % más grande que el tamaño visible anterior. */
.brand-official {
  position: relative;
  height: 26px;
  min-width: 150px;
  overflow: visible;
  z-index: 3;
}

.official-logo-header {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 146px;
  max-width: 146px;
  height: auto;
  display: block;
}

.main-nav {
  gap: 20px;
  font-size: .80rem;
  line-height: 1;
}

.main-nav a {
  padding: 7px 0 6px;
  color: #fff;
}

.main-nav a::after {
  bottom: 1px;
  height: 1px;
}

/* Las tres autoridades usan exactamente el mismo marco y escala de imagen */
.authority-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #e8edef;
}

.authority-photo img,
.authority-card:nth-child(3) .authority-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  padding: 0;
}

@media (max-width: 1050px) {
  .site-header .header-inner {
    min-height: 32px;
    height: 32px;
  }

  .brand-official {
    height: 32px;
  }

  .official-logo-header {
    width: 142px;
    max-width: 142px;
  }

  .main-nav {
    background: #071d23;
  }
}

@media (max-width: 720px) {
  .site-header .header-inner {
    min-height: 34px;
    height: 34px;
  }

  .brand-official {
    height: 34px;
  }

  .official-logo-header {
    width: 136px;
    max-width: 136px;
  }
}


/* =========================================================
   V18 — ALTURA DE BARRA AJUSTADA AL LOGO
   ========================================================= */

.site-header .header-inner {
  min-height: 0;
  padding-top: 4px;
  padding-bottom: 4px;
}

.official-logo-header {
  width: 243px;
  max-width: 243px;
  height: auto;
  display: block;
}

.main-nav a {
  padding-top: 8px;
  padding-bottom: 8px;
}

@media (max-width: 1050px) {
  .site-header .header-inner {
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .official-logo-header {
    width: 220px;
    max-width: 62vw;
  }
}

@media (max-width: 720px) {
  .site-header .header-inner {
    padding-top: 3px;
    padding-bottom: 3px;
  }

  .official-logo-header {
    width: 195px;
    max-width: 72vw;
  }
}

/* =========================================================
   V20 — AJUSTES SOLICITADOS 28 SEP 2026
   Header 50 px + institucional compacto
   ========================================================= */

/* Barra negra: altura total fija de 50 px */
.site-header {
  background: #071d23;
}

.site-header .header-inner {
  min-height: 50px;
  height: 50px;
  padding-top: 0;
  padding-bottom: 0;
  align-items: center;
}

/* El logo queda completamente contenido dentro de los 50 px */
.brand-official {
  position: relative;
  height: 50px;
  min-width: 155px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.official-logo-header {
  position: static;
  transform: none;
  width: auto;
  max-width: none;
  height: 42px;
  max-height: 42px;
  object-fit: contain;
  display: block;
}

.main-nav {
  height: 50px;
  align-items: center;
}

.main-nav a {
  display: flex;
  align-items: center;
  height: 50px;
  padding: 0;
}

.main-nav a::after {
  bottom: 7px;
}

/* Institucional: reducir al mínimo el aire antes y después */
#institucional.section {
  padding-top: 26px;
  padding-bottom: 26px;
}

#institucional .section-kicker {
  margin-bottom: 8px;
}

#institucional h2 {
  margin-top: 0;
  margin-bottom: 0;
}

#institucional .lead-copy p {
  margin-bottom: 16px;
}

@media (max-width: 1050px) {
  .site-header .header-inner,
  .brand-official {
    min-height: 50px;
    height: 50px;
  }

  .official-logo-header {
    width: auto;
    max-width: 62vw;
    height: 40px;
    max-height: 40px;
  }
}

@media (max-width: 720px) {
  .site-header .header-inner,
  .brand-official {
    min-height: 50px;
    height: 50px;
  }

  .official-logo-header {
    width: auto;
    max-width: 68vw;
    height: 38px;
    max-height: 38px;
  }

  #institucional.section {
    padding-top: 22px;
    padding-bottom: 22px;
  }
}


/* =========================================================
   V21 — AJUSTES SOLICITADOS 06 OCT 2026
   Basado en index2.html
   ========================================================= */

/* Logo de cabecera: +5% respecto de V20 (42px -> 44.1px) */
.official-logo-header {
  height: 44.1px;
  max-height: 44.1px;
}

/* Slider: se eliminan los indicadores de puntos/barra; quedan las flechas */
.slider-dots {
  display: none !important;
}

/* Novedades: reducir a la mitad el aire vertical general y el espacio
   entre ACTUALIDAD/Novedades y las cards */
.section-news {
  padding-top: 55px;
  padding-bottom: 55px;
}

.section-news .section-heading {
  margin-bottom: 22px;
}

/* Evitar que el estado de carga agregue aire innecesario */
.section-news .news-status {
  margin-bottom: 8px;
}

/* Comunidad CIIDEPT: reducir a la mitad la altura vacía */
.cta {
  padding-top: 45px;
  padding-bottom: 45px;
}

/* Institucional / Autoridades: reducir el aire antes de las cards */
.section-authorities {
  padding-top: 55px;
  padding-bottom: 55px;
}

.section-authorities .section-heading {
  margin-bottom: 22px;
}

@media (max-width: 1050px) {
  .official-logo-header {
    height: 42px;
    max-height: 42px;
  }

  .section-news,
  .section-authorities {
    padding-top: 39px;
    padding-bottom: 39px;
  }

  .cta {
    padding-top: 36px;
    padding-bottom: 36px;
  }
}

@media (max-width: 720px) {
  .official-logo-header {
    height: 39.9px;
    max-height: 39.9px;
  }

  .section-news,
  .section-authorities {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .section-news .section-heading,
  .section-authorities .section-heading {
    margin-bottom: 18px;
  }

  .cta {
    padding-top: 30px;
    padding-bottom: 30px;
  }
}


/* =========================================================
   REFINAMIENTO 06 OCT 2026 — CARDS + SLIDER
   ========================================================= */

/* Slider automático sin controles visibles */
.hero-slider-controls,
.slider-arrow,
.slider-dots {
  display: none !important;
}

/* Cards: lenguaje más limpio y contemporáneo, con interacción sutil */
.real-section-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(13, 88, 101, 0.10);
  border-radius: 22px;
  box-shadow:
    0 8px 24px rgba(15, 58, 68, 0.055),
    0 1px 2px rgba(15, 58, 68, 0.025);
  transition:
    transform .28s cubic-bezier(.2,.8,.2,1),
    box-shadow .28s cubic-bezier(.2,.8,.2,1),
    border-color .28s ease,
    background-color .28s ease;
  will-change: transform;
}

.real-section-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg,
    rgba(25, 141, 163, 0),
    rgba(25, 141, 163, 0),
    rgba(25, 141, 163, 0));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: background .28s ease;
}

.real-section-card::after {
  display: none;
}

.real-section-card:hover {
  transform: translateY(-6px) scale(1.008);
  background: #fff;
  border-color: rgba(24, 139, 158, 0.38);
  box-shadow:
    0 18px 44px rgba(15, 58, 68, 0.11),
    0 4px 12px rgba(15, 58, 68, 0.045);
}

.real-section-card:hover::before {
  background: linear-gradient(135deg,
    rgba(41, 169, 191, 0.62),
    rgba(42, 130, 166, 0.28),
    rgba(13, 88, 101, 0.56));
}

.real-section-card .section-icon {
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(221,243,247,.92), rgba(233,248,250,.72));
  box-shadow: inset 0 0 0 1px rgba(20, 126, 145, 0.08);
  transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s ease;
}

.real-section-card:hover .section-icon {
  transform: translateY(-1px) scale(1.04);
  box-shadow:
    inset 0 0 0 1px rgba(20,126,145,.14),
    0 8px 18px rgba(23,110,128,.10);
}

.real-section-card strong {
  letter-spacing: -0.015em;
}

.real-section-card .section-arrow {
  opacity: .72;
  transform: translateX(0);
  transition: transform .25s ease, opacity .25s ease;
}

.real-section-card:hover .section-arrow {
  opacity: 1;
  transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
  .real-section-card,
  .real-section-card .section-icon,
  .real-section-card .section-arrow {
    transition: none;
  }
  .real-section-card:hover {
    transform: none;
  }
}

/* =========================================================
   REFINAMIENTO 06 OCT 2026 v2 — CARDS AURORA / EDUCATIVAS
   Inspiración: interfaces tecnológicas contemporáneas,
   manteniendo la identidad institucional CIIDEPT.
   ========================================================= */

.real-section-card {
  isolation: isolate;
  overflow: visible;
  background: rgba(255,255,255,.985);
  border: 1px solid rgba(13,88,101,.12);
  border-radius: 24px;
  box-shadow:
    0 10px 26px rgba(15,58,68,.055),
    0 1px 1px rgba(15,58,68,.03);
}

/* Halo exterior: aparece al interactuar, sin invadir el contenido */
.real-section-card::before {
  content: "";
  position: absolute;
  inset: -3px;
  z-index: -2;
  border-radius: 27px;
  padding: 0;
  background: linear-gradient(115deg,
    rgba(13,88,101,.10),
    rgba(79,143,162,.10),
    rgba(145,186,154,.10),
    rgba(13,88,101,.10));
  filter: blur(0px);
  opacity: 0;
  transform: scale(.985);
  transition:
    opacity .34s ease,
    transform .34s cubic-bezier(.2,.8,.2,1),
    filter .34s ease;
  pointer-events: none;
}

/* Capa interior muy sutil para conservar una superficie limpia */
.real-section-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  height: auto;
  border-radius: inherit;
  background:
    radial-gradient(520px circle at var(--mx, 20%) var(--my, 0%), rgba(79,143,162,.075), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(251,253,253,.99));
  opacity: .72;
  pointer-events: none;
}

/* Cada card recibe un matiz distinto de la paleta institucional */
.real-section-card:nth-child(1) { --card-a: 13,88,101; --card-b: 79,143,162; }
.real-section-card:nth-child(2) { --card-a: 52,120,156; --card-b: 79,143,162; }
.real-section-card:nth-child(3) { --card-a: 89,151,132; --card-b: 145,186,154; }
.real-section-card:nth-child(4) { --card-a: 13,88,101; --card-b: 70,145,168; }
.real-section-card:nth-child(5) { --card-a: 68,126,151; --card-b: 120,172,186; }
.real-section-card:nth-child(6) { --card-a: 181,142,75; --card-b: 213,167,88; }

.real-section-card:hover,
.real-section-card:focus-visible {
  transform: translateY(-8px) scale(1.012);
  border-color: rgba(var(--card-a), .40);
  box-shadow:
    0 24px 58px rgba(15,58,68,.13),
    0 8px 20px rgba(var(--card-a), .08);
  outline: none;
}

.real-section-card:hover::before,
.real-section-card:focus-visible::before {
  opacity: 1;
  transform: scale(1.004);
  filter: blur(7px);
  background: linear-gradient(115deg,
    rgba(var(--card-a), .72),
    rgba(var(--card-b), .52),
    rgba(255,255,255,.16),
    rgba(var(--card-a), .62));
  background-size: 220% 220%;
  animation: ciideptAurora 3.8s ease-in-out infinite alternate;
}

/* Línea superior animada, fina: sensación tecnológica sin perder sobriedad */
.real-section-card > * {
  position: relative;
  z-index: 2;
}

.real-section-card strong {
  font-size: 1.11rem;
  letter-spacing: -.018em;
  transition: color .25s ease;
}

.real-section-card:hover strong,
.real-section-card:focus-visible strong {
  color: rgb(var(--card-a));
}

.real-section-card .section-icon {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: linear-gradient(145deg,
    rgba(var(--card-a), .11),
    rgba(var(--card-b), .055));
  color: rgb(var(--card-a));
  border: 1px solid rgba(var(--card-a), .12);
  box-shadow: none;
}

.real-section-card:hover .section-icon,
.real-section-card:focus-visible .section-icon {
  transform: translateY(-2px) scale(1.055);
  background: linear-gradient(145deg,
    rgba(var(--card-a), .16),
    rgba(var(--card-b), .09));
  box-shadow:
    0 10px 24px rgba(var(--card-a), .13),
    inset 0 0 0 1px rgba(255,255,255,.45);
}

.real-section-card .section-arrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 5px;
  padding: 7px 10px;
  margin-left: -10px;
  border-radius: 999px;
  transition:
    transform .25s ease,
    opacity .25s ease,
    background-color .25s ease,
    color .25s ease;
}

.real-section-card:hover .section-arrow,
.real-section-card:focus-visible .section-arrow {
  transform: translateX(4px);
  opacity: 1;
  color: rgb(var(--card-a));
  background: rgba(var(--card-a), .075);
}

@keyframes ciideptAurora {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

@media (hover: none) {
  .real-section-card::before { opacity: .18; filter: blur(5px); }
  .real-section-card:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .real-section-card::before { animation: none !important; }
}

/* =========================================================
   REFINAMIENTO 06 OCT 2026 v3 — SECCIÓN OSCURA + CARDS PASTEL
   Cards de identidad diferenciada sobre fondo institucional.
   ========================================================= */

.real-sections {
  /* Mismo tono de la barra de navegación superior para unificar la identidad visual */
  background: #071d23;
  padding: 0 0 58px;
}

.real-sections .container {
  position: relative;
  z-index: 2;
}

/* Tonos pastel diferenciados, todos desaturados para conservar carácter institucional */
.real-section-card:nth-child(1) {
  --card-a: 45,119,91;
  --card-b: 118,174,139;
  --card-bg: #e8f4ec;
  --card-bg-2: #f4faf6;
}
.real-section-card:nth-child(2) {
  --card-a: 54,118,159;
  --card-b: 112,168,197;
  --card-bg: #e7f2f8;
  --card-bg-2: #f4f9fc;
}
.real-section-card:nth-child(3) {
  --card-a: 54,139,158;
  --card-b: 120,187,198;
  --card-bg: #e5f5f7;
  --card-bg-2: #f3fbfc;
}
.real-section-card:nth-child(4) {
  --card-a: 87,95,159;
  --card-b: 139,145,197;
  --card-bg: #ececf8;
  --card-bg-2: #f8f8fc;
}
.real-section-card:nth-child(5) {
  --card-a: 166,128,54;
  --card-b: 211,174,98;
  --card-bg: #faf2dd;
  --card-bg-2: #fffaf0;
}
.real-section-card:nth-child(6) {
  --card-a: 101,83,161;
  --card-b: 146,125,198;
  --card-bg: #efeafb;
  --card-bg-2: #faf8fe;
}

.real-section-card {
  background: var(--card-bg);
  border-color: rgba(var(--card-a), .18);
  box-shadow:
    0 16px 34px rgba(0,0,0,.12),
    0 2px 8px rgba(0,0,0,.05);
}

.real-section-card::after {
  background:
    radial-gradient(540px circle at var(--mx, 18%) var(--my, 0%), rgba(255,255,255,.55), transparent 42%),
    linear-gradient(145deg, rgba(255,255,255,.34), rgba(255,255,255,.02) 58%, rgba(var(--card-a), .035));
  opacity: .92;
}

.real-section-card:hover,
.real-section-card:focus-visible {
  background: var(--card-bg-2);
  border-color: rgba(var(--card-a), .48);
  box-shadow:
    0 30px 70px rgba(0,0,0,.20),
    0 12px 28px rgba(var(--card-a), .13);
}

.real-section-card p {
  color: #556d74;
}

.real-section-card .section-icon {
  background: rgba(255,255,255,.58);
  border-color: rgba(var(--card-a), .18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.real-section-card:hover .section-icon,
.real-section-card:focus-visible .section-icon {
  background: rgba(255,255,255,.78);
}

/* Una separación más refinada entre el bloque oscuro y la sección siguiente */
.real-sections + .section,
.real-sections + section {
  position: relative;
}

@media (max-width: 760px) {
  .real-sections { padding-bottom: 40px; }
}

/* =========================================================
   REFINAMIENTO 06 OCT 2026 v4 — CARDS ENTRE DOS PLANOS
   La banda oscura comienza después de la curva superior de
   las primeras cards y termina antes de la curva inferior de
   las últimas, de modo que las tarjetas flotan entre el hero
   y la sección clara siguiente.
   ========================================================= */
.real-sections {
  background: transparent;
  padding: 0;
  position: relative;
  isolation: isolate;
}

.real-sections::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 0;
  right: 0;
  top: 18px;
  bottom: 18px;
  background: #071d23;
  pointer-events: none;
}

.real-sections .container {
  position: relative;
  z-index: 2;
}

/* Deja que la siguiente sección clara aparezca inmediatamente
   debajo de la curvatura de las cards inferiores. */
.real-sections + .section,
.real-sections + section {
  margin-top: 0;
}

@media (max-width: 760px) {
  .real-sections {
    padding: 0;
  }
  .real-sections::before {
    top: 16px;
    bottom: 16px;
  }
}
