* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colores corporativos Cruz Roja */
    --primary-color: #011e41;      /* Azul marino Cruz Roja */
    --secondary-color: #f5333f;    /* Rojo Cruz Roja */
    --tertiary-color: #323232;     /* Gris Cruz Roja */
    --accent-color: #ffd700;       /* Mantenemos dorado para destacados */
    --text-primary: #1a202c;
    --text-secondary: #718096;
    --bg-primary: #ffffff;
    --bg-secondary: #f7fafc;
    --bg-gradient: linear-gradient(135deg, #011e41 0%, #f5333f 100%);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.04);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    /* background: var(--primary-color); */
    background: white;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(245, 51, 63, 0.2);
    z-index: 9999;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo {
    height: 40px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--secondary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* Botón Visor en navbar */
.nav-visor-btn {
    background: var(--primary-color);
    color: white !important;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(1, 30, 65, 0.45);
}

.nav-visor-btn:hover {
    background: var(--secondary-color);
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(245, 51, 63, 0.45);
}

.nav-visor-btn::after {
    display: none;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-left: 2rem;
    border-left: 1px solid rgba(113, 128, 150, 0.2);
}

.user-name {
    font-weight: 600;
    color: whitesmoke;
}

.logout-btn {
    padding: 0.5rem 1rem;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: var(--transition);
}

.logout-btn:hover {
    background: #d42936;
    transform: translateY(-1px);
}

/* Actualizar el botón de acceso administrador */
.admin-access-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.admin-access-btn:hover {
    background: #d42936;
    transform: translateY(-1px);
}

.admin-access-btn svg {
    width: 16px;
    height: 16px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 8rem 2rem 4rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(1, 30, 65, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(245, 51, 63, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(50, 50, 50, 0.1) 0%, transparent 50%);
    animation: floatParticles 20s ease-in-out infinite;
}

@keyframes floatParticles {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    width: 100%;
    align-items: center;
    z-index: 1;
}

.hero-text {
    animation: slideInLeft 1s ease-out;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.title-main {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.title-subtitle {
    display: block;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* CTA button inside hero-text */
.hero-text .cta-button {
    margin-top: 0.5rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.9rem 1.8rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 16px rgba(1, 30, 65, 0.3);
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.cta-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 51, 63, 0.4);
}

.cta-icon {
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.cta-button:hover .cta-icon {
    transform: translateX(4px);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInRight 1s ease-out;
}

.energy-visualization {
    position: relative;
    width: 300px;
    height: 300px;
}

.energy-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid var(--secondary-color);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

.energy-core {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 100px;
    height: 100px;
    background: var(--secondary-color);
    border-radius: 50%;
    animation: energyCorePulse 3s ease-in-out infinite;
}

.energy-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: orbit 10s linear infinite;
}

.particle:nth-child(1) { top: 10%; left: 50%; animation-delay: 0s; }
.particle:nth-child(2) { top: 50%; right: 10%; animation-delay: 2s; }
.particle:nth-child(3) { bottom: 10%; left: 50%; animation-delay: 4s; }
.particle:nth-child(4) { top: 50%; left: 10%; animation-delay: 6s; }
.particle:nth-child(5) { top: 25%; right: 25%; animation-delay: 8s; }
.particle:nth-child(6) { bottom: 25%; right: 25%; animation-delay: 10s; }


.footer-logo img {
    height: 60px;
    background-color: white;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes energyCorePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes orbit {
    from { transform: rotate(0deg) translateX(150px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(150px) rotate(-360deg); }
}

@keyframes slideInLeft {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    z-index: 2;
    cursor: pointer;
    animation: fadeInUp 1.5s ease-out 0.8s both;
}

.scroll-indicator-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.scroll-arrow {
    width: 36px;
    height: 36px;
    border: 2px solid rgba(1, 30, 65, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    animation: bounceDown 1.8s ease-in-out infinite;
}

.scroll-arrow svg {
    width: 18px;
    height: 18px;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(6px); opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Applications Section */
.applications {
    padding: 6rem 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.applications::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.applications .container {
    position: relative;
    z-index: 1;
}

.applications .section-title {
    color: var(--primary-color);
}

.applications .section-description {
    color: var(--text-secondary);
}

.applications .section-header {
    margin-bottom: 3.5rem;
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
    margin-top: 0;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* Tarjeta destacada: ocupa fila completa */
.app-card.featured {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0d2f5e 100%);
    border-left: none;
    border-top: none;
    border: none;
    color: white;
}

.app-card.featured .app-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: start;
}

.app-card.featured .app-title {
    color: #ffffff;
}

.app-card.featured .app-description {
    color: rgba(255,255,255,0.8);
    -webkit-line-clamp: unset;
    overflow: visible;
    display: block;
}

.app-card.featured .app-icon {
    background: rgba(255,255,255,0.15);
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.2);
}

.app-card.featured .feature-tag {
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.9);
    border-color: rgba(255,255,255,0.2);
}

.app-card.featured .app-button {
    background: #ffffff;
    color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.app-card.featured .app-button:hover {
    background: var(--secondary-color);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(245, 51, 63, 0.45);
}

/* Tarjetas normales */
.app-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07), 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #e8edf3;
    border-left: 4px solid var(--secondary-color);
    height: fit-content;
    display: flex;
    flex-direction: column;
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(1, 30, 65, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
    border-left-color: var(--primary-color);
}

.app-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: white;
    box-shadow: 0 4px 12px rgba(1, 30, 65, 0.25);
    transition: background 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
}

.app-card:hover .app-icon {
    background: var(--secondary-color);
    transform: scale(1.08);
}

.app-icon svg {
    width: 28px;
    height: 28px;
}

.app-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.app-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.6rem;
    line-height: 1.3;
}

.app-description {
    color: #5a6a7a;
    margin-bottom: 1.25rem;
    line-height: 1.65;
    font-size: 0.93rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.app-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.app-features .feature-tag {
    background: #f0f4f8;
    color: var(--primary-color);
    border: 1px solid #dde3eb;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
}

.app-features .feature-tag:hover {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.app-button {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 1.3rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.88rem;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    width: fit-content;
    margin-top: auto;
}

.app-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(245, 51, 63, 0.35);
}

.app-button svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.app-button:hover svg {
    transform: translateX(3px);
}

/* Separador visual */
.apps-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2.5rem auto;
    max-width: 1100px;
}

.apps-separator::before,
.apps-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #dde3eb, transparent);
}

.apps-separator-text {
    padding: 0 2rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Herramientas integradas en la plataforma CREeNEUTRAL */
.applications-platform-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
    max-width: 1100px;
    margin: 0 auto;
}

.app-card--platform {
    border-left-color: var(--primary-color);
}

.app-card--platform .app-platform-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary-color);
    background: #eef3f9;
    border: 1px solid #d5e0ec;
}

.applications-platform-grid .app-card.featured {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
}

.applications-platform-grid .app-card.featured .app-icon {
    margin-bottom: 0;
    flex-shrink: 0;
}

.applications-platform-grid .app-card.featured .app-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.applications-platform-grid .app-card.featured .app-description {
    -webkit-line-clamp: unset;
    display: block;
    overflow: visible;
}

.applications-platform-grid .app-card {
    height: 100%;
}

.applications-platform-grid .app-card.featured .app-platform-badge {
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
}

/* Responsive */
@media (max-width: 768px) {
    .applications-grid,
    .applications-platform-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        max-width: 100%;
    }

    .app-card.featured .app-content {
        grid-template-columns: 1fr;
    }

    .app-card.featured .app-icon {
        margin: 0 0 1.25rem;
    }

    .applications-platform-grid .app-card.featured {
        grid-column: 1;
    }

    .applications-platform-grid .app-card.featured .app-content {
        display: flex;
        flex-direction: column;
    }

    .app-card {
        padding: 1.5rem;
    }

    .app-icon {
        width: 48px;
        height: 48px;
    }

    .app-icon svg {
        width: 24px;
        height: 24px;
    }

    .app-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .applications {
        padding: 4rem 0;
    }

    .app-features .feature-tag {
        font-size: 0.73rem;
        padding: 0.25rem 0.6rem;
    }

    .app-description {
        -webkit-line-clamp: 3;
    }
}

/* Proyectos Section - Mejoras UI/UX */
.projects {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e2e8f0" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 0;
}

.projects .container {
    position: relative;
    z-index: 1;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 1px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border-left: 6px solid var(--secondary-color);
    border-top: 1px solid rgba(255, 255, 255, 0.8);
}

.project-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    transform: rotate(45deg);
    transition: all 0.4s ease;
    opacity: 0;
}

