/* =========================================================
   DORSEY REINFORCEMENT
   CONTACTO

   PALETA OFICIAL
   #0a1128
   #001f54
   #034078
   #1282a2
   #fefcfb

   IMPORTANTE:
   EL HERO SE CONTROLA ÚNICAMENTE DESDE:
   assets/css/hero-global.css

   SIN ANIMACIONES DE ENTRADA.
   SOLO HOVER EN ESCRITORIO.
   ========================================================= */


/* =========================================================
   SEGURIDAD DE LAYOUT
   ========================================================= */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}


/* =========================================================
   SECCIONES GENERALES
   Desktop: 96px
   ========================================================= */

.section {
  width: 100%;
  padding: 96px 0;
  background: #fefcfb;
}


/* =========================================================
   ENCABEZADOS
   ========================================================= */

.section__header {
  width: 100%;
  max-width: 820px;

  margin: 0 auto 64px;

  text-align: center;
}


.section__header .mini {
  display: block;

  margin: 0 0 10px;

  color: #1282a2;

  font-size: 0.875rem;
  font-weight: 700;

  line-height: 1.4;

  letter-spacing: 0.15em;

  text-transform: uppercase;
}


/* H2 desktop: 36px — 48px */

.section__header h2 {
  margin: 0;

  color: #001f54;

  font-size:
    clamp(
      2.25rem,
      3.2vw,
      3rem
    );

  font-weight: 700;

  line-height: 1.25;

  letter-spacing: -0.02em;
}


/* =========================================================
   SEDE PRINCIPAL
   ========================================================= */

.section--sede-principal {
  background:
    linear-gradient(
      180deg,
      #fefcfb 0%,
      rgba(18, 130, 162, 0.055) 100%
    );
}


.sede-principal-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 1.05fr)
    minmax(0, 0.95fr);

  align-items: center;

  gap: 64px;
}


/* =========================================================
   INFORMACIÓN DE SEDE
   ========================================================= */

.sede-principal-info {
  min-width: 0;
}


.sede-principal-info .mini {
  display: block;

  margin: 0 0 10px;

  color: #1282a2;

  font-size: 0.875rem;
  font-weight: 700;

  line-height: 1.4;

  letter-spacing: 0.15em;

  text-transform: uppercase;
}


.sede-principal-info h2 {
  margin: 0 0 18px;

  color: #001f54;

  font-size:
    clamp(
      2.25rem,
      3vw,
      3rem
    );

  font-weight: 700;

  line-height: 1.25;

  letter-spacing: -0.02em;
}


.sede-principal-text {
  max-width: 560px;

  margin: 0;

  color: #034078;

  font-size: 1rem;

  line-height: 1.7;
}


/* =========================================================
   LISTA DE DATOS
   ========================================================= */

.sede-principal-list {
  display: grid;

  gap: 12px;

  margin: 28px 0;

  padding: 0;

  list-style: none;
}


.sede-principal-list li {
  display: flex;

  align-items: flex-start;

  gap: 10px;

  margin: 0;

  color: #034078;

  font-size: 1rem;

  line-height: 1.6;
}


.sede-principal-list li strong {
  color: #001f54;
  font-weight: 700;
}

.sede-principal-list svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  fill: none;
  stroke: #1282a2;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* =========================================================
   BOTÓN MAPA
   ========================================================= */

.btn-mapa {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-height: 48px;

  padding: 11px 22px;

  border: 1px solid #001f54;
  border-radius: 9px;

  background: #001f54;

  color: #fefcfb;

  font-size: 0.875rem;
  font-weight: 700;

  line-height: 1.4;

  letter-spacing: 0.05em;

  text-align: center;
  text-decoration: none;

  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}


.btn-mapa:hover {
  transform: translateY(-2px);

  background: #034078;

  border-color: #034078;

  box-shadow:
    0 12px 26px
    rgba(3, 64, 120, 0.22);
}


