/* ============================================================
   profesionales.css — Estilos exclusivos de la página
   ============================================================ */

/* ── HERO ──────────────────────────────────────────────────── */
.prof-hero {
  position: relative;
  height: 75svh;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.prof-hero__img-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.prof-hero__img-wrapper picture {
  display: block;
  width: 100%;
  height: 100%;
}

.prof-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Placeholder hasta tener la foto */
.prof-hero__img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, var(--color-primary) 0%, var(--color-secondary) 60%, var(--color-accent) 100%);
}

.prof-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(38, 28, 18, 0.85) 0%,
    rgba(38, 28, 18, 0.4)  50%,
    rgba(38, 28, 18, 0.15) 100%
  );
}

.prof-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
}

.prof-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 10vw, 9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-white);
  margin-bottom: var(--space-5);
}

.prof-hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.7);
  max-width: 56ch;
}

/* ── CASO — Foto corporativa ────────────────────────────────── */
.prof-caso {
  background-color: var(--color-bg);
  padding-block: var(--space-20);
}

.prof-caso__inner {
  max-width: 820px;
  margin-inline: auto;
}

.prof-caso__img-wrapper {
  position: relative;
  height: 520px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.prof-caso__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Placeholder hasta tener la foto */
.prof-caso__img-placeholder {
  width: 100%;
  height: 520px;
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.prof-caso__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  background: linear-gradient(to top, rgba(38,28,18,0.75) 0%, transparent 100%);
  color: rgba(255,255,255,0.85);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

/* ── SERVICIOS ──────────────────────────────────────────────── */
.prof-servicios {
  background-color: var(--color-primary);
}

.prof-servicios__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0 var(--space-16);
  align-items: start;
}

.prof-servicios__divider {
  width: 1px;
  background-color: rgba(255,255,255,0.1);
  align-self: stretch;
  margin-block: var(--space-4);
}

.prof-servicio {
  padding-block: var(--space-4);
}

.prof-servicio__icon {
  color: var(--color-accent);
  margin-bottom: var(--space-6);
}

.prof-servicio__title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-4);
  line-height: 1.2;
}

.prof-servicio__desc {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--space-8);
  max-width: 42ch;
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .prof-servicios__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
  }
  .prof-servicios__divider {
    display: none;
  }
}

@media (max-width: 767px) {
  .prof-hero {
    height: 85svh;
    align-items: flex-end;
  }

  .prof-hero__title {
    font-size: clamp(2.8rem, 13vw, 4.25rem);
    line-height: 0.95;
  }

  .prof-hero__subtitle br {
    display: none;
  }

  .prof-caso__img-wrapper,
  .prof-caso__img-placeholder {
    height: 300px;
  }

  .prof-caso__caption {
    padding-right: var(--space-4);
    padding-left: var(--space-3);
  }

  .prof-servicios__grid {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }

  .prof-servicio__desc {
    max-width: none;
  }
}
