:root{
  --bg:#E7DFD2;
  --panel:#DED5C6;
  --ink:#2F2B25;

  --sage:#4F6F5C;
  --btn:#7A4C37;
  --btn-hover:#6A3F2F;

  --stroke: rgba(47,43,37,.12);
  --shadow: 0 18px 40px rgba(0,0,0,.10);

  --container: 960px;
  --radius: 18px;
  --surface-radius: 14px;
  --surface-radius-lg: 16px;
  --surface-shadow: 0 16px 34px rgba(0,0,0,.10);
  --surface-shadow-hover: 0 22px 46px rgba(0,0,0,.14);

  --tile-h: 340px;
  --gap: 24px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: Inter, system-ui, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
}
a{color:inherit;text-decoration:none}
.container{
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

/* NAV */
.top{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(231,223,210,.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--stroke);
}
.top__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
  gap: 16px;
}
.logo{
  letter-spacing: .22em;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
}
.nav-toggle{
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(47,43,37,.12);
  border-radius: 12px;
  background: rgba(255,255,255,.26);
  color: rgba(47,43,37,.86);
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  position: relative;
  transition: background .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.nav-toggle:hover{
  background: rgba(255,255,255,.38);
  border-color: rgba(47,43,37,.18);
  box-shadow: 0 10px 20px rgba(0,0,0,.06);
}
.nav-toggle:active{
  transform: scale(.98);
}
.nav-toggle:focus-visible{
  outline: 3px solid rgba(159,127,199,.28);
  outline-offset: 2px;
}
.nav-toggle::before,
.nav-toggle::after,
.nav-toggle__bar{
  content:"";
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease, top .2s ease;
}
.nav-toggle::before{ top: 14px; }
.nav-toggle__bar{ top: 20px; }
.nav-toggle::after{ top: 26px; }

.top.is-menu-open .nav-toggle::before{
  top: 20px;
  transform: rotate(45deg);
}
.top.is-menu-open .nav-toggle__bar{
  opacity: 0;
}
.top.is-menu-open .nav-toggle::after{
  top: 20px;
  transform: rotate(-45deg);
}
.nav{
  display:flex;
  align-items:center;
  gap: 18px;
  font-size: 12px;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: rgba(47,43,37,.72);
}
.nav a{
  padding: 10px 10px;
  border-radius: 999px;
  transition: background .15s ease, transform .15s ease;
}
.nav a:hover{
  background: rgba(255,255,255,.35);
  transform: translateY(-1px);
}

/* Buttons */
.btn{
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.btn--sm{padding: 10px 14px; font-size: 11px}
.btn--primary{
  background: var(--btn);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn--primary:hover{background: var(--btn-hover)}
.btn--ghost{
  border: 1px solid rgba(47,43,37,.22);
  background: rgba(255,255,255,.18);
}

/* HERO */
.hero{
  width: min(var(--container), calc(100% - 40px));
  margin: 20px auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--stroke);
  display:grid;
  grid-template-columns: 1fr 1fr;
}
.hero__media{
  min-height: 360px;
  background:
    linear-gradient(90deg, rgba(0,0,0,.10), rgba(0,0,0,.10)),
    url("images/principal.jpeg")
    center/cover no-repeat;
}
.hero__panel{
  background: var(--panel);
  padding: 40px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.hero__eyebrow{
  margin:0 0 10px 0;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(47,43,37,.70);
}
.hero__title{margin:0; font-size: 40px; line-height: 1}
.hero__text{color: rgba(47,43,37,.70); font-size: 13px; max-width: 46ch}

/* Sections */
.section{padding: 42px 0}
.h2{
  margin: 0 0 14px 0;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(47,43,37,.78);
}
.grid-2{
  margin-top: 18px;
}

/* ===== NUEVA SECCIÓN PROGRAMAS (como la captura) ===== */
.section-title{
  margin: 0 0 10px 0;
  font-family: Montserrat, Inter, system-ui, sans-serif;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: .01em;
}
.section-lead{
  margin: 0 0 18px 0;
  color: rgba(47,43,37,.70);
  font-size: 14px;
  max-width: 72ch;
}

.feature-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
}
.feature-grid--two{
  grid-template-columns: repeat(2, minmax(0,1fr));
  max-width: 980px;
  margin: 0 auto;
}

.feature-card{
  border-radius: var(--surface-radius-lg);
  overflow:hidden;
  background: rgba(255,255,255,.22);
  border: 1px solid rgba(47,43,37,.10);
  box-shadow: var(--surface-shadow);
}

.feature-media{
  height: 220px;
  background-size: cover;
  background-position: center;
}

.feature-media--1{
  background-image:url("images/iyengar.jpeg");
}
.feature-media--2{
  background-image:url("images/fluido.jpeg");
}
.feature-media--3{
  background-image:url("images/meditacion.jpeg");
}

.feature-body{padding: 16px 18px 18px 18px}
.feature-title{
  margin: 0 0 8px 0;
  font-family: Montserrat, Inter, system-ui, sans-serif;
  font-size: 16px;
}
.feature-text{
  margin: 0;
  color: rgba(47,43,37,.70);
  font-size: 13px;
  line-height: 1.45;
}

/* NOTICIAS (page) */
.news-page{
  min-height: 70vh;
}
.news-hero{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(47,43,37,.08);
}
.news-hero .section-title{margin-bottom: 6px;}
.news-hero p{margin:0; color: rgba(47,43,37,.70); font-size: 14px;}

.news-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
  margin-top: 18px;
}
.news-card{
  background: rgba(255,255,255,.22);
  border: 1px solid rgba(47,43,37,.10);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,.10);
  display:flex;
  flex-direction: column;
}
.news-card__media{
  height: 200px;
  background: rgba(255,255,255,.55);
}
.news-card__img{
  width: 100%;
  height: auto;
  display: block;
  max-height: 420px;
  object-fit: contain;
  background: rgba(255,255,255,.55);
}
.news-card__media--placeholder{
  background: linear-gradient(140deg, rgba(79,111,92,.18), rgba(122,76,55,.18));
  position: relative;
}
.news-card__media--placeholder::after{
  content: "Sin imagen";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(47,43,37,.55);
}
.news-card__body{
  padding: 16px 18px 18px 18px;
}
.news-card__title{
  margin: 0 0 8px 0;
  font-family: Montserrat, Inter, system-ui, sans-serif;
  font-size: 16px;
}
.news-card__text{
  margin: 0;
  color: rgba(47,43,37,.70);
  font-size: 13px;
  line-height: 1.45;
}
.news-card__date{
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(47,43,37,.55);
}

