@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=DM+Sans:wght@400;500;700&display=swap');

:root {
  --navy:     #0F2C59;
  --blue-800: #1a3a7a;
  --blue-700: #243E8F;
  --red:      #CC1E1E;
  --red-dark: #8C0B0B;
  --red-600:  #E84040;
  --cream-50:  #f8f5ef;
  --cream-100: #f2eee7;
  --cream-200: #eae2d5;
  --ink:      #10192B;
  --ink-soft: #2B3952;
  --ink-700:  #4a5a7a;
  --ink-500:  #7d8aa8;
  --muted:    #6A7283;
  --white:    #ffffff;
  --border:   rgba(15, 44, 89, 0.12);
  --shadow:   0 24px 60px rgba(15, 44, 89, 0.12);
  --radius:   20px;
  --content:  1240px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(204, 30, 30, 0.04), transparent 30%),
    linear-gradient(180deg, #fbf9f4 0%, #f5f1ea 52%, #f8f5ef 100%);
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
}

/* ── HEADER / NAV ────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248,245,239,0.84);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15,44,89,0.08);
}

.header-row,
.nav {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  height: 64px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.button,
.button-secondary,
.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  font-family: "DM Sans", sans-serif;
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.320, 1), box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
}

.button {
  background: linear-gradient(135deg, var(--red) 0%, #A01515 100%);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(204,30,30,0.28);
}

.button:hover {
  background: linear-gradient(135deg, var(--red-dark) 0%, #8C0B0B 100%);
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(204,30,30,0.35);
}

.button-secondary {
  background: rgba(255,255,255,0.7);
  color: var(--navy);
  border: 1px solid rgba(15,44,89,0.12);
}

.button-secondary:hover {
  background: var(--white);
  border-color: var(--navy);
  box-shadow: 0 12px 28px rgba(15,44,89,0.15);
}

.button-ghost {
  border: 2px solid var(--navy);
  color: var(--navy);
  background: rgba(255,255,255,0.7);
}

.button-ghost:hover {
  background: var(--white);
  border-color: var(--navy);
  box-shadow: 0 12px 28px rgba(15,44,89,0.15);
}

.habilitacion-tipos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 28px;
  max-width: 100%;
}

.tipo-hab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 14px;
  border: 2px solid rgba(15,44,89,0.12);
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(245,247,250,0.9) 100%);
  border-radius: 18px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: all 0.35s cubic-bezier(0.23, 1, 0.320, 1);
  cursor: pointer;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15,44,89,0.05);
  text-decoration: none;
  min-height: 48px;
}

.tipo-hab::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--red) 0%, rgba(204,30,30,0.8) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: -1;
}

.tipo-hab:hover::before {
  opacity: 0.08;
}

.tipo-hab:hover {
  border-color: var(--red);
  background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(245,247,250,0.95) 100%);
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(204,30,30,0.18), 0 8px 16px rgba(15,44,89,0.1);
  color: var(--red);
}

.tipo-hab-icon {
  font-size: 28px;
  line-height: 1;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(15,44,89,0.14);
  border-radius: 12px;
  background: rgba(255,255,255,0.65);
  color: var(--navy);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* ── HERO ────────────────────────────────────────────── */
.hero {
  padding: 40px 0;
}

.hero-cta-inline {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-section-spacer {
  margin-top: 20px;
}

.hero-desc-spacer {
  margin-top: 12px;
}

.hero-shell {
  background: linear-gradient(135deg, rgba(245,247,250,0.9) 0%, rgba(255,255,255,0.95) 100%);
  border: none;
  border-radius: 0;
  padding: 60px 28px;
  box-shadow: none;
  position: relative;
  overflow: visible;
}

.hero-shell::before {
  display: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-main {
  padding: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: rgba(15,44,89,0.35);
}

.hero h1,
.hero-main-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--navy);
  max-width: 18ch;
}

.hero h1 em,
.hero-main-title em {
  font-style: italic;
  color: var(--red);
}

.hero-main-sub {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.8;
  margin-top: 14px;
  max-width: 55ch;
}

.hero-lead {
  max-width: 56ch;
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
  margin-top: 22px;
}

