
        :root {
            --beige-bg: #FAF8F4;
            --verde-principal: #2E7D32;
            --verde-hover: #1B5E20;
            --texto-gris: #2E2E2E;
            --gris-claro: #E0E0E0;
            --blanco: #FFFFFF;
            --sombra: 0 2px 8px rgba(0, 0, 0, 0.1);
            --border-radius: 12px;
            --glass-bg: rgba(255, 255, 255, 0.7);
            --glass-border: rgba(255, 255, 255, 0.3);
            --error-color: #d32f2f;
            --success-color: #388e3c;
            --warning-color: #F57C00;
            --info-color: #1976D2;
            --heart-color: #E91E63;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Poppins', sans-serif;
            background-color: var(--beige-bg);
            color: var(--texto-gris);
            line-height: 1.6;
            padding-top: 70px;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 24px;
            font-weight: 600;
            color: var(--verde-principal);
            text-decoration: none;
        }

        .logo-img {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
        }

        .logo-icon {
            width: 40px;
            height: 40px;
            border-radius: 8px;
            border: 2px solid var(--verde-principal);   /* Nuevo: solo borde */
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--verde-principal); /* Así los iconos o imagen también usan ese color si es SVG */
            background: transparent;       /* Por si acaso */
        }

        .page-title {
            font-size: 24px;
            font-weight: 600;
            color: var(--texto-gris);
        }

        .nav-btn {
            padding: 8px 20px;
            border-radius: 20px;
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s ease;
            border: 2px solid var(--verde-principal);
            color: var(--verde-principal);
            background: transparent;
        }

        .nav-btn:hover {
            background: var(--verde-principal);
            color: white;
        }

        /* Contenedor principal */
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }

        /* Hero Section */
        .hero-section {
            background: white;
            border-radius: var(--border-radius);
            padding: 60px 40px;
            margin-bottom: 40px;
            box-shadow: var(--sombra);
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .hero-section::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -10%;
            width: 300px;
            height: 300px;
            background: var(--heart-color);
            opacity: 0.1;
            border-radius: 50%;
        }

        .hero-section::after {
            content: '';
            position: absolute;
            bottom: -30%;
            left: -5%;
            width: 200px;
            height: 200px;
            background: var(--verde-principal);
            opacity: 0.1;
            border-radius: 50%;
        }

        .hero-content {
            position: relative;
            z-index: 1;
        }

        .hero-title {
            font-size: 42px;
            font-weight: 700;
            color: var(--texto-gris);
            margin-bottom: 20px;
        }

        .hero-subtitle {
            font-size: 20px;
            color: #666;
            margin-bottom: 40px;
            font-weight: 300;
        }

        .stats-row {
            display: flex;
            justify-content: center;
            gap: 60px;
            flex-wrap: wrap;
        }

        .stat-item {
            text-align: center;
        }

        .stat-number {
            font-size: 48px;
            font-weight: 700;
            color: var(--verde-principal);
            display: block;
            line-height: 1;
        }

        .stat-label {
            font-size: 16px;
            color: #666;
            margin-top: 5px;
        }

        /* Filtros */
        .filters-section {
            background: white;
            border-radius: var(--border-radius);
            padding: 25px;
            margin-bottom: 30px;
            box-shadow: var(--sombra);
        }

        .filters-container {
            display: flex;
            gap: 15px;
            align-items: center;
            flex-wrap: wrap;
        }

        .filter-label {
            font-weight: 500;
            color: var(--texto-gris);
        }

        .filter-chips {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            flex: 1;
        }

        .filter-chip {
            padding: 8px 20px;
            background: var(--beige-bg);
            border: 2px solid transparent;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .filter-chip:hover {
            border-color: var(--verde-principal);
        }

        .filter-chip.active {
            background: var(--verde-principal);
            color: white;
            border-color: var(--verde-principal);
        }

        .filter-chip span {
            margin-right: 5px;
        }

        /* Galería principal */
        .gallery-section {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 30px;
            margin-bottom: 40px;
        }

        .rescue-card {
            background: white;
            border-radius: var(--border-radius);
            overflow: hidden;
            box-shadow: var(--sombra);
            transition: all 0.3s ease;
            cursor: pointer;
            position: relative;
        }

        .rescue-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        }

        .rescue-image-container {
            position: relative;
            height: 250px;
            overflow: hidden;
        }

        .rescue-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }

        .rescue-card:hover .rescue-image {
            transform: scale(1.05);
        }

        .rescue-badge {
            position: absolute;
            top: 15px;
            left: 15px;
            background: var(--success-color);
            color: white;
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .rescue-content {
            padding: 25px;
        }

        .rescue-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 15px;
        }

        .rescue-title {
            font-size: 20px;
            font-weight: 600;
            color: var(--texto-gris);
            margin-bottom: 5px;
        }

        .rescue-date {
            font-size: 14px;
            color: #999;
        }

        .rescue-type {
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 24px;
        }

        .rescue-story {
            font-size: 15px;
            color: #666;
            line-height: 1.6;
            margin-bottom: 20px;
        }

        .rescue-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 20px;
            border-top: 1px solid var(--gris-claro);
        }

        .rescue-author {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .author-avatar {
            width: 35px;
            height: 35px;
            border-radius: 50%;
            background: var(--verde-principal);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
        }

        .author-name {
            font-size: 14px;
            color: var(--texto-gris);
            font-weight: 500;
        }

        .rescue-likes {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 6px 12px;
            background: var(--beige-bg);
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .rescue-likes:hover {
            background: rgba(233, 30, 99, 0.1);
        }

        .rescue-likes.liked {
            background: rgba(233, 30, 99, 0.1);
            color: var(--heart-color);
        }

        .rescue-likes.liked .heart-icon {
            animation: heartBeat 0.5s ease;
        }

        @keyframes heartBeat {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.3); }
        }

        /* Modal de historia completa */
        .story-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.8);
            z-index: 100000;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .story-modal.active {
            display: flex;
        }

        .modal-content {
            background: white;
            border-radius: var(--border-radius);
            max-width: 800px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
        }

        .modal-image {
            width: 100%;
            height: 400px;
            object-fit: cover;
        }

        .modal-body {
            padding: 40px;
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 30px;
        }

        .modal-title {
            font-size: 32px;
            font-weight: 700;
            color: var(--texto-gris);
        }

        .close-modal {
            position: absolute;
            top: 20px;
            right: 20px;
            width: 40px;
            height: 40px;
            background: white;
            border-radius: 50%;
            border: none;
            cursor: pointer;
            font-size: 24px;
            color: #666;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: var(--sombra);
            transition: all 0.3s ease;
        }

        .close-modal:hover {
            transform: scale(1.1);
        }

        .story-full {
            font-size: 16px;
            line-height: 1.8;
            color: #666;
            margin-bottom: 30px;
        }

        .story-timeline {
            margin-top: 40px;
        }

        .timeline-title {
            font-size: 20px;
            font-weight: 600;
            margin-bottom: 20px;
            color: var(--texto-gris);
        }

        .timeline-item {
            display: flex;
            gap: 20px;
            margin-bottom: 20px;
            position: relative;
        }

        .timeline-marker {
            width: 40px;
            height: 40px;
            background: var(--verde-principal);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            position: relative;
            z-index: 1;
        }

        .timeline-item:not(:last-child)::before {
            content: '';
            position: absolute;
            left: 19px;
            top: 40px;
            bottom: -20px;
            width: 2px;
            background: var(--gris-claro);
        }

        .timeline-content {
            flex: 1;
            padding-bottom: 20px;
        }

        .timeline-date {
            font-size: 14px;
            color: #999;
            margin-bottom: 5px;
        }

        .timeline-description {
            color: var(--texto-gris);
        }

        /* Sección de compartir historia */
        .share-section {
            background: linear-gradient(135deg, var(--verde-principal), var(--verde-hover));
            color: white;
            border-radius: var(--border-radius);
            padding: 60px 40px;
            text-align: center;
            margin-bottom: 40px;
            position: relative;
            overflow: hidden;
        }

        .share-section::before {
            content: '✨';
            position: absolute;
            top: 20px;
            right: 40px;
            font-size: 80px;
            opacity: 0.2;
        }

        .share-title {
            font-size: 32px;
            font-weight: 700;
            margin-bottom: 20px;
        }

        .share-description {
            font-size: 18px;
            margin-bottom: 30px;
            opacity: 0.9;
        }

        .share-btn {
            padding: 15px 40px;
            background: white;
            color: var(--verde-principal);
            border: none;
            border-radius: 30px;
            font-size: 18px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-block;
        }

        .share-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        }

        /* Paginación */
        .pagination {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-top: 40px;
        }

        .page-btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: white;
            border: 2px solid var(--gris-claro);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 500;
            color: var(--texto-gris);
        }

        .page-btn:hover {
            border-color: var(--verde-principal);
            color: var(--verde-principal);
        }

        .page-btn.active {
            background: var(--verde-principal);
            border-color: var(--verde-principal);
            color: white;
        }

        .page-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        /* Empty state */
        .empty-state {
            text-align: center;
            padding: 80px 20px;
            background: white;
            border-radius: var(--border-radius);
            box-shadow: var(--sombra);
        }

        .empty-icon {
            font-size: 80px;
            margin-bottom: 20px;
            opacity: 0.3;
        }

        .empty-title {
            font-size: 24px;
            font-weight: 600;
            color: var(--texto-gris);
            margin-bottom: 10px;
        }

        .empty-description {
            font-size: 16px;
            color: #666;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .page-title {
                display: none;
            }

            .hero-title {
                font-size: 32px;
            }

            .hero-section {
                padding: 40px 20px;
            }

            .stats-row {
                gap: 30px;
            }

            .gallery-section {
                grid-template-columns: 1fr;
            }

            .modal-image {
                height: 250px;
            }

            .modal-body {
                padding: 20px;
            }

            .modal-title {
                font-size: 24px;
            }

            .share-section {
                padding: 40px 20px;
            }

            .share-title {
                font-size: 24px;
            }
        }

        /* Animaciones */
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .rescue-card {
            animation: fadeIn 0.5s ease;
        }

        /* Iconos */
        .icon-paw::before { content: "🐾"; }
        .icon-check::before { content: "✓"; }
        .icon-heart::before { content: "❤️"; }
        .icon-dog::before { content: "🐕"; }
        .icon-cat::before { content: "🐈"; }
        .icon-bird::before { content: "🦜"; }
        .icon-all::before { content: "🌟"; }