/* =============================================================================
   PUPPY KING 305 — SECCIONES DEL HOME  (Fase 6)

   Ritmo visual: los fondos alternan crema / champagne / champagne profundo,
   y la banda negra final hace de espejo de la trust bar. Ese vaiven es lo que
   da sensacion de secciones sin necesidad de lineas separadoras.
   ========================================================================== */

.pk-section {
  position: relative;
  padding: clamp(56px, 7vw, 96px) 20px;
}

.pk-section__container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
}

/* --- Fondos alternos --- */
.pk-bg-cream {
  background-color: var(--pk-surface);
}

.pk-bg-champagne {
  background-color: var(--pk-cream-warm);
}

.pk-bg-deep {
  background-color: var(--pk-cream-deep);
}


/* -----------------------------------------------------------------------------
   ENCABEZADO DE SECCION
-------------------------------------------------------------------------------- */
.pk-section__head {
  margin-bottom: clamp(30px, 4vw, 48px);
}

.pk-section__head--center {
  text-align: center;
}

.pk-section__title {
  margin: 0 0 14px;
  color: var(--pk-heading-on-light);
  font-family: var(--pk-font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.12;
  text-transform: uppercase;
  letter-spacing: var(--pk-tracking-display);
}

/* El acento dorado del titulo. Sobre crema hace falta el par ink -> gold:
   el dorado claro solo no tendria cuerpo suficiente. */
.pk-section__accent {
  background: linear-gradient(
    120deg,
    var(--pk-gold-ink) 0%,
    var(--pk-gold) 55%,
    var(--pk-gold-dark) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--pk-gold-ink);   /* respaldo si el navegador no soporta el clip */
}

/* El divisor es un <hr>, y Elementor trae en su reset
     .elementor hr { background-color: transparent; margin: 0 }
   que pesa (0,1,1) y le ganaba a ".pk-section__divider" (0,1,0). Resultado en
   el sitio: la rayita dorada aparecia pegada al margen IZQUIERDO bajo titulos
   centrados, y sin el aire de abajo.

   Por eso el selector lleva el contenedor delante (0,2,0). Mismo motivo en
   .pk-hero__divider. */
.pk-section__head .pk-section__divider {
  width: 78px;
  height: 3px;
  margin: 0 auto 18px;
  border: 0;
  border-radius: 2px;
  background: var(--pk-gold-gradient);
}

.pk-section__head--left .pk-section__divider {
  margin-left: 0;
}

.pk-section__sub {
  max-width: 620px;
  margin: 0 auto;
  color: var(--pk-body-ink);
  font-family: var(--pk-font-body);
  font-size: clamp(14px, 1.5vw, 17px);
  line-height: 1.75;
}

.pk-section__head--left .pk-section__sub {
  margin-left: 0;
}

.pk-section__cta {
  margin-top: clamp(28px, 4vw, 44px);
  text-align: center;
}

.pk-section__cta .pk-btn {
  min-height: 52px;
  padding: 0 34px;
  font-size: 15px;
}

.pk-section__notice {
  padding: 30px;
  border: 1px dashed rgba(var(--pk-gold-rgb), 0.5);
  border-radius: var(--pk-radius);
  color: var(--pk-gray-dark);
  font-size: 15px;
  text-align: center;
}


/* -----------------------------------------------------------------------------
   1. MEET OUR PUPPIES
   Reutiliza ul.products y las cards de la Fase 4 tal cual.
-------------------------------------------------------------------------------- */
.pk-section--puppies ul.products.pk-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}


/* -----------------------------------------------------------------------------
   2. BROWSE BY BREED
-------------------------------------------------------------------------------- */
.pk-breeds {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(16px, 2vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.pk-breed {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  text-decoration: none;
}

/* El ovalo. aspect-ratio 1/1.15 lo hace un pelin mas alto que ancho, que es lo
   que le da el aire de medallon en vez de circulo plano. */
.pk-breed__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.15;
  margin-bottom: 12px;
  overflow: hidden;
  border: 2px solid rgba(var(--pk-gold-rgb), 0.45);
  border-radius: 50%;
  background-color: var(--pk-cream-deep);
  transition: all var(--pk-transition);
}

.pk-breed__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.pk-breed:hover .pk-breed__media {
  border-color: var(--pk-gold);
  box-shadow: var(--pk-shadow-gold);
  transform: translateY(-4px);
}

.pk-breed:hover .pk-breed__img {
  transform: scale(1.06);
}

/* Sin imagen: huellita dorada centrada */
.pk-breed__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(28px, 3vw, 42px);
  opacity: 0.35;
}

