/* ========================================
   FUNDVISA - CSS UNIFICADO
   Estilos globales para todas las páginas
   ======================================== */

/* ========================================
   VARIABLES GLOBALES
   ======================================== */
:root {
    --color-verde: #3BB54A;
    --color-azul: #005B9A;
    --color-amarillo: #FFD700;
    --color-gris-oscuro: #333333;
    --color-fondo-claro: #F8F9FA;
    --degradado-azul-verde: linear-gradient(135deg, var(--color-azul) 0%, var(--color-verde) 100%);
    --degradado-verde-azul: linear-gradient(135deg, var(--color-verde) 0%, var(--color-azul) 100%);
    --sombra-suave: 0 10px 30px rgba(0, 0, 0, 0.08);
    --sombra-media: 0 15px 40px rgba(0, 0, 0, 0.12);
    --sombra-fuerte: 0 20px 60px rgba(0, 0, 0, 0.15);
    --borde-redondeado: 16px;
    --transicion-rapida: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   RESET Y BASE
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--color-gris-oscuro);
    overflow-x: hidden;
    line-height: 1.7;
    background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

/* ========================================
   NAVBAR PREMIUM
   ======================================== */
.navbar {
    padding: 18px 0;
    transition: var(--transicion-rapida);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 91, 154, 0.1);
}

.navbar-brand img {
    max-height: 60px;
    transition: var(--transicion-rapida);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.navbar.scrolled .navbar-brand img {
    max-height: 48px;
}

.nav-link {
    font-weight: 500;
    position: relative;
    margin: 0 8px;
    padding: 8px 16px !important;
    transition: var(--transicion-rapida);
    color: var(--color-gris-oscuro);
    font-size: 15px;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 50%;
    background: var(--degradado-azul-verde);
    transition: var(--transicion-rapida);
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link:hover {
    color: var(--color-azul);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}

/* ========================================
   BOTONES PREMIUM
   ======================================== */
.btn-verde {
    background: var(--color-verde);
    border: none;
    color: white;
    font-weight: 600;
    padding: 16px 40px;
    border-radius: 50px;
    transition: var(--transicion-rapida);
    box-shadow: 0 8px 25px rgba(59, 181, 74, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-size: 16px;
    letter-spacing: 0.3px;
}

.btn-verde::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--color-azul);
    transition: var(--transicion-rapida);
    z-index: -1;
    border-radius: 50px;
}

.btn-verde:hover::before {
    width: 100%;
}

.btn-verde:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(59, 181, 74, 0.4);
}

/* ========================================
   HERO SECTION (INDEX)
   ======================================== */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    background: url('../img/header.png') no-repeat center center;
    background-size: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 91, 154, 0.85) 0%, rgba(59, 181, 74, 0.75) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
    animation: fadeInUp 1.2s ease-out;
}

.hero-section h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 24px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

.hero-section p {
    font-size: 1.35rem;
    margin-bottom: 40px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-weight: 300;
    line-height: 1.8;
}

/* ========================================
   PAGE HERO (GALERÍA Y OTRAS PÁGINAS)
   ======================================== */
.page-hero {
    position: relative;
    padding: 180px 0 100px;
    background: var(--degradado-azul-verde);
    color: white;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,0 Q300,60 600,30 T1200,0 L1200,120 L0,120 Z" fill="rgba(255,255,255,0.05)"/></svg>') repeat-x bottom;
    background-size: 100% 120px;
    opacity: 0.3;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
}

.page-hero p {
    font-size: 1.25rem;
    font-weight: 300;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}


/* ========================================
   PROJECT HEADER (PÁGINA DE PROYECTO)
   ======================================== */
.project-header {
    position: relative;
    padding: 200px 0 120px;
    background: url('https://images.unsplash.com/photo-1541216446339-287841b95f13?q=80&w=2070&auto=format&fit=crop') no-repeat center center;
    background-size: cover;
    color: rgb(94, 236, 0);
    text-align: center;
    overflow: hidden;
}

.project-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 91, 154, 0.9) 0%, rgba(59, 181, 74, 0.8) 100%);
    z-index: 1;
}

