/* CM Studio — hoja de estilos compartida
   Paleta: navy #0B1F3A / amarillo #F5C400 / blanco / off-white
   Tipografía: Helvetica Neue / Arial (definida por la marca CM Studio) */

:root {
  --navy: #0B1F3A;
  --navy-soft: #14304F;
  --yellow: #F5C400;
  --yellow-deep: #D9AE00;
  --white: #FFFFFF;
  --off-white: #F7F6F2;
  --ink: #1A1A1A;
  --muted: #5B6472;
  --muted-light: #A9B3C4;
  --border: rgba(11, 31, 58, 0.12);
  --border-light: rgba(255, 255, 255, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
}

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

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

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--navy);
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.08; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.2; }
h3 { font-size: 1.15rem; line-height: 1.3; }

p { margin: 0; color: var(--muted); }

button, .btn {
  font-family: inherit;
  cursor: pointer;
  border: none;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 0.98rem;
  font-weight: 700;
  border-radius: 2px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--yellow);
  color: var(--navy);
}
.btn-primary:hover { background: var(--yellow-deep); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border-light);
}
.btn-outline:hover { border-color: var(--yellow); color: var(--yellow); }

.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--border);
}
.btn-outline-dark:hover { border-color: var(--navy); }

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.logo { font-size: 1.25rem; font-weight: 700; color: var(--white); letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; }
.logo span { color: var(--yellow); }
.logo-img { height: 18px; width: auto; display: block; }
.footer-top .logo-img { height: 16px; }

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--muted-light);
  font-size: 0.98rem;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  border-color: var(--yellow);
}

/* ---------- Hero (dark) ---------- */
.hero {
  background-color: var(--navy);
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  padding: 96px 0 84px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: end;
}

.hero h1 { color: var(--white); max-width: 15ch; }

.hero .lede {
  margin-top: 22px;
  max-width: 42ch;
  color: var(--muted-light);
  font-size: 1.08rem;
}

.hero .actions {
  margin-top: 34px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-panel {
  border-left: 3px solid var(--yellow);
  padding-left: 24px;
  color: var(--muted-light);
  font-size: 1.05rem;
  align-self: end;
}

.hero-panel strong { color: var(--white); display: block; margin-bottom: 6px; }

.hero-photo {
  align-self: stretch;
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  box-shadow: 0 50px 90px rgba(0, 0, 0, 0.35), 0 20px 45px rgba(0, 0, 0, 0.22), 0 6px 16px rgba(0, 0, 0, 0.18);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-photo-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--navy) 0%, rgba(11, 31, 58, 0.55) 22%, rgba(11, 31, 58, 0) 55%);
  pointer-events: none;
}

.carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px 0 8px;
}
.carousel-slide {
  flex: 0 0 24%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  opacity: 0.5;
  transform: scale(0.86);
  transition: transform 0.6s ease, opacity 0.6s ease, border-color 0.6s ease;
  position: relative;
  background: var(--navy-soft);
  border: 2px solid var(--yellow);
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.35s ease;
}
.carousel-center {
  flex: 0 0 34%;
  opacity: 1;
  transform: scale(1);
  z-index: 2;
  border-width: 3px;
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.45);
}
.carousel-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 42%, rgba(11, 31, 58, 0.6) 100%);
  pointer-events: none;
}

.trabajo-block {
  background-color: var(--navy);
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  border-radius: 20px;
  padding: 48px 40px;
  margin: 0 4px;
  box-shadow: 0 34px 64px rgba(11, 31, 58, 0.3), 0 12px 28px rgba(11, 31, 58, 0.2);
}
.trabajo-block .section-head h2 { color: var(--white); }
.trabajo-block .section-head p { color: var(--muted-light); }
.carousel-slide.is-fading img { opacity: 0; }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-off { background: var(--off-white); }