.pk-breed__name {
  color: var(--pk-black);
  font-family: var(--pk-font-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pk-breed:hover .pk-breed__name {
  color: var(--pk-gold-ink);
}

.pk-breed__count {
  color: var(--pk-gray-dark);
  font-family: var(--pk-font-body);
  font-size: 12px;
}


/* -----------------------------------------------------------------------------
   3. WHY PUPPY KING
-------------------------------------------------------------------------------- */
.pk-why {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 40px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.pk-why__item {
  text-align: center;
}

.pk-why__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 18px;
  border: 1px solid rgba(var(--pk-gold-rgb), 0.45);
  border-radius: 50%;
  background: rgba(var(--pk-gold-rgb), 0.10);
  font-size: 30px;
  line-height: 1;
}

.pk-why__title {
  margin: 0 0 8px;
  color: var(--pk-gold-ink);
  font-family: var(--pk-font-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: var(--pk-tracking-label);
}

.pk-why__text {
  margin: 0;
  color: var(--pk-body-ink);
  font-family: var(--pk-font-body);
  font-size: 14px;
  line-height: 1.7;
}


/* -----------------------------------------------------------------------------
   4. GROOMING — pills
-------------------------------------------------------------------------------- */
.pk-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pk-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border: 1px solid rgba(var(--pk-gold-rgb), 0.45);
  border-radius: var(--pk-radius-pill);
  /* Blanco, no champagne: la seccion de grooming va sobre champagne y una
     pill del mismo tono se perderia contra el fondo. */
  background-color: var(--pk-white);
  color: var(--pk-black);
  font-family: var(--pk-font-display);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all var(--pk-transition);
}

.pk-pill:hover {
  border-color: var(--pk-gold);
  background-color: var(--pk-white);
  transform: translateY(-2px);
  box-shadow: var(--pk-shadow);
}

.pk-pill__dot {
  font-size: 13px;
  line-height: 1;
}

/* Boton de contorno dorado, legible sobre crema */
.pk-btn--outline-gold {
  background-color: transparent;
  border-color: var(--pk-gold-ink);
  color: var(--pk-gold-ink);
}

.pk-btn--outline-gold:hover,
.pk-btn--outline-gold:focus {
  background-color: var(--pk-gold-ink);
  color: var(--pk-white);
  transform: translateY(-2px);
}


/* -----------------------------------------------------------------------------
   5. VISIT OUR STORE
-------------------------------------------------------------------------------- */
.pk-visit {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
}

.pk-visit__block {
  margin-bottom: 26px;
}

.pk-visit__label {
  margin: 0 0 8px;
  color: var(--pk-gold-ink);
  font-family: var(--pk-font-display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--pk-tracking-label);
}

.pk-visit__text {
  margin: 0;
  color: var(--pk-black);
  font-family: var(--pk-font-body);
  font-size: 17px;
  line-height: 1.6;
}

.pk-visit__hours {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pk-visit__hours li {
  margin-bottom: 6px;
  color: var(--pk-body-ink);
  font-family: var(--pk-font-body);
  font-size: 15px;
}

.pk-visit__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.pk-visit__actions .pk-btn {
  min-height: 50px;
  padding: 0 26px;
}

/* --- El mapa --- */
.pk-visit__map {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid rgba(var(--pk-gold-rgb), 0.4);
  border-radius: var(--pk-radius);
  box-shadow: var(--pk-shadow);
}

.pk-visit__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}


/* -----------------------------------------------------------------------------
   6. CTA FINAL — banda negra, espejo de la trust bar
-------------------------------------------------------------------------------- */
/* Sin borde abajo a proposito: justo debajo viene la curva del footer, y su
   zona superior transparente ya deja un respiro claro entre la banda negra y
   el footer. Un borde ahi solo anadiria una raya suelta. */
.pk-cta-band {
  background-color: var(--pk-black);
  border-top: 1px solid var(--pk-border);
  padding: clamp(26px, 3.5vw, 40px) 20px;
}

.pk-cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 36px);
  max-width: 1320px;
  margin: 0 auto;
  text-align: center;
}

.pk-cta-band__text {
  margin: 0;
  color: var(--pk-white);
  font-family: var(--pk-font-display);
  font-size: clamp(19px, 2.6vw, 30px);
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: var(--pk-tracking-display);
}

.pk-cta-band__crown {
  margin-left: 8px;
  font-size: 0.9em;
}

.pk-cta-band .pk-btn {
  min-height: 52px;
  padding: 0 32px;
  font-size: 15px;
}


/* =============================================================================
   RESPONSIVE
   ========================================================================== */