.btn-mapa:active {
  transform: translateY(0);
}


.btn-mapa:focus-visible {
  outline:
    3px solid
    rgba(18, 130, 162, 0.35);

  outline-offset: 3px;
}


/* =========================================================
   MAPA
   ========================================================= */

.sede-principal-mapa {
  width: 100%;
  min-width: 0;
}


.sede-principal-mapa iframe {
  display: block;

  width: 100%;
  height: 400px;

  border: 0;
  border-radius: 16px;

  box-shadow:
    0 14px 34px
    rgba(10, 17, 40, 0.11);
}


/* =========================================================
   SERVICIOS DE CONTACTO
   ========================================================= */

.servicios-grid {
  display: grid;

  grid-template-columns:
    repeat(
      3,
      minmax(0, 1fr)
    );

  align-items: stretch;

  gap: 24px;
}


/* =========================================================
   TARJETA DE SERVICIO
   ========================================================= */

.servicio-card {
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: center;

  min-width: 0;
  min-height: 280px;

  padding: 30px 24px 24px;

  overflow: hidden;

  border:
    1px solid
    rgba(3, 64, 120, 0.14);

  border-radius: 16px;

  background: #fefcfb;

  box-shadow:
    0 10px 28px
    rgba(10, 17, 40, 0.07);

  text-align: center;

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}


.servicio-card::after {
  content: "";

  position: absolute;

  right: 0;
  bottom: 0;
  left: 0;

  height: 4px;

  background:
    linear-gradient(
      90deg,
      #001f54,
      #034078,
      #1282a2
    );

  transform: scaleX(0);

  transform-origin: left center;

  transition: transform 0.25s ease;
}


.servicio-card:hover {
  transform: translateY(-5px);

  border-color:
    rgba(18, 130, 162, 0.3);

  box-shadow:
    0 20px 42px
    rgba(10, 17, 40, 0.12);
}


.servicio-card:hover::after {
  transform: scaleX(1);
}


/* =========================================================
   ICONO
   ========================================================= */

.servicio-icon {
  display: flex;

  align-items: center;
  justify-content: center;

  flex: 0 0 auto;

  width: 58px;
  height: 58px;

  margin: 0 auto 20px;

  border-radius: 50%;

  background:
    linear-gradient(
      145deg,
      #034078,
      #1282a2
    );

  color: #fefcfb;

  font-size: 1.5rem;

  line-height: 1;

  box-shadow:
    0 8px 20px
    rgba(3, 64, 120, 0.18);
}

.servicio-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* =========================================================
   TÍTULO DE SERVICIO
   H3 desktop: 28px — 32px
   ========================================================= */

.servicio-card h3 {
  margin: 0 0 10px;

  color: #001f54;

  font-size:
    clamp(
      1.75rem,
      2vw,
      2rem
    );

  font-weight: 700;

  line-height: 1.3;

  letter-spacing: -0.015em;
}


/* =========================================================
   CORREO
   ========================================================= */

.servicio-mail {
  display: block;

  max-width: 100%;

  margin: 0 0 22px;

  color: #034078;

  font-size: 0.875rem;
  font-weight: 500;

  line-height: 1.5;

  overflow-wrap: anywhere;

  text-decoration: none;

  transition: color 0.2s ease;
}


.servicio-mail:hover {
  color: #1282a2;
}


/* =========================================================
   ACCIONES DE SERVICIO
   ========================================================= */

.servicio-actions {
  display: flex;

  width: 100%;

  gap: 10px;

  margin-top: auto;
}


/* =========================================================
   BOTONES DE SERVICIO
   ========================================================= */

.btn-servicio {
  display: inline-flex;

  flex: 1 1 0;

  align-items: center;
  justify-content: center;

  min-width: 0;
  min-height: 44px;

  padding: 10px 12px;

  border: 0;
  border-radius: 8px;

  color: #fefcfb;

  font-size: 0.875rem;
  font-weight: 700;

  line-height: 1.35;

  text-align: center;
  text-decoration: none;

  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.btn-servicio svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}