.hero-metric {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(15,44,89,0.08);
  background: rgba(255,255,255,0.56);
}

.hero-metric strong {
  display: block;
  margin-bottom: 4px;
  color: var(--navy);
  font-size: 1rem;
}

.hero-metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

/* ── HERO SIDE / FORM ────────────────────────────────── */
.hero-side {
  background: transparent;
  color: var(--ink);
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: none;
  max-width: 100%;
  width: 100%;
  text-align: left;
}

.hero-side .kicker {
  display: none;
}

.hero-side-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.4rem, 4.5vw, 3.2rem);
  line-height: 1.15;
  font-weight: 600;
  color: var(--navy);
}

.hero-side-sub {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.8;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-field label {
  font-size: 10px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.1em;
  font-weight: 700;
  text-transform: uppercase;
}

.form-field input,
.form-field select {
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.07);
  color: var(--white);
  font-size: 13px;
  font-family: "DM Sans", sans-serif;
  transition: border-color 0.2s, background 0.2s;
}

.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-color: rgba(204,30,30,0.5);
  background: rgba(255,255,255,0.1);
}

.form-field input::placeholder {
  color: rgba(255,255,255,0.28);
}

.form-field select {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.45)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  padding-right: 32px;
}

.form-field select option {
  background: #132748;
  color: var(--white);
}

.form-submit {
  margin-top: 2px;
}

.form-success {
  display: none;
  padding: 18px;
  border-radius: 12px;
  background: rgba(20,180,90,0.12);
  border: 1px solid rgba(20,180,90,0.2);
  text-align: center;
}

.form-success strong {
  display: block;
  margin-bottom: 7px;
  color: #7DEFA1;
  font-size: 15px;
}

.form-success p {
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  line-height: 1.7;
}

/* ── SECCIÓN BASE ────────────────────────────────────── */
.section {
  padding: 48px 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-label {
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 10px;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 32ch;
  color: #122441;
}

.section-intro {
  max-width: 52ch;
  color: var(--ink-soft);
  line-height: 1.85;
  font-size: 15px;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.card,
.stat-card {
  background: linear-gradient(180deg, rgba(255,252,248,0.92), rgba(242,238,231,0.96));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.card h3 {
  margin-bottom: 10px;
}

/* ── SERVICIOS ───────────────────────────────────────── */
.services-layout {
  display: grid;
  grid-template-columns: 290px minmax(0,1fr);
  gap: 18px;
  align-items: start;
}

.services-note {
  border-radius: 24px;
  border: 1px solid rgba(15,44,89,0.08);
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, #FFFFFF, #F4EFE6);
  padding: 24px;
  position: sticky;
  top: 90px;
}

.services-note h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.55rem;
  line-height: 1.15;
  margin-bottom: 10px;
  color: #122441;
}

.services-note p {
  color: var(--ink-soft);
  line-height: 1.8;
  font-size: 13px;
}

.services-note ul {
  list-style: none;
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.services-note li {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
  padding-left: 15px;
  position: relative;
}

.services-note li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px;
}

.service-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(15,44,89,0.08);
  background: rgba(255,255,255,0.66);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(204,30,30,0.2);
  box-shadow: 0 22px 40px rgba(16,25,43,0.11);
}

.service-index {
  font-family: "Cormorant Garamond", serif;
  color: rgba(15,44,89,0.22);
  font-size: 1.6rem;
  line-height: 1;
}

.service-card h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  line-height: 1.15;
  margin-top: 14px;
  margin-bottom: 8px;
  color: #122441;
}

.service-card p {
  color: var(--ink-soft);
  line-height: 1.75;
  font-size: 13px;
  flex: 1;
}

.service-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(15,44,89,0.07);
  font-size: 11px;
  color: var(--muted);
}

.service-meta strong {
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  white-space: nowrap;
}

/* ── NORMATIVA ───────────────────────────────────────── */
.norma-section {
  background: linear-gradient(180deg, #0A1D3B, #071428);
  padding: 72px 0;
}

.norma-section .section-label {
  color: rgba(255,255,255,0.45);
}

.norma-section .section-title {
  color: var(--white);
  max-width: 22ch;
}

.norma-section .section-intro {
  color: rgba(255,255,255,0.6);
}

.norma-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 12px;
  margin-top: 30px;
}