/* --- Escritorio pequeno / tablet --- */
@media screen and (max-width: 1199px) {
  .pk-section--puppies ul.products.pk-grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }

  .pk-breeds {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media screen and (max-width: 991px) {
  .pk-section--puppies ul.products.pk-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .pk-why {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 20px;
  }

  /* El mapa pasa debajo, y mas bajo para no comerse la pantalla */
  .pk-visit {
    grid-template-columns: 1fr;
  }

  .pk-visit__map {
    aspect-ratio: 16 / 10;
  }
}

/* --- Movil --- */
@media screen and (max-width: 767px) {
  .pk-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  /* Cards a una columna, como en el catalogo */
  .pk-section--puppies ul.products.pk-grid-4 {
    grid-template-columns: 1fr;
  }

  .pk-breeds {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .pk-breed__name {
    font-size: 13px;
  }

  .pk-breed__count {
    font-size: 11px;
  }

  .pk-why__icon {
    width: 62px;
    height: 62px;
    font-size: 26px;
  }

  .pk-pill {
    padding: 11px 18px;
    font-size: 13px;
  }

  /* Botones a lo ancho: mas comodos para el dedo */
  .pk-section__cta .pk-btn,
  .pk-visit__actions .pk-btn,
  .pk-cta-band .pk-btn {
    width: 100%;
    min-height: 50px;
  }

  .pk-visit__actions {
    flex-direction: column;
  }

  .pk-cta-band__inner {
    flex-direction: column;
  }
}

@media screen and (max-width: 479px) {
  .pk-breeds {
    grid-template-columns: repeat(2, 1fr);
  }

  .pk-why {
    grid-template-columns: 1fr;
  }
}


/* =============================================================================
   SECCIONES RESCATADAS DEL DEMO — rehechas con branding Champagne Royal
   Welcome / Testimonials / Instagram
   ========================================================================== */

/* Aviso de contenido de relleno. Solo lo ven los administradores: lo decide
   PHP con current_user_can, aqui solo se le da forma. */
.pk-placeholder-note {
  display: inline-block;
  margin: 10px 0;
  padding: 4px 12px;
  border: 1px dashed var(--pk-magenta);
  border-radius: var(--pk-radius-pill);
  color: var(--pk-magenta);
  font-family: var(--pk-font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}


/* -----------------------------------------------------------------------------
   WELCOME / ABOUT
-------------------------------------------------------------------------------- */
.pk-welcome {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.pk-welcome__text .pk-section__head {
  margin-bottom: 20px;
}

.pk-welcome__intro {
  margin: 0 0 8px;
  color: var(--pk-body-ink);
  font-family: var(--pk-font-body);
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.8;
}

/* --- Las dos features circulares --- */
.pk-welcome__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.pk-welcome__feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.pk-welcome__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(var(--pk-gold-rgb), 0.5);
  border-radius: 50%;
  background: rgba(var(--pk-gold-rgb), 0.12);
  font-size: 24px;
  line-height: 1;
}

.pk-welcome__feature-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pk-welcome__feature-title {
  color: var(--pk-gold-ink);
  font-family: var(--pk-font-display);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--pk-tracking-label);
}

.pk-welcome__feature-text {
  color: var(--pk-body-ink);
  font-family: var(--pk-font-body);
  font-size: 13px;
  line-height: 1.6;
}

/* --- La imagen con mascara organica --- */
.pk-welcome__media {
  position: relative;
}

/* La forma sale de un border-radius de 8 valores. Es mucho mas ligero que un
   clip-path con SVG y se adapta solo al tamano del contenedor. */
.pk-welcome__blob {
  position: relative;
  aspect-ratio: 9 / 10;
  overflow: hidden;
  border-radius: 62% 38% 54% 46% / 46% 54% 46% 54%;
  background-color: var(--pk-cream-deep);
  box-shadow: var(--pk-shadow-hover);
}

.pk-welcome__blob img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Segunda forma dorada detras, girada: el efecto de doble marco organico.
   Es el guino al demo, pero en dorado en vez de amarillo. */
.pk-welcome__media::before {
  content: "";
  position: absolute;
  inset: -14px -18px 8px -10px;
  z-index: -1;
  border: 2px solid rgba(var(--pk-gold-rgb), 0.55);
  border-radius: 54% 46% 62% 38% / 52% 44% 56% 48%;
  pointer-events: none;
}

/* Sin foto todavia */
.pk-welcome__blob-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14% 18%;
  color: var(--pk-gold-ink);
  font-family: var(--pk-font-display);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: var(--pk-tracking-label);
}

.pk-welcome__blob-paw {
  font-size: 46px;
  line-height: 1;
}

.pk-welcome__blob-hint {
  color: var(--pk-gray-dark);
  font-family: var(--pk-font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

/* --- Badge burbuja frambuesa --- */
.pk-welcome__badge {
  position: absolute;
  right: -8px;
  bottom: 6%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 74%;
  padding: 14px 22px;
  border-radius: 26px 26px 26px 6px;
  background-color: var(--pk-magenta);
  color: var(--pk-white);
  font-family: var(--pk-font-display);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 10px 26px rgba(var(--pk-magenta-rgb), 0.35);
}


/* -----------------------------------------------------------------------------
   TESTIMONIALS
-------------------------------------------------------------------------------- */

/* Patron de huellitas al 3%. Va como SVG en data URI: sin peticion extra ni
   archivo de imagen que mantener. El color se escribe con %23 porque en una
   URL la almohadilla marca el fragmento. */
.pk-paw-pattern {
  position: relative;
}

.pk-paw-pattern::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.03;
  pointer-events: none;
  background-repeat: repeat;
  background-size: 88px 88px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88' viewBox='0 0 88 88'%3E%3Cg fill='%231C1712'%3E%3Cellipse cx='30' cy='34' rx='9' ry='7.5'/%3E%3Ccircle cx='20' cy='23' r='3.6'/%3E%3Ccircle cx='28' cy='19' r='3.6'/%3E%3Ccircle cx='36' cy='20' r='3.4'/%3E%3Ccircle cx='42' cy='27' r='3.2'/%3E%3Cellipse cx='66' cy='70' rx='7' ry='5.8'/%3E%3Ccircle cx='58' cy='61' r='2.8'/%3E%3Ccircle cx='64' cy='58' r='2.8'/%3E%3Ccircle cx='71' cy='59' r='2.6'/%3E%3Ccircle cx='75' cy='64' r='2.5'/%3E%3C/g%3E%3C/svg%3E");
}

/* El contenido va por encima del patron */
.pk-paw-pattern > .pk-section__container {
  position: relative;
  z-index: 1;
}

.pk-testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 34px);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* --- La burbuja de dialogo --- */
.pk-testimonial__bubble {
  position: relative;
  padding: 26px 26px 24px;
  border-radius: var(--pk-radius);
  background-color: var(--pk-white);
  box-shadow: 0 6px 26px rgba(var(--pk-black-rgb), 0.09);
}

/* El pico de la burbuja: dos triangulos superpuestos, uno haciendo de borde
   para que el pico no se vea plano contra el fondo. */
.pk-testimonial__bubble::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 34px;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 14px solid var(--pk-white);
  filter: drop-shadow(0 4px 3px rgba(var(--pk-black-rgb), 0.06));
}