.btn-servicio.wsp {
  background: #1282a2;
}


.btn-servicio.call {
  background: #001f54;
}


.btn-servicio.wsp:hover {
  transform: translateY(-2px);

  background: #034078;

  box-shadow:
    0 8px 18px
    rgba(3, 64, 120, 0.2);
}


.btn-servicio.call:hover {
  transform: translateY(-2px);

  background: #034078;

  box-shadow:
    0 8px 18px
    rgba(0, 31, 84, 0.2);
}


.btn-servicio:focus-visible {
  outline:
    3px solid
    rgba(18, 130, 162, 0.35);

  outline-offset: 3px;
}


/* =========================================================
   FORMULARIO
   ========================================================= */

.contacto-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 1.15fr)
    minmax(320px, 0.85fr);

  align-items: start;

  gap: 64px;
}


/* =========================================================
   CONTENEDOR FORMULARIO
   ========================================================= */

.contact-form {
  width: 100%;

  padding: 36px;

  border:
    1px solid
    rgba(3, 64, 120, 0.12);

  border-radius: 16px;

  background:
    rgba(18, 130, 162, 0.045);

  box-shadow:
    0 10px 28px
    rgba(10, 17, 40, 0.06);
}


/* =========================================================
   CAMPOS
   ========================================================= */

.form-group {
  display: flex;

  flex-direction: column;

  width: 100%;

  margin-bottom: 18px;
}


.form-group:last-of-type {
  margin-bottom: 0;
}


.form-group label {
  margin: 0 0 7px;

  color: #001f54;

  font-size: 0.875rem;
  font-weight: 600;

  line-height: 1.4;
}


/* INPUTS */

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;

  border:
    1px solid
    rgba(3, 64, 120, 0.18);

  border-radius: 8px;

  background: #fefcfb;

  color: #0a1128;

  font-family: var(--font-body);

  font-size: 1rem;

  line-height: 1.5;

  outline: none;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}


.form-group input,
.form-group select {
  height: 48px;

  padding: 0 14px;
}


.form-group textarea {
  min-height: 140px;

  padding: 12px 14px;

  resize: vertical;
}


.form-group input::placeholder,
.form-group textarea::placeholder {
  color:
    rgba(3, 64, 120, 0.55);
}


.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #1282a2;

  box-shadow:
    0 0 0 3px
    rgba(18, 130, 162, 0.12);
}


/* =========================================================
   BOTÓN ENVIAR
   ========================================================= */

.btn-enviar {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-height: 50px;

  margin-top: 22px;

  padding: 12px 24px;

  border: 1px solid #001f54;
  border-radius: 9px;

  background: #001f54;

  color: #fefcfb;

  font-family: var(--font-body);

  font-size: 0.875rem;
  font-weight: 700;

  line-height: 1.4;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}


.btn-enviar:hover {
  transform: translateY(-2px);

  background: #034078;

  border-color: #034078;

  box-shadow:
    0 12px 26px
    rgba(3, 64, 120, 0.22);
}


.btn-enviar:active {
  transform: translateY(0);
}


.btn-enviar:focus-visible {
  outline:
    3px solid
    rgba(18, 130, 162, 0.35);

  outline-offset: 3px;
}


/* =========================================================
   PANEL DERECHO
   ========================================================= */

.contact-info {
  display: flex;

  flex-direction: column;

  align-items: center;

  width: 100%;

  gap: 22px;
}


/* =========================================================
   IMAGEN
   ========================================================= */