.news-form{
  margin-top: 18px;
  background: rgba(255,255,255,.22);
  border: 1px solid rgba(47,43,37,.10);
  border-radius: 14px;
  padding: 18px 18px 16px 18px;
  box-shadow: 0 18px 40px rgba(0,0,0,.10);
}
.news-auth{
  margin-top: 18px;
}
.news-admin-bar{
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.22);
  border: 1px solid rgba(47,43,37,.10);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,.10);
  font-size: 12px;
  color: rgba(47,43,37,.75);
}
.news-page .news-grid{
  grid-template-columns: 1fr;
}
.news-page .news-card{
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  border: 1px solid rgba(47,43,37,.12);
}
.news-page .news-card__body{
  padding: 18px;
}
.admin-page .news-grid{
  grid-template-columns: 1fr;
}
.admin-page .news-form,
.admin-page .news-auth__card,
.admin-page .news-admin-bar{
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  border: 1px solid rgba(47,43,37,.12);
}
.admin-page .news-card{
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  border: 1px solid rgba(47,43,37,.12);
}
.is-hidden{
  display: none !important;
}
.news-auth__card{
  background: rgba(255,255,255,.22);
  border: 1px solid rgba(47,43,37,.10);
  border-radius: 14px;
  padding: 18px 18px 16px 18px;
  box-shadow: 0 18px 40px rgba(0,0,0,.10);
}
.news-auth__title{
  margin: 0 0 6px 0;
  font-family: Montserrat, Inter, system-ui, sans-serif;
  font-size: 18px;
}
.news-auth__text{
  margin: 0 0 12px 0;
  color: rgba(47,43,37,.70);
  font-size: 13px;
}
.news-auth__form{
  display:grid;
  gap: 12px;
}
.news-form__grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
}
.field{
  display:flex;
  flex-direction: column;
  gap: 6px;
}
.field label{
  font-size: 11px;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: rgba(47,43,37,.75);
}
.field input,
.field textarea{
  border-radius: 12px;
  border: 1px solid rgba(47,43,37,.18);
  padding: 10px 12px;
  background: rgba(255,255,255,.7);
  font-size: 13px;
  color: var(--ink);
  outline: none;
  width: 100%;
}
.field textarea{min-height: 110px; resize: vertical;}
.field-help{
  font-size: 11px;
  color: rgba(47,43,37,.55);
}
.news-form__actions{
  display:flex;
  align-items:center;
  gap: 12px;
  margin-top: 12px;
}
.news-status{
  font-size: 12px;
  color: rgba(47,43,37,.70);
}

.schedule-admin{
  margin-top: 22px;
  padding: 18px;
  border: 1px solid rgba(47,43,37,.12);
  background: rgba(255,255,255,.18);
}

.schedule-admin__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
}

.schedule-admin__head .news-auth__title{
  margin: 0 0 4px 0;
}

.schedule-admin__legend{
  margin: 14px 0 12px;
  display:flex;
  align-items:center;
  gap: 16px;
  flex-wrap: wrap;
}

.schedule-admin__table-wrap{
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(47,43,37,.10);
  background: rgba(255,255,255,.12);
}