/* --- Estrellas doradas --- */
.pk-stars {
  display: inline-flex;
  gap: 2px;
  margin-bottom: 12px;
  line-height: 1;
}

.pk-star {
  color: var(--pk-gold);
  font-size: 16px;
  text-shadow: 0 1px 1px rgba(var(--pk-black-rgb), 0.12);
}

.pk-star--off {
  color: rgba(var(--pk-black-rgb), 0.15);
  text-shadow: none;
}

.pk-testimonial__quote {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--pk-body-ink);
  font-family: var(--pk-font-body);
  font-size: 14px;
  font-style: normal;
  line-height: 1.8;
  quotes: none;
}

/* --- Autor --- */
.pk-testimonial__author {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 26px 0 0 34px;
}

.pk-testimonial__name {
  color: var(--pk-black);
  font-family: var(--pk-font-display);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pk-testimonial__role {
  color: var(--pk-gold-ink);
  font-family: var(--pk-font-body);
  font-size: 12px;
  font-style: italic;
}

.pk-testimonials__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: clamp(30px, 4vw, 44px) 0 0;
  color: var(--pk-body-ink);
  font-family: var(--pk-font-display);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: var(--pk-tracking-label);
}

.pk-testimonials__footer .pk-stars {
  margin-bottom: 0;
}


/* -----------------------------------------------------------------------------
   INSTAGRAM
-------------------------------------------------------------------------------- */
.pk-ig__title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.pk-ig__glyph {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

.pk-ig__title .pk-ig__glyph {
  width: 0.85em;
  height: 0.85em;
  color: var(--pk-gold-ink);
}

.pk-ig-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pk-ig-tile {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--pk-radius-sm);
  background-color: var(--pk-cream-deep);
}

