* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* General Styles */
html, body {
  height: 100%; /* Full height of the viewport */
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

body {
  font-family: 'Arial', sans-serif;
  background-color: #f9f9f9;
  color: #333;
}

/* Header Styles */
header {
    background: #3b1b00e8;
    color: #fff;
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

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

.nav-links {
    list-style: none;
    display: flex; /* Por defecto, se muestra en pantallas grandes */
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.nav-links li {
    display: inline;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #FFD700;
}

/* Hamburger Menu */
.hamburger-menu {
    display: flex; /* Mostrar el botón hamburguesa en pantallas pequeñas */
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100; /* Asegurarse de que esté encima del menú */
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease; /* Animación suave */
}
/* Transformaciones para la "X" */
.hamburger-menu.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg); /* Línea superior */
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0; /* Ocultar la línea del medio */
  transform: scale(0); /* Asegurarse de que desaparezca completamente */
}

.hamburger-menu.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg); /* Línea inferior */
}

/* Ajustes para asegurarse de que las líneas estén alineadas */
.hamburger-menu span {
  position: relative;
  transform-origin: center; /* Punto de rotación en el centro */
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav-links {
        display: flex; /* Cambiar a flex para que funcione con transform */
        flex-direction: column;
        position: fixed; /* Fijo para que se mantenga en su lugar */
        top: 0;
        right: 0;
        height: 100%; /* Ocupa toda la altura de la pantalla */
        background: #3b1b00e8;
        width: 300px; /* Ancho del menú desplegable */
        padding: 2rem 0; /* Espaciado interno */
        text-align: center; /* Centrar el texto */
        box-shadow: -4px 0 8px rgba(0, 0, 0, 0.1);
        transform: translateX(100%); /* Ocultar fuera de la pantalla por la derecha */
        transition: transform 0.4s ease-in-out; /* Animación suave */
        z-index: 1000; /* Asegurarse de que esté encima de otros elementos */
    }

    .nav-links.active {
        transform: translateX(0); /* Mostrar el menú al activarlo */
    }

    .nav-links li {
        margin: 1rem 0; /* Espaciado entre los enlaces */
        opacity: 0; /* Ocultar inicialmente */
        transform: translateX(50px); /* Mover hacia la derecha inicialmente */
        transition: transform 0.4s ease, opacity 0.4s ease; /* Animación suave */
    }

    .nav-links.active li {
        opacity: 1; /* Mostrar los enlaces */
        transform: translateX(0); /* Moverlos al centro */
    }

    .nav-links a {
        color: #fff;
        text-decoration: none;
        font-weight: bold;
        font-size: 1.2rem; /* Tamaño de fuente más grande */
        transition: color 0.3s ease;
    }

    .nav-links a:hover {
        color: #FFD700; /* Cambiar color al pasar el mouse */
    }

    .hamburger-menu {
        display: flex; /* Mostrar el botón hamburguesa en pantallas pequeñas */
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1100; /* Asegurarse de que esté encima del menú */
    }

    .hamburger-menu span {
        display: block;
        width: 25px;
        height: 3px;
        background: #fff;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    header .nav-links {
        display: none; /* Ocultar en pantallas pequeñas */
    }

    header .nav-links.active {
        display: flex; /* Mostrar el menú cuando tenga la clase active */
    }
}

@media (min-width: 769px) {
    .hamburger-menu {
        display: none; /* Ocultar el botón hamburguesa en pantallas grandes */
    }

    .nav-links {
        display: flex; /* Mostrar los enlaces horizontalmente */
        flex-direction: row;
        position: static; /* Restablecer la posición */
        transform: none; /* Eliminar cualquier transformación */
        height: auto; /* Restablecer la altura */
        width: auto; /* Restablecer el ancho */
        padding: 0; /* Eliminar el padding */
        text-align: left; /* Alinear el texto a la izquierda */
        box-shadow: none; /* Eliminar la sombra */
    }

    .nav-links li {
        opacity: 1; /* Asegurarse de que los enlaces sean visibles */
        transform: none; /* Eliminar cualquier transformación */
        margin: 0; /* Restablecer el margen */
    }
}