.project-card:hover::before {
    opacity: 1;
    top: -25%;
    right: -25%;
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 10px 20px rgba(0, 0, 0, 0.1);
}
.project-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.project-card:hover .project-icon {
    transform: scale(1.1) rotate(5deg);
}

.project-icon img {
    height: 60px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
}

.project-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    line-height: 1.3;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
    position: relative;
    z-index: 2;
    overflow: hidden;
    font-size: 1rem;
}

.description-short {
    display: block;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
    color: #4a5568;
    font-weight: 400;
}

.description-short.hiding {
    display: none;
}

.description-full {
    display: block;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.4s ease-in-out 0.1s;
    margin-top: 0;
    color: #2d3748;
    font-size: 0.95rem;
    line-height: 1.7;
}

.description-full.expanded {
    max-height: 2000px;
    opacity: 1;
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 12px;
    border-left: 3px solid currentColor;
    animation: slideInText 0.5s ease-out;
}

.description-full strong {
    font-weight: 600;
    position: relative;
    padding: 2px 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.toggle-description-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.9));
    border: 2px solid var(--secondary-color);
    color: var(--primary-color);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 1.5rem 0;
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.toggle-description-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.toggle-description-btn:hover::before {
    left: 100%;
}

.toggle-description-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(245, 51, 63, 0.15);
}

