/* =========================
   Paleta y base
========================= */
:root {
  --beige: #f6f0e9;
  --naranja: #d67d4b;
  --marron: #4a2b17;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--beige);
  color: #333;
  line-height: 1.5;
}

img { max-width: 100%; height: auto; display: block; }

a { color: rgb(0, 0, 0); }

/* Titulares genéricos */
h1, h2 { color: #222; margin: 0 0 10px; }
p { margin: 0 auto; max-width: 980px; }

/* =========================
   Header
========================= */

/* Menú centrado */
/* Botón de donar (header) */




/* =========================
   Sección genérica
========================= */
section { padding: 48px 20px; text-align: center; }

/* =========================
   HOME / INICIO
   (clases usadas en tu HTML)
========================= */

/* Pitch (intro) */
.pitch {
  padding-top: 56px;
  padding-bottom: 56px;
}
.pitch h1 {
  font-size: clamp(24px, 3vw, 34px);
  color: var(--marron);
}
.pitch p {
  margin-top: 10px;
  color: #444;
}

/* Video responsive */
.video-section { padding-top: 20px; }
.video-section h2 {
  font-size: clamp(20px, 2.5vw, 28px);
  color: #222;
  margin-bottom: 18px;
}

/* Si prefieres sin wrapper, aplicamos al iframe directo */
.video-section iframe {
  width: clamp(280px, 80vw, 800px);
  aspect-ratio: 16 / 9;
  display: block;
  margin: 0 auto;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  background: #000; /* evita borde gris mientras carga */
}

/* Aporte (dos columnas) */
.aporte {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: center;
  text-align: left;
  background: #fff;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.aporte-text h2 {
  margin: 0 0 8px;
  color: var(--marron);
  font-size: clamp(20px, 2.5vw, 28px);
}

.aporte-text p { color: #444; margin: 0 0 16px; }

.aporte-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.aporte-list span {
  background: #ffe9dc;
  color: #333;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  border: 1px solid #ffd1ba;
}

.aporte img {
  width: 420px;
  border-radius: 14px;
  object-fit: cover;
}

/* Integrantes (dos columnas invertidas) */
.integrantes {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  text-align: left;
}

.integrantes img {
  width: 420px;
  border-radius: 14px;
  object-fit: cover;
}

.integrantes-text h2 {
  margin: 0 0 8px;
  color: var(--marron);
  font-size: clamp(20px, 2.5vw, 28px);
}
.integrantes-text p { color: #444; }

/* Colabora (CTA) */
.colabora {
  background: linear-gradient(180deg, #fff2ea, #ffe3d0);
  padding: 56px 20px;
}

.colabora h2 {
  color: var(--marron);
  margin-bottom: 16px;
}

.colabora a {
  display: inline-block;
  background: var(--naranja);
  color: #fff;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: bold;
  transition: transform .15s ease, background .3s;
}
.colabora a:hover { background: var(--marron); transform: translateY(-2px); }

/* Consciencia (bloque final) */
.consciencia {
  max-width: 980px;
  margin: 0 auto;
  background: #fff;
  padding: 28px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.consciencia h2 { color: var(--marron); }
.consciencia p { color: #444; }

/* =========================
   Anuncios (ya presentes)
========================= */
.anuncios .anuncios-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.anuncios .card {
  background: white;
  padding: 10px;
  border-radius: 10px;
  width: 200px;
}

.anuncios .card img {
  width: 180px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  margin: auto;
}

/* =========================
   Botones genéricos
========================= */
button {
  background: var(--naranja);
  color: white;
  border: none;
  padding: 10px 20px;
  margin: 10px;
  border-radius: 5px;
  cursor: pointer;
}
button.dark { background: var(--marron); }

/* =========================
   Sección Adopta (banner)
========================= */
.adopta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--naranja);
  color: white;
  padding: 40px;
  flex-wrap: wrap;
}

.adopta .text { max-width: 400px; }

.adopta img {
  width: 350px;
  max-width: 100%;
  border-radius: 10px;
  display: block;
  margin-top: 20px;
}

/* =========================
   Testimonios
========================= */
.testimonios .testimonios-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.testimonios .card {
  background: white;
  padding: 15px;
  border-radius: 10px;
  width: 220px;
}

.testimonios .card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  margin: auto;
}

/* =========================
   Mapa
========================= */
.mapa {
  background: #eee;
  padding: 50px;
  font-weight: bold;
}

/* =========================
   Donaciones
========================= */
.donaciones { padding: 40px; }
.donaciones button { background: var(--marron); }

.donacion-card {
  background: white;
  padding: 25px;
  margin: 25px auto;
  border-radius: 12px;
  max-width: 600px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: center;
}

.donacion-card img {
  width: 100px; height: 100px;
  object-fit: cover; border-radius: 50%; margin-bottom: 15px; 
  display: block;           /* evita que quede alineada como inline */
  margin: 0 auto 15px;      /* centrada y con espacio abajo */
}

.donacion-card h3 { color: var(--marron); margin-bottom: 10px; }
.donacion-card p { color: #555; margin-bottom: 20px; }

.lista-opciones {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.lista-opciones li { margin: 0; }

.btn-donar {
  display: inline-block;
  background: var(--naranja);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}
.btn-donar:hover { background: var(--marron); }

/* =========================
   Footer
========================= */
footer {
  background: var(--marron);
  color: white;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

footer .footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

footer .footer-logo h3 { margin: 0; font-size: 20px; font-weight: bold; }

footer .footer-links {
  display: flex;
  gap: 50px;
  margin: 30px 0;
  flex-wrap: wrap;
  justify-content: center;
}

footer h4 { margin-bottom: 10px; font-size: 16px; font-weight: bold; }

footer ul { list-style: none; padding: 0; margin: 0; }
footer ul li { margin: 5px 0; }

footer ul li a {
  color: white;
  text-decoration: none;
  font-size: 15px;
}

footer a i {
  font-size: 22px;
  margin: 0 8px;
  color: white;
  transition: 0.3s;
}
footer a i:hover { color: var(--naranja); }

footer .copy { margin-top: 20px; font-size: 14px; opacity: 0.8; }

/* =========================
   Anunciantes / Refugios
========================= */
.anuncios, .refugios { padding: 40px; text-align: center; }

.anuncios .grid, .refugios .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  max-width: 1000px;
  margin: 0 auto;
  gap: 20px;
  margin-top: 20px;
}

.anuncios .card, .refugios .card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
  text-align: center;
}
.anuncios .card:hover, .refugios .card:hover { transform: translateY(-5px); }

.refugios .card img {
  width: 100px; height: 100px;
  object-fit: cover; border-radius: 50%; margin-bottom: 15px;
}

.refugios .card h3 { margin: 10px 0; font-size: 20px; color: var(--marron); }
.refugios .card p { font-size: 14px; color: #555; margin: 10px 0 15px 0; }

.social-links {
  margin: 15px 0;
  display: flex; justify-content: center; gap: 15px;
}
.social-links a { color: var(--marron); font-size: 22px; transition: color 0.3s; }
.social-links a:hover { color: var(--naranja); }

.refugios .card .btn-donar {
  background: var(--naranja); color: white; padding: 10px 18px;
  border-radius: 8px; text-decoration: none; font-weight: bold; transition: background 0.3s;
  display: inline-block; margin-top: 10px;
}
.refugios .card .btn-donar:hover { background: var(--marron); }

.refugio-img {
  width: 100%;              /* ocupa todo el ancho de la tarjeta */
  height: 180px;            /* altura fija */
  object-fit: cover;        /* recorta la imagen sin deformarla */
  display: block;           /* evita que quede alineada como inline */
  border-radius: 10px 10px 0 0; /* esquinas superiores redondeadas */
  margin: 0 auto 15px;      /* centrada y con espacio abajo */
}

/* =========================
   Adopción (lista)
========================= */
.adopta-lista {
  padding: 40px;
  background: #fdf7f4;
  text-align: center;
}

.adopta-lista h2 {
  font-size: 28px;
  color: var(--marron);
  margin-bottom: 10px;
}

.adopta-lista p { color: #444; margin-bottom: 30px; }

/* =========================
   Grid de mascotas fijo
========================= */
.pet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Siempre 3 en escritorio */
  gap: 22px;
  max-width: 1200px;
  margin: 28px auto;
  padding: 0 20px;
  justify-content: center;
}

/* Tarjeta */
.pet-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease;
}

/* Imagen cuadrada */
.pet-card .card-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
}

/* Botón centrado */
.pet-card .btn-adoptar {
  margin: 14px auto 18px auto;
}

/* =========================
   Responsivo
========================= */
@media (max-width: 992px) {
  .pet-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 en tablets */
  }
}

@media (max-width: 600px) {
  .pet-grid {
    grid-template-columns: 1fr; /* 1 en celulares */
  }
}


/* =========================
   Adopción - Cards estilo grilla (reemplazar/añadir)
=========================000000000000000000000000000000000000000000000000000000000000 */
.pet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Siempre 3 en escritorio */
  gap: 22px;
  max-width: 1200px;
  margin: 28px auto;
  padding: 0 20px;
  justify-content: center;
}

/* Card principal: imagen arriba, contenido abajo */
/* Tarjeta */
.pet-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease;
}