/* Main Content */
main {
  flex: 1; /* Ensures the main content takes up available space */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
/* Card container grid layout */
/* Card container grid layout */
/* Card container grid layout */
.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
  gap: 20px; /* Space between cards */
  padding: 20px; /* Padding around the grid */
}

/* Style each card */
.card {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  height: 400px; /* Fixed height for all cards */
}


/* Style the card content */
.card-content {
  padding: 10px;
  flex-grow: 1; /* Allow content to grow */
}

/* Style the "See More" button */
.see-more-btn {
  background-color: #ff9800; /* Naranja principal */
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 12px 32px;
  cursor: pointer;
  margin: 18px auto 0 auto;
  width: 80%;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.see-more-btn:hover {
  background-color: #e68900; /* Naranja oscuro al pasar el mouse */
}

/* Placeholder Cards */
.card-placeholder {
  background-color: transparent;
  box-shadow: none;
  height: 400px; /* Same height as regular cards */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0;   /* Make placeholders fully invisible */
  pointer-events: none; /* (Optional) Prevent any mouse interactions */
}


.modal {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}



.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  cursor: pointer;
}

/* Footer */
footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
  margin-top: auto; /* Pushes the footer to the bottom */
}

/* Info Section Styles */
.info-section {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin: 2rem auto;
  padding: 2rem;
  max-width: 800px;
  text-align: center;
}

.info-section h2 {
  font-size: 2rem;
  color: #007BFF;
  margin-bottom: 1rem;
}

.info-section p {
  font-size: 1.2rem;
  color: #555;
  line-height: 1.6;
}

/* Button Styles */
.button {
  display: inline-block;
  background: #007BFF;
  color: #fff;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.button:hover {
  background: #0056b3;
}

/* Info Section Styles */
.info-section {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin: 2rem auto;
  padding: 2rem;
  max-width: 800px;
  text-align: center;
}

.info-section h2 {
  font-size: 2rem;
  color: #007BFF;
  margin-bottom: 1rem;
}

.info-section p {
  font-size: 1.2rem;
  color: #555;
  line-height: 1.6;
}

/* Form Styles */
.styled-form {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  max-width: 600px;
  margin: 2rem auto;
}

.styled-form label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #007BFF;
}

.styled-form input,
.styled-form textarea {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

.styled-form textarea {
  resize: vertical;
  min-height: 100px;
}

.styled-form button {
  display: inline-block;
  background: #007BFF;
  color: #fff;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
  border: none;
  cursor: pointer;
}

.styled-form button:hover {
  background: #0056b3;
}

/* Contact Info Section */
.info-section {
  width: 100%; /* Full width of the page */
  max-width: none; /* Remove any maximum width restrictions */
  margin: 0; /* Remove margins */
  padding: 0; /* Remove padding */
  text-align: center; /* Center-align text if needed */
}

/* Form Styles */
.styled-form {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  max-width: 600px;
  margin: 2rem auto;
}

.styled-form label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #007BFF;
}

.styled-form input,
.styled-form textarea {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

.styled-form textarea {
  resize: vertical;
  min-height: 100px;
}

.styled-form button {
  display: inline-block;
  background: #007BFF;
  color: #fff;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
  border: none;
  cursor: pointer;
}

.styled-form button:hover {
  background: #0056b3;
}

/* Navbar Styles */
.nav-links {
  list-style: none;
  display: flex;
  justify-content: center; /* Center the nav links */
  margin: 0;
  padding: 0;
  gap: 1.5rem;
  flex: 1; /* Allow the nav links to take up available space */
}

.nav-links + .login-btn {
  margin-left: auto; /* Push the login button to the far right */
}

/* Login Form Styles */
.styled-form {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  max-width: 400px;
  margin: 2rem auto;
}

.styled-form label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #007BFF;
}

