/* =========================================================
   COLEGIOS EN VALPARAÍSO
   Hoja específica. Reutiliza variables y header de style.css
   ========================================================= */

.colegios-page {
  background: #fff;
  color: var(--negro);
  overflow: hidden;
}

.colegios-page *,
.colegios-page *::before,
.colegios-page *::after {
  box-sizing: border-box;
}

/* Neutraliza solo dentro de esta página la regla global que
   obliga a todas las secciones del sitio a medir 100vh. */
.colegios-page section {
  min-height: auto !important;
  padding: 0;
  display: block;
}

.cv-container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

/* HERO */
.cv-hero {
  position: relative;
  color: var(--blanco);
  background:
    linear-gradient(115deg, rgba(54, 9, 21, .96), rgba(97, 20, 39, .90) 52%, rgba(211, 188, 141, .72)),
    url('../img/colegio.jpg') center / cover no-repeat;
}

.cv-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 46px 46px;
}

.cv-hero-grid {
  position: relative;
  z-index: 1;
  min-height: 650px;
  padding: 140px 0 105px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}

.cv-breadcrumb {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 9px;
  max-width: none;
  margin: 0 0 22px;
  padding: 0;
  font-size: .9rem;
  color: rgba(255,255,255,.78);
}

.cv-breadcrumb a {
  color: var(--blanco);
  text-decoration: none;
}

.cv-breadcrumb a:hover {
  text-decoration: underline;
}

.cv-kicker,
.cv-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1.35px;
  font-size: .84rem;
  font-weight: 900;
}

.cv-kicker {
  color: var(--dorado-marron);
  margin-bottom: 13px;
}

.cv-kicker-light {
  color: #f4e5bb;
}

.cv-hero h1 {
  margin: 0;
  color: var(--blanco);
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: .94;
  letter-spacing: -2.8px;
}

.cv-hero h1 strong {
  display: block;
  color: #f5dfa8;
  font-weight: 900;
}

.cv-lead {
  max-width: 680px;
  margin: 26px 0 30px;
  color: rgba(255,255,255,.94);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.65;
}

.cv-actions {
  display: flex;
  gap: 13px;
  align-items: center;
  flex-wrap: wrap;
}

.cv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 21px;
  border-radius: var(--border-radius-full);
  border: 2px solid transparent;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.1;
  transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}

.cv-btn:hover,
.cv-btn:focus {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.cv-btn-gold {
  background: var(--dorado-marron);
  color: #3f2f18;
}

.cv-btn-outline {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.58);
  color: var(--blanco);
}

.cv-btn-burgundy {
  background: var(--burdeos-principal);
  color: var(--blanco);
}

.cv-btn-white {
  background: var(--blanco);
  border-color: #e7e7e7;
  color: var(--burdeos-principal);
}

.cv-hero-panel {
  padding: 31px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--border-radius-xl);
  background: rgba(255,255,255,.11);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-xl);
}

.cv-panel-label {
  display: block;
  margin-bottom: 12px;
  color: #f5dfa8;
  font-size: .82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cv-hero-panel h2 {
  margin: 0 0 22px;
  color: var(--blanco);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  line-height: 1.15;
}

.cv-hero-panel ul {
  list-style: none;
  padding: 0;
  margin: 0 0 23px;
  display: grid;
  gap: 12px;
}

.cv-hero-panel li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255,255,255,.94);
  line-height: 1.45;
}

.cv-hero-panel li span {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--dorado-marron);
  color: #3f2f18;
  font-weight: 900;
}

.cv-panel-link {
  color: #f5dfa8;
  font-weight: 900;
  text-decoration: none;
}

.cv-panel-link:hover {
  text-decoration: underline;
}

/* STATS */
.cv-stats {
  position: relative;
  z-index: 4;
  margin-top: -44px;
}

.cv-stats-grid {
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--blanco);
  border: 1px solid rgba(97,20,39,.10);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-lg);
}

.cv-stats-grid article {
  padding: 27px 18px;
  text-align: center;
  border-right: 1px solid #ececec;
}

.cv-stats-grid article:last-child {
  border-right: 0;
}

.cv-stats-grid strong {
  display: block;
  color: var(--burdeos-principal);
  font-size: 1.65rem;
  line-height: 1.1;
}

.cv-stats-grid span {
  display: block;
  margin-top: 7px;
  color: #666;
  font-weight: 700;
  font-size: .95rem;
}