/* Hover elevación */
.pet-card:hover {
  transform: translateY(-6px);
}

/* Imagen cuadrada */
.pet-card .card-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
}
/* Contenido interior */
.pet-info {
  padding: 14px 18px 10px 18px;
  text-align: left;
}

.pet-info h3 {
  margin: 6px 0 10px 0;
  color: var(--marron);
  text-align: center;
  font-size: 20px;
}

/* Atributos como cajas (2 columnas) */
.pet-attributes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 8px 0;
}

.pet-attributes li {
  background: #f5eefe;      /* tono suave (puede cambiar) */
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  color: #4b3a3a;
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Descripción */
.pet-info p {
  font-size: 14px;
  color: #333;
  margin-top: 10px;
  line-height: 1.4;
}

/* Botón centrado y fijo al final */
.pet-card .btn-adoptar {
  display: inline-block;
  margin: 14px auto 18px auto;
  background: var(--marron);
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}
.pet-card .btn-adoptar:hover { background: var(--naranja); color: #fff; }

/* Si quieres que la edad aparezca en negrita dentro de la caja */
.pet-attributes b { color: #4a2b17; }

/* Si el listado de atributos aparece con viñetas por algún motivo,
   este estilo obliga a no mostrar bullets para cualquier ul dentro de pet-info */
.pet-info ul { list-style: none; padding: 0; margin: 8px 0; }


/* =========================
   Responsivo
========================= */
@media (max-width: 992px) {
  .pet-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 en tablets */
  }
}

@media (max-width: 600px) {
  .pet-grid {
    grid-template-columns: 1fr; /* 1 en celulares */
  }
}


/* =========================
   Contacto
========================= */
.contacto { text-align: center; padding: 40px 20px; }

.contacto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px; margin-top: 20px;
}

.card-contacto:hover { transform: translateY(-5px); }

/* Tarjetas individuales */
.card-contacto {
  display: flex;
  flex-direction: column;
  align-items: center;   /* centra horizontal */
  justify-content: center; /* centra vertical */
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
}

/* Ajuste de las imágenes */
.card-contacto img {
  width: 80px;   /* tamaño uniforme */
  height: 80px;  /* mantiene cuadrado */
  object-fit: contain;
  margin-bottom: 15px;
}

.card-contacto h3 { color: var(--marron); margin-bottom: 10px; }

.card-contacto .btn {
  display: inline-block; background: var(--naranja); color: white;
  padding: 10px 20px; border-radius: 8px; text-decoration: none; font-weight: bold;
  transition: background 0.3s;
}
.card-contacto .btn:hover { background: var(--marron); }

/* =========================
   Responsive
========================= */
@media (max-width: 1100px) {
  .aporte, .integrantes { margin: 0 12px; }
}


@media (max-width: 860px) {
  .aporte, .integrantes {
    flex-direction: column;
    text-align: center;
  }
  .aporte img, .integrantes img { width: 100%; }
  .aporte, .integrantes { gap: 18px; }
}

@media (max-width: 600px) {
  header { padding: 20px; }
  header .logo span { font-size: 16px; }

  header nav ul { flex-direction: column; gap: 10px; margin-top: 15px; }

  .anuncios .card, .testimonios .card { width: 100%; max-width: 300px; }
  .adopta img { width: 100%; }

  .donacion-card { padding: 20px; }

  .lista-opciones { flex-direction: column; }
  .lista-opciones li { width: 100%; }

  .proximamente .cartel { padding: 20px; }
  .proximamente h2 { font-size: 22px; }
  .proximamente p { font-size: 16px; }

  .btn-adoptar { margin: 15px auto 0; }
}

/* Cartel Próximamente */
.proximamente {
  display: flex; justify-content: center; align-items: center;
  min-height: 300px; background: var(--beige);
  padding: 40px; text-align: center;
}
.proximamente .cartel {
  background: white; padding: 40px; border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1); max-width: 500px;
}
.proximamente h2 { font-size: 28px; color: var(--marron); margin-bottom: 10px; }
.proximamente p { font-size: 18px; color: #555; }

/* === Botón hamburguesa custom === */



















/* ===== Hamburguesa ===== */

/* Estado normal en desktop */
nav ul.menu-center {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 25px;
  margin: 0;
  padding: 0;
  transition: max-height 0.3s ease;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  

  nav ul.menu-center {
    flex-direction: column;
    align-items: center;
    background: var(--naranja);
    width: 100%;
    max-height: 0;   /* oculto por defecto */
    overflow: hidden;
  }

  nav ul.menu-center.active {
    max-height: 400px; /* se despliega */
    padding: 15px 0;
  }

  .donar-btn {
    margin-top: 10px;
  }
}


.filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.filtros input,
.filtros select {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
}
/* Botón de filtros */
.btn-filtros {
  display: inline-block;
  margin: 15px;
  padding: 10px 15px;
  font-size: 16px;
  font-weight: bold;
  background: #ff914d;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-filtros:hover {
  background: #e67e22;
}

/* Menú de filtros */
.filtros {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 15px;
  padding: 15px;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 12px;
}

/* Ocultar */
.oculto {
  display: none;
}

/* En pantallas grandes (desktop), los filtros aparecen horizontales */
@media (min-width: 768px) {
  .filtros {
    flex-direction: row;
    flex-wrap: wrap;
  }
}
/* Contenedor buscador + filtros */
.buscador-filtros {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 20px auto;
  max-width: 600px;
}

.buscador-filtros input {
  flex: 1;
  padding: 8px 12px;
  border: 2px solid var(--marron);
  border-radius: 8px;
  font-size: 14px;
}

.buscador-filtros button {
  background: var(--marron);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s;
}

.buscador-filtros button:hover {
  background: #5c3a28;
}

/* Menú filtros desplegable */
.filtros {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 10px auto 20px;
  max-width: 600px;
}

.filtros select {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.oculto {
  display: none;
}
.search-filters-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
}

#searchInput {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  flex: 1;
  max-width: 250px;
}

