/* Añadir/modificar los estilos de la galería */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.gallery-item {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #f5f5f5;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* Gallery Filter - Updated */
.gallery-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
    gap: 10px;
}

.category-btn {
    padding: 8px 20px;
    background-color: #e0e0e0;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-btn.active,
.category-btn:hover {
    background-color: var(--primary);
    color: white;
}

/* Gallery Management System - Updated */
.gallery-upload {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

body.admin-mode .gallery-upload {
    display: flex;
}

.gallery-upload:hover {
    transform: scale(1.1);
    background-color: var(--secondary);
}

/* Gallery Modal - Updated */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.gallery-modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.gallery-preview {
    width: 100%;
    height: 300px;
    border: 2px dashed #ccc;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Gallery Item Actions - Updated */
.gallery-item-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-actions {
    opacity: 1;
}

.gallery-item-action {
    width: 35px;
    height: 35px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 16px;
}

.gallery-item-action:hover {
    background: var(--primary);
    transform: scale(1.1);
}

/* Lightbox - Updated */
.lightbox {
    display: none;
    position: fixed;
    z-index: 3000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 20px;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    margin: auto;
    display: block;
    object-fit: contain;
}

.lightbox-caption {
    color: white;
    text-align: center;
    padding: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    color: white;
    font-size: 30px;
    cursor: pointer;
    position: absolute;
    transition: all 0.3s ease;
}

.lightbox-close {
    top: 20px;
    right: 20px;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: var(--primary);
    transform: scale(1.1);
}

/* Estilos para el formulario de carga */
.gallery-upload-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

.gallery-preview {
    width: 100%;
    height: 300px;
    border: 2px dashed #ccc;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
}

.gallery-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* El resto de los estilos permanecen igual */

/* Existing styles remain unchanged */

/* Base styles */
:root {
    --primary: #4a7c59;
    --secondary: #f4845f;
    --tertiary: #f7b267;
    --light: #a9a9a9; /* Cambiado a un tono gris claro */
    --dark: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header styles */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    margin-right: 15px;
    border-radius: 50%;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 700;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    font-weight: 500;
    position: relative;
}

nav ul li a.active {
    color: var(--secondary);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero section */
.hero {
    height: 80vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('hero-image.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 90px;
}

.hero-content {
    max-width: 800px;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--secondary);
    color: white;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* About section */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
    position: relative;
    margin-bottom: 20px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background-color: var(--secondary);
}

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

.about-text {
    flex: 1;
    padding-right: 40px;
    min-width: 300px;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Services section */
.services {
    background-color: #e8e8e8; /* Cambiado a un tono gris más claro para la sección de servicios */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.service-content {
    padding: 25px;
}

.service-content h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* Adoption section */
.adoption-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.animal-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.animal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.animal-image {
    height: 250px;
    background-size: cover;
    background-position: center;
}

.animal-content {
    padding: 20px;
}

.animal-content h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.animal-content p {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.animal-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.animal-info span {
    font-size: 0.9rem;
    color: var(--dark);
    background-color: #f5f5f5;
    padding: 5px 10px;
    border-radius: 20px;
}

/* Testimonials section */
.testimonials {
    background-color: #e8e8e8; /* Cambiado a un tono gris más claro para la sección de testimonios */
    text-align: center;
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.testimonial {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin: 20px 0;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary);
}

/* Volunteer section */
.volunteer {
    text-align: center;
}

.volunteer p {
    max-width: 800px;
    margin: 0 auto 30px;
}

.volunteer-form {
    max-width: 600px;
    margin: 0 auto;
}

/* Contact section */
.contact {
    background-color: var(--primary);
    color: white;
}

.contact h2, .contact h3 {
    color: white;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.contact-info, .contact-form {
    flex: 1 1 300px;
    padding: 20px;
}

.contact-info h3, .contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.contact-method {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
}

.contact-icon {
    margin-right: 15px;
    font-size: 1.2rem;
}

.contact-text {
    flex: 1;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input {
    width: auto;
    margin-right: 10px;
}

.btn-white {
    background-color: white;
    color: var(--primary);
}

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

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Social media section */
.social-media {
    background-color: var(--dark);
    padding: 30px 0;
    text-align: center;
    color: white;
}

.social-icons {
    margin-top: 20px;
}

.social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin: 0 10px;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--secondary);
    transform: translateY(-5px);
}

/* Footer */
footer {
    background-color: #222;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-section {
    flex: 1 1 300px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--tertiary);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ddd;
}

.footer-section ul li a:hover {
    color: var(--secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
}

.footer-bottom p {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: #ddd;
}

/* CTA Section */
.cta {
    background-color: var(--tertiary);
    text-align: center;
    color: white;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-buttons {
    margin-top: 30px;
}

.cta-buttons .btn {
    margin: 0 10px 10px;
}

/* Page Hero */
.page-hero {
    height: 50vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('page-hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 90px;
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* Process Steps */
.process-steps {
    max-width: 800px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    margin-bottom: 40px;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: 20px;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

/* Requirements */
.requirements-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.requirements-list {
    flex: 2;
    padding-right: 40px;
}

.requirements-note {
    flex: 1;
    min-width: 300px;
    background-color: #e8e8e8; /* Cambiado a un tono gris más claro */
    padding: 30px;
    border-radius: 10px;
    margin-left: 20px;
}

.requirement {
    display: flex;
    margin-bottom: 30px;
}

.requirement-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.requirement-text {
    flex: 1;
}

.requirement-text h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 10px;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    height: 250px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* Gallery Filter */
.gallery-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.category-btn {
    padding: 8px 20px;
    margin: 0 5px 10px;
    background-color: #e0e0e0; /* Cambiado a un tono gris más claro */
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn.active, .category-btn:hover {
    background-color: var(--primary);
    color: white;
}

/* FAQ */
.faq-item {
    margin-bottom: 20px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
    background-color: white;
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin: 0;
}

.faq-toggle {
    color: var(--primary);
    font-size: 1.2rem;
}

.faq-answer {
    background-color: #f9f9f9;
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer.active {
    padding: 20px;
}

/* Donation */
.donation-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.donation-option {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.option-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}

.donation-amount {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 20px 0;
}

.donation-amount span {
    padding: 10px 15px;
    margin: 5px;
    background-color: #e8e8e8; /* Cambiado a un tono gris más claro */
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.donation-amount span.active, .donation-amount span:hover {
    background-color: var(--primary);
    color: white;
}

.bank-details {
    text-align: left;
    margin: 20px 0;
    padding: 15px;
    background-color: #e8e8e8; /* Cambiado a un tono gris más claro */
    border-radius: 5px;
}

/* Material Donations */
.material-donations-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.material-donations-text {
    flex: 2;
    padding-right: 40px;
}

.material-donations-image {
    flex: 1;
    min-width: 300px;
}

.material-donations-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.material-donations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.material-donation-category {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.material-donation-category h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* Impact */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
}

.impact-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
}

.impact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.impact-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
}

.impact-card h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 15px;
}

/* Tax Benefits */
.tax-benefits-table {
    width: 100%;
    margin: 30px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.tax-benefits-row {
    display: flex;
}

.tax-benefits-row.header {
    background-color: var(--primary);
    color: white;
}

.tax-benefits-cell {
    flex: 1;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.tax-benefits-row.header .tax-benefits-cell {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.tax-note {
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 20px;
}

/* Emergency */
.emergency-section {
    background-color: #e8e8e8; /* Cambiado a un tono gris más claro */
}

.emergency-content {
    display: flex;
    align-items: center;
    background-color: #fff3cd;
    border-left: 5px solid #ffc107;
    padding: 30px;
    border-radius: 5px;
}

.emergency-icon {
    font-size: 3rem;
    color: #ffc107;
    margin-right: 30px;
}

.emergency-text h2 {
    color: #856404;
    margin-bottom: 15px;
}

.emergency-contacts {
    margin-top: 20px;
    background-color: white;
    padding: 15px;
    border-radius: 5px;
}

/* Map */
.map-container {
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.directions {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.directions h3 {
    color: var(--primary);
    margin-bottom: 20px;
    text-align: center;
}

.directions-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.direction {
    flex: 1 1 300px;
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 0 15px;
}

.direction-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.direction-text h4 {
    color: var(--primary);
    margin-bottom: 10px;
}

/* Roles */
.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.role-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.role-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.role-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.role-content {
    padding: 25px;
}

.role-content h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.role-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.role-content p {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* Sponsorship */
.sponsorship-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.sponsorship-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.sponsorship-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.sponsorship-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.sponsorship-content {
    padding: 25px;
}

.sponsorship-content h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.sponsorship-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.sponsorship-info span {
    font-size: 0.9rem;
    color: var(--dark);
    background-color: #e8e8e8; /* Cambiado a un tono gris más claro */
    padding: 5px 10px;
    border-radius: 20px;
}

.sponsorship-needs {
    background-color: #e8e8e8; /* Cambiado a un tono gris más claro */
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
}

.sponsorship-needs h4 {
    color: var(--primary);
    margin-bottom: 10px;
}

.sponsorship-cost {
    margin: 15px 0;
    font-size: 1.1rem;
}

/* Additional Services */
.additional-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.additional-service {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
}

.additional-service:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.team-member {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.member-image {
    height: 250px;
    background-size: cover;
    background-position: center;
}

.member-info {
    padding: 20px;
}

.member-info h3 {
    color: var(--primary);
    margin-bottom: 5px;
}

.member-role {
    color: var(--secondary);
    font-weight: 500;
    margin-bottom: 15px;
    display: block;
}

/* Values */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.value-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.value-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}

.value-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

/* Other Methods */
.other-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.method-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
}

.method-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.method-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}

.method-highlight {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    margin: 15px 0;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-40 {
    margin-top: 40px;
}

/* Responsive design */
@media (max-width: 992px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    nav {
        width: 100%;
        display: none;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin: 10px 0;
        margin-left: 0;
    }
    
    .mobile-toggle {
        display: block;
        position: absolute;
        top: 25px;
        right: 20px;
    }
    
    .hero h2 { 
        font-size: 2.5rem; 
    }
    
    .about-content, .contact-content, .material-donations-content {
        flex-direction: column;
    }
    
    .about-text, .material-donations-text {
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .process-step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        margin: 0 auto 20px;
    }
    
    .requirement {
        flex-direction: column;
        text-align: center;
    }
    
    .requirement-icon {
        margin: 0 auto 20px;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 15px;
    }
    
    .hero h2 { 
        font-size: 2rem; 
    }
    
    .hero p { 
        font-size: 1rem; 
    }
    
    .btn {
        padding: 10px 20px;
    }
    
    .section { 
        padding: 60px 0; 
    }
    
    .section-header h2 { 
        font-size: 2rem; 
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-section {
        margin-bottom: 30px;
    }
    
    .requirements-content {
        flex-direction: column;
    }
    
    .requirements-note {
        margin-left: 0;
        margin-top: 30px;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .emergency-content {
        flex-direction: column;
        text-align: center;
    }
    
    .emergency-icon {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .direction {
        flex-direction: column;
        text-align: center;
    }
    
    .direction-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .tax-benefits-table {
        overflow-x: auto;
    }
    
    .section-header h2 { 
        font-size: 2rem; 
    }
    .requirements-content {
        flex-direction: column;
    }
    .requirements-note {
        margin-left: 0;
        margin-top: 30px;
    }
    .material-donations-text {
        padding-right: 0;
        margin-bottom: 30px;
    }
    .material-donations-content {
        flex-direction: column;
    }
    .tax-benefits-cell {
        padding: 10px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .btn { 
        padding: 10px 20px; 
        font-size: 0.8rem; 
    }
    .hero h2, .page-hero h1 { 
        font-size: 1.5rem; 
    }
    .section-header h2 { 
        font-size: 1.5rem; 
    }
    .adoption-form, .volunteer-form, .sponsorship-form {
        padding: 20px;
    }
    .tax-benefits-row {
        flex-direction: column;
    }
    .tax-benefits-cell {
        border-bottom: 1px solid #ddd;
    }
    .tax-benefits-row.header .tax-benefits-cell {
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }
}

/* Admin login modal y estilos de overlay de carga de imagen */
#admin-login-btn {
    padding: 8px 12px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#admin-login-btn:hover {
    background-color: var(--secondary);
}

.admin-login-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0,0,0,0.6);
}

.admin-login-modal .modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 4px;
    width: 300px;
    text-align: center;
}

.admin-login-modal .modal-content input {
    width: 90%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
}

.admin-login-modal .modal-content button {
    padding: 10px 20px;
    cursor: pointer;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 5px;
}

.admin-login-modal .close {
    float: right;
    font-size: 28px;
    cursor: pointer;
}

/* Estilo para el enlace de admin en el footer */
.admin-link {
    font-size: 0.9em;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.admin-link:hover {
    opacity: 1;
    text-decoration: none;
}

/* Estilos para el overlay de carga en modo admin */
.admin-upload-container {
    position: relative;
}

.admin-upload-container .upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

body.admin-mode .admin-upload-container:hover .upload-overlay {
    display: flex;
}

/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-caption {
    margin: auto;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: white;
    padding: 10px 0;
    height: 150px;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
}

.lightbox-next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Gallery Management System */
.gallery-upload {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

body.admin-mode .gallery-upload {
    display: flex;
}

.gallery-upload:hover {
    transform: scale(1.1);
    background-color: var(--secondary);
}

.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.gallery-modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.gallery-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark);
}

.gallery-upload-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gallery-preview {
    width: 100%;
    height: 300px;
    border: 2px dashed #ccc;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.gallery-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.gallery-preview-placeholder {
    text-align: center;
    color: #666;
}

.gallery-preview-placeholder i {
    font-size: 48px;
    margin-bottom: 10px;
}

.gallery-form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.gallery-form-group label {
    font-weight: 600;
    color: var(--dark);
}

.gallery-form-group input,
.gallery-form-group textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

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

.gallery-submit-btn {
    background-color: var(--primary);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.gallery-submit-btn:hover {
    background-color: var(--secondary);
}

/* Gallery Grid Enhancements */
.gallery-item {
    position: relative;
}

.gallery-item-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: none;
    gap: 5px;
}

body.admin-mode .gallery-item-actions {
    display: flex;
}

.gallery-item-action {
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item-action:hover {
    background: var(--primary);
}

/* Cookie Consent Banner styles remain unchanged... */