.norma-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 18px;
  transition: background 0.2s, border-color 0.2s;
}

.norma-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.13);
}

.norma-tag {
  display: inline-flex;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(204,30,30,0.14);
  color: #FFC7C7;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
  margin-bottom: 12px;
}

.norma-card h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 7px;
  line-height: 1.3;
}

.norma-card p {
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  line-height: 1.7;
}

/* ── TESTIMONIOS ─────────────────────────────────────── */
.testi-section {
  background: rgba(255,255,255,0.52);
}

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

.testi-card {
  background: var(--white);
  border: 1px solid rgba(15,44,89,0.08);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.testi-stars {
  display: flex;
  gap: 3px;
}

.testi-star {
  display: inline-block;
  width: 13px;
  height: 13px;
  background: var(--red);
  clip-path: polygon(50% 0%,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%);
}

.testi-quote {
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-soft);
  font-style: italic;
  flex: 1;
}

.testi-author {
  padding-top: 14px;
  border-top: 1px solid rgba(15,44,89,0.07);
}

.testi-name {
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
}

.testi-role {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* ── CURSOS ──────────────────────────────────────────── */
.courses-wrap {
  display: grid;
  grid-template-columns: minmax(0,0.88fr) minmax(0,1.12fr);
  gap: 18px;
}

.courses-card {
  border-radius: 24px;
  border: 1px solid rgba(15,44,89,0.08);
  box-shadow: var(--shadow);
  padding: 26px;
  background: linear-gradient(180deg,rgba(255,255,255,0.7),rgba(242,238,231,0.92));
}

.courses-card h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.55rem;
  line-height: 1.15;
  margin-bottom: 10px;
  color: #122441;
}

.courses-card p {
  color: var(--ink-soft);
  line-height: 1.8;
  font-size: 14px;
}

.courses-grid {
  border-radius: 24px;
  border: 1px solid rgba(15,44,89,0.08);
  box-shadow: var(--shadow);
  background: #0E1B35;
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
  overflow: hidden;
}

.course-tile {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 190px;
}

.course-tile .tag {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(204,30,30,0.14);
  color: #FFC7C7;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  margin-bottom: 12px;
}

.course-tile h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 8px;
}

.course-tile p {
  color: rgba(255,255,255,0.58);
  font-size: 13px;
  line-height: 1.7;
}

.course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: nowrap;
}

.course-price {
  color: #F6E7C9;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

.course-price small {
  display: inline-block;
  color: rgba(255,255,255,0.38);
  font-size: 10px;
  margin-left: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  vertical-align: middle;
}

.course-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--white);
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  width: fit-content;
  white-space: nowrap;
}

.course-link:hover {
  background: rgba(255,255,255,0.14);
}

/* ── HISTORIA / NOSOTROS ─────────────────────────────── */
.story-wrap {
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(270px,0.8fr);
  gap: 18px;
}

.story-card {
  border-radius: 24px;
  border: 1px solid rgba(15,44,89,0.08);
  box-shadow: var(--shadow);
  background: linear-gradient(180deg,rgba(255,255,255,0.72),rgba(242,238,231,0.92));
  padding: 28px;
}

.story-card h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.55rem;
  line-height: 1.15;
  margin-bottom: 10px;
  color: #122441;
}

.story-card p {
  color: var(--ink-soft);
  line-height: 1.8;
  font-size: 14px;
}

.story-points {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
  margin-top: 20px;
}

.story-point {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(15,44,89,0.07);
}