.toggle-description-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.toggle-description-btn .btn-text {
    font-weight: 600;
    transition: all 0.3s ease;
}

.toggle-description-btn .btn-icon {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    font-weight: bold;
}

.toggle-description-btn.expanded .btn-icon {
    transform: rotate(180deg);
}

.project-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    position: relative;
    z-index: 2;
    margin-top: 1rem;
}

.project-features .feature-tag {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-features .feature-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Animaciones mejoradas */
@keyframes slideInText {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive mejorado */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .project-card {
        padding: 2rem;
        border-radius: 16px;
    }
    
    .project-icon {
        width: 60px;
        height: 60px;
    }
    
    .project-icon img {
        height: 40px;
    }
    
    .project-title {
        font-size: 1.4rem;
    }
    
    .toggle-description-btn {
        padding: 0.7rem 1.3rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .projects {
        padding: 4rem 0;
    }
    
    .project-card {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .project-features {
        gap: 0.5rem;
    }
    
    .project-features .feature-tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}


/* Responsive para aplicaciones */
@media (max-width: 768px) {
    .applications-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .app-card {
        padding: 2rem;
        border-radius: 16px;
    }
    
    .app-icon {
        width: 60px;
        height: 60px;
    }
    
    .app-icon svg {
        width: 30px;
        height: 30px;
    }
    
    .app-title {
        font-size: 1.5rem;
    }
    
    .app-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .applications {
        padding: 4rem 0;
    }
    
    .app-card {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .app-features {
        gap: 0.5rem;
    }
    
    .app-features .feature-tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Footer Section - Nuevo diseño mejorado */
.footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--tertiary-color) 100%);
    color: white;
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footer-pattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23footer-pattern)"/></svg>');
    z-index: 0;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section {
    animation: slideInUp 0.6s ease-out;
}

.footer-section h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    position: relative;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary-color);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-section a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    padding: 0.25rem 0;
}

.footer-section a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}


.footer-brand-name {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--secondary-color);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: var(--secondary-color);
    box-shadow: 0 8px 20px rgba(245, 51, 63, 0.3);
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    margin: 2rem 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

/* Responsive para Footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-brand-name {
        font-size: 1.5rem;
    }
}


/* Applications Section - Reorganización mejorada */
.applications {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.applications::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="app-grid" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23e2e8f0" opacity="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23app-grid)"/></svg>');
    opacity: 0.4;
    z-index: 0;
}

