/* =========================
   BASE
========================= */

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  background: #fdfaf6;
  color: #333;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", Georgia, serif;
}

section {
  padding: 5rem 2rem;
  max-width: 1000px;
  margin: auto;
}

section h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 1.5rem;
  color: #1b4332;
}

#sobre,
#noticias,
#contacto {
  background: #f6fff8;
  max-width: none;
}

#sobre > *,
#noticias > *,
#contacto > * {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================
   NAV
========================= */

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
  background: rgba(20, 45, 35, 0.25);
  backdrop-filter: blur(8px);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-sizing: border-box;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

nav a,
.brand span,
.language-switch a {
  color: white;
}
.language-switch a {
  background: rgba(255, 255, 255, 0.15);
}

.language-switch a:hover {
  background: rgba(255, 255, 255, 0.3);
}

nav ul a {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.brand img {
  height: 60px;
}

.brand span {
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
}

.language-switch {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.language-switch a {
  color: white;
  font-weight: 700;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
}

.language-switch a:hover {
  background: white;
}

/* =========================
   HERO
========================= */
.hero {
  max-width: none;
  width: 100%;
  margin: 0;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
  background: #b7e4c7;
}

.hero h1 {
  position: relative;
  z-index: 3;
  max-width: 950px;
  font-family: Arial, sans-serif;
  color: white;
  font-size: 2.6rem;
  line-height: 1.2;
  letter-spacing: normal;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroFade 18s infinite;
}

.hero-slide-1 {
  background-image: url("images/inicio-1.jpg");
  animation-delay: 0s;
}

.hero-slide-2 {
  background-image: url("images/inicio-2.jpg");
  animation-delay: 4s;
}

.hero-slide-3 {
  background-image: url("images/inicio-3.jpeg");
  animation-delay: 8s;
}

.hero-slide-4 {
  background-image: url("images/inicio-4.jpeg");
  animation-delay: 12s;
}

.hero-slide-5 {
  background-image: url("images/inicio-5.png");
  animation-delay: 16s;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    rgba(20, 45, 35, 0.55),
    rgba(20, 45, 35, 0.35)
  );
}

@keyframes heroFade {
  0% { opacity: 0; }
  8% { opacity: 1; }
  20% { opacity: 1; }
  28% { opacity: 0; }
  100% { opacity: 0; }
}

/* =========================
   BOTONES
========================= */

.btn {
  display: inline-block;
  margin-top: 1rem;
  background: #52b788;
  color: white;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: background 0.25s ease, transform 0.25s ease;
}

.btn:hover {
  background: #40916c;
  transform: translateY(-2px);
}

/* =========================
   SOBRE
========================= */

#sobre p {
  line-height: 1.75;
  font-size: 1.03rem;
}

.about-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.about-img {
  text-align: center;
}

.about-img img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.about-img img:hover {
  transform: scale(1.03);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.12);
}

.about-img span {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.95rem;
  color: #666;
}

/* =========================
   ANIMALES
========================= */

.animals-intro {
  max-width: 750px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.animals-subtitle {
  margin-top: 2.5rem;
  margin-bottom: 1.2rem;
  font-size: 1.4rem;
  color: #1b4332;
}

.species-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}


.species-card {
  position: relative;
  height: 230px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.07);
}

.species-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.species-card h4 {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  align-items: end;
  justify-content: center;
  padding: 1.2rem;
  color: white;
  font-size: 1.4rem;
  font-weight: 800;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.7);
  background: linear-gradient(
    rgba(0, 0, 0, 0.05),
    rgba(0, 0, 0, 0.45)
  );
}

.species-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.1);
}

/* =========================
   NOTICIAS
========================= */

.news-list {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.news-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.5rem;
  align-items: center;
  background: white;
  border: 1px solid rgba(45, 106, 79, 0.12);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.07);
}

.news-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.news-video-wrapper {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 9 / 16;
  margin: 1.5rem auto;
  overflow: hidden;
  border-radius: 18px;
}

.news-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-content {
  padding: 1.5rem;
}

.news-content h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.news-date {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

.news-content p {
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

/* =========================
   AYUDA
========================= */

.help-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  align-items: stretch;
}

.help-card {
  background: white;
  padding: 1.6rem;
  border: 1px solid rgba(45, 106, 79, 0.12);
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.help-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.1);
}

.donation-card {
  grid-column: 1 / -1;
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
}

.volunteer-card {
  grid-column: 1 / -1;
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
}

.donation-impact {
  margin-top: 1rem;
  margin-bottom: 1rem;
  background: #fffaf0;
  border: 1px solid #f1e3c6;
  border-radius: 14px;
  padding: 0.9rem 1rem;
}