.story-point strong {
  display: block;
  margin-bottom: 5px;
  color: var(--navy);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.story-point span {
  color: var(--ink-soft);
  line-height: 1.7;
  font-size: 13px;
}

.story-aside {
  border-radius: 24px;
  border: 1px solid rgba(15,44,89,0.08);
  box-shadow: var(--shadow);
  background: linear-gradient(180deg,#14284A,#0B1730);
  color: var(--white);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.story-aside .mini-label {
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 10px;
  font-weight: 800;
}

.story-aside p {
  color: rgba(255,255,255,0.7);
  line-height: 1.85;
  font-size: 14px;
}

.story-stats {
  display: grid;
  gap: 10px;
}

.story-stat {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}

.story-stat strong {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: 4px;
}

.story-stat span {
  color: rgba(255,255,255,0.56);
  font-size: 13px;
  line-height: 1.7;
}

/* ── SUSCRIPCIÓN ─────────────────────────────────────── */
.subs-section {
  background: linear-gradient(180deg,#EEF1F6,#E6EAF2);
  padding: 60px 0;
  border-top: 1px solid rgba(15,44,89,0.07);
}

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

.subs-copy .section-label {
  margin-bottom: 8px;
}

.subs-copy h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  line-height: 1.15;
  color: #122441;
  max-width: 26ch;
}

.subs-copy p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.8;
  max-width: 46ch;
}

.subs-form {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.subs-input {
  padding: 0 18px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(15,44,89,0.14);
  background: var(--white);
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  color: var(--ink);
  width: 260px;
}

.subs-input:focus {
  outline: none;
  border-color: var(--navy);
}

.subs-input::placeholder {
  color: var(--muted);
}

/* ── CONTACTO ────────────────────────────────────────── */
.contact-panel {
  background: linear-gradient(180deg,#F2EEE7,#EAE2D5);
  border-top: 1px solid rgba(15,44,89,0.08);
}

.contact-wrap {
  display: grid;
  grid-template-columns: minmax(0,1fr) 390px;
  gap: 18px;
  align-items: stretch;
  padding: 72px 0;
}

.contact-copy h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.9rem, 3.8vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 16ch;
  color: #122441;
}

.contact-copy p {
  max-width: 52ch;
  margin-top: 16px;
  color: var(--ink-soft);
  line-height: 1.85;
  font-size: 15px;
}

.contact-points {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
  margin-top: 22px;
}

.contact-point {
  padding: 14px 16px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(15,44,89,0.08);
  border-radius: 14px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

.contact-card {
  border-radius: 24px;
  border: 1px solid rgba(15,44,89,0.08);
  box-shadow: var(--shadow);
  padding: 24px;
  background: #0F1D38;
  color: var(--white);
}

.contact-card h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.55rem;
  line-height: 1.15;
  margin-bottom: 10px;
  color: var(--white);
}

.contact-card p {
  color: rgba(255,255,255,0.65);
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.8;
}

.contact-card .button,
.contact-card .button-ghost {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

.contact-card .button-ghost {
  background: transparent;
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.14);
}

/* ── FOOTER ──────────────────────────────────────────── */
.site-footer {
  padding: 24px 0 36px;
  background: #0A1527;
  color: rgba(255,255,255,0.62);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-box {
  background: linear-gradient(180deg, rgba(17, 29, 74, 0.98), rgba(26, 47, 110, 0.98));
  color: var(--white);
  border-radius: 28px;
  padding: 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 24px;
}

.footer-brand-socials {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}

.footer-row img,
.footer-box img {
  height: 36px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  color: rgba(255,255,255,0.62);
  font-size: 13px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: rgba(255,255,255,0.9);
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.social-link:hover {
  background: rgba(204,30,30,0.3);
  color: var(--red);
}

.social-link img {
  width: 24px;
  height: 24px;
}

.footer-copy,
.footer-list li {
  color: rgba(255,255,255,0.72);
}

.footer-box a {
  color: rgba(255,255,255,0.82);
}

.footer-box a:hover {
  color: var(--white);
}

.footer-box .brand {
  background: transparent;
  box-shadow: none;
}

.footer-box .brand img {
  height: 40px;
  filter: drop-shadow(0 10px 18px rgba(255, 255, 255, 0.08));
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}

.footer-list li + li {
  margin-top: 10px;
}

.footer-kicker {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  text-align: center;
}

/* ── WHATSAPP FLOTANTE ───────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 90;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 22px rgba(37,211,102,0.42);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 28px rgba(37,211,102,0.52);
}

.wa-float svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1080px) {
  .hero-grid,
  .services-layout,
  .story-wrap,
  .courses-wrap,
  .contact-wrap,
  .section-grid {
    grid-template-columns: 1fr;
  }

  .services-note {
    position: static;
  }

  .contact-points,
  .hero-meta,
  .story-points {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .subs-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 880px) {
  .header-row {
    min-height: 68px;
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav {
    min-height: 68px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links,
  .nav-actions {
    display: none;
    width: 100%;
  }

  .site-header.is-open .nav-links,
  .site-header.is-open .nav-actions {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0 6px;
  }

  .nav-actions {
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0 4px;
  }

  .button,
  .button-ghost {
    width: 100%;
  }

  .section {
    padding: 56px 0;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }

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

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

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header-row {
    min-height: auto;
    padding: 12px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .header-row .brand {
    width: 100%;
  }

  .header-row .nav {
    width: 100%;
    min-height: auto;
    padding: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .header-row .header-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .header-row .button,
  .header-row .button-secondary {
    width: 100%;
    text-align: center;
  }

  .container {
    width: min(calc(100% - 24px), var(--content));
  }

  .hero {
    padding: 16px 0 8px;
  }

  .hero-shell {
    padding: 16px;
    border-radius: 24px;
  }

  .hero-main {
    padding: 4px 2px 0;
  }

  .hero-side {
    border-radius: 20px;
    padding: 18px;
  }

  .contact-points,
  .hero-meta {
    grid-template-columns: 1fr;
  }

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

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

  .subs-input {
    width: 100%;
  }

  .subs-form {
    width: 100%;
    flex-direction: column;
  }

  .subs-form .button {
    width: 100%;
  }

  .wa-float {
    bottom: 18px;
    right: 18px;
    width: 48px;
    height: 48px;
  }

  .wa-float svg {
    width: 24px;
    height: 24px;
  }
}

/* ══════════════════════════════════════════════════════════
   CSS PARA INDEX2.HTML (Habilitación de Centros Estéticos)
   ══════════════════════════════════════════════════════════ */

/* INDEX2 HEADER */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248,249,251,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15,44,89,0.08);
}

.header .brand img {
  height: 50px;
  width: auto;
}

.header .nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
}

.btn-primary {
  background: linear-gradient(135deg, var(--red) 0%, #A01515 100%);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(204,30,30,0.28);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(204,30,30,0.35);
}

.btn-secondary {
  border: 2px solid var(--navy);
  color: var(--navy);
  background: rgba(255,255,255,0.7);
  padding: 10px 22px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--white);
  box-shadow: 0 12px 28px rgba(15,44,89,0.15);
}

/* INDEX2 HERO - URGENCIA */
.hero-content {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero-left h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  line-height: 1.12;
  color: var(--navy);
  margin-bottom: 16px;
}

.hero-left h1 em {
  color: var(--red);
  font-style: italic;
}

.urgency-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(204,30,30,0.1);
  color: var(--red);
  padding: 10px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-left p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 24px;
  max-width: 55ch;
}

.hero-left .stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}