.applications .container {
    position: relative;
    z-index: 1;
}

/* Grid principal optimizado */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Projects Section con colores Cruz Roja */
.project-card {
    border-left: 6px solid var(--secondary-color);
}

.project-title {
    color: var(--primary-color);
}

.toggle-description-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.9));
    border: 2px solid var(--secondary-color);
    color: var(--primary-color);
}

.toggle-description-btn:hover {
    background: var(--secondary-color);
    color: white;
    box-shadow: 0 8px 25px rgba(245, 51, 63, 0.15);
}

/* Footer con colores Cruz Roja */
.footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--tertiary-color) 100%);
}

.footer-section h4 {
    color: var(--secondary-color);
}

.footer-section h4::after {
    background: var(--secondary-color);
}

.footer-brand-name {
    color: var(--secondary-color);
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.social-link:hover {
    background: var(--secondary-color);
    box-shadow: 0 8px 20px rgba(245, 51, 63, 0.3);
}

.footer-links a:hover {
    color: var(--secondary-color);
}

/* Colores específicos para etiquetas de proyectos */
.project-features .feature-tag {
    transition: all 0.3s ease;
}

.project-features .feature-tag:hover {
    background: var(--secondary-color) !important;
    color: white !important;
    border-color: var(--secondary-color) !important;
    box-shadow: 0 4px 12px rgba(245, 51, 63, 0.15);
}

/* Mejoras adicionales para coherencia visual */
.stat-number {
    color: var(--secondary-color);
}

.section-title {
    color: var(--primary-color);
}

/* Hover effects mejorados con colores Cruz Roja */
.nav-link:hover {
    color: var(--secondary-color);
}

.project-card:hover {
    box-shadow: 
        0 20px 40px rgba(245, 51, 63, 0.15),
        0 10px 20px rgba(1, 30, 65, 0.1);
}

.app-card:hover {
    box-shadow: 
        0 15px 35px rgba(245, 51, 63, 0.12),
        0 8px 15px rgba(1, 30, 65, 0.08);
}

/* Animaciones y transiciones mejoradas */
.description-full.expanded {
    border-left: 3px solid var(--secondary-color);
}

.description-full strong {
    background: rgba(245, 51, 63, 0.1);
    color: var(--primary-color);
}

/* Responsive manteniendo colores */
@media (max-width: 768px) {
    .brand-name {
        color: var(--secondary-color);
    }
    
    .user-name {
        color: white;
    }
}

/* Efectos de glassmorphism mejorados */
.app-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(245, 51, 63, 0.1);
}

.project-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(245, 51, 63, 0.1);
}

/* Efectos de partículas con colores Cruz Roja */
.hero-particles {
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(1, 30, 65, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(245, 51, 63, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(50, 50, 50, 0.1) 0%, transparent 50%);
}


/* Footer Section - Nuevo diseño mejorado con sección de financiamiento */
.footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--tertiary-color) 100%);
    color: white;
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footer-pattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23footer-pattern)"/></svg>');
    z-index: 0;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section {
    animation: slideInUp 0.6s ease-out;
}

.footer-section h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    position: relative;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary-color);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-section a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    padding: 0.25rem 0;
}

.footer-section a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}


.footer-brand-name {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--secondary-color);
}

/* Nueva sección de financiamiento */
.funding-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideInUp 0.8s ease-out;
}

.funding-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.funding-text {
    flex: 1;
    min-width: 300px;
}

.funding-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    font-style: italic;
    text-align: justify;
}

.funding-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.funding-logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.funding-logo img {
    height: 90px;
    width: auto;
    /* max-width: 240px; */
    object-fit: contain;
    filter: none;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: var(--secondary-color);
    box-shadow: 0 8px 20px rgba(245, 51, 63, 0.3);
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    margin: 2rem 0;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    text-align: center;
}


