@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Manrope:wght@300;400;500;600&display=swap');

:root {
  --bg:         #F6F8FC;        /* azul-blanco muy suave */
  --white:      #FFFFFF;
  --navy:       #1A3560;        /* azul profundo principal */
  --blue:       #2B5FAD;        /* azul medio, CTAs */
  --blue-light: #E2EBF8;        /* fondos suaves */
  --blue-mid:   #C8D8F0;        /* bordes / separadores */
  --text:       #1A3560;        /* mismo navy para títulos */
  --gray:       #5A6A88;        /* texto secundario */
  --gray-light: #DDE4EF;        /* bordes sutiles */
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ─── TIPOGRAFÍA ─── */

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--navy);
}

h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }

p { color: var(--gray); }

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

/* ─── UTILIDADES ─── */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section { padding: 7rem 0; }

.section--navy {
  background-color: var(--navy);
  color: var(--white);
}

.section--navy p { color: var(--blue-mid); }

.section--light {
  background-color: var(--blue-light);
}

.eyebrow {
  font-family: 'Manrope', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--blue);
  display: block;
  margin-bottom: 1.5rem;
}

.section--navy .eyebrow { color: var(--blue-mid); }

.divider {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--blue-mid));
  margin: 2rem 0;
}

.btn {
  display: inline-block;
  padding: 0.9rem 2.4rem;
  font-family: 'Manrope', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn--primary {
  background-color: var(--blue);
  color: var(--white);
}

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

.btn--outline {
  background-color: transparent;
  color: var(--navy);
  border: 1.5px solid var(--blue-mid);
}

.btn--outline:hover {
  background-color: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.btn--outline-white {
  background-color: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.35);
}

.btn--outline-white:hover {
  background-color: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

/* ─── NAVEGACIÓN ─── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 0;
  transition: all 0.4s ease;
}

.nav.scrolled {
  background-color: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  padding: 1rem 0;
  box-shadow: 0 1px 0 var(--gray-light);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo { display: flex; flex-direction: column; line-height: 1; }

.nav__logo-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.02em;
  transition: color 0.4s ease;
}

.nav.scrolled .nav__logo-name { color: var(--navy); }

.nav__logo-title {
  font-family: 'Manrope', sans-serif;
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  transition: color 0.4s ease;
}

.nav.scrolled .nav__logo-title { color: var(--gray); }

.nav__links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav__links a {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  transition: color 0.3s ease;
}

.nav.scrolled .nav__links a { color: var(--gray); }
.nav__links a:hover,
.nav.scrolled .nav__links a:hover { color: var(--blue); }

.nav__cta {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
  padding: 0.6rem 1.4rem;
  transition: all 0.3s ease;
}

.nav.scrolled .nav__cta {
  color: var(--navy);
  border-color: var(--blue-mid);
}

.nav__cta:hover {
  background-color: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background-color: var(--white);
  transition: all 0.3s ease;
}

.nav.scrolled .nav__toggle span { background-color: var(--navy); }

/* ─── HERO ─── */

.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #1A3560 0%, #1e4070 50%, #22487a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero__content--full {
  max-width: 720px;
  text-align: center;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(43,95,173,0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(255,255,255,0.04) 0%, transparent 50%);
  pointer-events: none;
}

.hero__image-side { position: relative; overflow: hidden; }

.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: brightness(0.92);
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 4rem 4rem;
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: 2rem;
}

.hero__title { color: var(--white); margin-bottom: 1rem; }

.hero__title em {
  font-style: italic;
  color: rgba(255,255,255,0.65);
}

.hero__logo {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.hero__subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.5);
  font-weight: 300;
  margin-bottom: 3rem;
  letter-spacing: 0.02em;
}

.hero__ctas { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

.hero__credentials {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.hero__credential-item {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: 10px;
  padding: 0.85rem 1.4rem;
}

.hero__credential-logo {
  display: block;
  height: 32px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}

.hero__credential-logo--seal { height: 52px; }

/* ─── INTRO ─── */

.intro { padding: 7rem 0; background-color: var(--white); }

.intro__inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 6rem;
  align-items: center;
}

.intro__quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.4;
  color: var(--navy);
}

