:root {
  --azul: #008fbd;
  --azul-btn: #00aee0;
  --verde: #8df0a5;
  --verde-btn: #5fd449;
  --texto: #347f98;
  --gris-menu: #6e8589;
  --azul-oscuro: #24345d;
  --blanco: #ffffff;
  --verde-btn: #62B246;
}

/* ======================================================
   RESET
====================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", Arial, sans-serif;
  background: #ffffff;
  color: var(--texto);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font-family: inherit;
}

.direct-item strong {
  width: 32px;
  height: 32px;
  color: #287bd7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.direct-item strong svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ================= HEADER ================= */
.header {
  width: 100%;
  min-height: 80px;
  /* Espaciado fluido a los lados */
  padding: 15px clamp(20px, 4vw, 42px);

  display: flex;
  align-items: center;
  justify-content: space-between;

  position: relative;
  z-index: 50;

  /* Fondo ligeramente más sólido para que no se pierdan los textos */
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  /* Sombrita elegante */
}

/* ================= LOGO ================= */
.header-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
  flex-shrink: 0;
  /* Evita que el logo se aplaste al hacer zoom */
}

.header-logo img {
  /* Escala fluidamente entre 160px y 260px dependiendo de la pantalla */
  width: clamp(160px, 18vw, 260px);
  height: auto;
  display: block;
}

/* ================= NAVEGACIÓN ================= */
.header-nav {
  display: flex;
  align-items: center;
  gap: clamp(15px, 3vw, 40px);
  /* Separación fluida para que no choquen */
}

.header-nav a {
  text-decoration: none;
}

.header-nav>a:not(.btn-whatsapp-img) {
  color: #8d8d8d;
  /* Tamaños y espacios sensatos para un menú */
  font-size: clamp(16px, 1.5vw, 21px);
  font-weight: 500;
  letter-spacing: 2px;
  transition: color 0.2s ease;
  white-space: nowrap;
  /* Evita que las palabras se partan en dos renglones */
}

.header-nav>a:not(.btn-whatsapp-img):hover {
  color: #00a9df;
}

/* ================= BOTÓN WHATSAPP COMO IMAGEN ================= */
.btn-whatsapp-img {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 0;
  transition: transform 0.2s ease;
  flex-shrink: 0;
  /* Evita que el botón se corte o se apachurre */
}

.btn-whatsapp-img img {
  /* Escala fluidamente para caber siempre en pantalla */
  width: clamp(170px, 16vw, 240px);
  height: auto;
  display: block;
}

.btn-whatsapp-img:hover {
  transform: translateY(-2px);
}

/* ================= BOTÓN HAMBURGUESA ================= */
.menu-toggle {
  display: none;
  width: 40px;
  height: 35px;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 80;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 4px;
  margin: 6px 0;
  background: #00a9df;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* ================= RESPONSIVE MÓVIL (Menú Hamburguesa) ================= */
@media (max-width: 950px) {
  .header {
    min-height: 75px;
    padding: 15px 25px;
  }

  .header-logo img {
    width: 180px;
  }

  .menu-toggle {
    display: block;
  }

  .header-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 25px 20px 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);

    opacity: 0;
    pointer-events: none;
    transform: translateY(-15px);
    transition: all 0.3s ease;
  }

  .header-nav.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .header-nav>a:not(.btn-whatsapp-img) {
    font-size: 20px;
    letter-spacing: 3px;
  }

  .btn-whatsapp-img img {
    width: 220px;
  }
}

/* ================= RESPONSIVE MÓVIL CHICO ================= */
@media (max-width: 480px) {
  .header {
    padding: 12px 15px;
  }

  .header-logo img {
    width: 150px;
  }

  .menu-toggle {
    width: 35px;
  }

  .header-nav>a:not(.btn-whatsapp-img) {
    font-size: 18px;
  }

  .btn-whatsapp-img img {
    width: 200px;
  }
}

/* ======================================================
   HERO CONTACTO
====================================================== */