/* Responsive para Footer con sección de financiamiento */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .funding-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .funding-text {
        min-width: auto;
    }
    
    .funding-text p {
        text-align: center;
        font-size: 0.9rem;
    }
    
    .funding-logo {
        align-self: center;
        padding: 0.8rem 1.2rem;
    }
    
    .funding-logo img {
        height: 40px;
        max-width: 200px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    /* 
    .footer-links {
        justify-content: center;
    }
    */
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .funding-section {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .funding-text p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .funding-logo img {
        height: 35px;
        max-width: 180px;
    }
    
    /* 
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    */
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-logo img {
        height: 50px;
    }
    
    .footer-brand-name {
        font-size: 1.5rem;
    }
}

/* Animación específica para la sección de financiamiento */
@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mejoras adicionales para la sección de financiamiento */
.funding-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        rgba(245, 51, 63, 0.05) 100%);
    border-radius: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.funding-section:hover::before {
    opacity: 1;
}

.funding-section {
    position: relative;
    overflow: hidden;
}

/* Criterios de Actuación Section */
.criterios-actuacion {
    padding: 6rem 0;
    background: linear-gradient(180deg, #f5f7fa 0%, #eef1f6 100%);
    position: relative;
    overflow: hidden;
    border-top: 1px solid #e2e8f0;
}

.criterios-actuacion::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

.criterios-actuacion .container {
    position: relative;
    z-index: 1;
}

.criterios-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.criterio-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.75rem 1.25rem;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    border: 1px solid #e2e8f0;
    border-bottom: 3px solid transparent;
}

.criterio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(1, 30, 65, 0.12);
    border-bottom-color: var(--secondary-color);
}

.criterio-icon {
    width: 72px;
    height: 72px;
    background: #f0f4f8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: background 0.3s ease, transform 0.3s ease;
    border: 2px solid #e2e8f0;
}

.criterio-item:hover .criterio-icon {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.08);
}

.criterio-icon img {
    width: 40px;
    height: 40px;
    filter: none;
    transition: filter 0.3s ease;
    object-fit: contain;
}

.criterio-item:hover .criterio-icon img {
    filter: brightness(0) invert(1);
}

.criterio-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.35;
}

/* Responsive para Criterios de Actuación */
@media (max-width: 1024px) {
    .criterios-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .criterios-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .criterio-item {
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }
    
    .criterio-icon {
        width: 60px;
        height: 60px;
        border-radius: 16px;
        margin-bottom: 1rem;
    }
    
    .criterio-icon img {
        width: 35px;
        height: 35px;
    }
    
    .criterio-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .criterios-actuacion {
        padding: 4rem 0;
    }
    
    .criterios-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .criterio-item {
        padding: 1.2rem 1rem;
        border-radius: 12px;
    }
    
    .criterio-icon {
        width: 50px;
        height: 50px;
        border-radius: 12px;
    }
    
    .criterio-icon img {
        width: 30px;
        height: 30px;
    }
    
    .criterio-title {
        font-size: 1rem;
    }
}



/* Panel de login administrador */
.admin-login-panel {
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0.5rem;
}

.admin-login-panel.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.admin-login-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.admin-login-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.close-panel-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: var(--transition);
}

.close-panel-btn:hover {
    background: rgba(245, 51, 63, 0.1);
    color: var(--secondary-color);
}

.close-panel-btn svg {
    width: 18px;
    height: 18px;
}

.admin-login-form {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 0.9rem;
    transition: var(--transition);
    background: white;
}

.form-group input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(245, 51, 63, 0.1);
}

.form-group input::placeholder {
    color: var(--text-secondary);
}

.admin-login-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.admin-login-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
}

.admin-login-submit:hover::before {
    left: 100%;
}

.admin-login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 51, 63, 0.3);
}

.admin-login-submit svg {
    width: 18px;
    height: 18px;
}

.admin-login-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.admin-login-submit:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Overlay para cerrar el panel */
.admin-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.admin-panel-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Responsive para el panel */
@media (max-width: 768px) {
    .admin-login-panel {
        width: 280px;
        right: -20px;
    }
    
    .admin-access-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .admin-access-btn span {
        display: none;
    }
}

@media (max-width: 480px) {
    .admin-login-panel {
        width: 260px;
        right: -40px;
    }
    
    .admin-login-header,
    .admin-login-form {
        padding: 1rem;
    }
}


/* Sección de informes anuales */
.reports-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideInUp 1s ease-out;
    position: relative;
    overflow: hidden;
}