.intro__quote::before {
  content: '"';
  font-size: 5rem;
  color: var(--blue-mid);
  line-height: 0;
  vertical-align: -2rem;
  margin-right: 0.1rem;
  font-style: normal;
}

.intro__text p + p { margin-top: 1rem; }

.intro__img-wrap {
  margin-top: 2rem;
  overflow: hidden;
  position: relative;
}

.intro__img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: grayscale(20%);
  transition: transform 0.5s ease;
}

.intro__img-wrap:hover .intro__img { transform: scale(1.03); }

/* ─── PROCEDIMIENTOS ─── */

.procedimientos {
  background-color: var(--white);
  padding: 7rem 0;
}

.procedimientos__header {
  margin-bottom: 4rem;
}

.proc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  align-items: start;
}

/* Columna individual */
.proc-col__img {
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.proc-col__img img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.5s ease;
}

.proc-col:hover .proc-col__img img { transform: scale(1.03); }

.proc-col__title {
  font-family: 'Manrope', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  text-align: center;
  margin-bottom: 1.2rem;
}

/* Lista base */
.proc-col__list { list-style: none; }

/* Cada ítem es un acordeón */
.proc-item { border-bottom: 1px solid var(--gray-light); }
.proc-item:first-child { border-top: 1px solid var(--gray-light); }

.proc-item__btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Manrope', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--gray);
  transition: color 0.2s ease;
}

.proc-item__btn:hover { color: var(--navy); }

.proc-item__chevron {
  width: 11px;
  height: 8px;
  color: #AABBD4;
  flex-shrink: 0;
  transition: transform 0.3s ease, color 0.2s ease;
}

.proc-item.open .proc-item__chevron {
  transform: rotate(180deg);
  color: var(--blue);
}

.proc-item.open .proc-item__btn { color: var(--navy); font-weight: 500; }

/* Cuerpo colapsable */
.proc-item__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.3s ease;
  padding: 0;
}

.proc-item.open .proc-item__body {
  max-height: 160px;
  padding-bottom: 0.9rem;
}

.proc-item__body p {
  font-size: 0.8rem;
  color: var(--gray);
  line-height: 1.65;
  padding-left: 1.6rem;
  border-left: 2px solid var(--blue-mid);
}

/* ─── SOBRE EL DR ─── */

.sobre { padding: 7rem 0; background-color: var(--white); }

.sobre__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.sobre__image-wrap {
  position: relative;
  aspect-ratio: 3/4;
}

.sobre__image-wrap::after {
  content: '';
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  width: 60%;
  height: 60%;
  border: 1.5px solid var(--blue-mid);
  z-index: 0;
}

.sobre__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  position: relative;
  z-index: 1;
}

.sobre__content { padding-top: 1rem; }

.sobre__bio { margin-bottom: 3rem; }
.sobre__bio p + p { margin-top: 1rem; }

.sobre__credentials {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.sobre__credential {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--gray-light);
}

.sobre__credential:first-child { border-top: 1px solid var(--gray-light); }

.sobre__credential-year {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  color: var(--blue);
  min-width: 60px;
  flex-shrink: 0;
  font-weight: 500;
}

.sobre__credential-text {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.5;
}

/* ─── NÚMEROS ─── */

.numeros { background-color: var(--blue-light); padding: 5rem 0; }

.numeros__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--blue-mid);
}

.numero-item {
  padding: 3.5rem 2.5rem;
  border-right: 1px solid var(--blue-mid);
  text-align: center;
}

.numero-item:last-child { border-right: none; }

.numero-item__value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.8rem;
  font-weight: 300;
  color: var(--navy);
  line-height: 1;
  display: block;
}

.numero-item__label {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  margin-top: 0.8rem;
  display: block;
}

/* ─── LUGARES ─── */

.lugares { padding: 7rem 0; background-color: var(--bg); }

.lugares__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 4rem;
}

.lugar-card {
  padding: 3rem;
  background-color: var(--white);
  border: 1.5px solid var(--gray-light);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.lugar-card:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 30px rgba(43,95,173,0.08);
}

.lugar-card__type {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.5rem;
}

.lugar-card__name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.lugar-card__info {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 2rem;
}