.contact-info__image {
  display: flex;

  align-items: center;
  justify-content: center;

  width: 100%;

  aspect-ratio: 4 / 3;

  overflow: hidden;

  border:
    1px solid
    rgba(3, 64, 120, 0.14);

  border-radius: 16px;

  background:
    linear-gradient(
      135deg,
      #0a1128,
      #001f54
    );

  color: #fefcfb;

  font-size: 0.875rem;
  font-weight: 600;

  line-height: 1.4;

  letter-spacing: 0.08em;

  text-align: center;

  box-shadow:
    0 12px 30px
    rgba(10, 17, 40, 0.1);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}


.contact-info__image:hover {
  transform: translateY(-4px);

  box-shadow:
    0 18px 38px
    rgba(10, 17, 40, 0.14);
}


/* =========================================================
   REDES SOCIALES
   ========================================================= */

.contact-info__social {
  display: flex;

  align-items: center;
  justify-content: center;

  flex-wrap: wrap;

  gap: 12px;
}


.contact-info__social a {
  display: flex;

  align-items: center;
  justify-content: center;

  width: 44px;
  height: 44px;

  border-radius: 50%;

  background: #001f54;

  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}


.contact-info__social img {
  display: block;

  width: 18px;
  height: 18px;

  object-fit: contain;
}


.contact-info__social a:hover {
  transform: translateY(-3px);

  background: #1282a2;

  box-shadow:
    0 8px 18px
    rgba(3, 64, 120, 0.2);
}


.contact-info__social a:focus-visible {
  outline:
    3px solid
    rgba(18, 130, 162, 0.35);

  outline-offset: 3px;
}


/* =========================================================
   TABLET GRANDE
   981px — 1180px
   ========================================================= */

@media (min-width: 981px) and (max-width: 1180px) {

  .section {
    padding: 88px 0;
  }


  .section__header {
    margin-bottom: 56px;
  }


  .section__header h2,
  .sede-principal-info h2 {
    font-size:
      clamp(
        2.2rem,
        3.8vw,
        2.65rem
      );
  }


  /* SEDE */

  .sede-principal-grid {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(380px, 0.9fr);

    gap: 48px;
  }


  .sede-principal-mapa iframe {
    height: 360px;
  }


  /* SERVICIOS */

  .servicios-grid {
    gap: 20px;
  }


  .servicio-card {
    min-height: 270px;

    padding:
      28px
      20px
      22px;
  }


  .servicio-card h3 {
    font-size:
      clamp(
        1.65rem,
        2.5vw,
        1.8rem
      );
  }


  /* FORMULARIO */

  .contacto-grid {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(300px, 0.8fr);

    gap: 48px;
  }


  .contact-form {
    padding: 32px;
  }

}


/* =========================================================
   TABLET
   701px — 980px
   ========================================================= */

@media (min-width: 701px) and (max-width: 980px) {

  .section {
    padding: 72px 0;
  }


  .section > .container {
    width:
      min(
        100% - 48px,
        760px
      );

    margin-right: auto;
    margin-left: auto;
  }


  /* HEADER */

  .section__header {
    max-width: 680px;

    margin-bottom: 48px;
  }


  .section__header .mini,
  .sede-principal-info .mini {
    font-size: 0.8125rem;

    letter-spacing: 0.13em;
  }


  .section__header h2,
  .sede-principal-info h2 {
    font-size:
      clamp(
        2rem,
        5vw,
        2.35rem
      );
  }


  /* SEDE */

  .sede-principal-grid {
    grid-template-columns: 1fr;

    gap: 40px;
  }


  .sede-principal-info {
    max-width: 680px;
  }


  .sede-principal-text {
    max-width: 650px;
  }


  .sede-principal-mapa iframe {
    height: 340px;
  }


  /* SERVICIOS */

  .servicios-grid {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );

    gap: 18px;
  }


  .servicio-card {
    min-height: 260px;

    padding:
      26px
      20px
      22px;
  }


  .servicio-card h3 {
    font-size:
      clamp(
        1.5rem,
        3.3vw,
        1.7rem
      );
  }


  /* FORMULARIO */

  .contacto-grid {
    grid-template-columns: 1fr;

    gap: 40px;
  }


  .contact-form {
    max-width: 680px;

    margin: 0 auto;

    padding: 30px;
  }


  .contact-info {
    max-width: 680px;

    margin: 0 auto;
  }


  .contact-info__image {
    max-width: 600px;
  }

}