#toggleFilters {
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  background: var(--naranja, #ff914d);
  color: white;
  cursor: pointer;
}

#filtersMenu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 10px 0;
}

#filtersMenu.oculto {
  display: none;
}
  /*========================*/
 /* === HEADER GENERAL === */
/*========================*/
header {
  background: #d97745;
  color: white;
  display: flex;
  justify-content: space-between; /* logo a la izq - nav/hamburguesa a la der */
  align-items: center;
  padding: 15px 30px;
  position: relative;
  top: 0;
  width: 100%;
  z-index: 1000;
}

/* Logo */
/* Logo contenedor */
.logo {
  display: flex;
  flex-direction: row;   /* horizontal en desktop */
  align-items: center;
  gap: 10px;             /* espacio entre logo y texto */
  text-align: left;
}

/* Imagen del logo */
.logo img {
  height: 60px;
  margin: 0;
}

/* Logo en desktop: ícono + texto al lado */
.logo a {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

/* Texto al lado del logo */
.logo span {
  font-size: 18px;
  font-weight: bold;
  color: var(--beige);
  transition: color 0.3s ease;
}

.logo span:hover {
  color: var(--marron); /* marrón en hover */
}

/* En mobile, ocultar el texto */
@media (max-width: 768px) {
  .logo {
    flex-direction: column; /* vuelve a apilar */
  }
  .logo span {
    display: none;
  }
}


nav {
  display: flex;
  align-items: center;
  justify-content: center; /* centra los links en desktop */
  flex: 1; /* ocupa todo el espacio entre logo y botón hamburguesa */
  gap: 20px;
}

nav a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--marron); /* marrón en hover */
}