.section-head {
  max-width: 60ch;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.section-head p { margin-top: 14px; font-size: 1.05rem; }

/* ---------- Pillars list (Nosotros) ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--border);
}

.pillar {
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
  padding-right: 24px;
}
.pillar:nth-child(odd) { border-right: 1px solid var(--border); padding-left: 0; }
.pillar:nth-child(even) { padding-left: 24px; }

.pillar h3 { margin-bottom: 8px; }
.pillar p { font-size: 0.98rem; }

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}
.service-card {
  display: block;
  padding: 28px 22px;
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover,
.service-card:focus-visible,
.service-card:active {
  background: var(--navy);
  border-color: var(--navy);
  transform: scale(1.05);
  box-shadow: 0 18px 32px rgba(11, 31, 58, 0.25);
}
.service-icon {
  width: 30px;
  height: 30px;
  color: var(--yellow-deep);
  margin-bottom: 14px;
  transition: color 0.25s ease;
}
.service-card:hover .service-icon,
.service-card:focus-visible .service-icon,
.service-card:active .service-icon { color: var(--yellow); }
.service-card h3 {
  margin-bottom: 8px;
  transition: color 0.25s ease;
}
.service-card:hover h3,
.service-card:focus-visible h3,
.service-card:active h3 { color: var(--white); }
.service-card p {
  font-size: 0.95rem;
  transition: color 0.25s ease;
}
.service-card:hover p,
.service-card:focus-visible p,
.service-card:active p { color: var(--muted-light); }

.service-cards-h {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.service-card-h {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 30px 36px;
}
.service-card-h .service-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  margin-bottom: 0;
}
.service-card-h h3 { font-size: 1.2rem; margin-bottom: 8px; }
.service-card-h p { font-size: 0.98rem; }

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
}

.about-grid .intro p { font-size: 1.08rem; color: var(--ink); }
.about-grid .intro p + p { margin-top: 16px; }

.niches {
  border-top: 1px solid var(--border);
  padding-top: 40px;
  margin-top: 8px;
}
.niches p { font-size: 1.15rem; color: var(--navy); }
.niches strong { color: var(--navy); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--yellow);
  padding: 56px 0;
}
.cta-band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { max-width: 24ch; }

/* ---------- Plans (Planes y Servicios) ---------- */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.plan-card {
  border: 1px solid var(--border);
  padding: 36px;
  background: var(--white);
  position: relative;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.plan-card:hover {
  background: var(--navy);
  border-color: var(--yellow);
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(11, 31, 58, 0.28);
}
.plan-card .plan-name,
.plan-card .plan-tag,
.plan-card .plan-group-label,
.plan-card .plan-features li,
.plan-card .btn-outline-dark {
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.plan-card:hover .plan-name { color: var(--white); }
.plan-card:hover .plan-tag { color: var(--muted-light); }
.plan-card:hover .plan-group-label { color: var(--yellow); }
.plan-card:hover .plan-features li { color: var(--white); border-color: var(--border-light); }
.plan-card:hover .btn-outline-dark { color: var(--yellow); border-color: var(--yellow); }

.plan-group-label {
  font-weight: 700;
  color: var(--navy);
  margin: 24px 0 8px;
}

.plan-row {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  padding: 48px 0;
  border-top: 1px solid var(--border);
}
.plan-row:last-of-type { border-bottom: 1px solid var(--border); }

.plan-name { color: var(--navy); }
.plan-tag { margin-top: 10px; font-size: 1rem; }

.plan-features {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}
.plan-features li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  font-size: 0.98rem;
}
.plan-features li:last-child { border-bottom: none; }

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
}
.plan-price .amount {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--yellow);
  padding: 4px 12px;
}

/* ---------- Curso modules ---------- */
.course-card {
  border: 1px solid var(--border);
  padding: 40px;
}
.course-card .meta {
  display: flex;
  gap: 28px;
  margin: 18px 0 32px;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: var(--muted);
}
.course-card .meta strong { color: var(--navy); }

.modules {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}
.module {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.module:nth-child(odd) { padding-right: 24px; border-right: 1px solid var(--border); }
.module:nth-child(even) { padding-left: 24px; }
.module .num {
  font-weight: 700;
  color: var(--yellow-deep);
  min-width: 26px;
}
.module .name { color: var(--ink); font-size: 0.98rem; padding-top: 1px; }

/* ---------- Contacto ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
}

.contact-list {
  list-style: none;
  margin: 28px 0 32px;
  padding: 0;
  border-top: 1px solid var(--border);
}
.contact-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.contact-list .label {
  display: block;
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 4px;
}
.contact-list .value { font-size: 1.05rem; color: var(--navy); font-weight: 700; }

.form-note {
  margin-top: 14px;
  font-size: 0.86rem;
  color: var(--muted);
}

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 6px;
  font-weight: 700;
}
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--off-white);
}
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--yellow-deep);
  outline-offset: 1px;
}
.field textarea { min-height: 130px; resize: vertical; }

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--navy);
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  padding: 48px 0 32px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-light);
}
.footer-top .logo { margin-bottom: 8px; }
.footer-top p { color: var(--muted-light); max-width: 34ch; font-size: 0.95rem; }

.footer-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--muted-light); font-size: 0.95rem; }
.footer-links a:hover { color: var(--yellow); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 20px;
  font-size: 0.85rem;
  color: var(--muted-light);
}

/* ---------- Focus & motion ---------- */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero .wrap, .about-grid, .plan-row, .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero-panel { border-left: none; border-top: 3px solid var(--yellow); padding-left: 0; padding-top: 20px; }
  .pillars, .modules, .plans-grid { grid-template-columns: 1fr; }
  .service-cards { grid-template-columns: repeat(2, 1fr); }
  .trabajo-block { padding: 32px 20px; margin: 0; border-radius: 12px; }
  .service-card-h { flex-direction: column; text-align: center; gap: 12px; }
  .carousel-slide { flex-basis: 18%; }
  .carousel-center { flex-basis: 50%; }
  .pillar:nth-child(odd), .module:nth-child(odd) { border-right: none; padding-right: 0; }
  .pillar:nth-child(even), .module:nth-child(even) { padding-left: 0; }
  .nav-links { gap: 20px; }
  section { padding: 64px 0; }
}

@media (max-width: 560px) {
  .nav { flex-direction: column; align-items: flex-start; gap: 14px; }
  .nav-links { flex-wrap: wrap; gap: 14px 20px; }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; }
  .carousel { gap: 8px; }
  .carousel-slide { flex-basis: 14%; }
  .carousel-center { flex-basis: 58%; }
}