.schedule-edit-table{
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.schedule-edit-table thead th{
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(155,138,159,.92);
  color: rgba(255,255,255,.96);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.schedule-edit-table th,
.schedule-edit-table td{
  border: 1px solid rgba(47,43,37,.10);
  padding: 8px;
  vertical-align: top;
}

.schedule-edit-table tbody > tr > th{
  width: 150px;
  min-width: 150px;
  background: rgba(255,255,255,.58);
  color: rgba(47,43,37,.78);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  position: sticky;
  left: 0;
  z-index: 1;
}

.schedule-edit-time{
  width: 100%;
  border: 1px solid rgba(47,43,37,.14);
  background: rgba(255,255,255,.88);
  color: rgba(47,43,37,.88);
  border-radius: 8px;
  padding: 7px 8px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.schedule-edit-time__wrap{
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  gap: 6px;
  align-items: center;
}

.schedule-edit-row-handle{
  width: 28px;
  height: 28px;
  border: 1px solid rgba(47,43,37,.14);
  background: rgba(255,255,255,.82);
  color: rgba(47,43,37,.72);
  border-radius: 8px;
  font-size: 14px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: grab;
  user-select: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.schedule-edit-row-handle:hover,
.schedule-edit-row-handle:focus-visible{
  background: rgba(159,127,199,.10);
  border-color: rgba(159,127,199,.28);
  color: rgba(47,43,37,.9);
}

.schedule-edit-row-handle:active{
  cursor: grabbing;
}

.schedule-edit-row-handle:focus-visible{
  outline: 2px solid rgba(159,127,199,.25);
  outline-offset: 1px;
}

.schedule-edit-time:focus{
  outline: 2px solid rgba(159,127,199,.22);
  border-color: rgba(159,127,199,.35);
}

.schedule-edit-row-remove{
  width: 28px;
  height: 28px;
  border: 1px solid rgba(200,74,67,.26);
  background: rgba(200,74,67,.10);
  color: rgba(145,42,37,.95);
  border-radius: 8px;
  font-size: 18px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.schedule-edit-row-remove:hover,
.schedule-edit-row-remove:focus-visible{
  background: rgba(200,74,67,.18);
  border-color: rgba(200,74,67,.42);
  color: rgba(120,31,27,.98);
}

.schedule-edit-row-remove:focus-visible{
  outline: 2px solid rgba(159,127,199,.25);
  outline-offset: 1px;
}

.schedule-edit-cell{
  min-width: 172px;
  background: rgba(255,255,255,.46);
  transition: background-color .16s ease, box-shadow .16s ease;
}

.schedule-edit-cell[data-active="true"][data-teacher="caro"]{
  background: rgba(240,201,131,.58);
}

.schedule-edit-cell[data-active="true"][data-teacher="maca"]{
  background: rgba(185,154,216,.48);
}

.schedule-edit-cell[data-active="true"]{
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
}

.schedule-edit-table tbody > tr.is-dragging-row{
  opacity: .65;
}

.schedule-edit-table tbody > tr.is-drop-target > th,
.schedule-edit-table tbody > tr.is-drop-target > td{
  box-shadow: inset 0 2px 0 rgba(159,127,199,.45);
}

.schedule-edit-cell__stack{
  display:grid;
  gap: 6px;
}

.schedule-edit-cell__select,
.schedule-edit-cell__input{
  width: 100%;
  border: 1px solid rgba(47,43,37,.14);
  background: rgba(255,255,255,.86);
  color: rgba(47,43,37,.9);
  border-radius: 8px;
  padding: 7px 8px;
  font-size: 12px;
  line-height: 1.2;
}

.schedule-edit-cell__select{
  font-weight: 700;
}

.schedule-edit-cell__input--sub{
  font-size: 11px;
  color: rgba(47,43,37,.72);
}

.schedule-edit-cell__select:focus,
.schedule-edit-cell__input:focus{
  outline: 2px solid rgba(159,127,199,.22);
  border-color: rgba(159,127,199,.35);
}

.schedule-admin__actions{
  flex-wrap: wrap;
}

.news-card__actions{
  margin-top: 12px;
  display:flex;
  gap: 8px;
}

.admin-confirm-open{
  overflow: hidden;
}

.admin-confirm{
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, visibility .18s ease;
}

.admin-confirm.is-open{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.admin-confirm__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 13, .46);
  backdrop-filter: blur(4px);
}

.admin-confirm__dialog{
  position: relative;
  width: min(460px, 100%);
  background: rgba(247, 244, 239, .96);
  border: 1px solid rgba(47,43,37,.12);
  box-shadow: 0 24px 60px rgba(0,0,0,.22);
  padding: 18px 18px 16px;
  transform: translateY(8px) scale(.985);
  opacity: 0;
  transition: transform .2s ease, opacity .2s ease;
}

.admin-confirm.is-open .admin-confirm__dialog{
  transform: translateY(0) scale(1);
  opacity: 1;
}

.admin-confirm__head{
  margin-bottom: 8px;
}

.admin-confirm__title{
  margin: 0;
  font-family: Montserrat, Inter, system-ui, sans-serif;
  font-size: 18px;
  color: rgba(47,43,37,.94);
}

.admin-confirm__text{
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(47,43,37,.76);
}

.admin-confirm__actions{
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-confirm__btn{
  min-width: 118px;
  border-width: 1px;
  border-style: solid;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: none;
}

.admin-confirm__btn--confirm{
  background: #2f9b52;
  border-color: #2a8a49;
  color: #fff;
}

.admin-confirm__btn--confirm:hover,
.admin-confirm__btn--confirm:focus-visible{
  background: #288848;
  border-color: #23793f;
  color: #fff;
}

.admin-confirm__btn--cancel{
  background: #c84a43;
  border-color: #b83f39;
  color: #fff;
}

.admin-confirm__btn--cancel:hover,
.admin-confirm__btn--cancel:focus-visible{
  background: #b6413b;
  border-color: #a73833;
  color: #fff;
}

.admin-confirm__btn:focus-visible{
  outline: 2px solid rgba(159,127,199,.30);
  outline-offset: 2px;
}

/* DOCENTES (tiles como venías usando) */
.team-profile{
  max-width: 980px;
  margin: 0 auto;
  display:grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  padding: 14px;
  border-radius: var(--surface-radius-lg);
  border: 1px solid rgba(47,43,37,.10);
  background: rgba(255,255,255,.22);
  box-shadow: var(--surface-shadow);
}

.team-profile > .tile{
  margin: 0;
  height: 100%;
  min-height: var(--tile-h);
  border: 0;
  box-shadow: none;
  background: rgba(255,255,255,.14);
  border-radius: var(--surface-radius);
  position: relative;
  overflow: hidden;
}

.team-profile > .tile::after{
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 38%;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(47,43,37,.18));
  pointer-events: none;
}

.team-profile > .tile .tile__img{
  min-height: var(--tile-h);
  transform: scale(1.01);
  filter: saturate(.96) contrast(.97);
}

.grid-2{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: var(--gap);
  align-items: stretch;
  justify-items: center;
}
.grid-2--narrow{max-width: 760px; margin: 0 auto;}
.grid-2--single{
  grid-template-columns: minmax(0,1fr);
  max-width: 420px;
}

.tile{
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(47,43,37,.10);
  box-shadow: var(--shadow);
  background: rgba(255,255,255,.08);
  height: var(--tile-h);
  display:flex;
  flex-direction: column;
  width: 100%;
}
.tile__img{
  flex: 1;
  background-size: cover;
  background-position: center;
}
.tile__label{
  background: #9b8a9f;
  color: rgba(255,255,255,.92);
  padding: 14px 14px;
  font-weight: 800;
  letter-spacing: .02em;
  text-align:center;
  font-size: 14px;
}
.teacher__img--1{
  background-image:url("images/docentes.jpeg");
}
.teacher__img--2{
  background-image:url("https://images.unsplash.com/photo-1524504388940-b1c1722653e1?auto=format&fit=crop&w=1200&q=80");
}

.team-bio{
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 14px 12px 14px 18px;
  box-shadow: none;
  display:flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  min-height: 0;
  position: relative;
}

.team-bio::before{
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(
    180deg,
    rgba(47,43,37,0),
    rgba(47,43,37,.15) 12%,
    rgba(47,43,37,.15) 88%,
    rgba(47,43,37,0)
  );
}

.team-bio__eyebrow{
  margin: 0;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(47,43,37,.58);
  font-weight: 700;
}

.team-bio__name{
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 32px;
  line-height: 1.05;
  color: rgba(47,43,37,.9);
}

.team-bio__role{
  margin: 0;
  font-family: "Raleway", Inter, system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(47,43,37,.62);
  font-weight: 600;
}

.team-bio__text{
  margin: 0;
  color: rgba(47,43,37,.72);
  font-size: 15px;
  line-height: 1.6;
  max-width: 44ch;
}

/* CONTACTO (como veníamos) */
.contact-title{
  margin: 0 0 8px 0;
  font-family: Montserrat, Inter, system-ui, sans-serif;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: .01em;
}
.contact-subtitle{
  margin: 0 0 18px 0;
  color: rgba(47,43,37,.70);
  font-size: 14px;
}
.contact-card{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  background: rgba(255,255,255,.22);
  border: 1px solid rgba(47,43,37,.10);
  border-radius: var(--surface-radius-lg);
  padding: 22px;
  box-shadow: var(--surface-shadow);
}
.contact-card-title{
  margin: 0 0 10px 0;
  font-family: Montserrat, Inter, system-ui, sans-serif;
  font-size: 16px;
}
.contact-card-text{
  margin: 0 0 14px 0;
  color: rgba(47,43,37,.70);
  font-size: 13px;
}
.btn--wa{
  background: #9b8a9f;
  color: rgba(255,255,255,.95);
  box-shadow: 0 18px 40px rgba(47,143,124,.22);
}
.btn--wa:hover{background: #8b7b8f;}
.contact-tip{
  margin: 10px 0 0 0;
  font-size: 12px;
  color: rgba(47,43,37,.58);
}
.contact-row{
  display:flex;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(47,43,37,.10);
}
.contact-row:last-child{border-bottom:0}
.contact-row dt{
  min-width: 92px;
  font-weight: 700;
  color: rgba(47,43,37,.78);
  font-size: 12px;
}
.contact-row dd{
  margin: 0;
  color: rgba(47,43,37,.70);
  font-size: 12px;
}
.map-embed{
  margin-top: 14px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(47,43,37,.10);
  box-shadow: 0 14px 30px rgba(0,0,0,.10);
}
.map-embed iframe{
  width: 100%;
  height: 280px;
  border: 0;
  display: block;
}

/* FOOTER */
.footer{
  margin-top: 12px;
  padding: 18px 0 28px;
}

.footer__inner{
  position: relative;
  padding: 18px 0 0;
}

.footer__inner::before{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(47,43,37,0),
    rgba(47,43,37,.12) 14%,
    rgba(47,43,37,.12) 86%,
    rgba(47,43,37,0)
  );
}

.footer__grid{
  display:grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 18px;
  align-items: start;
}

.footer__brand{
  display:flex;
  flex-direction: column;
  gap: 10px;
}

.footer__logo{
  display:inline-flex;
  align-self: flex-start;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 26px;
  line-height: 1;
  color: rgba(47,43,37,.9);
  letter-spacing: .03em;
}

.footer__text{
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(47,43,37,.68);
  max-width: 34ch;
}

.footer__wa{
  display:inline-flex;
  align-self: flex-start;
  align-items:center;
  justify-content:center;
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  box-shadow: 0 10px 22px rgba(91,77,102,.24);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.footer__wa:hover{
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(91,77,102,.28);
}

.footer__col{
  display:flex;
  flex-direction: column;
  gap: 8px;
}

.footer__title{
  margin: 0 0 2px;
  font-family: Montserrat, Inter, system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(47,43,37,.58);
}

.footer__col a,
.footer__col p{
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(47,43,37,.78);
}

.footer__col a{
  transition: color .16s ease, transform .16s ease;
}

.footer__col a:hover{
  color: rgba(47,43,37,.96);
  transform: translateX(2px);
}

.footer__socials{
  display:flex;
  align-items:center;
  gap: 8px;
  margin-top: 2px;
}

.footer__social{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  color: rgba(47,43,37,.82);
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(47,43,37,.10);
  box-shadow: 0 6px 14px rgba(0,0,0,.06);
  transition: transform .16s ease, box-shadow .16s ease, color .16s ease, background .16s ease;
}

.footer__social svg{
  display:block;
}

.footer__col .footer__social:hover{
  transform: translateY(-2px);
  color: #fff;
  background: var(--accent);
  box-shadow: 0 10px 18px rgba(91,77,102,.22);
}

.footer__bottom{
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(47,43,37,.08);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}

.footer__bottom p{
  margin: 0;
  font-size: 12px;
  color: rgba(47,43,37,.62);
}

.footer__bottom a{
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  color: rgba(47,43,37,.78);
}

.footer__bottom a:hover{
  color: rgba(47,43,37,.95);
}

/* WhatsApp float */
.wa-float{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 999;
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 999px;
  background: #25D366;
  color:#fff;
  font-weight: 800;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.20);
}
.wa-float__icon{
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display:grid;
  place-items:center;
  background: rgba(255,255,255,.20);
}

/* Responsive */
@media (max-width: 920px){
  .hero{grid-template-columns: 1fr}
  .contact-card{grid-template-columns: 1fr}
}
@media (max-width: 860px){
  .feature-grid{grid-template-columns: 1fr}
  .grid-2{grid-template-columns: 1fr}
  .grid-2--narrow{max-width: 100%}
  .news-grid{grid-template-columns: 1fr}
  .news-form__grid{grid-template-columns: 1fr}
  .schedule-admin__head{
    flex-direction: column;
    align-items: stretch;
  }
  .schedule-admin__head .btn{
    align-self: flex-start;
  }
  .team-profile{
    grid-template-columns: 1fr;
    max-width: 520px;
    gap: 12px;
    padding: 12px;
  }
  .team-profile > .tile{
    min-height: 300px;
  }
  .team-profile > .tile .tile__img{
    min-height: 300px;
  }
  .team-bio{
    min-height: 0;
    padding: 8px 2px 4px;
  }
  .team-bio::before{
    left: 0;
    right: 0;
    top: 0;
    bottom: auto;
    width: auto;
    height: 1px;
    background: linear-gradient(
      90deg,
      rgba(47,43,37,0),
      rgba(47,43,37,.15) 12%,
      rgba(47,43,37,.15) 88%,
      rgba(47,43,37,0)
    );
  }
  .team-bio__name{
    font-size: 28px;
  }
  .team-bio__text{
    font-size: 14px;
  }
  .footer__grid{grid-template-columns: 1fr 1fr}
}
@media (max-width: 520px){
  .top__inner{
    position: relative;
    justify-content: flex-start;
    gap: 10px;
  }
  .nav-toggle{
    display: inline-flex;
    flex: 0 0 auto;
  }
  .logo{
    margin-right: auto;
  }
  .nav{
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    margin: 0;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    background: rgba(247,243,236,.88);
    border: 1px solid rgba(47,43,37,.10);
    border-radius: 14px;
    box-shadow: 0 18px 34px rgba(0,0,0,.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px) scale(.985);
    transform-origin: top left;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    z-index: 80;
  }
  .top.is-menu-open .nav{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }
  .nav a,
  .nav a.btn{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 12px 12px;
    border-radius: 10px;
    font-size: 11px;
    letter-spacing: .11em;
    background: transparent;
  }
  .nav a.btn{
    margin-top: 2px;
    justify-content: center;
    border: 1px solid rgba(47,43,37,.16);
    background: rgba(255,255,255,.45);
  }
  .nav a:hover{
    transform: none;
    background: rgba(255,255,255,.52);
  }
  .nav a::after{
    display: none;
  }
  .wa-float__text{display:none}
  .wa-float{padding: 12px}
  .footer{padding: 18px 0 24px}
  .footer__inner{padding: 14px 0 0}
  .footer__grid{grid-template-columns: 1fr; gap: 14px}
  .footer__logo{font-size: 22px}
  .footer__text{max-width: none}
  .footer__wa{width: 100%}
  .footer__bottom{
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .schedule-admin{
    padding: 12px;
  }
  .schedule-admin__legend{
    gap: 10px;
  }
  .schedule-edit-table{
    min-width: 860px;
  }
  .schedule-edit-table th,
  .schedule-edit-table td{
    padding: 6px;
  }
  .schedule-edit-table tbody > tr > th{
    width: 94px;
    min-width: 94px;
    font-size: 11px;
  }
  .schedule-edit-time{
    font-size: 11px;
    padding: 6px 6px;
  }
  .schedule-edit-cell{
    min-width: 146px;
  }
  .schedule-edit-cell__select,
  .schedule-edit-cell__input{
    font-size: 11px;
    padding: 6px 7px;
  }
  .schedule-edit-cell__input--sub{
    font-size: 10px;
  }
}

/* === MINI CTA debajo de Programas === */
.section--tight{
  padding: 22px 0 10px 0;
}

.mini-cta{
  display:flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;

  background: rgba(255,255,255,.22);
  border: 1px solid rgba(47,43,37,.10);
  border-radius: var(--surface-radius-lg);
  padding: 18px 22px;

  box-shadow: var(--surface-shadow);
}

.schedule{
  background: rgba(255,255,255,.35);
  border: 1px solid rgba(47,43,37,.12);
  border-radius: 14px;
  padding: 18px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}
.schedule__title{
  font-family: "Playfair Display", Georgia, serif;
  font-size: 28px;
  letter-spacing: .02em;
  color: rgba(47,43,37,.85);
  text-align:center;
}
.schedule__year{
  margin: 6px 0 12px 0;
  font-size: 14px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(47,43,37,.65);
  text-align:left;
}
.schedule__legend{
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 12px 0;
}
.schedule__legend-item{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13px;
  color: rgba(47,43,37,.82);
}
.schedule__dot{
  width: 14px;
  height: 14px;
  border-radius: 999px;
  display: inline-block;
}
.schedule__dot--caro{ background: #f0c983; }
.schedule__dot--maca{ background: #b99ad8; }

.schedule__table{
  overflow-x: auto;
}
.schedule-table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 8px;
  min-width: 640px;
}
.schedule-table th,
.schedule-table td{
  background: rgba(255,255,255,.6);
  border: 1px solid rgba(47,43,37,.08);
  border-radius: 8px;
  padding: 12px 10px;
  text-align:center;
  font-size: 12px;
  letter-spacing: .02em;
}
.schedule-table td.is-caro{
  background: #f0c983;
  color: #1f1b16;
  font-weight: 800;
}
.schedule-table td.is-maca{
  background: #b99ad8;
  color: #1f1b16;
  font-weight: 800;
}
.schedule-table td small{
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.schedule-table thead th{
  background: #9b8a9f;
  color: #fff;
  font-weight: 700;
}
.schedule-table tbody th{
  background: rgba(255,255,255,.85);
  font-weight: 700;
  color: rgba(47,43,37,.8);
}
.schedule-table td{
  font-weight: 600;
  color: rgba(47,43,37,.85);
}

.mini-cta__text h3{
  margin: 0;
  font-family: Montserrat, Inter, system-ui, sans-serif;
  font-size: 16px;
  letter-spacing: .01em;
  text-align:center;
}

.mini-cta__text p{
  margin: 4px 0 0 0;
  font-size: 13px;
  color: rgba(47,43,37,.65);
  text-align:center;
}

.mini-cta__btn{
  align-self: center;
  background: #2F8F7C;
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .06em;
  box-shadow: 0 12px 26px rgba(47,143,124,.35);
  transition: transform .15s ease, box-shadow .15s ease;
}

.mini-cta__btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(47,143,124,.45);
}

@media(max-width: 520px){
  .mini-cta{
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .schedule{
    width: 100%;
    padding: 12px;
  }
  .schedule__title{
    font-size: 22px;
    line-height: 1.2;
  }
  .schedule__legend{
    gap: 10px;
    flex-wrap: wrap;
  }
  .schedule__table{
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .schedule-table{
    min-width: 560px;
    border-spacing: 6px;
  }
  .schedule-table th,
  .schedule-table td{
    padding: 9px 8px;
    font-size: 11px;
  }
  .schedule-table td small{
    font-size: 10px;
  }
  .mini-cta__btn{
    width: 100%;
    text-align:center;
  }
}

/* ===== WhatsApp Morph (botón -> card) ===== */
.wa-morph{
  position: fixed;
  right: max(18px, calc(env(safe-area-inset-right) + 10px));
  bottom: max(18px, calc(env(safe-area-inset-bottom) + 10px));
  z-index: 9999;

  width: 56px;
  height: 56px;
  border-radius: 999px;

  background: radial-gradient(120% 120% at 30% 20%, #32e07a 0%, #25D366 55%, #1fbf58 100%);
  box-shadow: 0 14px 34px rgba(0,0,0,.14);

  overflow: hidden;
  transform-origin: bottom right;

  transition:
    width .22s ease,
    height .22s ease,
    border-radius .22s ease,
    box-shadow .22s ease,
    transform .22s ease,
    background .22s ease;
  will-change: width, height, border-radius, transform;
}

.wa-morph.is-open{
  width: min(320px, calc(100vw - 20px));
  height: 210px;
  border-radius: 16px;

  background: rgba(255,255,255,.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  box-shadow: 0 26px 70px rgba(0,0,0,.16);
}

.wa-morph__fab{
  position:absolute; inset:0;
  border:0;
  background: transparent;
  cursor:pointer;
  display:grid;
  place-items:center;
}

.wa-morph__fab:focus-visible{
  outline: 3px solid rgba(47,143,124,.35);
  outline-offset: 4px;
}

.wa-morph__icon{ display:flex; }

.wa-morph.is-open .wa-morph__fab{
  opacity: 0;
  pointer-events: none;
  transition: opacity .14s ease;
}

.wa-morph__content{
  height: 100%;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}

.wa-morph.is-open .wa-morph__content{
  opacity: 1;
  transform: translateY(0);
  transition-delay: .06s;
  pointer-events: auto;
}

.wa-morph__top{
  height: 44px;
  padding: 10px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;

  background: linear-gradient(90deg, #25D366, #1fbf58);
  color: #fff;
}

.wa-morph__brand{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 900;
}

.wa-morph__dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.85);
  box-shadow: 0 0 0 4px rgba(255,255,255,.18);
}

.wa-morph__title{
  font-family: Montserrat, Inter, system-ui, sans-serif;
  letter-spacing: .01em;
  font-size: 13px;
}

.wa-morph__close{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;

  background: rgba(255,255,255,.18);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  display:grid;
  place-items:center;

  transition: transform .16s ease, background .16s ease;
}
.wa-morph__close:hover{
  transform: rotate(6deg);
  background: rgba(255,255,255,.24);
}

.wa-morph__body{
  padding: 14px 14px 16px 14px;
}

.wa-morph__bubble{
  display:inline-block;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(47,43,37,.08);
  color: rgba(47,43,37,.82);
  font-size: 13px;
  box-shadow: 0 10px 22px rgba(0,0,0,.08);
}

.wa-morph__cta{
  margin-top: 12px;
  width: 100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;

  padding: 12px 14px;
  border-radius: 14px;

  background: linear-gradient(180deg, #25D366, #1fbf58);
  color: #fff;
  font-weight: 900;
  letter-spacing: .02em;

  box-shadow: 0 16px 34px rgba(37,211,102,.22);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.wa-morph__cta:hover{
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(37,211,102,.26);
  filter: saturate(1.03);
}

@media(max-width: 520px){
  .wa-morph.is-open{
    width: min(290px, calc(100vw - 14px));
  }
}

/* === Tipografía editorial premium === */

.hero__title{
  font-family: "Playfair Display", serif;
  font-weight: 700;
}

.section-title,
.test-title{
  font-family: "Playfair Display", serif;
  font-weight: 600;
}

.contact-title{
  font-family: "Playfair Display", serif;
  font-weight: 400;
}

body{
  background: linear-gradient(180deg, #EFE9DE 0%, #F6F2EB 100%);
}

.hero__media{
  filter: brightness(.92) contrast(.94) saturate(.95);
}

.feature-card,
.test-card,
.tile,
.contact-card{
  position: relative;
  overflow: hidden;
}

.feature-card::after,
.test-card::after,
.tile::after,
.contact-card::after{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius: inherit;
  background: radial-gradient(120% 120% at 20% 10%,
    rgba(255,255,255,.45),
    rgba(255,255,255,0)
  );
  opacity:.45;
  pointer-events:none;
}

.feature-card,
.test-card,
.tile{
  transition: transform .25s ease, box-shadow .25s ease;
}

.feature-card:hover,
.test-card:hover,
.tile:hover{
  transform: translateY(-4px);
  box-shadow: var(--surface-shadow-hover);
}

.mini-cta{
  position: relative;
}

.mini-cta::after{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(47,143,124,.22);
  animation: ctaGlow 6s ease-in-out infinite;
  pointer-events:none;
}

@keyframes ctaGlow{
  0%,100%{ box-shadow: 0 0 0 0 rgba(47,143,124,.0) }
  50%{ box-shadow: 0 0 0 10px rgba(47,143,124,.14) }
}

.section + .section{
  position: relative;
}

.section + .section::before{
  content:"";
  position:absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 40px), var(--container));
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(47,43,37,0),
    rgba(47,43,37,.10) 12%,
    rgba(47,43,37,.10) 88%,
    rgba(47,43,37,0)
  );
}

:root{
  --accent: #9b8a9f;
  --accent-dark: #8b7b8f;
}

.btn--primary,
.mini-cta__btn{
  background: var(--accent);
}
.btn--primary:hover,
.mini-cta__btn:hover{
  background: var(--accent-dark);
}

.reveal{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* ===== Mobile polish (premium) ===== */
@media (max-width: 520px){

  .section{ padding: 34px 0; }

  .top__inner{ padding: 12px 0; }
  .logo{ font-size: 11px; letter-spacing: .18em; }

  .hero{
    margin: 14px auto;
    border-radius: 18px;
  }
  .hero__media{
    min-height: 280px;
  }
  .hero__panel{
    padding: 22px;
  }
  .hero__title{
    font-size: 34px;
    line-height: 1;
  }
  .hero__text{
    font-size: 13px;
    margin-top: 10px;
  }
  .btn{ width: 100%; }
  .btn--sm{ width: auto; }

  .section-title{ font-size: 30px; }
  .test-title{ font-size: 28px; }
  .contact-title{ font-size: 28px; }

  .feature-media{ height: 200px; }
  .feature-body{ padding: 14px 16px 16px; }

  .mini-cta{
    padding: 16px 16px;
  }
  .mini-cta__btn{
    width: 100%;
    text-align: center;
  }

  .test-card{
    padding: 16px 16px;
  }

  :root{ --tile-h: 300px; }

  .contact-card{
    padding: 18px;
  }
  .contact-row dt{ min-width: 88px; }

  .wa-morph.is-open{ width: min(300px, calc(100vw - 16px)); }
}

*{ cursor: default; }
a, button{ cursor: pointer; }

.nav a{
  position: relative;
}
.nav a::after{
  content:"";
  position:absolute;
  left:0; bottom:-4px;
  width:100%; height:1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin:left;
  transition: transform .25s ease;
}
.nav a:hover::after{
  transform: scaleX(1);
}

.btn:active,
.wa-morph__cta:active{
  transform: scale(.97);
}

html{ scroll-behavior: smooth; }

body{ animation: bodyFade .8s ease both; }
@keyframes bodyFade{
  from{ opacity:0; }
  to{ opacity:1; }
}

.hero .btn--primary{
  position: relative;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.hero .btn--primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
  filter: saturate(1.05);
}

.hero .btn--primary:active{
  transform: translateY(-1px) scale(.98);
}

/* ===== Preloader (importado de caroweb final) ===== */
body.is-loading{
  overflow: hidden;
}

body.is-loading .site-shell{
  opacity: 0;
  transform: none;
  filter: blur(10px) saturate(.8);
}

body.site-ready .site-shell{
  opacity: 1;
  transform: none;
  filter: blur(0) saturate(1);
  transition: opacity .6s ease, filter .9s ease;
}

body.site-ready.site-intro-impact .top{
  animation: introNavPresence 1.02s cubic-bezier(.14,.88,.22,1) both;
  transform-origin: 50% 50%;
}

body.site-ready.site-intro-impact .hero{
  animation: introHeroFrameIn 1.24s cubic-bezier(.12,.9,.2,1) both;
  transform-origin: 50% 50%;
  will-change: transform, opacity, filter;
}

body.site-ready.site-intro-impact .hero__media{
  transform-origin: 50% 50%;
  animation: none;
  will-change: auto;
}

body.site-ready.site-intro-impact .hero__panel{
  overflow: hidden;
}

body.site-ready.site-intro-impact .hero__panel > *{
  opacity: 0;
  transform: translateY(18px) scale(.985);
  animation: introHeroTextCascade .8s cubic-bezier(.14,.84,.2,1) forwards;
  will-change: opacity, transform;
}

body.site-ready.site-intro-impact .hero__panel > *:nth-child(1){ animation-delay: .18s; }
body.site-ready.site-intro-impact .hero__panel > *:nth-child(2){ animation-delay: .28s; }
body.site-ready.site-intro-impact .hero__panel > *:nth-child(3){ animation-delay: .38s; }
body.site-ready.site-intro-impact .hero__panel > *:nth-child(4){ animation-delay: .48s; }

@keyframes introNavPresence{
  0%{
    opacity: 0;
    transform: scale(.16);
    filter: blur(6px);
  }
  68%{
    opacity: 1;
    transform: scale(1.045);
    filter: blur(0);
  }
  100%{
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

@keyframes introHeroFrameIn{
  0%{
    opacity: 0;
    transform: scale(.015);
    filter: blur(12px) saturate(.68);
  }
  72%{
    opacity: 1;
    transform: scale(1.065);
    filter: blur(0) saturate(1.05);
  }
  100%{
    opacity: 1;
    transform: scale(1);
    filter: blur(0) saturate(1);
  }
}

@keyframes introHeroTextCascade{
  0%{
    opacity: 0;
    transform: translateY(18px) scale(.985);
    filter: blur(2px);
  }
  100%{
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.preloader{
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  min-height: 100vh;
  z-index: 999999;
  background:
    radial-gradient(1200px 520px at 50% -10%, rgba(255,255,255,.45), transparent 70%),
    linear-gradient(180deg, #efe8dc 0%, var(--bg) 55%, #e3dacb 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity .5s ease, visibility .5s ease;
}

.preloader::before{
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(122,76,55,.07), transparent 60%);
  pointer-events: none;
}

.preloader.is-fading{
  opacity: 0;
  visibility: hidden;
}

.preloader__brand-wrap{
  position: relative;
  z-index: 4;
  width: min(92vw, 1100px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: translateY(-54px);
  transition: opacity .3s ease, transform .3s ease;
}

.preloader.is-clean .preloader__brand-wrap{
  opacity: 0;
  transform: translateY(-64px);
}

.preloader__brand{
  margin: 0;
  text-align: center;
  color: transparent;
  font-family: "Cormorant Garamond", "Playfair Display", serif;
  font-weight: 600;
  font-size: clamp(52px, 7.2vw, 104px);
  line-height: .98;
  letter-spacing: .19em;
  text-transform: uppercase;
  background: linear-gradient(94deg, #867b6c 0%, #b8afa2 44%, #7f7567 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  opacity: 0;
  transform: translateY(22px) scale(.985);
  clip-path: inset(0 100% 0 0);
  animation: brandReveal 1.05s cubic-bezier(.2,.8,.2,1) .12s forwards, brandSheen 1.4s ease 1.05s 1 both;
}

.preloader__quote{
  margin: 0 auto;
  text-align: center;
  max-width: min(72ch, calc(100vw - 56px));
  color: rgba(47,43,37,.62);
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: clamp(16px, 1.45vw, 25px);
  line-height: 1.35;
  letter-spacing: .005em;
  text-wrap: balance;
  opacity: 0;
  animation: loaderQuoteIn .55s ease 1s forwards;
}

.preloader__line-wrap{
  position: absolute;
  left: 50%;
  top: 58%;
  width: 100vw;
  transform: translate(-50%, -50%);
  z-index: 5;
  pointer-events: none;
}

.preloader__line{
  width: 0;
  height: 3px;
  margin: 0 auto;
  background: linear-gradient(90deg, #8f8e91, #a4a3a8 55%, #8f8e91);
  box-shadow: 0 0 0 1px rgba(255,255,255,.22), 0 8px 20px rgba(0,0,0,.09);
  transition: width 1.08s ease, height 1.16s cubic-bezier(.22,.78,.22,1), background-color .72s ease, box-shadow .72s ease;
  transform-origin: center;
}

.preloader.is-line-visible .preloader__line{
  width: 100%;
}

.preloader.is-opening .preloader__line{
  width: 120vw;
  height: 120dvh;
  background: #f7f7f7;
  box-shadow: 0 0 70px rgba(255,255,255,.72), 0 0 180px rgba(255,255,255,.52);
  animation: loaderFlash .62s ease-out both;
}

.preloader__panel{
  display: none;
}

@keyframes loaderFlash{
  0%{ background: #8f8e91; box-shadow: 0 0 0 rgba(255,255,255,0); }
  45%{ background: #d8d8db; box-shadow: 0 0 32px rgba(255,255,255,.45), 0 0 96px rgba(255,255,255,.28); }
  100%{ background: #f7f7f7; box-shadow: 0 0 60px rgba(255,255,255,.6), 0 0 140px rgba(255,255,255,.45); }
}

@keyframes brandReveal{
  0%{ opacity: 0; transform: translateY(22px) scale(.985); clip-path: inset(0 100% 0 0); filter: blur(2px); }
  65%{ opacity: 1; transform: translateY(0) scale(1); clip-path: inset(0 0 0 0); filter: blur(0); }
  100%{ opacity: 1; transform: translateY(0) scale(1); clip-path: inset(0 0 0 0); }
}

@keyframes brandSheen{
  from{ background-position: 100% 0; }
  to{ background-position: 0 0; }
}

@keyframes loaderQuoteIn{
  from{ opacity: 0; transform: translateY(8px); }
  to{ opacity: 1; transform: translateY(0); }
}

@media (max-width: 520px){
  .preloader__brand-wrap{
    transform: translateY(-44px);
  }
  .preloader__brand{
    font-size: clamp(42px, 12vw, 62px);
    letter-spacing: .13em;
  }
  .preloader__quote{
    max-width: calc(100vw - 40px);
    font-size: 14px;
    line-height: 1.4;
  }
  .preloader__line{
    height: 2px;
  }
}

@media (prefers-reduced-motion: reduce){
  body.site-ready.site-intro-impact .top,
  body.site-ready.site-intro-impact .hero,
  body.site-ready.site-intro-impact .hero__media,
  body.site-ready.site-intro-impact .hero__panel > *{
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* ===== Espacio Carousel ===== */
#espacio .space-head{
  text-align: center;
  margin-bottom: clamp(16px, 2vw, 24px);
}

#espacio .space-title{
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: clamp(30px, 3.2vw, 48px);
  line-height: 1.06;
  color: rgba(98,89,82,.95);
}

#espacio .space-subtitle{
  margin: 8px 0 0;
  font-family: "Raleway", Inter, system-ui, sans-serif;
  font-weight: 300;
  font-size: clamp(14px, 1.05vw, 18px);
  color: rgba(120,110,101,.9);
}

#espacio .space-carousel{
  position: relative;
  max-width: min(880px, 100%);
  margin: 0 auto;
  padding: 8px 54px 6px;
}

#espacio .space-track{
  display: grid;
  grid-template-columns: 1fr;
  border-radius: var(--surface-radius-lg);
  overflow: hidden;
  border: 1px solid rgba(47,43,37,.12);
  box-shadow: var(--surface-shadow);
  background: rgba(255,255,255,.55);
}

#espacio .space-card{
  margin: 0;
  grid-area: 1 / 1;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #ddd;
  opacity: 0;
  visibility: hidden;
  transform: scale(.985);
  transition: opacity .42s ease, transform .42s ease, visibility 0s linear .42s;
  pointer-events: none;
}

#espacio .space-card.is-active{
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition-delay: 0s;
  pointer-events: auto;
  z-index: 1;
}

#espacio .space-card img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform .5s ease;
}

#espacio .space-card.is-active:hover img{
  transform: scale(1.02);
}

#espacio .space-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(47,43,37,.14);
  background: rgba(255,255,255,.8);
  color: rgba(98,89,82,.92);
  box-shadow: 0 10px 22px rgba(0,0,0,.08);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

#espacio .space-nav span{
  display: block;
  font-size: 28px;
  line-height: 1;
  margin-top: -2px;
}

#espacio .space-nav:hover{
  background: rgba(255,255,255,.94);
  box-shadow: 0 12px 26px rgba(0,0,0,.12);
  transform: translateY(-50%) scale(1.03);
}

#espacio .space-nav:focus-visible{
  outline: 3px solid rgba(159, 127, 199, .28);
  outline-offset: 2px;
}

#espacio .space-nav--prev{
  left: 4px;
}

#espacio .space-nav--next{
  right: 4px;
}

#espacio .space-carousel::after{
  content: attr(data-index) " / " attr(data-total);
  position: absolute;
  right: 66px;
  bottom: 16px;
  z-index: 2;
  font-family: "Raleway", Inter, system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.92);
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 5px 10px;
}

@media (max-width: 700px){
  #espacio .space-head{
    margin-bottom: 12px;
  }

  #espacio .space-title{
    font-size: clamp(24px, 8.4vw, 34px);
  }

  #espacio .space-subtitle{
    font-size: 14px;
  }

  #espacio .space-carousel{
    padding: 6px 40px 6px;
  }

  #espacio .space-card{
    aspect-ratio: 4 / 3;
  }

  #espacio .space-track{
    border-radius: 12px;
  }

  #espacio .space-nav{
    width: 34px;
    height: 34px;
  }

  #espacio .space-nav span{
    font-size: 22px;
    margin-top: -1px;
  }

  #espacio .space-carousel::after{
    right: 48px;
    bottom: 10px;
    font-size: 10px;
    padding: 4px 8px;
  }
}