.pk-ig-tile__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* Velo dorado con el icono al pasar */
.pk-ig-tile__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(var(--pk-gold-rgb), 0.82),
    rgba(212, 175, 55, 0.62)
  );
  color: var(--pk-black);
  font-size: 26px;
  opacity: 0;
  transition: opacity var(--pk-transition);
}

.pk-ig-tile:hover .pk-ig-tile__overlay,
.pk-ig-tile:focus-visible .pk-ig-tile__overlay {
  opacity: 1;
}

.pk-ig-tile:hover .pk-ig-tile__img {
  transform: scale(1.07);
}


/* =============================================================================
   RESPONSIVE DE LAS TRES SECCIONES
   ========================================================================== */

@media screen and (max-width: 1199px) {
  .pk-ig-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media screen and (max-width: 991px) {
  /* Welcome: el texto arriba, la imagen debajo y centrada */
  .pk-welcome {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .pk-welcome__media {
    max-width: 460px;
    margin: 0 auto;
  }

  .pk-welcome__text .pk-section__head--left,
  .pk-welcome__intro {
    text-align: center;
  }

  .pk-welcome__text .pk-section__divider {
    margin-left: auto;
    margin-right: auto;
  }

  /* Testimonios: carrusel horizontal con enganche, sin JS */
  .pk-testimonials {
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 82%);
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
  }

  .pk-testimonial {
    scroll-snap-align: center;
  }
}

@media screen and (max-width: 767px) {
  .pk-welcome__features {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .pk-welcome__feature {
    text-align: left;
  }

  .pk-welcome__badge {
    right: 0;
    bottom: 2%;
    max-width: 86%;
    padding: 12px 18px;
    font-size: 12px;
  }

  .pk-ig-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .pk-testimonials__footer {
    font-size: 13px;
  }
}

@media screen and (max-width: 479px) {
  .pk-ig-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pk-welcome__blob {
    aspect-ratio: 1 / 1;
  }
}

/* Sin animaciones para quien pidio menos movimiento */
@media (prefers-reduced-motion: reduce) {
  .pk-ig-tile:hover .pk-ig-tile__img {
    transform: none;
  }
}


/* =============================================================================
   FORMULARIO DE CONTACTO (Contact Form 7)

   Las clases pk-form-* las pone el markup del formulario que crea
   inc/seed-contact-form.php, asi que se puede estilar con la marca sin
   depender de como lo pinte el plugin.
   ========================================================================== */

.pk-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.pk-form__field {
  display: block;
  margin-bottom: 14px;
}

.pk-form__label {
  display: block;
  margin-bottom: 6px;
  color: var(--pk-gold-ink);
  font-family: var(--pk-font-display);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--pk-tracking-label);
}

.pk-form input[type="text"],
.pk-form input[type="email"],
.pk-form input[type="tel"],
.pk-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(var(--pk-black-rgb), 0.14);
  border-radius: var(--pk-radius-sm);
  background-color: var(--pk-white);
  color: var(--pk-body-ink);
  font-family: var(--pk-font-body);
  font-size: 15px;
  transition: border-color var(--pk-transition);
}

.pk-form input:focus,
.pk-form textarea:focus {
  border-color: var(--pk-gold);
  outline: none;
}

.pk-form textarea {
  resize: vertical;
}

/* El boton de enviar lleva las clases pk-btn desde el markup del formulario,
   asi que hereda el estilo de la marca. Solo se ajusta el alto. */
.pk-form input[type="submit"] {
  margin-top: 6px;
  min-height: 50px;
}

/* Mensajes de Contact Form 7 */
.pk-form .wpcf7-not-valid-tip {
  margin-top: 4px;
  color: var(--pk-magenta);
  font-size: 12px;
}

.wpcf7 form .wpcf7-response-output {
  margin: 16px 0 0;
  padding: 12px 16px;
  border-radius: var(--pk-radius-sm);
  border-width: 1px;
  font-size: 14px;
}

/* iOS hace zoom al enfocar un campo de menos de 16px y deja la pagina
   descuadrada. Ver la nota larga en pk-contact.css. */
@media screen and (max-width: 767px) {
  .pk-form input[type="text"],
  .pk-form input[type="email"],
  .pk-form input[type="tel"],
  .pk-form textarea {
    font-size: 16px;
  }
}

/* gap 0 a proposito: aqui los campos SI conservan su margin-bottom de 14px,
   asi que el aire al apilarlos ya esta puesto. (Dentro de .pk-contact-card es
   al reves: alli el margen se anula y el gap tiene que valer 16 — ver
   pk-contact.css.) */
@media screen and (max-width: 575px) {
  .pk-form__row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