.donation-impact p {
  margin: 0.4rem 0;
  line-height: 1.5;
}

.iban-box {
  margin-top: 1rem;
  background: #f6fff8;
  border: 1px solid #d8f3dc;
  border-radius: 14px;
  padding: 1rem;
}

.iban-label {
  font-size: 0.85rem;
  font-weight: bold;
  color: #2d6a4f;
}

.iban-number {
  margin-top: 0.3rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  word-break: break-word;
}

.help-note {
  margin: 2rem auto 0;
  font-size: 0.9rem;
  color: #555;
  text-align: center;
  max-width: 700px;
  line-height: 1.6;
}

/* =========================
   CONTACTO
========================= */

.contact-section {
  padding: 5rem 2rem;
}

.contact-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.contact-info {
  padding: 1rem 0.5rem;
  text-align: center;
}

.contact-tag {
  display: inline-block;
  background: #d8f3dc;
  color: #2d6a4f;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.contact-info p {
  line-height: 1.7;
}

.contact-details {
  margin-top: 1.5rem;
  background: #f6fff8;
  border: 1px solid #d8f3dc;
  border-radius: 18px;
  padding: 1.2rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.contact-btn {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #52b788;
  color: white;
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 700;
  transition: background 0.25s ease, transform 0.25s ease;
}

.contact-btn:hover {
  background: #40916c;
  transform: translateY(-2px);
}

/* =========================
   FOOTER
========================= */

.footer {
  text-align: center;
  padding: 1.5rem 1rem;
  background: #f6fff8;
  margin-top: 0;
}

.footer img {
  height: 90px;
  margin-bottom: 0;
}

#contacto {
  padding-bottom: 2rem;
}
/* =========================
   RECURSOS
========================= */

.resources-page {
  max-width: none;
  margin: 0;
}

.resources-hero {
  background: linear-gradient(
    rgba(20, 45, 35, 0.65),
    rgba(20, 45, 35, 0.45)
  ),
  url("images/inicio-2.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 9rem 2rem 6rem;
  max-width: none;
}

.resources-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 1rem;
  line-height: 1.05;
}

.resources-hero p {
  max-width: 750px;
  margin: 0 auto;
  line-height: 1.7;
  font-size: 1.1rem;
}

.resources-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.resources-section h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #1b4332;
  margin-bottom: 0.8rem;
}

.resource-category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.resource-category-card {
  background: linear-gradient(
    145deg,
    rgba(246, 255, 248, 0.95),
    rgba(255, 255, 255, 0.95)
  );
  border: 1px solid rgba(45, 106, 79, 0.14);
  border-radius: 28px;
  padding: 2rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.07);
}

.resource-category-card h3 {
  margin-top: 0;
  color: #1b4332;
  font-size: 1.6rem;
}

.resource-category-card ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.resource-category-card li {
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(45, 106, 79, 0.12);
}

.resource-category-card li:last-child {
  border-bottom: none;
}

.resource-category-card a {
  color: #1b4332;
  text-decoration: none;
  font-weight: 700;
}

.resource-category-card a:hover {
  color: #52b788;
}

.resource-category-card p {
  line-height: 1.6;
}

.resource-row:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.1);
}

.resource-row h3 {
  margin: 0 0 0.4rem 0;
  color: #1b4332;
  font-size: 1.25rem;
}