/* GENERIC SECTIONS */
.cv-section {
  padding: 82px 0 !important;
}

.cv-heading {
  max-width: 800px;
  margin: 0 auto 38px;
  text-align: center;
}

.cv-eyebrow {
  margin-bottom: 9px;
  color: var(--burdeos-principal);
}

.cv-heading h2,
.cv-school-copy h2,
.cv-faq-intro h2,
.cv-sae h2,
.cv-final h2 {
  margin: 0;
  color: var(--burdeos-principal);
  font-size: clamp(2rem, 4vw, 3.05rem);
  line-height: 1.08;
  letter-spacing: -1px;
}

.cv-heading p {
  max-width: 760px;
  margin: 16px auto 0;
  color: #5c5c5c;
  font-size: 1.06rem;
  line-height: 1.7;
}

.cv-soft {
  background: linear-gradient(180deg, #f8f8f8, #fff);
}

/* CARDS */
.cv-card-grid {
  display: grid;
  gap: 20px;
}

.cv-card-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.cv-card-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.cv-card {
  padding: 27px 23px;
  background: var(--blanco);
  border: 1px solid rgba(97,20,39,.09);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.cv-icon {
  width: 55px;
  height: 55px;
  margin-bottom: 16px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #f7f0df;
  font-size: 1.75rem;
}

.cv-card h3,
.cv-type h3 {
  margin: 0 0 9px;
  color: var(--burdeos-principal);
  font-size: 1.2rem;
}

.cv-card p,
.cv-type p {
  margin: 0;
  color: #5f5f5f;
  line-height: 1.6;
}

.cv-card-compact {
  padding: 25px 20px;
}

/* TYPES */
.cv-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cv-type {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 31px 25px;
  background: var(--blanco);
  border: 1px solid #e5e5e5;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-sm);
}

.cv-type-featured {
  border-top: 5px solid var(--burdeos-principal);
  box-shadow: var(--shadow-md);
}

.cv-number {
  position: absolute;
  top: 10px;
  right: 18px;
  color: #ededed;
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1;
}

.cv-type h3 {
  position: relative;
  margin-top: 34px;
}

/* SCHOOL */
.cv-school {
  background:
    radial-gradient(circle at top left, rgba(214,196,154,.22), transparent 32%),
    #fff;
}

.cv-school-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 45px;
  align-items: center;
}

.cv-school-copy p {
  margin: 16px 0 0;
  color: #555;
  line-height: 1.72;
  font-size: 1.04rem;
}

.cv-actions-dark {
  margin-top: 27px;
}

.cv-school-box {
  padding: 29px;
  background: var(--gris-medio);
  color: var(--blanco);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-lg);
}

.cv-school-box-title {
  margin-bottom: 12px;
  color: #f5e1b0;
  font-size: .85rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cv-info-row {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255,255,255,.20);
}

.cv-info-row:last-child {
  border-bottom: 0;
}

.cv-info-row > span {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(255,255,255,.13);
  font-size: 1.35rem;
}

.cv-info-row strong,
.cv-info-row small {
  display: block;
}

.cv-info-row strong {
  color: var(--blanco);
  font-size: 1rem;
}

.cv-info-row small {
  margin-top: 2px;
  color: rgba(255,255,255,.85);
  font-size: .92rem;
}

/* PILLARS */
.cv-pillars {
  background: #f7f7f7;
}

/* SAE */
.cv-sae {
  color: var(--blanco);
  background:
    linear-gradient(125deg, rgba(68,10,25,.98), rgba(97,20,39,.96)),
    url('../img/colegio.jpg') center / cover no-repeat;
}

.cv-sae-grid {
  display: grid;
  grid-template-columns: 1fr .95fr;
  gap: 48px;
  align-items: center;
}

.cv-sae h2 {
  color: var(--blanco);
}

.cv-sae p {
  margin: 18px 0 26px;
  color: rgba(255,255,255,.92);
  font-size: 1.06rem;
  line-height: 1.7;
}

.cv-steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--border-radius-xl);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(7px);
}

.cv-steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 58px 112px 1fr;
  gap: 14px;
  align-items: center;
  padding: 17px 20px;
  border-bottom: 1px solid rgba(255,255,255,.16);
}

.cv-steps li:last-child {
  border-bottom: 0;
}

.cv-steps li::before {
  content: counter(step);
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--dorado-marron);
  color: #3f2f18;
  font-weight: 900;
}

.cv-steps strong {
  color: #f5e1b0;
}