.reports-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    transform: rotate(45deg);
    transition: all 0.4s ease;
    opacity: 0;
}

.reports-section:hover::before {
    opacity: 1;
    top: -25%;
    right: -25%;
}

.reports-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.reports-text {
    text-align: center;
    flex-shrink: 0;
}

.reports-text h4 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
}

.reports-text h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--secondary-color);
}

.reports-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    font-style: italic;
}

.reports-images {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.report-item {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: white;
    padding: 8px;
}

.report-item:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 12px 30px rgba(245, 51, 63, 0.2);
}

.report-item img {
    height: 120px;
    width: auto;
    max-width: 85px;
    object-fit: contain;
    filter: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.report-item:hover img {
    transform: scale(1.02);
}

.report-year {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.report-item:hover .report-year {
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 6px 15px rgba(245, 51, 63, 0.3);
}

/* Efectos de animación para los informes */
.report-item {
    animation: reportFadeIn 0.6s ease-out;
}

.report-item:nth-child(1) { animation-delay: 0.1s; }
.report-item:nth-child(2) { animation-delay: 0.3s; }
.report-item:nth-child(3) { animation-delay: 0.5s; }

@keyframes reportFadeIn {
    from {
        transform: translateY(20px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Responsive para la sección de informes */
@media (max-width: 768px) {
    .reports-section {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .reports-content {
        gap: 1.5rem;
    }
    
    .reports-text h4 {
        font-size: 1.2rem;
    }
    
    .reports-text p {
        font-size: 0.9rem;
    }
    
    .reports-images {
        gap: 1.5rem;
    }
    
    .report-item img {
        height: 100px;
        max-width: 70px;
    }
    
    .report-year {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }
}

@media (max-width: 480px) {
    .reports-section {
        padding: 1.2rem;
    }
    
    .reports-images {
        gap: 1rem;
    }
    
    .report-item img {
        height: 80px;
        max-width: 55px;
    }
    
    .report-year {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
    
    .reports-text h4 {
        font-size: 1.1rem;
    }
    
    .reports-text p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
}

/* Efecto adicional de brillo en hover */
.report-item::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.report-item:hover::after {
    opacity: 1;
    animation: shine 0.6s ease-out;
}

@keyframes shine {
    0% {
        transform: rotate(45deg) translateX(-100%);
    }
    100% {
        transform: rotate(45deg) translateX(100%);
    }
}

/* Añadir al final del archivo */

/* ============= SELECTOR DE IDIOMA (UNIFICADO) ============= */
.language-selector-nav {
    position: relative;
    margin-left: 20px;
    z-index: 12050;
}

.current-lang {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: white;
    border: 2px solid #E4002B;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    color: #E4002B;
    font-size: 1rem;
}

.current-lang:hover {
    background: #E4002B;
    color: white;
}

.lang-flag {
    font-size: 1.2em;
}

.lang-code {
    font-size: 0.9em;
    font-weight: 700;
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    min-width: 190px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 12060;
    padding: 0;
}

.language-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
    border-bottom: 1px solid #f0f0f0;
    background: none;
    font-size: 1rem;
}

.lang-option:first-child {
    border-radius: 12px 12px 0 0;
}

.lang-option:last-child {
    border-bottom: none;
    border-radius: 0 0 12px 12px;
}

.lang-option:hover {
    background: #ffe5ea;
    color: #E4002B;
    padding-left: 22px;
}

.lang-name {
    font-weight: 500;
    font-size: 0.95em;
}

@media (max-width: 768px) {
    .language-selector-nav {
        margin-left: 10px;
    }
    .current-lang {
        padding: 6px 12px;
        font-size: 0.95rem;
    }
    .lang-code {
        display: none;
    }
    .language-dropdown {
        min-width: 120px;
    }
}

/* Selector deshabilitado (modo producción) */
.language-selector-disabled .current-lang {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Badges de idioma en el dropdown */
.lang-option .li-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 20px;
    font-size: 1.15em;
    line-height: 1;
    flex-shrink: 0;
}

.lang-option .li-abbr {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 20px;
    background: #E4002B;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 3px;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}