.styled-form input {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

.styled-form button {
  display: inline-block;
  background: #007BFF;
  color: #fff;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
  border: none;
  cursor: pointer;
}

.styled-form button:hover {
  background: #0056b3;
}

/* Style for the "Find Us" section */
.info-section {
  margin-top: 40px; /* Add space above the section */
  text-align: center; /* Center-align the text */
}

/* Ensure the map container has margins */
#map-container {
  width: 90%; /* Slightly less than full width */
  margin: 0 auto; /* Center the map horizontally */
  padding: 0; /* Remove any padding */
  border: none; /* Remove border */
  overflow: hidden; /* Prevent overflow issues */
}

/* Ensure the iframe inside the map container spans the container */
#map-container iframe {
  width: 100%; /* Full width of the container */
  height: 500px; /* Adjust height as needed */
  display: block; /* Prevent inline spacing issues */
  border: none; /* Remove iframe border */
}

.admin-animal-row {
    margin: 10px 0;
    padding: 8px;
    border-bottom: 1px solid #eee;
}
.admin-animal-row button {
    margin-left: 10px;
}

.animal-details-flex {
    display: flex;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    margin: 40px auto 30px auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.10);
    padding: 48px 40px;
    align-items: flex-start;
}

.animal-details-img-col {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
}

.animal-img {
    width: 100%;
    max-width: 480px;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 1px 12px rgba(0,0,0,0.10);
    background: #eee;
}

.animal-details-small-images {
    display: flex;
    justify-content: center;
    gap: 10px; /* Espaciado entre las imágenes pequeñas */
}

.animal-img-small {
    cursor: pointer;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: transform 0.2s ease;
    margin: 10px;
    width: 100px;
}

.animal-img-small:hover {
    transform: scale(1.1); /* Efecto de ampliación al pasar el cursor */
}

.animal-details-info-col {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    padding: 0 10px;
}

.animal-details-info-col h2 {
    margin-top: 0;
    font-size: 2.5em;
    color: #ff9800; /* Naranja principal */
}

.animal-details-info-col p {
    margin: 16px 0;
    font-size: 1.25em;
    color: #444;
}

.back-btn {
    background: #ff9800; /* Naranja principal */
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 12px 36px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    margin-top: 28px;
    transition: background 0.2s;
}

.back-btn:hover {
    background: #e68900; /* Naranja oscuro */
}

.site-footer {
    background: linear-gradient(90deg, #232526 0%, #414345 100%);
    color: #fff;
    padding: 32px 0 20px 0;
    margin-top: 40px;
    font-size: 1.05em;
    border-top: 1px solid #222;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 20px;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.footer-social {
    display: flex;
    gap: 18px;
    margin-bottom: 8px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin: 14px 0; /* Más espacio arriba y abajo entre enlaces */
}

.footer-social .social-icon {
    width: 42px;
    height: 42px;
    filter: grayscale(25%) brightness(1.2);
    opacity: 0.85;
    transition: filter 0.2s, opacity 0.2s, transform 0.2s;
    margin-top: 10px;
}

.footer-social .social-icon:hover {
    filter: none;
    opacity: 1;
    transform: translateY(-3px) scale(1.08);
}

.footer-text {
    color: #ccc;
    font-size: 1em;
    text-align: center;
    letter-spacing: 0.02em;
}

.footer-logo {
    height: 50px;
}

/* Mejora la grid y centra en móvil */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  width: 100%;
  margin-bottom: 0; /* Menos separación con la parte de abajo */
  text-align: left;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  color: #fff; /* Color uniforme */
}

.footer-title {
  color: #FFD700;
  font-size: 1.1em;
  margin-bottom: 10px;
  font-weight: bold;
  letter-spacing: 0.02em;
}

.footer-desc {
  color: #ccc;
  font-size: 0.98em;
  margin-bottom: 10px;
  line-height: 1.5;
  text-align: left;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  font-size: 1em;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: #FFD700;
  text-decoration: underline;
}