@media (prefers-reduced-motion: reduce){
  #espacio .space-card,
  #espacio .space-card img,
  #espacio .space-nav{
    transition: none;
  }
}

/* ===== Testimonials Marquee (extraido de caroweb final) ===== */
#testimonios .test-head{
  justify-content: center;
  text-align: center;
  margin-bottom: clamp(22px, 2.8vw, 34px);
}

#testimonios .test-head > div{
  width: 100%;
}

#testimonios .test-title{
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: clamp(44px, 4.2vw, 66px);
  line-height: 1.02;
  letter-spacing: 0;
  color: rgba(118,108,98,.96);
}

#testimonios .test-subtitle{
  margin-top: 8px;
  font-family: "Raleway", Inter, system-ui, sans-serif;
  font-weight: 300;
  font-size: clamp(16px, 1.15vw, 22px);
  color: rgba(130,120,110,.9);
}

#testimonios .test-carousel{
  position: relative;
  overflow: hidden;
  padding: 8px 0 16px;
  mask-image: none;
  -webkit-mask-image: none;
}

#testimonios .test-track{
  display: flex;
  align-items: stretch;
  gap: clamp(18px, 1.8vw, 28px);
  width: max-content;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

#testimonios .test-card{
  flex: 0 0 clamp(420px, 31vw, 520px);
  height: clamp(214px, 13.4vw, 236px);
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(16px, 1.6vw, 22px);
  padding: clamp(20px, 2vw, 30px);
  border-radius: 12px;
  border: 0;
  background: var(--accent);
  box-shadow: 0 14px 28px rgba(91,77,102,.22);
  color: rgba(248,244,238,.95);
  transition: filter .32s ease, opacity .32s ease, transform .32s ease, box-shadow .28s ease;
}