.cv-steps span {
  color: rgba(255,255,255,.88);
  line-height: 1.45;
}

/* FAQ */
.cv-faq {
  background: #fff;
}

.cv-faq-grid {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 45px;
  align-items: start;
}

.cv-faq-intro p {
  margin: 16px 0 18px;
  color: #5d5d5d;
  line-height: 1.68;
}

.cv-text-link {
  color: var(--burdeos-principal);
  text-decoration: none;
  font-weight: 900;
}

.cv-text-link:hover {
  text-decoration: underline;
}

.cv-accordion {
  overflow: hidden;
  border: 1px solid #e3e3e3;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-sm);
}

.cv-accordion details {
  background: var(--blanco);
  border-bottom: 1px solid #e8e8e8;
}

.cv-accordion details:last-child {
  border-bottom: 0;
}

.cv-accordion summary {
  position: relative;
  cursor: pointer;
  padding: 19px 52px 19px 21px;
  list-style: none;
  color: #3d3d3d;
  font-weight: 800;
}

.cv-accordion summary::-webkit-details-marker {
  display: none;
}

.cv-accordion summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 21px;
  transform: translateY(-50%);
  color: var(--burdeos-principal);
  font-size: 1.5rem;
  font-weight: 700;
}

.cv-accordion details[open] summary::after {
  content: "−";
}

.cv-accordion details[open] summary {
  color: var(--burdeos-principal);
}

.cv-accordion details p {
  margin: 0;
  padding: 0 21px 21px;
  color: #5e5e5e;
  line-height: 1.65;
}

/* FINAL CTA */
.cv-final {
  color: var(--blanco);
  background: linear-gradient(135deg, var(--burdeos-principal), #430c1b);
}

.cv-final-inner {
  padding: 66px 0 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
}

.cv-final h2 {
  color: var(--blanco);
}

.cv-final p {
  max-width: 700px;
  margin: 13px 0 0;
  color: rgba(255,255,255,.88);
  line-height: 1.65;
}

.cv-final-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cv-contact-line {
  padding: 20px 0 28px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.17);
  color: rgba(255,255,255,.82);
  font-size: .93rem;
}

.cv-contact-line a {
  color: rgba(255,255,255,.90);
  text-decoration: none;
}

.cv-contact-line a:hover {
  text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 980px) {
  .cv-hero-grid,
  .cv-school-grid,
  .cv-sae-grid,
  .cv-faq-grid {
    grid-template-columns: 1fr;
  }

  .cv-hero-grid {
    min-height: auto;
    padding: 125px 0 95px;
  }

  .cv-hero-panel {
    max-width: 680px;
  }

  .cv-stats-grid,
  .cv-card-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .cv-card-grid-3,
  .cv-types {
    grid-template-columns: repeat(2, 1fr);
  }

  .cv-type:last-child {
    grid-column: 1 / -1;
  }

  .cv-final-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .cv-final-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  /* style.css transforma aquí el menú al hamburger original */
  .cv-hero-grid {
    padding-top: 112px;
  }

  .cv-section {
    padding: 64px 0 !important;
  }
}

@media (max-width: 620px) {
  .cv-container {
    width: min(100% - 28px, 1120px);
  }

  .cv-hero-grid {
    padding: 105px 0 76px;
  }

  .cv-hero h1 {
    font-size: clamp(2.75rem, 16vw, 4.35rem);
    letter-spacing: -2px;
  }

  .cv-hero-panel {
    padding: 25px 20px;
  }

  .cv-stats {
    margin-top: -28px;
  }

  .cv-stats-grid,
  .cv-card-grid-3,
  .cv-card-grid-4,
  .cv-types {
    grid-template-columns: 1fr;
  }

  .cv-stats-grid article {
    border-right: 0;
    border-bottom: 1px solid #ececec;
  }

  .cv-stats-grid article:last-child {
    border-bottom: 0;
  }

  .cv-type:last-child {
    grid-column: auto;
  }

  .cv-school-box {
    padding: 23px 19px;
  }

  .cv-steps li {
    grid-template-columns: 48px 1fr;
  }

  .cv-steps span {
    grid-column: 2;
  }

  .cv-actions,
  .cv-final-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .cv-btn {
    width: 100%;
    text-align: center;
  }

  .cv-final-inner {
    padding-top: 54px;
  }

  .cv-contact-line {
    flex-direction: column;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cv-card,
  .cv-btn {
    transition: none !important;
  }
}