/* Botón Donar */
.donar-btn {
  background: #3b2c20;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}

.donar-btn:hover {
  background: white; /* tono más claro al pasar */
}

/* --- Estilos para móvil --- */
.hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
}

/* Menú overlay */
.overlay {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  background-color: #d97745; /* mismo color que el header */
  overflow-x: hidden;
  transition: 0.4s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.overlay a {
  padding: 15px;
  font-size: 1.5rem;
  color: white;
  text-decoration: none;
  transition: 0.3s;
}

.overlay a:hover {
  color: #f9b949;
}

.overlay .closebtn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  cursor: pointer;
  color: white;
}

/* Responsivo */
@media screen and (max-width: 768px) {
  nav {
    display: none;
  }
  .hamburger {
    display: block;
  }
}




  /*----------------------*/
 /* === HERO SLIDER === */
/*----------------------*/
.hero {
  position: relative;
  height: 90vh;
  overflow: hidden;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slider {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

.hero-slider .slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slider .slide.active {
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px;
  max-width: 700px;
}

.hero-content h1 {
  font-size: clamp(28px, 5vw, 48px);
  color: #ffffff;
  margin-bottom: 15px;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.6);
}

.hero-content p {
  font-size: clamp(16px, 2vw, 22px);
  margin-bottom: 25px;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.6);
}