.stat-item {
  padding: 16px;
  background: rgba(204,30,30,0.06);
  border-left: 4px solid var(--red);
  border-radius: 8px;
}

.stat-item strong {
  display: block;
  color: var(--red);
  font-size: 18px;
  margin-bottom: 4px;
}

.stat-item span {
  color: var(--ink-soft);
  font-size: 12px;
}

.hero-left .cta-group {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-right {
  background: var(--white);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 12px 32px rgba(15,44,89,0.12);
  border: 1px solid rgba(15,44,89,0.08);
}

.hero-right h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.8rem;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.15;
}

.hero-right p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 20px;
}

.checklist {
  display: grid;
  gap: 12px;
}

.checklist-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.checklist-item::before {
  content: "✓";
  color: var(--red);
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.checklist-item span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

/* INDEX2 SECTION */
.section-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 40px;
}

.section-header h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.1;
  color: var(--navy);
}

.section-header p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

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

.card {
  background: var(--white);
  padding: 28px;
  border-radius: 16px;
  border: 1px solid rgba(15,44,89,0.08);
  box-shadow: 0 4px 12px rgba(15,44,89,0.06);
  transition: all 0.35s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--red);
  box-shadow: 0 16px 32px rgba(204,30,30,0.18);
}

.card-number {
  font-family: "Cormorant Garamond", serif;
  color: rgba(15,44,89,0.15);
  font-size: 2rem;
  margin-bottom: 12px;
}

