/* ===== DOG PROFILES SECTION ===== */
.dog-profiles-section {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.dog-profiles-div {
  max-width: 1400px;
  margin: 0 auto;
}

.dog-profiles-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.dog-profiles-title hr {
  background-color: #ff6b6b;
  border-radius: 0.5rem;
  width: 20%;
  border-color: #ff6b6b;
  height: 4px;
}

.dog-profiles-title h2 {
  font-size: 3rem;
  color: #ff6b6b;
  font-weight: bold;
  text-align: center;
  margin: 0;
}

/* Slider wrapper */
.dog-profiles-slider-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Container principal de cada slide */
.dog-profile-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  min-height: 500px;
}

/* Galería de imágenes (izquierda) - TAMAÑO FIJO */
.dog-profile-gallery {
  width: 100%;
  height: 500px;
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dog-profile-gallery .splide {
  height: 100%;
}

.dog-profile-gallery .splide__track {
  height: 100%;
}

.dog-profile-gallery .splide__list {
  height: 100%;
}

.dog-profile-gallery .splide__slide {
  height: 100%;
}

.dog-profile-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 2rem;
}

/* Flechas de navegación de la galería INTERNA (dentro de las fotos) */
.dog-profile-gallery .splide__arrow {
  background: rgba(74, 144, 226, 0.9);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.dog-profile-gallery .splide__arrow:hover {
  background: #22548d;
}

.dog-profile-gallery .splide__arrow svg {
  fill: white;
}

.dog-profile-gallery .splide__arrow--prev {
  left: 5px;
}

.dog-profile-gallery .splide__arrow--next {
  right: 5px;
}

/* Paginación de la galería */
.dog-profile-gallery .splide__pagination {
  bottom: 1rem;
}

.dog-profile-gallery .splide__pagination__page {
  background: rgba(255, 255, 255, 0.5);
  width: 10px;
  height: 10px;
}

.dog-profile-gallery .splide__pagination__page.is-active {
  background: white;
  transform: scale(1.3);
}

/* Información del perro (derecha) */
.dog-profile-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1rem;
}

.dog-profile-info h3 {
  font-size: 2.8rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0;
  padding-bottom: 0.5rem;
}

/* Detalles básicos */
.dog-details {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 0;
  margin: 0;
}

.dog-details p {
  margin: 0;
  font-size: 1.2rem;
  color: #555;
  line-height: 1.6;
}

.dog-details strong {
  color: #2c3e50;
  font-weight: 600;
  font-size: 1.2rem;
}

/* Historia del perro */
.dog-story {
  font-size: 1.2rem;
  line-height: 1.9;
  color: #555;
  margin: 0;
  text-align: justify;
}

/* Necesidades */
.dog-needs {
  padding: 0;
  margin-top: 0.5rem;
}

.dog-needs h4 {
  font-size: 1.5rem;
  color: #2c3e50;
  margin: 0 0 1rem 0;
  font-weight: 600;
}

.dog-needs ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dog-needs li {
  font-size: 1.15rem;
  color: #555;
  padding-left: 0.5rem;
  line-height: 1.6;
}