.project-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,0 Q300,60 600,30 T1200,0 L1200,120 L0,120 Z" fill="white"/></svg>') no-repeat bottom;
    background-size: 100% 100px;
    z-index: 2;
}

.project-header .container {
    position: relative;
    z-index: 3;
}

.project-header h1 {
    font-size: 3.8rem;
    font-weight: 900;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.project-header p {
    font-size: 1.4rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-weight: 300;
    opacity: 0.95;
}

.project-meta {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.project-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    padding: 12px 24px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.project-meta-item i {
    font-size: 1.2rem;
}

/* ========================================
   SECCIONES GENERALES
   ======================================== */
section {
    padding: 100px 0;
    position: relative;
}

.main-content {
    padding: 100px 0;
}

.section-title {
    font-weight: 800;
    color: var(--color-azul);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    font-size: 2.5rem;
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -12px;
    width: 80px;
    height: 5px;
    background: var(--degradado-azul-verde);
    border-radius: 3px;
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    font-size: 1.15rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto 60px;
    font-weight: 400;
}

/* ========================================
   CARDS PREMIUM
   ======================================== */
.service-card,
.project-card {
    border: none;
    border-radius: var(--borde-redondeado);
    box-shadow: var(--sombra-suave);
    transition: var(--transicion-rapida);
    overflow: hidden;
    height: 100%;
    background: white;
    border: 1px solid rgba(0, 91, 154, 0.08);
}

.service-card:hover,
.project-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--sombra-fuerte);
    border-color: var(--color-verde);
}

.service-card .card-icon {
    font-size: 4rem;
    background: linear-gradient(135deg, var(--color-verde), var(--color-azul));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
    transition: var(--transicion-rapida);
}

.service-card:hover .card-icon {
    transform: scale(1.15) rotate(5deg);
}

.service-card .card-title {
    color: var(--color-azul);
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.project-card .card-img-top {
    height: 280px;
    object-fit: cover;
    transition: var(--transicion-rapida);
}

.project-card:hover .card-img-top {
    transform: scale(1.08);
}

/* ========================================
   ALBUM CARDS (GALERÍA)
   ======================================== */
.album-card {
    background: white;
    border-radius: var(--borde-redondeado);
    padding: 40px;
    margin-bottom: 50px;
    box-shadow: var(--sombra-suave);
    border: 1px solid rgba(0, 91, 154, 0.08);
    transition: var(--transicion-rapida);
}

.album-card:hover {
    box-shadow: var(--sombra-media);
    transform: translateY(-8px);
}

.album-title {
    color: var(--color-azul);
    font-weight: 700;
    font-size: 1.75rem;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.album-title i {
    color: var(--color-verde);
    font-size: 1.5rem;
}

.album-description {
    color: #666;
    font-size: 1.05rem;
    margin-bottom: 30px;
    line-height: 1.8;
}

/* Imgur Embed Styling */
blockquote.imgur-embed-pub {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--sombra-suave);
    transition: var(--transicion-rapida);
}

blockquote.imgur-embed-pub:hover {
    box-shadow: var(--sombra-media);
}

/* ========================================
   QUIENES SOMOS
   ======================================== */
#quienes-somos .feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: var(--degradado-azul-verde);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 8px 20px rgba(59, 181, 74, 0.25);
}

#quienes-somos .feature-icon i {
    font-size: 2rem;
    color: white;
}

/* ========================================
   GALERÍA
   ======================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--borde-redondeado);
    height: 280px;
    cursor: pointer;
    box-shadow: var(--sombra-suave);
    transition: var(--transicion-rapida);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--sombra-media);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--degradado-azul-verde);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transicion-rapida);
}

.gallery-item:hover .gallery-overlay {
    opacity: 0.92;
}

/* ========================================
   PROYECTO - CONTENIDO
   ======================================== */
.project-content {
    padding: 80px 0;
    background: white;
}

.project-content h3 {
    color: var(--color-azul);
    font-weight: 800;
    font-size: 2rem;
    margin: 50px 0 20px;
    position: relative;
    padding-bottom: 15px;
}

.project-content h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background: var(--degradado-azul-verde);
    border-radius: 2px;
}

.project-content h3:first-of-type {
    margin-top: 0;
}

