  /* ===============================
   🌈 Variables globales
================================= */

@import url('https://fonts.googleapis.com/css2?family=Allura&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Courgette&display=swap');


:root {
  --primary: #d9a66b;
  --primary-dark: #c89257;
  --secondary: #3a2d20;
  --text-dark: #3a2d20;
  --text-light: #5c5244;
  --text-highlight: #4e3a28;
  --bg-light: #f5ede3;
  --white: #ffffff;
  --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
}

/* ===============================
   🔁 Reset & Base
================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-light);
  background-color: var(--bg-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===============================
   🧭 Encabezado (Header)
================================= */
.site-header {
  background: var(--white);
  padding: 1rem 0;
  box-shadow: var(--shadow);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 60px;
  width: auto;
}

.header-intro p {
  font-size: 1rem;
  color: var(--text-dark);
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.01em;
}

/* ===============================
   🎯 Hero / Intro principal
================================= */
.hero-section {
  padding-top: 200px; /* evita que el header lo tape */
  padding-bottom: 3rem;
  text-align: center;
}

.hero-section h2 {
  font-size: 2.2rem;
  font-family: 'Great Vibes', 'Lucida Handwriting', cursive;
  color: var(--text-dark);
}

.hero-section p {
  font-size: 1.1rem;
  color: var(--text-light);
}

/* ===============================
   🐾 Sección Comparativa (Nueva)
================================= */
.comparativa-section {
  padding: 4rem 0;
  background: var(--white);
}

.comparativa-section h2 {
  font-size: 2.5rem;
  text-align: center;
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-weight: 600;
  padding-top: 2rem;
}

.section-intro {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.comparativa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.animal-section {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.animal-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.animal-header {
  padding: 1.5rem 2rem 1rem 2rem;
  text-align: center;
}

.animal-header h3 {
  font-size: 1.8rem;
  color: var(--text-dark);
  margin: 0;
  font-weight: 600;
}

.animal-image {
  height: 280px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
}

.animal-img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.animal-section:hover .animal-img {
  transform: scale(1.05);
}

.animal-content {
  padding: 2rem;
}

/* El h3 ahora está en .animal-header */

/* Navegación de características */
.caracteristicas-nav {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-btn {
  padding: 0.5rem 1rem;
  background: transparent;
  border: 2px solid var(--primary);
  border-radius: 20px;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-btn:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-1px);
}

.nav-btn.active {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(217, 166, 107, 0.3);
}

.caracteristicas-content {
  margin-bottom: 2rem;
  position: relative;
  min-height: 120px;
}

.caracteristica {
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: 12px;
  border-left: 4px solid var(--primary);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
}

.caracteristica.active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
}

.caracteristica h4 {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.caracteristica p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.5;
  margin: 0;
}

.cta-buttons {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(217, 166, 107, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 166, 107, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text-dark);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* Responsive para la sección comparativa */
@media (max-width: 768px) {
  .comparativa-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .animal-content {
    padding: 1.5rem;
  }
  
  .animal-header h3 {
    font-size: 1.5rem;
  }
  
  .animal-header {
    padding: 1rem 1.5rem 0.5rem 1.5rem;
  }
  
  .caracteristicas-nav {
    gap: 0.25rem;
    margin-bottom: 1rem;
  }
  
  .nav-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
  
  .caracteristica {
    padding: 1rem;
  }
  
  .cta-buttons {
    flex-direction: row;
    gap: 0.75rem;
  }
  
  .btn {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
}
  margin-top: 0.5rem;
}


/* Sección Comparativa */
.comparativa-section {
  padding: 8rem 0;
  background: var(--bg-light);
  scroll-margin-top: 100px;
}

.comparativa-section h2 {
  font-size: 2.5rem;
  color: var(--text-dark);
  text-align: center;
  font-family: 'Trebuchet MS', 'Comic Sans MS', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.02em;
}

.section-intro {
  text-align: center;
  margin-top: 1rem;
  color: var(--text-light);
  font-size: 1.1rem;
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.01em;
}

/* Carrusel */
.carrusel-comparativo {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.slide-link {
  text-decoration: none;
  color: inherit;
  flex: 1 1 45%;
  display: block;
}

/* Fondos */
.perros-fondo,
.gatos-fondo {
  aspect-ratio: 1 / 1; /* ✅ Mantiene proporción cuadrada */
  background-size: contain; /* ✅ Evita recortes */
  background-position: center;
  background-repeat: no-repeat;
  border-radius: var(--border-radius);
  position: relative;
  overflow: hidden;
}

/* Wrapper de slide */
.slide-wrapper {
  position: relative;
  min-height: 400px;
  height: 100%;
}

/* Slide visible */
.slide {
  position: absolute;
  inset: 0;
  padding: 2rem;
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

.slide.active {
  display: block;
  opacity: 1;
}

/* Contenido del slide */
.slide-content {
  max-width: 70%;
  padding: 2rem;
  text-align: left;
  background: transparent;
}

/* Título y lista */
.slide-title {
  font-size: 1.8rem;
  font-family: 'Trebuchet MS', 'Comic Sans MS', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  font-style: italic; /* Elegante cursiva para títulos */
  color:  var(--text-dark);
  margin-bottom: 1rem;
  text-shadow:
    0 0 3px var(--bg-light),
    0 0 6px var(--bg-light);
  letter-spacing: 0.02em; /* Mejor espaciado */
}

/* Grupo de enlaces */
.btn-group {
  position: absolute;
  bottom: 1.2rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  z-index: 10;
}

.slide .btn {
  background: transparent;
  color: var(--text-dark);
  font-size: 1.25rem;
  font-family: 'Trebuchet MS', 'Comic Sans MS', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  text-decoration: none;
  font-weight: 600;
  font-style: italic; /* Elegante cursiva para botones */
  transition: all 0.3s ease;
  text-shadow:
    0 0 3px var(--bg-light),
    0 0 6px var(--bg-light);
  letter-spacing: 0.01em;
}

.slide .btn:hover {
   color: var(--white);
}

.caracteristicas {
  list-style: none;
}

.caracteristicas li {
  font-size: 1.2rem;
  color:  var(--text-dark);
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 0.6rem;
  padding-left: 1.8rem;
  position: relative;
  text-shadow:
    0 0 3px var(--bg-light),
    0 0 6px var(--bg-light);
  letter-spacing: 0.01em; /* Mejor espaciado */
  line-height: 1.5; /* Mejor interlineado */
}

.caracteristicas li::before {
  content: '🐾 ';
  position: absolute;
  left: 0.2rem;
  color: var(--primary);
}


/* Responsive */
@media (max-width: 768px) {
  .carrusel-comparativo {
    flex-direction: column;
  }

  .slide-link {
    flex: 1 1 100%;
  }

  .slide-content {
    max-width: 100%;
    text-align: center;
    padding: 1.5rem;
  }

  .slide-title {
    font-size: 1.5rem;
  }

  .caracteristicas li {
    font-size: 1rem;
  }

  .btn-group {
    bottom: 1rem;
    padding: 0 1rem;
  }

  .slide .btn {
    font-size: 1rem;
  }
}

/* Animación de entrada */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide.active .slide-content {
  animation: fadeInUp 0.8s ease both;
}

/* Grupo de botones flotantes */
.social-float-group {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

/* Estilo individual de cada botón */
.social-btn {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.social-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.social-btn:hover {
  transform: scale(1.1);
}


@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}
.social-btn {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
  animation: pulse 2.5s ease-in-out infinite;
}