.lugar-card__info li {
  font-size: 0.85rem;
  color: var(--gray);
  display: flex;
  gap: 1rem;
}

.lugar-card__info-label {
  font-weight: 600;
  color: var(--navy);
  min-width: 70px;
  flex-shrink: 0;
}

/* ─── CONTACTO ─── */

.contacto { background-color: var(--navy); padding: 7rem 0; }

.contacto__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.contacto__form { display: flex; flex-direction: column; gap: 1.5rem; }

.form-group { display: flex; flex-direction: column; gap: 0.5rem; }

.form-group label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue-mid);
}

.form-group input,
.form-group select,
.form-group textarea {
  background-color: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding: 0.8rem 0;
  color: var(--white);
  font-family: 'Manrope', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  transition: border-color 0.3s ease;
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--blue-mid); }

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.2); }

.form-group select option { background-color: var(--navy); color: var(--white); }
.form-group select optgroup { color: var(--blue-mid); }
.form-group select { appearance: none; cursor: pointer; }
.form-group textarea { resize: none; min-height: 100px; }

.contacto__info { padding-top: 1rem; }

.contacto__info h3 { color: var(--white); font-size: 2.8rem; margin-bottom: 1.5rem; }
.contacto__info > p { color: rgba(255,255,255,0.4); margin-bottom: 3rem; }

.contacto__channels { list-style: none; display: flex; flex-direction: column; gap: 1.5rem; }

.contacto__channel { display: flex; flex-direction: column; gap: 0.2rem; }

.contacto__channel-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue-mid);
}

.contacto__channel-value { font-size: 1rem; color: rgba(255,255,255,0.75); }

/* ─── CTA CHAT EN CONTACTO ─── */

.contacto__chat-cta { padding-top: 1rem; }

.chat-cta-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.chat-cta-feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.chat-cta-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.chat-cta-feature strong {
  font-size: 0.9rem;
  color: var(--white);
  font-weight: 600;
  display: block;
  margin-bottom: 0.2rem;
}

.chat-cta-feature p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin: 0;
}

/* ─── FOOTER ─── */

.footer { background-color: #122645; padding: 3rem 0; }

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__matricula {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.08em;
}

.footer__links { display: flex; gap: 2rem; list-style: none; }

.footer__links a {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.footer__links a:hover { color: var(--blue-mid); }

.footer__legal {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.15);
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  line-height: 1.8;
}

/* ─── WHATSAPP FLOTANTE ─── */

.whatsapp-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background-color: #25D366;
  color: var(--white);
  padding: 0.9rem 1.5rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(37,211,102,0.3);
}

.whatsapp-btn:hover {
  background-color: #1da851;
  gap: 1.2rem;
  box-shadow: 0 6px 30px rgba(37,211,102,0.4);
}

.whatsapp-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ─── RESPONSIVE ─── */

@media (max-width: 1200px) {
  .proc-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
  .proc-col__img img { aspect-ratio: 4/3; }
}

@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .hero__image-side { display: none; }
  .hero__content {
    min-height: 100vh;
    padding: 8rem 2rem 4rem;
  }
  .intro__inner,
  .sobre__inner,
  .contacto__inner { grid-template-columns: 1fr; gap: 3rem; }
  .numeros__grid { grid-template-columns: repeat(2, 1fr); }
  .numeros__grid .numero-item:nth-child(2) { border-right: none; }
  .numeros__grid .numero-item:nth-child(3),
  .numeros__grid .numero-item:nth-child(4) { border-top: 1px solid var(--blue-mid); }
  .lugares__grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 4.5rem 0; }
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; order: -1; }
  .hero__credentials { gap: 1.5rem; flex-wrap: wrap; }
  .footer__inner { flex-direction: column; gap: 1.5rem; text-align: center; }
  .sobre__image-wrap::after { display: none; }
  .numeros__grid { grid-template-columns: repeat(2, 1fr); }
  .whatsapp-btn span { display: none; }
  .whatsapp-btn { padding: 1rem; border-radius: 50%; }
  .proc-grid { grid-template-columns: 1fr; }
  .proc-col__img img { aspect-ratio: 16/9; }
}