.project-content p {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 24px;
}

.project-content ul {
    list-style: none;
    padding: 0;
}

.project-content ul li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 16px;
    color: #555;
    font-size: 1.05rem;
    line-height: 1.8;
}

.project-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    background: var(--degradado-azul-verde);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

/* Project Gallery */
.project-gallery {
    margin-top: 50px;
}

.project-gallery img {
    border-radius: var(--borde-redondeado);
    box-shadow: var(--sombra-suave);
    transition: var(--transicion-rapida);
    margin-bottom: 20px;
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.project-gallery img:hover {
    transform: translateY(-8px);
    box-shadow: var(--sombra-media);
}

/* ========================================
   PROJECT DETAILS CARD
   ======================================== */
.project-details-card {
    background: white;
    padding: 35px;
    border-radius: var(--borde-redondeado);
    box-shadow: var(--sombra-media);
    position: sticky;
    top: 100px;
    border: 2px solid rgba(0, 91, 154, 0.1);
    transition: var(--transicion-rapida);
}

.project-details-card:hover {
    box-shadow: var(--sombra-fuerte);
    border-color: var(--color-verde);
}

.project-details-card h4 {
    color: var(--color-azul);
    font-weight: 800;
    margin-bottom: 30px;
    font-size: 1.5rem;
    text-align: center;
}

.project-details-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.project-details-card li {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(59, 181, 74, 0.05);
    border-radius: 12px;
    border-left: 4px solid var(--color-verde);
    transition: var(--transicion-rapida);
}

.project-details-card li:hover {
    background: rgba(59, 181, 74, 0.1);
    transform: translateX(5px);
}

.project-details-card i {
    color: var(--color-verde);
    margin-right: 12px;
    font-size: 1.3rem;
    width: 24px;
    text-align: center;
}

.project-details-card strong {
    color: var(--color-azul);
    display: block;
    margin-bottom: 4px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   FORMULARIO DE CONTACTO
   ======================================== */
.contact-form .form-control {
    padding: 16px 20px;
    border-radius: 12px;
    border: 2px solid #e8e8e8;
    transition: var(--transicion-rapida);
    font-size: 15px;
}

.contact-form .form-control:focus {
    border-color: var(--color-verde);
    box-shadow: 0 0 0 4px rgba(59, 181, 74, 0.1);
}

.contact-form label {
    font-weight: 600;
    color: var(--color-azul);
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   INFO CARDS
   ======================================== */
.info-card {
    background: white;
    padding: 30px;
    border-radius: var(--borde-redondeado);
    box-shadow: var(--sombra-suave);
    margin-bottom: 20px;
    border-left: 4px solid var(--color-verde);
    transition: var(--transicion-rapida);
}

.info-card:hover {
    box-shadow: var(--sombra-media);
    transform: translateX(8px);
}

.info-card i {
    font-size: 1.8rem;
    color: var(--color-verde);
    margin-right: 16px;
}

/* ========================================
   STATS SECTIONS
   ======================================== */
.stats-section {
    background: var(--degradado-azul-verde);
    color: white;
    padding: 80px 0;
}

.stats-banner {
    background: var(--degradado-azul-verde);
    color: white;
    padding: 60px 0;
    margin: 80px 0;
    border-radius: var(--borde-redondeado);
}

.stat-item,
.impact-stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number,
.impact-stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    display: block;
    margin-bottom: 8px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.stat-label,
.impact-stat-label {
    font-size: 1rem;
    font-weight: 300;
    opacity: 0.95;
}

/* Impact Stats */
.impact-stats {
    background: var(--degradado-azul-verde);
    color: white;
    padding: 60px 40px;
    border-radius: var(--borde-redondeado);
    margin: 60px 0;
    box-shadow: var(--sombra-media);
}

/* ========================================
   FOOTER PREMIUM
   ======================================== */
.footer {
    background: linear-gradient(135deg, #2a2a2a 0%, var(--color-gris-oscuro) 100%);
    color: white;
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--degradado-azul-verde);
}

.footer-logo {
    max-height: 70px;
    margin-bottom: 24px;
    filter: brightness(1.2);
}

.footer .social-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 8px;
    transition: var(--transicion-rapida);
    font-size: 1.3rem;
}

.footer .social-icon:hover {
    background: var(--color-verde);
    transform: translateY(-8px) rotate(5deg);
    box-shadow: 0 10px 25px rgba(59, 181, 74, 0.4);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
    padding-left: 0;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transicion-rapida);
    position: relative;
    padding-left: 20px;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: 0;
    opacity: 0;
    transition: var(--transicion-rapida);
    color: var(--color-verde);
}

.footer-links a:hover {
    color: white;
    padding-left: 28px;
}

.footer-links a:hover::before {
    opacity: 1;
}

/* ========================================
   SCROLL TO TOP
   ======================================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: var(--degradado-azul-verde);
    color: white;
    border-radius: 16px;
    text-align: center;
    line-height: 56px;
    font-size: 22px;
    z-index: 1000;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transicion-rapida);
    box-shadow: var(--sombra-media);
}

.scroll-to-top:hover {
    transform: translateY(-8px);
    box-shadow: var(--sombra-fuerte);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   ANIMACIONES
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .page-hero h1 {
        font-size: 2.8rem;
    }
    
    .project-header {
        padding: 160px 0 100px;
    }
    
    .project-header h1 {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    section {
        padding: 70px 0;
    }
    
    .album-card {
        padding: 30px;
    }
    
    .project-details-card {
        position: relative;
        top: 0;
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.3rem;
    }
    
    .hero-section p {
        font-size: 1.15rem;
    }
    
    .page-hero {
        padding: 140px 0 80px;
    }
    
    .page-hero h1 {
        font-size: 2.2rem;
    }
    
    .project-header {
        padding: 140px 0 80px;
    }
    
    .project-header h1 {
        font-size: 2.2rem;
    }
    
    .project-header p {
        font-size: 1.1rem;
    }
    
    .project-meta {
        gap: 15px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    section {
        padding: 60px 0;
    }

    .album-card {
        padding: 24px;
    }

    .album-title {
        font-size: 1.4rem;
    }

    .stat-number,
    .impact-stat-number {
        font-size: 2.5rem;
    }

    .project-content h3 {
        font-size: 1.6rem;
    }

    /* Mejoras adicionales para móviles */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .service-card,
    .project-card {
        margin-bottom: 20px;
    }

    .btn-verde {
        padding: 14px 32px;
        font-size: 15px;
    }

    /* Footer responsive */
    .footer .col-lg-4,
    .footer .col-lg-3,
    .footer .col-md-6 {
        text-align: center;
    }

    .footer .text-md-start,
    .footer .text-md-end {
        text-align: center !important;
    }

    .social-icons-container {
        justify-content: center;
    }

    /* Navbar mobile mejorado */
    .navbar-collapse {
        background: white;
        padding: 20px;
        border-radius: 12px;
        margin-top: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

    .nav-link {
        padding: 12px 20px !important;
        border-radius: 8px;
        margin: 4px 0;
    }

    .nav-link:hover {
        background-color: rgba(59, 181, 74, 0.1);
    }
} /* <--- Esta llave era la que faltaba */

/* Nuevas media queries para pantallas pequeñas */
@media (max-width: 576px) {
    .hero-section {
        min-height: 80vh;
        height: auto;
        padding: 100px 0 50px;
    }

    .hero-section h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-section p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .page-hero h1 {
        font-size: 1.8rem;
    }

    .page-hero p {
        font-size: 1rem;
    }

    .project-header h1 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .navbar-brand img {
        max-height: 45px;
    }

    .btn-verde {
        padding: 12px 24px;
        font-size: 14px;
        width: 100%;
    }

    section {
        padding: 50px 0;
    }

    .album-card {
        padding: 20px;
    }

    /* Optimización de espaciado */
    .mb-5 {
        margin-bottom: 2rem !important;
    }

    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .project-meta-item {
        font-size: 0.9rem;
        padding: 10px 18px;
    }
}

/* Mejoras adicionales para pantallas muy pequeñas */
@media (max-width: 375px) {
    .hero-section h1 {
        font-size: 1.75rem;
    }

    .page-hero h1,
    .project-header h1 {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 1.35rem;
    }

    .btn-verde {
        padding: 10px 20px;
        font-size: 13px;
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   FUNDVISA - ADMIN + DYNAMIC UI (Added)
   ======================================== */

.admin-shell { padding-top: 0; }

.fv-admin-topbar{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; flex-wrap:wrap; margin-bottom:18px;
}

.fv-admin-card{
  background:#fff;
  border-radius:20px;
  padding:22px;
  box-shadow: 0 12px 40px rgba(0,0,0,.08);
  border: 1px solid rgba(0,0,0,.04);
}

.fv-admin-tabs .nav-link{
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 600;
}

.fv-admin-tabs .nav-link.active{
  background: var(--verde);
  color: #fff;
}

.fv-mini-img{
  width: 60px; height: 44px; object-fit: cover; border-radius: 10px;
  border: 1px solid rgba(0,0,0,.08);
}

/* Galería dinámica */
.fv-gallery-card{
  width:100%;
  border:0;
  background:#fff;
  border-radius: 18px;
  overflow:hidden;
  padding:0;
  text-align:left;
  box-shadow: 0 10px 26px rgba(0,0,0,.08);
  transition: transform .15s ease, box-shadow .15s ease;
}
.fv-gallery-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0,0,0,.12);
}
.fv-gallery-thumb{
  width:100%;
  height: 230px;
  background: rgba(0,0,0,.03);
}
.fv-gallery-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.fv-gallery-meta{
  padding: 14px 14px 16px;
}
.fv-gallery-cap{
  font-weight: 700;
  margin-bottom: 4px;
}
.fv-gallery-date{
  font-size: .85rem;
  color: rgba(0,0,0,.55);
}

/* Proyectos */
.fv-proj-card .card-title{ font-weight: 800; }
.fv-proj-cover{
  height: 210px;
  background: rgba(0,0,0,.03);
}
.fv-proj-cover img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Small tweaks for tables inside admin */
.fv-admin-card .table > :not(caption) > * > *{
  padding-top: .65rem;
  padding-bottom: .65rem;
}


/* admin */
/* --- Estilos del Panel de Administración (Dashboard) --- */
:root {
  --admin-sidebar-width: 260px;
  --admin-header-height: 70px;
  --admin-bg: #f3f4f6;
  --admin-sidebar-bg: #1e293b; /* Azul oscuro corporativo */
  --admin-accent: #198754; /* Tu verde corporativo */
}

body.admin-body {
  background-color: var(--admin-bg);
  min-height: 100vh;
}

/* Sidebar Fija (Izquierda) */
.admin-sidebar {
  width: var(--admin-sidebar-width);
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background-color: var(--admin-sidebar-bg);
  color: white;
  padding: 20px;
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transition: transform 0.3s ease;
}

.admin-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 20px;
  text-decoration: none;
  color: white;
}