.resource-row h3 span {
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

.resource-row p {
  margin: 0;
  line-height: 1.6;
  color: #444;
}

.resource-row .btn {
  margin-top: 0;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .resources-hero {
    padding: 7rem 1.5rem 4rem;
  }

  .resources-section {
    padding: 3rem 1rem;
  }

  .resource-row {
    grid-template-columns: 1fr;
  }

  .resource-row .btn {
    width: fit-content;
  }
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {
  .species-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .story-card {
    grid-template-columns: 1fr;
  }

  .story-card img {
    height: 240px;
  }
}

@media (max-width: 800px) {
  nav {
    flex-wrap: wrap;
  }

  nav ul {
    flex-wrap: wrap;
  }

  .brand img {
    height: 50px;
  }

  .brand span {
    font-size: 1rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .help-cards {
    grid-template-columns: 1fr;
  }

  .donation-card,
  .volunteer-card {
    grid-column: span 1;
    max-width: 100%;
  }

  .news-card {
    grid-template-columns: 1fr;
  }

  .news-card img {
    height: 200px;
  }

  .resources-grid {
    grid-template-columns: 1fr;
  }

  .resource-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 700px) {
  .about-images {
    grid-template-columns: 1fr;
  }

  .about-img img {
    height: 220px;
  }
}

@media (max-width: 600px) {
  section {
    padding: 3rem 1rem;
  }

  .species-grid {
    grid-template-columns: 1fr;
  }

  .footer img {
    height: 90px;
  }
}

@media (max-width: 800px) {
  nav {
    justify-content: center;
    text-align: center;
    padding: 1rem;
  }

  .brand {
    width: 100%;
    justify-content: center;
  }

  nav ul {
    width: 100%;
    justify-content: center;
    gap: 0.8rem;
  }

  .language-switch {
    width: 100%;
    justify-content: center;
  }

  .hero {
    padding: 0 1.2rem;
  }

  .hero h1 {
    max-width: 90%;
    margin: 0 auto;
    text-align: center;
  }
}

/* =========================
   AJUSTES MÓVIL FINALES
========================= */

@media (max-width: 800px) {
  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  /* NAV móvil */
  nav {
    position: absolute;
    width: 100%;
    padding: 1rem;
    justify-content: center;
    text-align: center;
  }

  .brand {
    width: 100%;
    justify-content: center;
  }

  nav ul {
    width: 100%;
    justify-content: center;
    gap: 0.7rem;
  }

  nav ul a {
    font-size: 0.78rem;
  }

  .language-switch {
    width: 100%;
    justify-content: center;
  }

  /* HERO móvil */
  .hero {
    min-height: 100vh;
    width: 100%;
    max-width: none;
  }

  .hero h1 {
    font-size: 2rem;
    max-width: 90%;
  }

  /* AYUDA móvil */
  .help-cards {
    grid-template-columns: 1fr;
  }

  .help-card,
  .donation-card,
  .volunteer-card {
    width: auto;
    max-width: 100%;
    grid-column: auto;
    margin: 0;
    box-sizing: border-box;
  }

  .iban-number {
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    word-break: break-word;
  }

  /* CONTACTO móvil */
  .contact-section {
    padding: 4rem 1rem;
  }

  .contact-wrapper {
    max-width: 100%;
  }

  .contact-info {
    padding: 0;
  }

  .contact-info h2 {
    font-size: 2rem;
  }

  .contact-details {
    padding: 1.2rem;
    box-sizing: border-box;
  }

  .contact-links {
    justify-content: center;
  }

  /* RECURSOS móvil */
  .resources-hero {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    padding: 8rem 1rem 4rem;
  }

  .resources-hero h1 {
    font-size: 3rem;
  }

  .resources-hero p {
    font-size: 1.2rem;
  }

  .resources-section {
    padding: 3rem 1rem;
    box-sizing: border-box;
  }

  .resource-category-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .resource-category-card {
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
    padding: 1.5rem;
  }

  .resource-category-card h3 {
    font-size: 2rem;
  }
}

@media (max-width: 800px) {
  nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(20, 45, 35, 0.65);
    backdrop-filter: blur(10px);
    z-index: 9999;
  }

  body {
    padding-top: 0;
  }

  .hero,
  .resources-hero {
    padding-top: 8rem;
  }
}

@media (max-width: 800px) {
  nav ul a {
    font-size: 0.72rem;
  }

  .brand img {
    height: 42px;
  }

  .brand span {
    font-size: 0.95rem;
  }
}

@media (max-width: 800px) {
  .brand img {
    height: 58px;
  }

  .brand span {
    font-size: 1.25rem;
  }

  .species-card {
    height: 260px;
  }

  .species-card img {
    object-position: center;
  }
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
}

@media (max-width: 800px) {
  nav {
    justify-content: space-between;
  }

  .brand {
    width: auto;
  }

  .menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
}

@media (max-width: 800px) {
  nav {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
  }

  .brand {
    width: auto;
    justify-content: flex-start;
  }

  .brand img {
    height: 52px;
  }

  .brand span {
    font-size: 1.1rem;
  }

  .menu-toggle {
    display: block;
  }

  .language-switch {
    width: auto;
    justify-content: flex-end;
  }

  nav ul {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    margin-top: 0.8rem;
  }

  nav ul.show {
    display: flex;
  }
}
@media (max-width: 800px) {
  nav {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 0.7rem;
    padding: 0.8rem 1rem;
  }

  .brand {
    width: auto;
    justify-content: flex-start;
  }

  .brand img {
    height: 64px;
  }

  .brand span {
    font-size: 1.25rem;
  }

  .language-switch {
    width: auto;
    justify-content: center;
    grid-column: 2;
    grid-row: 1;
  }

  .menu-toggle {
    display: block;
    grid-column: 3;
    grid-row: 1;
  }

  nav ul {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    margin-top: 0.8rem;
  }

  nav ul.show {
    display: flex;
  }
}