.hero-contacto {
  margin-top: 0;
  width: 100%;
  height: 250px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(90deg, #2bb6b8 0%, #8df0a5 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 8% 20%, rgba(255, 255, 255, .34), transparent 20%),
    radial-gradient(circle at 90% 50%, rgba(255, 255, 255, .38), transparent 24%),
    linear-gradient(90deg, rgba(0, 145, 170, .35), rgba(140, 255, 165, .55));
}

.hero-contacto h1 {
  position: relative;
  z-index: 2;
  color: #ffffff;
  font-size: clamp(70px, 7vw, 125px);
  line-height: 1;
  font-weight: 900;
  text-shadow: 0 7px 18px rgba(0, 80, 100, 0.18);
}

/* ======================================================
   FORMULARIO
====================================================== */

.form-section {
  background: #ffffff;
  padding: 58px 0 0;
  position: relative;
}

.intro-contacto {
  width: min(960px, 88%);
  margin: 0 auto;
  text-align: center;
}

.intro-contacto h2 {
  color: var(--azul);
  font-size: clamp(32px, 3.2vw, 58px);
  line-height: 1.1;
  font-weight: 900;
  margin-bottom: 25px;
}

.intro-contacto p {
  color: var(--texto);
  font-size: clamp(20px, 1.65vw, 30px);
  line-height: 1.45;
  font-weight: 500;
}

/* Barra verde más separada */
.form-title-bar {
  width: min(1120px, 88%);
  margin: 75px auto 50px;
  background: var(--verde);
  color: #ffffff;
  height: 58px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: clamp(26px, 2.6vw, 46px);
  font-weight: 900;
  text-align: center;
}

/* Formulario más abierto */
.form-area {
  width: min(1320px, 92%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 340px 1fr;
  align-items: center;
  gap: 70px;
}

.mascota-contacto img {
  width: 330px;
  margin: 0 auto;
}

.contact-form {
  width: 100%;
  padding-right: 30px;
}

.form-line {
  width: 100%;
  display: grid;
  grid-template-columns: 265px 1fr;
  align-items: end;
  min-height: 50px;
}

.form-line label {
  color: #5b5968;
  font-size: clamp(19px, 1.45vw, 28px);
  font-weight: 500;
  line-height: 1;
}

.form-line input,
.form-line select {
  width: 100%;
  height: 38px;
  border: 0;
  border-bottom: 2px solid #555555;
  outline: none;
  background: transparent;
  color: #333333;
  font-size: 20px;
  font-weight: 500;
}

.form-line select {
  color: #347f98;
  cursor: pointer;
}

/* ================= BOTÓN DEL FORMULARIO ================= */
.btn-submit {
  margin: 55px auto 0;

  /* El degradado mágico de azul medio a celeste brillante */
  background: linear-gradient(90deg, #007ac1 0%, #00bce8 100%);

  color: #ffffff;
  border: 0;
  border-radius: 999px;
  padding: 16px 38px;
  min-width: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;

  /* Sombra adaptada para que resalte más */
  box-shadow: 0 10px 23px rgba(0, 174, 224, 0.4);

  /* Transición suave para el efecto al pasar el mouse */
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Efecto al pasar el ratón por encima */
.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(0, 174, 224, 0.5);
}

/* ======================================================
   CONTACTO DIRECTO
====================================================== */

.direct-contact {
  width: min(1180px, 90%);
  margin: 90px auto 0;
  position: relative;
}

.direct-contact h2 {
  color: var(--azul);
  font-size: clamp(30px, 3vw, 54px);
  line-height: 1;
  font-weight: 900;
  text-align: center;
  margin-bottom: 55px;
}

.direct-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  align-items: center;
  gap: 80px;
  position: relative;
  z-index: 1;
}

.direct-data {
  max-width: 690px;
}

.direct-item {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 16px;
  color: var(--azul-oscuro);
  font-size: clamp(25px, 2.2vw, 42px);
  font-weight: 800;
}



.btn-whatsapp-green {
  margin-top: 55px;
  margin-left: 80px;
  width: fit-content;
  min-width: 400px;
  background: var(--verde-btn);
  color: #ffffff;
  border-radius: 999px;
  padding: 18px 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  font-size: 17px;
  font-weight: 900;
  box-shadow: 0 10px 23px rgba(37, 211, 102, 0.35);
}

/* Burbujas recurso 9 más grandes */
.burbujas-contacto {
  width: clamp(380px, 27vw, 520px);
  justify-self: center;
  opacity: .94;
  margin-top: -20px;
}

/* ======================================================
   MATRIZ
====================================================== */

.matriz-section {
  margin-top: 95px;
  background: #ffffff;
}

.matriz-band {
  width: 100%;
  height: 215px;
  position: relative;
  display: flex;
  /* Cambiamos a Flexbox para centrar sin colisiones */
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #2fb8ba 0%, #98f5a8 100%);
  overflow: hidden;
  /* Oculta cualquier cosa que se desborde */
}

.matriz-band h2 {
  position: relative;
  z-index: 3;
  /* Forzamos a que el texto siempre esté al frente */
  color: #ffffff;
  font-size: clamp(45px, 6vw, 100px);
  /* Un poco más pequeño para dar espacio */
  line-height: 1;
  font-weight: 900;
  text-shadow: 0 7px 18px rgba(0, 80, 100, 0.18);
}

.pin-matriz {
  position: absolute;
  left: 2%;
  /* Lo empujamos hasta la orilla izquierda */
  bottom: -20px;
  width: clamp(100px, 12vw, 160px);
  /* Tamaño controlado */
  z-index: 1;
  /* Si por algo se tocan, el pin se va atrás del texto */
  opacity: .9;
}

.direccion {
  width: min(1100px, 88%);
  margin: 36px auto 30px;
  text-align: center;
}

.direccion h3 {
  color: var(--azul);
  font-size: clamp(28px, 3vw, 54px);
  line-height: 1.15;
  font-weight: 900;
}

.mapa-box {
  width: min(1320px, 88%);
  height: 650px;
  margin: 0 auto;
  overflow: hidden;
  background: #eeeeee;
}

.mapa-box iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.sucursales {
  width: min(1100px, 88%);
  margin: 45px auto 42px;
  text-align: center;
}

.sucursales p {
  color: var(--texto);
  font-size: clamp(26px, 2.6vw, 48px);
  line-height: 1.15;
  font-weight: 400;
}

.sucursales h3 {
  color: var(--azul);
  font-size: clamp(28px, 2.8vw, 52px);
  line-height: 1.12;
  font-weight: 900;
}

/* ======================================================
   FOOTER
====================================================== */

.footer {
  background: #ffffff;
  color: #222222;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  padding: 20px 10px 32px;
}

/* ======================================================
   RESPONSIVE
====================================================== */

@media (max-width: 1050px) {
  .header {
    height: 66px;
  }

  .header-container {
    width: 94%;
    grid-template-columns: 150px 1fr;
  }

  .logo img {
    width: 125px;
  }

  .nav {
    justify-content: flex-end;
    gap: 22px;
  }

  .nav a {
    font-size: 13px;
    letter-spacing: 2px;
  }

  .btn-header {
    display: none;
  }

  .hero-contacto {
    margin-top: 0;
    height: 210px;
  }

  .form-area {
    grid-template-columns: 260px 1fr;
    gap: 45px;
  }

  .mascota-contacto img {
    width: 250px;
  }

  .form-line {
    grid-template-columns: 205px 1fr;
  }

  .direct-layout {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 35px;
  }

  .direct-data {
    margin: 0 auto;
  }

  .direct-item {
    justify-content: center;
  }

  .btn-whatsapp-green {
    margin-left: auto;
    margin-right: auto;
  }

  .burbujas-contacto {
    width: 360px;
    margin: 10px auto 0;
    opacity: .55;
  }

  .pin-matriz {
    left: 40px;
    width: 170px;
  }

  .mapa-box {
    height: 520px;
  }
}

@media (max-width: 650px) {
  .header-container {
    grid-template-columns: 105px 1fr;
  }

  .logo img {
    width: 96px;
  }

  .nav {
    gap: 11px;
  }

  .nav a {
    font-size: 10px;
    letter-spacing: 1px;
  }

  .hero-contacto {
    height: 170px;
  }

  .hero-contacto h1 {
    font-size: 48px;
  }

  .form-section {
    padding-top: 42px;
  }

  .intro-contacto h2 {
    font-size: 28px;
  }

  .intro-contacto p {
    font-size: 16px;
  }

  .form-title-bar {
    margin: 55px auto 35px;
    width: 90%;
    height: auto;
    padding: 12px 18px;
    font-size: 22px;
  }

  .form-area {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .mascota-contacto img {
    width: 210px;
  }

  .contact-form {
    padding-right: 0;
  }

  .form-line {
    grid-template-columns: 1fr;
    min-height: auto;
    margin-bottom: 14px;
  }

  .form-line label {
    font-size: 16px;
    margin-bottom: 5px;
  }

  .form-line input,
  .form-line select {
    height: 36px;
    font-size: 16px;
  }

  .btn-submit {
    min-width: 100%;
    margin-top: 35px;
  }

  .direct-contact {
    margin-top: 65px;
  }

  .direct-contact h2 {
    font-size: 26px;
    margin-bottom: 35px;
  }

  .direct-item {
    font-size: 20px;
    gap: 12px;
  }

  .direct-item strong {
    font-size: 24px;
    width: 28px;
  }

  .btn-whatsapp-green {
    min-width: 100%;
    font-size: 14px;
    padding: 15px 22px;
  }

  .burbujas-contacto {
    position: absolute;
    /* Esto las saca del flujo normal */
    top: 10%;
    /* Las sube para que queden detrás del texto (ajusta el % si las quieres más arriba/abajo) */
    right: 15%;
    /* Las carga un poco a la derecha */
    width: 220px;
    /* Un pelín más grandes para que luzcan como fondo */
    margin: 0;
    /* Quitamos el margen auto que tenían antes */
    opacity: 0.45;
    /* Más transparentes para que los textos y números resalten perfecto */
    z-index: -1;
    /* MAGIA: Las manda detrás del texto */
    pointer-events: none;
    /* MAGIA 2: Evita que estorben si el usuario intenta hacer clic en algo */
  }


/* Pin matriz en celular */
.pin-matriz {
  width: 80px;
  /* Pin más pequeño */
  left: -15px;
  /* Casi salido de la pantalla para que no estorbe */
  bottom: -10px;
  opacity: 0.6;
  /* Un poco transparente para no robar atención */
}

.matriz-band h2 {
  font-size: 38px;
  /* Ajuste de texto para celular */
}

.matriz-band {
  height: 160px;
}


.direccion h3 {
  font-size: 22px;
}

.mapa-box {
  width: 92%;
  height: 360px;
}

.sucursales p {
  font-size: 22px;
}

.sucursales h3 {
  font-size: 24px;
}
}