/* Centra todo en móvil */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: center;
  }
  .footer-col {
    align-items: center;
    text-align: center;
  }
  .footer-desc {
    text-align: center;
  }
  .partner-logo {
        max-height: 70px; /* Tamaño reducido para móviles */
    }
}

.footer-divider {
  border: none;
  border-top: 1px solid #717171;
  margin: 10px 0 10px 0; /* Menos espacio arriba y abajo */
  width: 100%;
}
.footer-logos-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.footer-grant-text {
  color: #ccc;
  font-size: 0.98em;
  font-style: italic;
  text-align: center;
  margin-bottom: 6px;
  margin-top: 0;
  line-height: 1.5;
}


.site-footer {
    background: linear-gradient(90deg, #232526 0%, #414345 100%);
    color: #fff;
    padding: 24px 0 12px 0;
    margin-top: 40px;
    font-size: 1.05em;
    border-top: 1px solid #222;
}


.filter-bar {
    margin: 24px 0 16px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}
#species-filter {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #bbb;
    font-size: 1em;
}
/* Layout original para la página de colaboración */
.collab-section {
    max-width: 1100px;
    margin: 48px auto 0 auto;
    padding: 0 24px 48px 24px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.collab-block {
    display: flex;
    align-items: stretch; /* Make children fill the block vertically */
    gap: 40px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    overflow: hidden;
    flex-wrap: wrap;
    min-height: 320px; /* Or your preferred minimum height */
}

.collab-block.reverse {
    flex-direction: row-reverse;
}

.collab-img-col {
    min-width: 260px;
    max-width: 420px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    background: #fff8ed;
    height: 100%;
}

.collab-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 0;
    display: block;
}

.collab-content-col {
    flex: 2 1 400px;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.collab-title {
    color: #ff9800;
    font-size: 2rem;
    margin-bottom: 18px;
    font-weight: bold;
}

.collab-text {
    font-size: 1.15rem;
    color: #444;
    margin-bottom: 28px;
    line-height: 1.7;
    text-align: justify;
}

.collab-btn {
    display: inline-block;
    background: #ff9800;
    color: #fff;
    padding: 14px 38px;
    border-radius: 24px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: none;
    cursor: pointer;
    text-align: center;
}
.collab-btn:hover {
    background: #e68900;
}

/* Desktop (>=908px): keep as is (no changes needed) */

/* Mobile/tablet (<908px): make the image behave as if it's not inside a div */
@media (max-width: 907px) {
    .collab-block,
    .collab-block.reverse {
        flex-direction: column;
        min-height: unset;
    }
    .collab-img-col {
        min-width: 0;
        max-width: 100%;
        height: auto;
        background: none;
        display: block;
        padding: 0;
    }
    .collab-img {
        width: 100%;
        height: auto;
        object-fit: contain;
        object-position: center;
        border-radius: 0;
        display: block;
        margin: 0 auto;
        margin-bottom: -40px; /* Add some space below the image */
    }
}

/* ...existing code... */
.hero-section {
    position: relative;
    background-image: url('/assets/img/hero-bg.jpg'); /* Cambia por tu imagen */
    background-size: cover;
    background-position: center;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    overflow: hidden;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1;
}
.hero-inner {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
    padding: 40px 20px;
}
.hero-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
}
.hero-desc {
    font-size: 1.2rem;
    margin-bottom: 24px;
}
.hero-btn {
    background: #ff9800;
    color: #fff;
    padding: 12px 32px;
    border-radius: 24px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s;
}
.hero-btn:hover {
    background: #e68900;
}

