/* ===== Variables ===== */
:root {
  --crema: #fdf9e8;
  --navy: #212b6b;
  --azul: #2a5c94;
  --azul-medio: #375d8c;
  --texto: #1c1c1c;
  --radio: 20px;
}

* { box-sizing: border-box; }

body {
  font-family: "Montserrat", sans-serif;
  background: var(--crema);
  color: var(--texto);
}

h1, h2, h3 { font-weight: 800; margin: 0; }
img { max-width: 100%; height: auto; }

:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; }

/* ===== Iconos SVG ===== */
.ico { width: 1em; height: 1em; fill: currentColor; vertical-align: -0.125em; }

/* ===== Márgenes laterales (tablet y móvil) ===== */
.container-xl { padding-left: clamp(24px, 6vw, 56px); padding-right: clamp(24px, 6vw, 56px); }

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 1030;
  padding: 18px 0 14px;
  background: var(--crema);
  transition: box-shadow .25s ease;
}
.header.con-sombra { box-shadow: 0 4px 16px rgba(33, 43, 107, .15); }
.logo { height: 56px; width: auto; }

.nav-pill {
  display: flex;
  gap: 8px;
  padding: 10px 24px;
  border: 1.5px solid var(--navy);
  border-radius: 14px;
}
.nav-pill a {
  padding: 4px 18px;
  color: var(--navy);
  font-weight: 600;
  font-size: 1.15rem;
  text-decoration: none;
  transition: color .2s;
}
.nav-pill a:hover { color: var(--azul); }

.menu-toggle {
  background: none;
  border: 0;
  color: var(--navy);
  font-size: 2rem;
  line-height: 1;
}
.nav-mobile { display: none; flex-direction: column; gap: 4px; padding: 14px 0 6px; }
.nav-mobile.abierto { display: flex; }
.nav-mobile a {
  padding: 10px 14px;
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
}
.nav-mobile a:hover { background: rgba(33, 43, 107, .08); }

/* ===== Botones ===== */
.btn-imaro {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 10px;
  color: #fff;
  font-weight: 500;
  font-size: 1.1rem;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .2s, filter .2s;
}
.btn-imaro:hover { color: #fff; transform: translateY(-2px); filter: brightness(1.12); }
.btn-imaro--azul { background: var(--azul); }
.btn-imaro--navy { background: var(--navy); }
.header .btn-imaro { text-transform: none; }

/* ===== Hero ===== */
.hero { padding-top: 30px; overflow: hidden; }
.hero__texto { padding-bottom: 60px; }
.hero h1 {
  color: var(--navy);
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.15;
  text-transform: uppercase;
  max-width: 14ch;
}
.hero__sub {
  color: var(--azul);
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  text-transform: uppercase;
  line-height: 1.2;
  margin: 12px 0 34px;
  max-width: 16ch;
}
.hero__foto { align-self: flex-end; }
.hero__foto img { display: block; margin-left: auto; max-height: 520px; width: auto; }

/* ===== Banda de servicios ===== */
.banda { background: var(--navy); color: #fff; padding: 46px 0; }
.banda h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); text-transform: uppercase; }
.banda p { margin: 0; font-size: 1.35rem; font-weight: 500; text-transform: uppercase; max-width: 28ch; line-height: 1.2; }

/* ===== Tarjetas de servicios ===== */
.servicios { padding: 60px 0; }
.servicio {
  height: 100%;
  padding: 20px 20px 30px;
  border: 2px solid var(--azul);
  border-radius: var(--radio);
  text-align: center;
}
.servicio img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 24px;
}
.servicio h3 {
  margin: 28px 0 14px;
  color: var(--navy);
  font-size: 1.4rem;
  text-transform: uppercase;
}
.servicio p { margin: 0; color: var(--azul); font-size: 1.05rem; line-height: 1.35; }

/* ===== Sección azul (Sobre mí + Testimonios) ===== */
.azul { background: var(--azul-medio); color: #fff; padding: 80px 0; }

.sobre { margin-bottom: 90px; }
.foto-sobre {
  width: 100%;
  max-width: 340px;
  border-radius: 22px;
}
.etiqueta {
  display: inline-block;
  margin-bottom: 36px;
  padding: 10px 28px;
  background: var(--navy);
  border-radius: 14px;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  text-transform: uppercase;
}
.sobre p { text-align: justify; font-size: 1.05rem; line-height: 1.5; max-width: 62ch; margin-bottom: 4px; }

/* Testimonios */
.titulo-testimonios {
  margin-bottom: 44px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  text-transform: uppercase;
}
.testimonio {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 30px;
  background: var(--crema);
  color: var(--texto);
  border-radius: 20px;
}
.testimonio__texto { margin: 0; font-weight: 500; font-size: 1.05rem; line-height: 1.35; }
.ver-mas {
  padding: 0;
  background: none;
  border: 0;
  color: var(--azul);
  font: inherit;
  cursor: pointer;
}
.ver-mas:hover { text-decoration: underline; }

.autor { display: flex; align-items: center; gap: 14px; }
.avatar { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: #d9d9d9; }
.autor strong { display: block; font-size: .95rem; }
.autor small { display: block; font-size: .75rem; line-height: 1.25; color: #444; }
.estrellas { display: flex; gap: 4px; margin-top: 4px; color: var(--navy); font-size: .95rem; }
.estrellas .vacia { opacity: .35; }

/* ===== Footer ===== */
.footer { background: var(--navy); color: #fff; padding: 34px 0; }
.logo-footer { height: 64px; width: auto; }
.correo {
  color: #fff;
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  font-weight: 500;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.correo:hover { color: #fff; text-decoration: underline; }

.redes {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 992px) { .redes { justify-content: flex-end; } }

.redes a {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 1.7rem;
  transition: background-color .25s ease;
}
.redes a:hover,
.redes a:focus-visible { background: var(--azul-medio); color: #fff; }

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
  .hero__texto { padding-bottom: 20px; text-align: center; }
  .hero h1, .hero__sub { margin-left: auto; margin-right: auto; }
  .hero .d-flex { justify-content: center; }
  .hero__foto img { margin: 0 auto; max-height: 400px; }
  .banda { text-align: center; }
  .banda p { margin: 0 auto; }
  .etiqueta { display: block; text-align: center; }
}
@media (max-width: 767.98px) {
  .sobre { margin-bottom: 60px; }
  .sobre p { text-align: left; }
  .azul { padding: 56px 0; }
  .correo { font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}