/* =========================================================
   CELULAR
   HASTA 700px
   ========================================================= */

@media (max-width: 700px) {

  /* =======================================================
     SECCIONES
     ======================================================= */

  .section {
    width: 100%;

    padding: 56px 0;

    overflow-x: hidden;
  }


  .section * {
    box-sizing: border-box;
  }


  .section > .container {
    width: 100%;
    max-width: none;

    margin-right: auto;
    margin-left: auto;

    padding-right: 20px;
    padding-left: 20px;
  }


  /* =======================================================
     ENCABEZADO
     ======================================================= */

  .section__header {
    width: 100%;
    max-width: 100%;

    margin:
      0
      0
      40px;

    text-align: left;
  }


  .section__header .mini,
  .sede-principal-info .mini {
    margin-bottom: 8px;

    font-size: 0.75rem;

    letter-spacing: 0.12em;
  }


  .section__header h2,
  .sede-principal-info h2 {
    font-size:
      clamp(
        1.75rem,
        7.5vw,
        2rem
      );

    line-height: 1.25;
  }


  /* =======================================================
     SEDE
     ======================================================= */

  .sede-principal-grid {
    grid-template-columns: 1fr;

    gap: 32px;
  }


  .sede-principal-info {
    width: 100%;

    text-align: left;
  }


  .sede-principal-info h2 {
    margin-bottom: 14px;
  }


  .sede-principal-text {
    max-width: 100%;

    font-size: 1rem;

    line-height: 1.68;
  }


  .sede-principal-list {
    gap: 10px;

    margin:
      24px
      0;
  }


  .sede-principal-list li {
    align-items: flex-start;

    justify-content: flex-start;

    font-size: 1rem;

    text-align: left;
  }


  .btn-mapa {
    width: 100%;

    min-height: 46px;

    font-size: 0.875rem;
  }


  .btn-mapa:hover {
    transform: none;

    background: #001f54;

    border-color: #001f54;

    box-shadow: none;
  }


  .sede-principal-mapa iframe {
    height: 280px;

    border-radius: 13px;

    box-shadow:
      0 8px 22px
      rgba(10, 17, 40, 0.08);
  }


  /* =======================================================
     SERVICIOS
     ======================================================= */

  .servicios-grid {
    grid-template-columns: 1fr;

    gap: 16px;
  }


  .servicio-card {
    width: 100%;

    min-height: auto;

    padding:
      24px
      18px
      20px;

    border-radius: 13px;

    box-shadow:
      0 7px 20px
      rgba(10, 17, 40, 0.06);
  }


  .servicio-card:hover {
    transform: none;

    border-color:
      rgba(3, 64, 120, 0.14);

    box-shadow:
      0 7px 20px
      rgba(10, 17, 40, 0.06);
  }


  .servicio-card:hover::after {
    transform: scaleX(0);
  }


  .servicio-icon {
    width: 54px;
    height: 54px;

    margin-bottom: 16px;

    font-size: 1.35rem;
  }


  .servicio-card h3 {
    font-size:
      clamp(
        1.5rem,
        6.2vw,
        1.75rem
      );
  }


  .servicio-mail {
    margin-bottom: 18px;

    font-size: 0.875rem;
  }


  .servicio-actions {
    flex-direction: column;

    gap: 9px;
  }


  .btn-servicio {
    width: 100%;

    flex: none;

    min-height: 44px;

    font-size: 0.875rem;
  }


  .btn-servicio:hover {
    transform: none;

    box-shadow: none;
  }


  .btn-servicio.wsp:hover {
    background: #1282a2;
  }


  .btn-servicio.call:hover {
    background: #001f54;
  }


  /* =======================================================
     FORMULARIO
     ======================================================= */

  .contacto-grid {
    grid-template-columns: 1fr;

    gap: 32px;
  }


  .contact-form {
    width: 100%;

    padding:
      24px
      18px;

    border-radius: 13px;

    box-shadow:
      0 7px 20px
      rgba(10, 17, 40, 0.06);
  }


  .form-group {
    margin-bottom: 16px;
  }


  .form-group label {
    font-size: 0.875rem;
  }


  .form-group input,
  .form-group select {
    height: 46px;

    font-size: 1rem;
  }


  .form-group textarea {
    min-height: 130px;

    font-size: 1rem;
  }


  .btn-enviar {
    width: 100%;

    min-height: 46px;

    margin-top: 20px;

    font-size: 0.875rem;
  }


  .btn-enviar:hover {
    transform: none;

    background: #001f54;

    border-color: #001f54;

    box-shadow: none;
  }


  /* =======================================================
     PANEL DERECHO
     ======================================================= */

  .contact-info {
    gap: 18px;
  }


  .contact-info__image {
    width: 100%;

    border-radius: 13px;

    font-size: 0.75rem;

    box-shadow:
      0 8px 22px
      rgba(10, 17, 40, 0.08);
  }


  .contact-info__image:hover {
    transform: none;

    box-shadow:
      0 8px 22px
      rgba(10, 17, 40, 0.08);
  }


  .contact-info__social {
    gap: 10px;
  }


  .contact-info__social a {
    width: 42px;
    height: 42px;
  }


  .contact-info__social a:hover {
    transform: none;

    background: #001f54;

    box-shadow: none;
  }

}