.card h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.2;
}

.card p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.risk-section {
  background: rgba(204,30,30,0.04);
  border-left: 4px solid var(--red);
  padding: 32px;
  border-radius: 12px;
  margin: 40px 0;
}

.risk-section h3 {
  color: var(--red);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.risk-list {
  display: grid;
  gap: 12px;
}

.risk-item {
  display: flex;
  gap: 12px;
}

.risk-item::before {
  content: "⚠";
  font-size: 18px;
  flex-shrink: 0;
}

.risk-item span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
}

/* INDEX2 CTA FINAL */
.cta-final {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3f7f 100%);
  color: var(--white);
  padding: 60px 28px;
  border-radius: 20px;
  text-align: center;
  margin: 60px 0;
}

.cta-final h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 16px;
}

.cta-final p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 28px;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.95;
}

.cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .btn-primary {
  background: var(--red);
  box-shadow: 0 12px 28px rgba(204,30,30,0.4);
}

.cta-buttons .btn-secondary {
  border-color: var(--white);
  color: var(--white);
  background: transparent;
}

.cta-buttons .btn-secondary:hover {
  background: rgba(255,255,255,0.1);
}

/* INDEX2 FOOTER */
.footer {
  padding: 32px 0;
  background: #0A1527;
  color: rgba(255,255,255,0.6);
  text-align: center;
  font-size: 13px;
}

/* INDEX2 RESPONSIVE */
@media (max-width: 1024px) {
  .hero-content,
  .section-header {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons button,
  .cta-buttons a {
    width: 100%;
  }
}

/* ══════════════════════════════════════════════════════════
   CSS PARA HABILITACION-POR-TIPO.HTML
   ══════════════════════════════════════════════════════════ */

/* HABILITACION TIPOS GRID */
.tipos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.tipo-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(16,25,43,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(15,44,89,0.06);
}

.tipo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(16,25,43,0.12);
}

.tipo-card-header {
  padding: 32px 28px;
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a7a 100%);
  color: var(--white);
  border-bottom: 3px solid var(--red);
}

.tipo-card-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.tipo-card-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 8px;
}

.tipo-card-subtitle {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
}

.tipo-card-body {
  padding: 28px;
}

.tipo-card-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.tipo-services {
  margin: 20px 0;
}

.tipo-services h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy);
  margin-bottom: 12px;
}

.tipo-services ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tipo-services li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.tipo-services li::before {
  content: "✓";
  flex-shrink: 0;
  color: var(--red);
  font-weight: 700;
  margin-top: 2px;
}

.tipo-card-cta {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(15,44,89,0.08);
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  font-size: 13px;
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
}

.btn-contact:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(204,30,30,0.3);
}

/* HABILITACION RESPONSIVE */
@media (max-width: 768px) {
  .tipos-grid {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════════════════════════
   CSS PARA LEGAL/TRATAMIENTO-DATOS.HTML
   ══════════════════════════════════════════════════════════ */

/* TRATAMIENTO-DATOS CONTENT */
.content {
  padding: 60px 0;
}

.content h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
  line-height: 1.2;
  color: var(--navy);
  margin: 40px 0 20px 0;
  font-weight: 600;
}

.content h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  line-height: 1.2;
  color: var(--navy);
  margin: 30px 0 15px 0;
  font-weight: 600;
}

.content p {
  font-size: 15px;
  line-height: 1.8;
  color: #4A5A7A;
  margin-bottom: 16px;
}

.content ol,
.content ul {
  margin-left: 24px;
  margin-bottom: 16px;
}

.content li {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 10px;
  color: #4A5A7A;
}

.content strong {
  color: var(--navy);
  font-weight: 700;
}

/* TRATAMIENTO-DATOS FOOTER */
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 28px;
}

.site-footer .footer-grid strong {
  display: block;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 700;
}

.footer-copy {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.8);
  max-width: 300px;
}

.footer-kicker {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* TRATAMIENTO-DATOS RESPONSIVE */
@media (max-width: 768px) {
  .content h2 {
    font-size: 22px;
  }

  .content h3 {
    font-size: 18px;
  }
}
