:root {
  --mint-glow: #6FFF59;
  --turquoise: #2CDED8;
  --white: #FFFFFF;
  --text-dark: #1A3636;
  
  /* Glassmorphism Presets */
  --glass-bg: rgba(255, 255, 255, 0.45);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

/* Reset general */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Noto Serif", serif;
  font-optical-sizing: auto;
  font-style: normal;
}

/* Tipografía Lobster exclusiva para Títulos y Subtítulos */
h1, h2, h3, .subtitle, .logo-sidebar span {
  font-family: "Lobster", sans-serif;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 1px;
}

html, body {
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden; /* Evita scroll horizontal pero permite vertical si se necesita */
}

/* Background fijo centrado */
body {
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)),
    url('https://images.unsplash.com/photo-1583524505974-6facd53f4597?q=80&w=2560&auto=format&fit=crop');
  
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  background-size: cover;
  
  image-rendering: -webkit-optimize-contrast;
  color: var(--text-dark);
}

/* Sidebar Flotante Glassmorphism */
.sidebar-container {
  position: fixed;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 20px 12px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  box-shadow: var(--glass-shadow);
}

.logo-sidebar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.paw-icon {
  width: 22px;
  height: 22px;
  fill: var(--turquoise);
}

.brand-paw-hero {
  width: 95px;
  height: 95px;
  fill: var(--turquoise);
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
}

/* Nav Buttons estilo Uiverse */
.input {
  display: flex;
  flex-direction: column;
  width: 160px;
  gap: 6px;
}

.value {
  background-color: transparent;
  border: none;
  padding: 10px 12px;
  color: #4A5568;
  display: flex;
  align-items: center;
  position: relative;
  gap: 10px;
  cursor: pointer;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.25s ease;
}

.value svg {
  width: 18px;
  height: 18px;
  stroke: #4A5568;
  transition: stroke 0.25s ease;
}

.value:hover {
  background-color: rgba(255, 255, 255, 0.6);
  color: var(--text-dark);
}

.value.active,
.value:focus {
  background-color: rgba(255, 255, 255, 0.9);
  color: #0F5257;
  outline: none;
}

.value.active svg {
  stroke: #0F5257;
}

.value::before {
  content: "";
  position: absolute;
  top: 15%;
  left: -6px;
  width: 4px;
  height: 70%;
  background: linear-gradient(180deg, var(--turquoise), var(--mint-glow));
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.value.active::before {
  opacity: 1;
}

/* Contenedor Principal */
.content {
  width: 100%;
  min-height: 100vh;
}

/* Manejo de visibilidad de Secciones (Modo Oculto por Defecto) */
.page-section {
  display: none;
  width: 100%;
  min-height: 100vh;
  padding-left: 200px;
  justify-content: center;
  align-items: center;
}

.page-section.active {
  display: flex;
}

/* Estilo del Logo Suelto Centrado en Home */
.brand-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.8);
}

.brand-paw-hero {
  width: 90px;
  height: 90px;
  fill: var(--turquoise);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.brand-center h1 {
  font-size: 4.2rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: 2px;
}

.brand-center h1 {
  font-size: 4.2rem;
}


/* Tarjetas para las otras secciones */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 20px;
  padding: 40px;
  width: 80%;
  max-width: 650px;
}

/* Pantalla completa para secciones con diseño dividido */
.page-section.split-layout {
  padding-left: 0;
  width: 100%;
  min-height: 100vh;
  display: none;
  grid-template-columns: 1fr 1fr;
  background-color: #FFFFFF;
}

.page-section.split-layout.active {
  display: grid;
}

/* Columna Izquierda: Información (Fondo sólido) */
.split-info {
  background-color: #F8FAF9;
  padding: 40px 60px 40px 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  height: 100vh;
  overflow-y: auto; /* Permite scroll solo en el texto si la pantalla es pequeña */
}

.split-info h2 {
  font-size: 2.4rem;
  color: var(--text-dark);
}

.split-info .subtitle {
  color: #0F5257;
  font-weight: 600;
  font-size: 1.2rem;
  margin-top: 2px;
}

.split-info p {
  line-height: 1.6;
  font-size: 0.95rem;
  color: #4A5568;
}

.split-info h3 {
  font-size: 1.4rem;
  color: var(--text-dark);
  margin-top: 8px;
}

.vet-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vet-checklist li {
  font-size: 0.9rem;
  color: #4A5568;
  position: relative;
  padding-left: 20px;
}

.vet-checklist li::before {
  content: "•";
  color: var(--turquoise);
  font-weight: bold;
  font-size: 1.4rem;
  position: absolute;
  left: 0;
  top: -2px;
}

/* Columna Derecha: Imagen vertical abarcando el 100% de la mitad derecha */
.split-image {
  width: 100%;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow: hidden;
}

.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.split-info h2 {
  font-size: 2.8rem;
}

.split-info .subtitle {
  font-size: 1.4rem;
}

.split-info h3 {
  font-size: 1.8rem;
}

/* Ajuste de lectura para Noto Serif */
p, li, button {
  font-family: "Noto Serif", serif;
  font-weight: 400;
  line-height: 1.6;
}

/* Fondo en Alta Definición para la sección Adopción */
.section-bg-adopcion {
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)),
    url('https://images.unsplash.com/photo-1623387641168-d9803ddd3f35?q=80&w=1170&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
  
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
  
  /* Mantener nitidez HD */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Alineación limpia para Adopción al activarse */
.section-bg-adopcion.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Media Queries)
   ========================================================================== */

/* Tablets y Dispositivos Medianos (máximo 1024px) */
@media screen and (max-width: 1024px) {
  .page-section {
    padding-left: 180px;
  }

  .split-info {
    padding: 30px 40px 30px 200px;
  }

  .split-info h2 {
    font-size: 2.2rem;
  }

  .split-info .subtitle {
    font-size: 1.1rem;
  }
}

/* Móviles y Pantallas Pequeñas (máximo 768px) */
@media screen and (max-width: 768px) {
  
  /* Mover Sidebar flotante a la parte inferior horizontal */
  .sidebar-container {
    top: auto;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: row;
    padding: 8px 16px;
    border-radius: 30px;
    width: 92%;
    max-width: 420px;
    justify-content: space-between;
    align-items: center;
  }

  /* Ocultar el logo en el menú inferior para ahorrar espacio */
  .logo-sidebar {
    display: none;
  }

  .input {
    flex-direction: row;
    width: 100%;
    justify-content: space-around;
    gap: 4px;
  }

  .value {
    padding: 8px 10px;
    font-size: 0.8rem;
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }

  .value svg {
    width: 20px;
    height: 20px;
  }

  .value::before {
    display: none; /* Quita el indicador lateral en modo barra inferior */
  }

  /* Resetear paddings generales por la nueva posición del menú */
  .page-section {
    padding-left: 0;
    padding-bottom: 90px; /* Espacio extra para no tapar contenido con el menú inferior */
  }

  /* Cambiar layout dividido de 2 columnas a 1 columna vertical */
  .page-section.split-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .split-info {
    padding: 40px 24px 30px 24px;
    height: auto;
    overflow-y: visible;
  }

  .split-info h2 {
    font-size: 2rem;
  }

  .split-info .subtitle {
    font-size: 1rem;
  }

  .split-info h3 {
    font-size: 1.3rem;
  }

  .split-image {
    height: 350px;
    position: relative;
  }

  .brand-center h1 {
    font-size: 3rem;
  }

  .glass-card {
    width: 90%;
    padding: 24px;
  }
}