.btn-hero {
  display: inline-block;
  background: var(--naranja);
  color: #fff;
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s;
}

.btn-hero:hover {
  background: var(--marron);
}

/* === HERO RESPONSIVE === */
@media (max-width: 768px) {
  .hero {
    height: auto;              /* ya no depende del viewport */
    aspect-ratio: 4 / 3;        /* relación casi cuadrada */
  }
}

@media (max-width: 480px) {
  .hero {
    aspect-ratio: 16 / 12;      /* un poquito más ancho que alto en celulares chicos */
  }
}


/* === SECCIÓN IMPACTO === */
.impacto {
  background: #fff;
  padding: 60px 20px;
  text-align: center;
}

.impacto h2 {
  color: var(--marron);
  margin-bottom: 30px;
  font-size: clamp(22px, 3vw, 32px);
}

.impacto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.impacto-card {
  background: var(--beige);
  border-radius: 12px;
  padding: 30px 20px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

.impacto-card h3 {
  font-size: 36px;
  color: var(--naranja);
  margin-bottom: 10px;
}

.impacto-card p {
  font-size: 16px;
  color: #444;
}

/* === RESPONSIVE AJUSTES === */
@media (max-width: 768px) {
  .aporte, .integrantes {
    flex-direction: column;
    text-align: center;
  }
  .aporte img, .integrantes img {
    width: 100%;
  }
  .hero-content h1 { font-size: 28px; }
  .hero-content p { font-size: 16px; }
}




.reconocimientos {
  background: #fff2ea;
  padding: 0px;
  text-align: center;
}

.reconocimientos h2 {
  color: var(--marron);
  margin-bottom: 20px;
  font-size: clamp(22px, 3vw, 32px);
}

.reconocimientos-img {
  max-width: 320px;
  margin: 0 auto 20px auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.reconocimientos p {
  max-width: 900px;
  margin: 10px auto;
  color: #444;
  font-size: 16px;
  line-height: 1.6;
}

/* === VIDEO DENTRO DE RECONOCIMIENTOS === */
.reconocimientos iframe {
  width: 100%;
  max-width: 800px;       /* no más grande en desktop */
  aspect-ratio: 16 / 9;   /* mantiene proporción correcta */
  border: 0;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  display: block;
  margin: 20px auto;      /* centrado con espacio arriba/abajo */
}


.reconocimientos {
  position: relative;
  overflow: hidden;
}

/* ---- General slider ---- */
.slider {
  position: relative;
  width: 100%;
  height: 100vh;
  border-top: 50px solid (--marron);
}

.slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.overlay-text {
  position: absolute;
  color: #333;
  z-index: 2;
  padding: 1.5rem;
  max-width: 500px;
}

/* ---- Desktop ---- */
.desktop-only {
  display: none;
}

@media (min-width: 768px) {
  .desktop-only {
    display: block;
  }
  .mobile-only {
    display: none;
  }

  .desktop-text {
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 242, 234, 0.9);
    border-radius: 10px;
  }


}

/* ---- Mobile ---- */
.mobile-only {
  display: block;
}

.mobile-text {
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, #fff2ea 90%, transparent);
  color: #333;
  text-align: center;
}

/* Por defecto: solo mobile visible */
.desktop-only {
  display: none;
}

.mobile-only {
  display: block;
}

/* Cuando la pantalla es mayor a 768px (desktop) */
@media (min-width: 768px) {
  .desktop-only {
    display: block;
  }

  .mobile-only {
    display: none;
  }
}







/* ==== Carousels (Refugios & Prensa) ==== */
.refugios-carousel, .prensa-carousel {
  padding: 40px 20px;
  background: #fff;
  text-align: center;
}

.refugios-carousel h2, .prensa-carousel h2 {
  color: var(--marron);
  margin-bottom: 20px;
}

/* Contenedor general */
.carousel-wrapper {
  overflow: hidden;
  width: 100%;
}

/* Track animado */
.carousel-track {
  display: flex;
  gap: 40px;
  animation: scroll 25s linear infinite;
}

.carousel-item {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-item img {
  max-width: 180px;
  max-height: 100px;
  object-fit: contain;
}

/* Hover para logos con link */
.prensa-carousel .carousel-item {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.prensa-carousel .carousel-item:hover {
  transform: scale(1.08);
}

/* Animación infinita */
@keyframes scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==== RESPONSIVE ==== */

/* Desktop */
@media (min-width: 992px) {
  .refugios-track .carousel-item { width: 20%; }  /* 4 visibles */
  .prensa-track .carousel-item   { width: 40%; }  /* 2 visibles */
}

/* Tablet */
@media (min-width: 600px) and (max-width: 991px) {
  .refugios-track .carousel-item { width: 40%; }  /* 2 visibles */
  .prensa-track .carousel-item   { width: 60%; }  /* 1.5 visibles */
}

/* Mobile */
@media (max-width: 599px) {
  .refugios-track .carousel-item,
  .prensa-track .carousel-item { width: 80%; }    /* 1 visible */
}

/* ==== Refugios Carousel ==== */
.refugios-carousel {
  padding: 40px 20px;
  background: #fff;
  text-align: center;
}
.refugios-carousel h2 {
  color: var(--marron);
  margin-bottom: 20px;
}
.carousel-wrapper { overflow: hidden; width: 100%; }
.carousel-track {
  display: flex;
  gap: 40px;
  animation: scroll 25s linear infinite;
}
.carousel-item { flex: 0 0 auto; }
.carousel-item img {
  max-width: 180px;
  max-height: 100px;
  object-fit: contain;
}
@keyframes scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==== Prensa Grid (sin scroll infinito) ==== */
.prensa {
  padding: 50px 20px;
  background: #f8f8f8;
  text-align: center;
}
.prensa h2 {
  color: var(--marron);
  margin-bottom: 30px;
}
.prensa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: 0 auto;
}
.prensa-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.1);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.prensa-card:hover { transform: translateY(-6px); }
.prensa-card img {
  width: 100%;
  height: auto;
  display: block;
}
.logo-diario {
  background: var(--naranja);
  color: #fff;
  font-weight: bold;
  padding: 8px 16px;
  border-radius: 20px;
  margin: 12px 0;
  display: inline-block;
  font-size: 14px;
}

/* ==== Refugios Carousel ==== */
.refugios-carousel {
  padding: 40px 20px;
  background: #fff;
  text-align: center;
}
.refugios-carousel h2 {
  color: var(--marron);
  margin-bottom: 20px;
}
.carousel-wrapper { 
  overflow: hidden; 
  width: 100%; 
}
.carousel-track {
  display: flex;
  gap: 40px;
  animation: scroll 18s linear infinite; /* más rápido */
}
.carousel-item { 
  flex: 0 0 auto; 
}
.carousel-item img {
  max-width: 160px;
  max-height: 100px;
  object-fit: contain;
}

/* Animación */
@keyframes scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==== Responsive ajustes ==== */

/* Tablets */
@media (max-width: 992px) {
  .carousel-track {
    gap: 25px;              /* menos espacio */
    animation: scroll 14s linear infinite; /* más rápido en tablets */
  }
  .carousel-item img {
    max-width: 130px;
  }
}

/* Móviles */
@media (max-width: 600px) {
  .carousel-track {
    gap: 10px;               /* separación pequeña */
    animation: scroll 10s linear infinite; /* velocidad rápida */
  }
  .carousel-item {
    flex: 0 0 30%;           /* 3 logos visibles en pantalla */
  }
  .carousel-item img {
    max-width: 100%;
    max-height: 70px;        /* más pequeños para que encajen bien */
    object-fit: contain;
  }
}

  /*=============================*/
 /* ====== Hero donaciones =====*/
 /*=============================*/

/* Alias box */
.alias-box {
  background: #f7f7f7;
  border: 2px dashed #6b4e3d;
  padding: 20px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 500px;
  margin: 20px auto;
}
.alias-box button {
  padding: 8px 14px;
  border: none;
  border-radius: 5px;
  background: #6b4e3d;
  color: white;
  cursor: pointer;
}
.alias-box button:hover {
  background: #543d2f;
}

/* Planes */
.planes .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.plan {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: center;
}
.plan.destacado {
  border: 2px solid #6b4e3d;
  transform: scale(1.05);
}
.plan h3 {
  font-size: 28px;
  margin-bottom: 10px;
}
.plan p {
  font-size: 15px;
  margin-bottom: 15px;
}