#testimonios .test-card.is-expanded{
  height: auto;
  min-height: clamp(252px, 16vw, 320px);
}

#testimonios .test-card::after{
  display: none;
}

#testimonios .test-card__quote{
  margin: 0;
  max-width: 98%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  font-family: "Raleway", Inter, system-ui, sans-serif;
  font-size: clamp(16px, 1.12vw, 21px);
  line-height: 1.45;
  color: rgba(246,241,234,.96);
}

#testimonios .test-card__quote-short{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

#testimonios .test-card__quote-full{
  display: none;
}

#testimonios .test-card.is-expanded .test-card__quote-short{
  display: none;
}

#testimonios .test-card.is-expanded .test-card__quote-full{
  display: block;
}

#testimonios .test-card__more{
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #79a6ff;
  font-family: inherit;
  font-size: .95em;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

#testimonios .test-carousel.is-reading .test-card{
  filter: blur(3.5px);
  opacity: .52;
  transform: scale(.986);
}

#testimonios .test-carousel.is-reading .test-card:hover,
#testimonios .test-carousel.is-reading .test-card:focus-within,
#testimonios .test-carousel.is-reading .test-card.is-expanded{
  filter: none;
  opacity: 1;
  transform: scale(1);
}

#testimonios .test-card__meta{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