/* Flechas de navegación del slider principal EXTERNO (fuera del container blanco) */
.dog-profiles-slider-wrapper
  > .dog-name-splide
  > .splide__arrows
  > .splide__arrow {
  background: rgba(74, 144, 226, 0.9);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.dog-profiles-slider-wrapper
  > .dog-name-splide
  > .splide__arrows
  > .splide__arrow:hover {
  background: #22548d;
}

.dog-profiles-slider-wrapper
  > .dog-name-splide
  > .splide__arrows
  > .splide__arrow
  svg {
  fill: white;
}

.dog-profiles-slider-wrapper
  > .dog-name-splide
  > .splide__arrows
  > .splide__arrow--prev {
  left: -60px;
}

.dog-profiles-slider-wrapper
  > .dog-name-splide
  > .splide__arrows
  > .splide__arrow--next {
  right: -60px;
}

/* Paginación del slider principal */
.dog-name-splide .splide__pagination {
  bottom: -3rem;
}

.dog-name-splide .splide__pagination__page {
  background: #ccc;
  width: 12px;
  height: 12px;
  margin: 0 5px;
  transition: all 0.3s ease;
}

.dog-name-splide .splide__pagination__page.is-active {
  background: #4a90e2;
  transform: scale(1.4);
}

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

/* Desktop (1024px y más) */
@media screen and (min-width: 1024px) {
  .dog-profile-container {
    gap: 3rem;
    padding: 2.5rem;
  }

  .dog-profile-gallery {
    height: 500px;
  }
}

/* Tablets (768px - 1023px) - CUADRADO */
@media screen and (max-width: 1023px) and (min-width: 768px) {
  .dog-profiles-section {
    padding: 3rem 1.5rem;
  }

  .dog-profiles-title h2 {
    font-size: 3rem;
    letter-spacing: 1.5px;
  }

  .dog-profile-container {
    gap: 1rem;
    padding: 2rem;
  }

  .dog-profile-gallery {
    height: 450px;
  }

  .dog-profile-info h3 {
    font-size: 2.2rem;
  }

  .dog-details p,
  .dog-details strong {
    font-size: 1.1rem;
  }

  .dog-story {
    font-size: 1.1rem;
  }

  .dog-needs h4 {
    font-size: 1.3rem;
  }

  .dog-needs li {
    font-size: 1.05rem;
  }

  /* Flechas externas en tablet */
  .dog-profiles-slider-wrapper
    > .dog-name-splide
    > .splide__arrows
    > .splide__arrow--prev {
    left: -40px;
  }

  .dog-profiles-slider-wrapper
    > .dog-name-splide
    > .splide__arrows
    > .splide__arrow--next {
    right: -40px;
  }
}

/* Mobile (menos de 768px) */
@media screen and (max-width: 767px) {
  .dog-profiles-section {
    padding: 2.5rem 1rem;
  }

  .dog-profiles-title {
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .dog-profiles-title h2 {
    font-size: 1.5rem;
    letter-spacing: 1px;
  }

  .dog-profiles-title hr {
    max-width: 50px;
  }

  .dog-profile-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem;
    min-height: auto;
  }

  .dog-profile-gallery {
    height: 300px;
  }

  .dog-profile-info {
    padding: 0.5rem;
    gap: 1rem;
  }

  .dog-profile-info h3 {
    font-size: 2rem;
  }

  .dog-details p,
  .dog-details strong {
    font-size: 1.05rem;
  }

  .dog-story {
    font-size: 1.05rem;
    line-height: 1.7;
  }

  .dog-needs {
    padding: 0;
  }

  .dog-needs h4 {
    font-size: 1.2rem;
  }

  .dog-needs li {
    font-size: 1rem;
  }

  /* Flechas de la galería interna en móvil */
  .dog-profile-gallery .splide__arrow {
    width: 35px;
    height: 35px;
  }

  /* Flechas externas en móvil */
  .dog-profiles-slider-wrapper
    > .dog-name-splide
    > .splide__arrows
    > .splide__arrow {
    width: 40px;
    height: 40px;
  }

  .dog-profiles-slider-wrapper
    > .dog-name-splide
    > .splide__arrows
    > .splide__arrow--prev {
    left: 10px;
  }

  .dog-profiles-slider-wrapper
    > .dog-name-splide
    > .splide__arrows
    > .splide__arrow--next {
    right: 10px;
  }

  .dog-name-splide .splide__pagination {
    bottom: -2rem;
  }
}

/* Mobile pequeño (menos de 425px) */
@media screen and (max-width: 424px) {
  .dog-profiles-title h2 {
    font-size: 1.3rem;
  }

  .dog-profile-info h3 {
    font-size: 1.7rem;
  }

  .dog-profile-gallery {
    height: 250px;
  }

  .dog-details p,
  .dog-details strong {
    font-size: 1rem;
  }

  .dog-story {
    font-size: 1rem;
  }

  .dog-needs h4 {
    font-size: 1.1rem;
  }

  .dog-needs li {
    font-size: 0.95rem;
  }
}