/* Puedes añadir esto al final de style.css si quieres diferenciar los botones de colaborar */
.hero-btn {
    display: inline-block;
    margin-top: 18px;
    background: #ff9800;
    color: #fff;
    padding: 12px 32px;
    border-radius: 24px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.hero-btn:hover {
    background: #e68900;
}

/* Cards Section */
.cards-section {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 24px;
    max-width: 320px;
    flex: 1 1 280px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}
.card-img {
  width: 100%; /* Full width */
  height: 150px; /* Fixed height */
  object-fit: cover; /* Ensure the image covers the area without distortion */
  border-bottom: 1px solid #ddd; /* Separate image from content */
}
.card-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #ff9800;
}
.card-text {
    font-size: 1rem;
    color: #444;
}
/* Puedes añadir esto al final de style.css */
.about-section {
    background: #fff8ed;
    padding: 48px 0 40px 0;
    margin-top: 32px;
}
.about-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.about-flex {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 32px;
    justify-content: flex-start;
}

.about-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}
.about-title {
    color: #ff9800;
    font-size: 2rem;
    margin-bottom: 32px;
    font-weight: bold;
    text-align: left;
}


.about-img {
    width: 340px;
    height: 390px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    background: #eee;
    flex-shrink: 0;
    margin: 0;
    display: block;
}

.about-text {
    flex: 1 1 0%;
    font-size: 1.1rem;
    color: #444;
    line-height: 1.7;
    min-width: 200px;
    max-width: 700px;
    margin: 0;
    text-align: justify;
}

@media (max-width: 900px) {
    .about-flex {
        flex-direction: column;
        text-align: center;
    }
    .about-img {
        width: 100%;
        max-width: 350px;
        height: 240px;
        margin-bottom: 20px;
        margin-left: auto;
        margin-right: auto;
    }
    .about-title {
        text-align: center;
    }
    .about-text {
        text-align: justify;
        margin: auto;
    }
}

/* Contact Page Styles */

.info-section h2 {
    font-size: 2rem;
    color: #ff9800; /* Naranja principal */
    margin-bottom: 16px;
    text-align: center;
}

.info-section p {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: 12px;
}

#map-container {
    width: 100%;
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}


.timeline-item {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.timeline-item h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}
.partner-logo {
    height: 100px;
    margin: 0 8px;
    vertical-align: middle;

    padding: 2px 8px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}

.privacy-title{
  padding: 10px;
  color: #ff9800;
}

.paragraph-privacy{
  padding: 10px;
  color: #555;
}

/* Añade al final de style.css */
.spaces-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  margin-bottom: 32px;
}
.space-card {
  background: #fafafa;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 20px 18px 18px 18px;
  max-width: 320px;
  flex: 1 1 260px;
  text-align: center;
  transition: box-shadow 0.2s;
}
.space-card:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}
.space-img {
  width: 100%;
  max-width: 240px;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 14px;
}
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow: hidden;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
    display: block;
    margin: auto;
    border-radius: 8px;
}

.modal-img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    display: block;
    margin: auto;
}

.close-btn {
    position: fixed; /* Cambiar a fixed para posicionarlo fuera de la imagen */
    top: 20px; /* Ajusta la posición vertical */
    right: 20px; /* Ajusta la posición horizontal */
    font-size: 24px;
    color: white; /* Cambiar el color para que sea visible sobre el fondo */
    cursor: pointer;
    z-index: 1100; /* Asegúrate de que esté por encima del modal */
}


@media (max-width: 767px) {
  .animal-details-flex {
    display: flex;
    flex-direction: column;
  }
  .animal-details-small-images.mobile-only { display: block; margin-top: 16px; }
  .animal-details-small-images.desktop-only { display: none; }
  .animal-name { order: 1; }
  .animal-main-img { order: 2; }
  .animal-description { order: 3; }
  .animal-meta { order: 4; }
  .social-message { order: 5; }
  .animal-details-small-images.mobile-only { order: 6; }
  .back-btn { order: 7; align-self: center; margin-top: 24px; }
  .animal-details-info-col,
  .animal-details-img-col {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }
  .animal-details-img-col {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

.back-btn.desktop-only { display: block; }
.back-btn.mobile-only { display: none; }

@media (max-width: 767px) {
  .back-btn.desktop-only { display: none; }
  .back-btn.mobile-only { display: block; margin-top: 24px; align-self: center; }
}