.admin-nav .nav-link {
  color: rgba(255,255,255,0.7);
  padding: 12px 15px;
  border-radius: 8px;
  margin-bottom: 5px;
  font-weight: 500;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-nav .nav-link:hover, .admin-nav .nav-link.active {
  background-color: var(--admin-accent);
  color: white;
  transform: translateX(5px);
}

/* Área Principal (Derecha) */
.admin-main-wrapper {
  margin-left: var(--admin-sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Topbar (Cabecera Superior) */
.admin-topbar {
  height: var(--admin-header-height);
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  position: sticky;
  top: 0;
  z-index: 900;
}

/* Dashboard Hero (Header de Sección) */
.dashboard-hero {
  background: white;
  padding: 40px 30px;
  margin: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-left: 5px solid var(--admin-accent);
}

.dashboard-hero h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 5px;
}

/* Botón Logout */
.btn-logout-custom {
  color: #dc3545;
  border: 1px solid #fee2e2;
  background: #fff5f5;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 8px;
  transition: all 0.2s;
}

.btn-logout-custom:hover {
  background: #dc3545;
  color: white;
}

/* Responsive para Móviles */
@media (max-width: 991px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }
  .admin-sidebar.show {
    transform: translateX(0);
  }
  .admin-main-wrapper {
    margin-left: 0;
  }
  .dashboard-hero {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
}

/* Limita el texto a exactamente 3 líneas y pone "..." */
.text-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Efecto hover profesional para la tarjeta */
.hover-elevate {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-elevate:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

/* Asegura que la imagen no se deforme */
.object-fit-cover {
  object-fit: cover;
}

/* --- ESTILOS DEL FOOTER --- */

        /* 1. Truco para volver el logo blanco */
        .footer-logo-white {
            filter: brightness(0) invert(1); /* Convierte cualquier color a blanco */
            opacity: 0.95; /* Un poco de transparencia para que se integre mejor */
        }
/* --- FIN DEL FOOTER --- */

    /* Efecto al pasar el mouse por encima de las preguntas */
    .accordion-button:not(.collapsed) {
        background-color: white !important;
        color: #198754 !important; /* Color verde al estar abierto */
        box-shadow: none !important;
    }
    .accordion-button:focus {
        box-shadow: none !important;
        border-color: rgba(0,0,0,.125);
    }
    .accordion-item {
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .accordion-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 .5rem 1rem rgba(0,0,0,.08)!important;
    }
    /* Estilo del icono en el título */
    .icon-box {
        transition: all 0.3s ease;
    }
    .accordion-button:not(.collapsed) .icon-box {
        transform: scale(1.1);
    }

    /* ========================================
   MEJORAS DEL MENÚ (Añadir al final)
   ======================================== */

/* 1. Estilo Premium para el Dropdown */
.dropdown-menu {
    border: none;
    border-radius: 12px; /* Un poco menos que var(--borde-redondeado) */
    box-shadow: var(--sombra-fuerte);
    padding: 10px;
    margin-top: 15px !important; /* Separación del menú principal */
    animation: fadeInUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: white;
}

/* Items del Dropdown */
.dropdown-item {
    font-weight: 500;
    color: var(--color-gris-oscuro);
    padding: 12px 20px;
    border-radius: 8px;
    transition: var(--transicion-rapida);
    font-size: 14px;
}

.dropdown-item:hover {
    background-color: rgba(59, 181, 74, 0.08); /* Fondo verde muy suave */
    color: var(--color-verde);
    transform: translateX(5px); /* Pequeño movimiento a la derecha */
}

/* Línea divisoria en dropdown */
.dropdown-divider {
    border-top: 1px solid rgba(0,0,0,0.05);
    margin: 8px 0;
}

/* Flecha del dropdown (ajuste visual) */
.nav-link.dropdown-toggle::after {
    vertical-align: middle;
    border-top-color: var(--color-gris-oscuro);
    opacity: 0.5;
    margin-left: 6px;
}

.nav-link.dropdown-toggle:hover::after {
    border-top-color: var(--color-azul);
    opacity: 1;
}

/* 2. Nuevo Botón Secundario (Outline) para Donar */
.btn-outline-verde {
    background: transparent;
    border: 2px solid var(--color-verde);
    color: var(--color-verde);
    font-weight: 600;
    padding: 14px 30px; /* Un poco más pequeño que el btn-verde principal */
    border-radius: 50px;
    transition: var(--transicion-rapida);
    text-decoration: none;
    display: inline-block;
}

.btn-outline-verde:hover {
    background: var(--color-verde);
    color: white;
    box-shadow: 0 5px 15px rgba(59, 181, 74, 0.2);
    transform: translateY(-2px);
}

/* Ajuste para que los botones tengan la misma altura visual */
.navbar-actions .btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 3. Ajustes Responsive Específicos para el Menú Nuevo */
@media (max-width: 991px) {
    /* En móvil quitamos la sombra y animación del dropdown para que no tape contenido */
    .dropdown-menu {
        box-shadow: none;
        border: 1px solid rgba(0,0,0,0.05);
        margin-top: 5px !important;
        padding-left: 15px; /* Indentación para jerarquía */
        background: #f8f9fa;
    }
    
    .dropdown-item {
        padding: 10px 15px;
    }

    /* Alineación de botones en móvil */
    .navbar-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .navbar-actions .btn {
        width: 100%; /* Botones ancho completo en móvil */
        margin-bottom: 10px;
    }
}