/* =========================================================
   CELULAR MEDIANO
   HASTA 480px
   ========================================================= */

@media (max-width: 480px) {

  .section {
    padding: 52px 0;
  }


  .section > .container {
    padding-right: 18px;
    padding-left: 18px;
  }


  .section__header {
    margin-bottom: 36px;
  }


  .section__header h2,
  .sede-principal-info h2 {
    font-size:
      clamp(
        1.75rem,
        8vw,
        1.95rem
      );
  }


  .sede-principal-grid,
  .contacto-grid {
    gap: 28px;
  }


  .sede-principal-mapa iframe {
    height: 250px;
  }


  .servicios-grid {
    gap: 15px;
  }


  .servicio-card {
    padding:
      22px
      17px
      19px;
  }


  .servicio-card h3 {
    font-size:
      clamp(
        1.5rem,
        7vw,
        1.65rem
      );
  }


  .contact-form {
    padding:
      22px
      17px;
  }

}


/* =========================================================
   CELULAR PEQUEÑO
   HASTA 390px
   ========================================================= */

@media (max-width: 390px) {

  .section {
    padding: 48px 0;
  }


  .section > .container {
    padding-right: 16px;
    padding-left: 16px;
  }


  .section__header {
    margin-bottom: 32px;
  }


  .section__header h2,
  .sede-principal-info h2 {
    font-size: 1.75rem;
  }


  .sede-principal-mapa iframe {
    height: 230px;
  }


  .servicio-card {
    padding:
      20px
      16px
      18px;
  }


  .servicio-card h3 {
    font-size: 1.5rem;
  }


  .contact-form {
    padding:
      20px
      16px;
  }


  .contact-info__social a {
    width: 40px;
    height: 40px;
  }

}


/* =========================================================
   DISPOSITIVOS TÁCTILES
   ========================================================= */

@media (hover: none) and (pointer: coarse) {

  .servicio-card:hover,
  .btn-mapa:hover,
  .btn-servicio:hover,
  .btn-enviar:hover,
  .contact-info__image:hover,
  .contact-info__social a:hover {
    transform: none;
  }


  .servicio-card:hover::after {
    transform: scaleX(0);
  }

}