#testimonios .test-card__meta > div{
  min-width: 0;
  max-width: 66%;
}

#testimonios .test-card__name{
  margin: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "Raleway", Inter, system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(26px, 2vw, 42px);
  line-height: 1;
  color: rgba(252,248,242,.96);
}

#testimonios .test-card__time{
  margin: 8px 0 0;
  font-family: "Raleway", Inter, system-ui, sans-serif;
  font-size: clamp(13px, .92vw, 16px);
  color: rgba(235,229,221,.86);
}

#testimonios .test-card__stars{
  margin: 0;
  flex-shrink: 0;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
  font-size: clamp(26px, 1.65vw, 34px);
  line-height: 1;
  letter-spacing: .05em;
  color: #f9ca55;
  text-shadow: 0 1px 0 rgba(255,255,255,.58), 0 2px 5px rgba(0,0,0,.18);
}

#testimonios .test-carousel:hover .test-card,
#testimonios .test-carousel:focus-within .test-card{
  box-shadow: 0 18px 34px rgba(91,77,102,.28);
}

@media (max-width: 700px){
  #testimonios .test-head{
    margin-bottom: 14px;
  }

  #testimonios .test-title{
    font-size: clamp(34px, 10vw, 44px);
  }

  #testimonios .test-subtitle{
    margin-top: 6px;
    font-size: 14px;
  }

  #testimonios .test-track{
    gap: 12px;
  }

  #testimonios .test-card{
    flex-basis: min(88vw, 348px);
    height: 196px;
    min-height: 0;
    padding: 16px;
    gap: 14px;
    border-radius: 10px;
  }

  #testimonios .test-card.is-expanded{
    height: auto;
    min-height: 230px;
  }

  #testimonios .test-card__quote{
    font-size: 15px;
  }

  #testimonios .test-card__quote-short{
    -webkit-line-clamp: 3;
  }

  #testimonios .test-card__meta > div{
    max-width: 62%;
  }

  #testimonios .test-card__name{
    font-size: 16px;
  }

  #testimonios .test-card__time{
    margin-top: 4px;
    font-size: 12px;
  }

  #testimonios .test-card__stars{
    font-size: 20px;
    letter-spacing: .03em;
  }

  #testimonios .test-carousel.is-reading .test-card{
    filter: none;
    opacity: 1;
    transform: none;
  }
}
