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

body {
    font-family: 'Times New Roman', Times, serif;
    background-color: #ffffff;
    color: #1a1a1a;
    line-height: 1.7;
    scroll-behavior: smooth;
}

:root {
    --azul-electrico: #000A8F;
    --azul-electrico-dark: #0044CC;
    --guinda: #85008F;
    --guinda-light: #c93f84;
    --gris-claro: #f5f7fe;
    --gris-borde: #e0e5f0;
    --texto-oscuro: #1a1a2e;
    --blanco: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.8rem;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
    z-index: 1000;
    transition: background 0.3s, box-shadow 0.3s;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.header.scrolled {
    background: #0a0a1a;
    border-bottom-color: var(--azul-electrico);
    box-shadow: 0 4px 30px rgba(0, 102, 255, 0.15);
}

.header.scrolled .logo,
.header.scrolled .nav-link {
    color: #f0f4fa;
}

.header.scrolled .hamburger span {
    background: #f0f4fa;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 0;
    flex-wrap: wrap;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--azul-electrico);
    text-decoration: none;
    transition: color 0.25s;
}

.logo:hover {
    color: var(--guinda);
}

.nav-menu ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #1e293b;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.3rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    border-bottom-color: var(--azul-electrico);
    color: var(--azul-electrico);
}

.header.scrolled .nav-link:hover {
    border-bottom-color: var(--guinda-light);
    color: #ffffff;
}

/* ===== HAMBURGUESA ===== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.3rem;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 2.5px;
    background: var(--azul-electrico);
    border-radius: 2px;
    transition: 0.3s;
}

/* ===== HERO ===== */
.hero {
    margin-top: 80px;
    padding: 6rem 0 5rem;
    background: linear-gradient(135deg, #eef3ff 0%, #dce5ff 100%);
    border-bottom: 3px solid var(--azul-electrico);
    text-align: center;
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: var(--guinda);
    color: #fff;
    padding: 0.3rem 1.8rem;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 40px;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.15;
    color: #0a0a1a;
    margin-bottom: 1rem;
}

.hero-title .highlight {
    color: var(--azul-electrico);
    position: relative;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--guinda);
    border-radius: 2px;
}

.hero-sub {
    font-size: 1.4rem;
    color: #2c3e50;
    max-width: 650px;
    margin: 0 auto 2.2rem;
}

.hero-actions {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--azul-electrico);
    color: #fff;
    padding: 0.9rem 2.8rem;
    border-radius: 60px;
    text-decoration: none;
    font-size: 1.1rem;
    border: 1px solid var(--azul-electrico);
    transition: 0.25s;
    box-shadow: 0 4px 14px rgba(0, 102, 255, 0.3);
}

.btn-primary:hover {
    background: var(--azul-electrico-dark);
    border-color: var(--azul-electrico-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0, 102, 255, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--azul-electrico);
    padding: 0.9rem 2.8rem;
    border-radius: 60px;
    text-decoration: none;
    font-size: 1.1rem;
    border: 2px solid var(--azul-electrico);
    transition: 0.25s;
}

.btn-outline:hover {
    background: var(--azul-electrico);
    color: #fff;
    transform: translateY(-3px);
}

/* ===== SECCIONES GENERALES ===== */
section {
    padding: 4.5rem 0;
}

.section-title {
    font-size: 2.6rem;
    font-weight: 600;
    color: #0a0a1a;
    margin-bottom: 2.8rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--guinda);
    margin-top: 8px;
    border-radius: 2px;
}

/* ===== SERVICIOS ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    border: 1px solid var(--gris-borde);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03);
    transition: 0.3s;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--azul-electrico);
    box-shadow: 0 16px 48px rgba(0, 102, 255, 0.08);
}

.service-icon {
    font-size: 3.2rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.6rem;
    color: #0a0a1a;
    margin-bottom: 0.6rem;
}

.service-card p {
    color: #334155;
    font-size: 1rem;
    margin-bottom: 1.2rem;
}

.service-link {
    color: var(--azul-electrico);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.service-link:hover {
    color: var(--guinda);
}

/* ===== TESTIMONIOS ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: #ffffff;
    padding: 2rem 2rem 1.8rem;
    border-radius: 20px;
    border-left: 6px solid var(--azul-electrico);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
    transition: 0.25s;
}

.testimonial-card:hover {
    box-shadow: 0 8px 32px rgba(0, 102, 255, 0.06);
}

.testimonial-quote {
    font-size: 3rem;
    color: var(--guinda);
    line-height: 0.8;
    display: block;
    margin-bottom: 0.3rem;
}

.testimonial-card p {
    font-size: 1.05rem;
    color: #1e293b;
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: 600;
    color: var(--azul-electrico);
    font-size: 0.95rem;
}

/* ===== CTA BANNER ===== */
.cta-banner {
    background: linear-gradient(135deg, var(--azul-electrico) 0%, var(--azul-electrico-dark) 100%);
    padding: 4rem 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.8rem;
    color: #fff;
    margin-bottom: 0.8rem;
}

.cta-content p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.btn-large {
    padding: 1.2rem 4rem;
    font-size: 1.3rem;
    background: var(--guinda);
    border-color: var(--guinda);
    box-shadow: 0 4px 20px rgba(139, 26, 74, 0.4);
}

.btn-large:hover {
    background: var(--guinda-light);
    border-color: var(--guinda-light);
    box-shadow: 0 8px 32px rgba(139, 26, 74, 0.5);
}

/* ===== FOOTER ===== */
.footer {
    background: #0a0a1a;
    color: #d3dfed;
    padding: 2.5rem 0 1.8rem;
    border-top: 3px solid var(--azul-electrico);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.footer-brand .logo {
    color: var(--azul-electrico);
    font-size: 1.8rem;
}

.footer-brand p {
    font-size: 0.95rem;
    color: #b8cde0;
    margin-top: 0.2rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #b8cde0;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--azul-electrico);
}

.footer-copy {
    font-size: 0.9rem;
    color: #8fa6bd;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
        width: 100%;
        background: #ffffff;
        padding: 1.2rem 0;
        border-top: 1px solid var(--gris-borde);
        margin-top: 0.5rem;
    }

    .nav-menu.open {
        display: block;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 0.8rem;
        align-items: flex-start;
        padding-left: 0.5rem;
    }

    .header.scrolled .nav-menu {
        background: #0a0a1a;
        border-top-color: var(--azul-electrico);
    }

    .header.scrolled .nav-link {
        color: #f0f4fa;
    }

    .hero-title {
        font-size: 2.8rem;
    }
    .hero-sub {
        font-size: 1.1rem;
    }
    .hero {
        padding: 4rem 0 3rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .btn-primary,
    .btn-outline {
        padding: 0.7rem 1.8rem;
        font-size: 1rem;
    }
    .btn-large {
        padding: 1rem 2.5rem;
        font-size: 1.1rem;
    }
}

/* ===== PÁGINA NOSOTROS ===== */

/* Hero interno */
.hero-internal {
    margin-top: 80px;
    padding: 5rem 0 4rem;
    background: linear-gradient(135deg, #eef3ff 0%, #dce5ff 100%);
    border-bottom: 3px solid var(--azul-electrico);
    text-align: center;
}

/* Historia y filosofía */
.history-section {
    padding: 5rem 0;
}

.history-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.history-text {
    padding-right: 1rem;
}

.history-text .section-title {
    margin-bottom: 1.8rem;
}

.history-paragraph {
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.history-paragraph strong {
    color: var(--azul-electrico);
}

.history-numbers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.number-card {
    background: #ffffff;
    padding: 1.8rem 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--gris-borde);
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.number-card:hover {
    transform: translateY(-4px);
    border-color: var(--azul-electrico);
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.08);
}

.number {
    display: block;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--azul-electrico);
    line-height: 1.2;
}

.number-label {
    display: block;
    font-size: 0.95rem;
    color: #475569;
    margin-top: 0.3rem;
}

/* Misión, visión y valores */
.mission-section {
    padding: 5rem 0;
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 2rem;
}

.mission-card {
    background: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    border: 1px solid var(--gris-borde);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
    transition: 0.3s;
}

.mission-card:hover {
    border-color: var(--azul-electrico);
    box-shadow: 0 8px 32px rgba(0, 102, 255, 0.06);
}

.mission-values {
    grid-column: span 1;
}

.mission-icon {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    display: block;
}

.mission-card h3 {
    font-size: 1.6rem;
    color: #0a0a1a;
    margin-bottom: 0.8rem;
}

.mission-card p {
    color: #334155;
    font-size: 1rem;
    line-height: 1.7;
}

.values-list {
    list-style: none;
    padding: 0;
    margin-top: 0.5rem;
}

.values-list li {
    padding: 0.6rem 0;
    border-bottom: 1px solid #f0f2f7;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 0.95rem;
    color: #1e293b;
}

.values-list li:last-child {
    border-bottom: none;
}

.value-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--guinda);
    border-radius: 50%;
    margin-top: 0.5rem;
    flex-shrink: 0;
}

/* Equipo */
.team-section {
    padding: 5rem 0;
}

.team-subtitle {
    font-size: 1.2rem;
    color: #475569;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.team-card {
    background: #ffffff;
    padding: 2rem 1.5rem 1.8rem;
    border-radius: 20px;
    border: 1px solid var(--gris-borde);
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.team-card:hover {
    transform: translateY(-6px);
    border-color: var(--azul-electrico);
    box-shadow: 0 12px 36px rgba(0, 102, 255, 0.06);
}

.team-avatar {
    margin: 0 auto 1rem;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: #eef3ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-avatar svg {
    width: 100%;
    height: 100%;
}

.team-card h4 {
    font-size: 1.3rem;
    color: #0a0a1a;
    margin-bottom: 0.2rem;
}

.team-role {
    display: inline-block;
    background: var(--azul-electrico);
    color: #fff;
    font-size: 0.75rem;
    padding: 0.2rem 1.2rem;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.8rem;
}

.team-bio {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.5;
}

/* Responsive para nosotros */
@media (max-width: 992px) {
    .history-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .history-numbers {
        grid-template-columns: 1fr 1fr;
    }

    .mission-grid {
        grid-template-columns: 1fr 1fr;
    }

    .mission-values {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .mission-grid {
        grid-template-columns: 1fr;
    }

    .mission-values {
        grid-column: span 1;
    }

    .history-numbers {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .number {
        font-size: 2.2rem;
    }

    .team-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .history-numbers {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== PÁGINA NOTICIAS ===== */

/* Sección de búsqueda y filtros */
.search-section {
    padding: 2.5rem 0 1.5rem;
    background: #ffffff;
    border-bottom: 1px solid var(--gris-borde);
}

.search-filters {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.search-bar {
    display: flex;
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.search-bar input {
    width: 100%;
    padding: 0.9rem 3.5rem 0.9rem 1.5rem;
    border: 2px solid var(--gris-borde);
    border-radius: 50px;
    font-family: 'Times New Roman', Times, serif;
    font-size: 1rem;
    transition: 0.3s;
    background: #fafcff;
    color: #1a1a2e;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--azul-electrico);
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
}

.search-bar input::placeholder {
    color: #94a3b8;
}

.search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--azul-electrico);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: var(--azul-electrico-dark);
    transform: translateY(-50%) scale(1.05);
}

.search-btn svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.filter-btn {
    padding: 0.5rem 1.8rem;
    border: 2px solid var(--gris-borde);
    border-radius: 50px;
    background: transparent;
    color: #1e293b;
    font-family: 'Times New Roman', Times, serif;
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.3s;
}

.filter-btn:hover {
    border-color: var(--azul-electrico);
    color: var(--azul-electrico);
}

.filter-btn.active {
    background: var(--azul-electrico);
    border-color: var(--azul-electrico);
    color: #fff;
}

.filter-btn.active:hover {
    background: var(--azul-electrico-dark);
    border-color: var(--azul-electrico-dark);
}

/* Grid de noticias */
.news-feed {
    padding: 3rem 0 5rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2.5rem;
}

.news-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--gris-borde);
    transition: 0.3s;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-6px);
    border-color: var(--azul-electrico);
    box-shadow: 0 12px 40px rgba(0, 102, 255, 0.08);
}

.news-card.hidden {
    display: none;
}

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-image-placeholder svg {
    width: 100%;
    height: 100%;
}

.news-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--guinda);
    color: #fff;
    padding: 0.3rem 1.2rem;
    border-radius: 30px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.news-content {
    padding: 1.8rem 1.8rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0.8rem;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.news-date::before {
    content: '📅';
    font-size: 0.9rem;
}

.news-author {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.news-author::before {
    content: '✍️';
    font-size: 0.9rem;
}

.news-title {
    font-size: 1.4rem;
    color: #0a0a1a;
    margin-bottom: 0.6rem;
    line-height: 1.3;
}

.news-excerpt {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    flex: 1;
}

.news-link {
    color: var(--azul-electrico);
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
    align-self: flex-start;
    font-size: 0.95rem;
}

.news-link:hover {
    color: var(--guinda);
    transform: translateX(4px);
}

/* No results */
.no-results {
    text-align: center;
    padding: 3rem 0;
    color: #64748b;
    font-size: 1.2rem;
}

.no-results p {
    margin: 0;
}

/* ===== MODAL DE NOTICIA (Lightbox) ===== */
.news-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.news-modal.active {
    display: flex;
}

.news-modal-content {
    background: #ffffff;
    border-radius: 24px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.news-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #64748b;
    transition: 0.2s;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-modal-close:hover {
    background: #f1f5f9;
    color: #0a0a1a;
}

.news-modal-title {
    font-size: 2rem;
    color: #0a0a1a;
    margin-bottom: 0.5rem;
}

.news-modal-meta {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.news-modal-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #1e293b;
}

.news-modal-body p {
    margin-bottom: 1rem;
}

/* Responsive noticias */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .search-filters {
        gap: 1rem;
    }

    .filter-tags {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.4rem 1.2rem;
        font-size: 0.85rem;
    }

    .news-modal-content {
        padding: 1.8rem;
        margin: 1rem;
    }

    .news-modal-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .news-card {
        max-width: 100%;
    }

    .news-meta {
        font-size: 0.8rem;
        gap: 0.5rem;
    }

    .news-title {
        font-size: 1.2rem;
    }
}

/* ===== LOGO SVG ===== */
.logo-svg {
    display: inline-block;
    line-height: 0;
}

.logo-svg svg {
    display: block;
    height: auto;
    transition: fill 0.3s;
}

.header.scrolled .logo-svg svg text {
    fill: #f0f4fa !important;
}

/* ===== PÁGINA GALERÍA ===== */

/* Filtros de galería */
.gallery-filters {
    padding: 2rem 0 0.5rem;
    background: #ffffff;
    border-bottom: 1px solid var(--gris-borde);
}

.filter-tabs {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 0.6rem 2rem;
    border: 2px solid var(--gris-borde);
    border-radius: 50px;
    background: transparent;
    color: #1e293b;
    font-family: 'Times New Roman', Times, serif;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
}

.filter-tab:hover {
    border-color: var(--azul-electrico);
    color: var(--azul-electrico);
}

.filter-tab.active {
    background: var(--azul-electrico);
    border-color: var(--azul-electrico);
    color: #fff;
}

.filter-tab.active:hover {
    background: var(--azul-electrico-dark);
    border-color: var(--azul-electrico-dark);
}

/* Mosaico de galería */
.gallery-mosaic {
    padding: 3rem 0 5rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.8rem;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--gris-borde);
    transition: 0.3s;
    cursor: pointer;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.gallery-item:hover {
    transform: translateY(-4px);
    border-color: var(--azul-electrico);
    box-shadow: 0 12px 36px rgba(0, 102, 255, 0.08);
}

.gallery-item.hidden {
    display: none;
}

.gallery-thumb {
    position: relative;
    width: 100%;
    padding-bottom: 75%; /* Ratio 4:3 */
    overflow: hidden;
    background: #f7f9fc;
}

.gallery-thumb svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 26, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
    color: #fff;
}

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

.gallery-icon {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.gallery-item:hover .gallery-icon {
    transform: scale(1.1);
}

.gallery-label {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
    padding: 0 1rem;
}

/* Badge de tipo en la esquina */
.gallery-item::after {
    content: attr(data-type);
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    background: var(--guinda);
    color: #fff;
    padding: 0.2rem 1rem;
    border-radius: 30px;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    z-index: 2;
}

.gallery-item[data-type="videos"]::after {
    background: var(--azul-electrico);
}

/* ===== LIGHTBOX ===== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    animation: lightboxFadeIn 0.3s ease;
}

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: var(--guinda);
    transform: rotate(90deg);
}

.lightbox-media {
    width: 100%;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    background: #f7f9fc;
}

.lightbox-media svg {
    width: 100%;
    max-height: 60vh;
    object-fit: contain;
}

.lightbox-info {
    padding: 1.8rem 2rem 2rem;
    background: #ffffff;
}

.lightbox-title {
    font-size: 1.6rem;
    color: #0a0a1a;
    margin-bottom: 0.3rem;
}

.lightbox-type {
    display: inline-block;
    background: var(--azul-electrico);
    color: #fff;
    padding: 0.2rem 1.2rem;
    border-radius: 30px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.8rem;
}

.lightbox-description {
    color: #475569;
    font-size: 1rem;
    line-height: 1.6;
}

/* Responsive galería */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1.2rem;
    }

    .filter-tabs {
        gap: 0.6rem;
    }

    .filter-tab {
        padding: 0.4rem 1.2rem;
        font-size: 0.9rem;
    }

    .lightbox-content {
        max-width: 100%;
        margin: 0.5rem;
        border-radius: 16px;
    }

    .lightbox-media {
        padding: 1rem;
        min-height: 200px;
    }

    .lightbox-info {
        padding: 1.2rem 1.5rem 1.5rem;
    }

    .lightbox-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }

    .gallery-thumb {
        padding-bottom: 100%; /* Ratio 1:1 en móvil */
    }

    .gallery-label {
        font-size: 0.8rem;
    }

    .gallery-icon {
        width: 48px;
        height: 48px;
        font-size: 2rem;
    }

    .gallery-item::after {
        font-size: 0.55rem;
        padding: 0.15rem 0.8rem;
    }
}

/* ===== PÁGINA FORO ===== */

/* Barra de acciones */
.forum-actions {
    padding: 1.5rem 0;
    background: #ffffff;
    border-bottom: 1px solid var(--gris-borde);
}

.forum-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    align-items: center;
    justify-content: space-between;
}

.forum-search {
    display: flex;
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 400px;
}

.forum-search input {
    width: 100%;
    padding: 0.7rem 3rem 0.7rem 1.2rem;
    border: 2px solid var(--gris-borde);
    border-radius: 50px;
    font-family: 'Times New Roman', Times, serif;
    font-size: 0.95rem;
    transition: 0.3s;
    background: #fafcff;
    color: #1a1a2e;
}

.forum-search input:focus {
    outline: none;
    border-color: var(--azul-electrico);
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
}

.forum-search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--azul-electrico);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.forum-search-btn:hover {
    background: var(--azul-electrico-dark);
}

.btn-new-topic {
    background: var(--guinda);
    color: #fff;
    border: none;
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    font-family: 'Times New Roman', Times, serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    white-space: nowrap;
}

.btn-new-topic:hover {
    background: var(--guinda-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(139, 26, 74, 0.3);
}

/* Tabla del foro */
.forum-index {
    padding: 2.5rem 0 4rem;
}

.forum-table-wrapper {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid var(--gris-borde);
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.forum-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Times New Roman', Times, serif;
}

.forum-table thead {
    background: #f7f9fc;
    border-bottom: 2px solid var(--gris-borde);
}

.forum-table th {
    padding: 1rem 1.2rem;
    text-align: left;
    font-weight: 600;
    color: #0a0a1a;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.forum-table td {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid #f0f2f7;
    vertical-align: middle;
}

.forum-table tbody tr:last-child td {
    border-bottom: none;
}

.forum-row {
    transition: 0.2s;
    cursor: pointer;
}

.forum-row:hover {
    background: #f7f9fc;
}

.col-topic {
    width: 55%;
}

.col-replies,
.col-views {
    width: 10%;
    text-align: center;
    color: #475569;
    font-size: 0.95rem;
}

.col-last {
    width: 25%;
    font-size: 0.85rem;
    color: #64748b;
}

/* Topic info */
.topic-info {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.topic-icon {
    font-size: 1.4rem;
    margin-top: 0.1rem;
}

.topic-title {
    color: #0a0a1a;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: 0.2s;
    display: block;
}

.topic-title:hover {
    color: var(--azul-electrico);
}

.topic-meta {
    font-size: 0.8rem;
    color: #64748b;
}

.topic-meta strong {
    color: #0a0a1a;
}

.topic-category {
    display: inline-block;
    background: #eef3ff;
    color: var(--azul-electrico);
    padding: 0.1rem 0.8rem;
    border-radius: 30px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.last-user {
    display: block;
    font-weight: 600;
    color: #0a0a1a;
}

.last-date {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
}

/* ===== MODAL GENERAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 4000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #ffffff;
    border-radius: 24px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalFadeIn 0.3s ease;
}

.modal-thread {
    max-width: 800px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--gris-borde);
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 5;
    border-radius: 24px 24px 0 0;
}

.modal-title {
    font-size: 1.6rem;
    color: #0a0a1a;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #64748b;
    transition: 0.2s;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #f1f5f9;
    color: #0a0a1a;
}

.modal-content .form-group {
    padding: 0 2rem;
}

.modal-content .form-group:first-of-type {
    padding-top: 1.5rem;
}

.modal-content .btn-submit-topic {
    margin: 1.5rem 2rem 2rem;
    width: calc(100% - 4rem);
}

/* ===== HILO DE DISCUSIÓN ===== */
.thread-container {
    padding: 1.5rem 2rem;
    max-height: 400px;
    overflow-y: auto;
}

.thread-message {
    display: flex;
    gap: 1rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid #f0f2f7;
}

.thread-message:last-child {
    border-bottom: none;
}

.thread-avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #eef3ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--azul-electrico);
}

.thread-avatar.guinda {
    background: #f5f0e8;
    color: var(--guinda);
}

.thread-message-content {
    flex: 1;
}

.thread-message-author {
    font-weight: 600;
    color: #0a0a1a;
}

.thread-message-date {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-left: 0.8rem;
}

.thread-message-text {
    color: #1e293b;
    margin-top: 0.3rem;
    line-height: 1.6;
}

.thread-reply {
    padding: 1.5rem 2rem 2rem;
    border-top: 1px solid var(--gris-borde);
    background: #fafcff;
    border-radius: 0 0 24px 24px;
}

.thread-reply h4 {
    font-size: 1.1rem;
    color: #0a0a1a;
    margin-bottom: 1rem;
}

.thread-reply .form-group {
    padding: 0;
}

.thread-reply .form-group:last-of-type {
    margin-bottom: 1rem;
}

.thread-reply .btn-reply {
    width: 100%;
}

/* ===== RESPONSIVE FORO ===== */
@media (max-width: 768px) {
    .forum-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .forum-search {
        max-width: 100%;
    }

    .btn-new-topic {
        width: 100%;
        text-align: center;
    }

    .col-replies,
    .col-views {
        display: none;
    }

    .col-topic {
        width: 70%;
    }

    .col-last {
        width: 30%;
        font-size: 0.75rem;
    }

    .topic-title {
        font-size: 0.95rem;
    }

    .modal-content {
        margin: 0.5rem;
        border-radius: 16px;
    }

    .modal-header {
        padding: 1rem 1.2rem;
    }

    .modal-title {
        font-size: 1.3rem;
    }

    .modal-content .form-group {
        padding: 0 1.2rem;
    }

    .modal-content .btn-submit-topic {
        margin: 1rem 1.2rem 1.5rem;
        width: calc(100% - 2.4rem);
    }

    .thread-container {
        padding: 1rem 1.2rem;
        max-height: 300px;
    }

    .thread-reply {
        padding: 1rem 1.2rem 1.5rem;
    }

    .thread-message {
        padding: 0.8rem 0;
    }

    .thread-avatar {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .col-last {
        display: none;
    }

    .col-topic {
        width: 100%;
    }

    .forum-table td {
        padding: 0.8rem 0.8rem;
    }

    .forum-table th {
        padding: 0.8rem 0.8rem;
        font-size: 0.75rem;
    }

    .topic-meta {
        font-size: 0.7rem;
    }
}

/* ===== PÁGINA EVENTOS ===== */

/* Toolbar de eventos */
.events-filters {
    padding: 1.5rem 0;
    background: #ffffff;
    border-bottom: 1px solid var(--gris-borde);
}

.events-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    align-items: center;
    justify-content: space-between;
}

.events-toolbar .filter-tabs {
    gap: 0.8rem;
}

.events-toolbar .filter-tab {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

.btn-calendar-view {
    background: var(--azul-electrico);
    color: #fff;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-family: 'Times New Roman', Times, serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-calendar-view:hover {
    background: var(--azul-electrico-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 102, 255, 0.3);
}

.btn-calendar-view .btn-icon {
    font-size: 1.1rem;
}

/* ===== CALENDARIO ===== */
.calendar-view {
    padding: 2rem 0 3rem;
    background: #fafcff;
}

.calendar-wrapper {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid var(--gris-borde);
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    max-width: 700px;
    margin: 0 auto;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.calendar-header h3 {
    font-size: 1.4rem;
    color: #0a0a1a;
    font-weight: 600;
}

.calendar-nav {
    background: none;
    border: 2px solid var(--gris-borde);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
    cursor: pointer;
    transition: 0.2s;
    color: #0a0a1a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-nav:hover {
    border-color: var(--azul-electrico);
    color: var(--azul-electrico);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-weekday {
    text-align: center;
    font-weight: 600;
    color: #64748b;
    padding: 0.6rem 0;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-day {
    text-align: center;
    padding: 0.6rem 0;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    color: #1e293b;
    font-size: 0.95rem;
    position: relative;
}

.calendar-day:hover {
    background: #eef3ff;
}

.calendar-day.other-month {
    color: #cbd5e1;
}

.calendar-day.today {
    background: var(--azul-electrico);
    color: #fff;
    font-weight: 600;
}

.calendar-day.today:hover {
    background: var(--azul-electrico-dark);
}

.calendar-day.has-event::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--guinda);
}

.calendar-day.today.has-event::after {
    background: #ffffff;
}

/* ===== LISTA DE EVENTOS ===== */
.events-list {
    padding: 2.5rem 0 4rem;
}

.events-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    max-width: 900px;
    margin: 0 auto;
}

.event-card {
    display: flex;
    gap: 1.8rem;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid var(--gris-borde);
    padding: 1.8rem;
    transition: 0.3s;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.event-card:hover {
    border-color: var(--azul-electrico);
    box-shadow: 0 8px 32px rgba(0, 102, 255, 0.06);
    transform: translateY(-2px);
}

.event-card.hidden {
    display: none;
}

/* Fecha destacada */
.event-date-box {
    min-width: 70px;
    background: var(--azul-electrico);
    border-radius: 16px;
    padding: 0.8rem 0.5rem;
    text-align: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: fit-content;
}

.event-date-box.pasado {
    background: #94a3b8;
}

.event-day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.event-month {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.event-year {
    font-size: 0.7rem;
    opacity: 0.8;
    margin-top: 2px;
}

/* Detalles del evento */
.event-details {
    flex: 1;
}

.event-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
}

.event-title {
    font-size: 1.3rem;
    color: #0a0a1a;
    margin: 0;
}

.event-status {
    padding: 0.2rem 1rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.event-status.proximos {
    background: #dcfce7;
    color: #166534;
}

.event-status.pasados {
    background: #f1f5f9;
    color: #64748b;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    color: #475569;
}

.event-description {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

/* Acciones del evento */
.event-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
}

.btn-register {
    background: var(--guinda);
    color: #fff;
    border: none;
    padding: 0.5rem 1.8rem;
    border-radius: 50px;
    font-family: 'Times New Roman', Times, serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-register:hover {
    background: var(--guinda-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(139, 26, 74, 0.3);
}

.calendar-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-calendar {
    background: transparent;
    border: 1px solid var(--gris-borde);
    border-radius: 30px;
    padding: 0.4rem 1rem;
    font-family: 'Times New Roman', Times, serif;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.3s;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-calendar:hover {
    border-color: var(--azul-electrico);
    color: var(--azul-electrico);
    background: #f7f9fc;
}

.btn-calendar svg {
    width: 16px;
    height: 16px;
}

.event-finished {
    color: #94a3b8;
    font-style: italic;
    font-size: 0.9rem;
}

/* ===== RESPONSIVE EVENTOS ===== */
@media (max-width: 768px) {
    .events-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .events-toolbar .filter-tabs {
        justify-content: center;
    }

    .btn-calendar-view {
        justify-content: center;
    }

    .event-card {
        flex-direction: column;
        padding: 1.2rem;
        gap: 1rem;
    }

    .event-date-box {
        flex-direction: row;
        min-width: auto;
        padding: 0.5rem 1.2rem;
        gap: 0.8rem;
        width: fit-content;
    }

    .event-day {
        font-size: 1.4rem;
    }

    .event-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .event-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .calendar-buttons {
        justify-content: center;
    }

    .calendar-wrapper {
        padding: 1rem;
        border-radius: 16px;
    }

    .calendar-day {
        padding: 0.4rem 0;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .events-toolbar .filter-tab {
        padding: 0.3rem 1rem;
        font-size: 0.8rem;
    }

    .event-title {
        font-size: 1.1rem;
    }

    .event-meta {
        font-size: 0.8rem;
        gap: 0.8rem;
    }

    .btn-calendar {
        font-size: 0.7rem;
        padding: 0.3rem 0.8rem;
    }

    .calendar-grid {
        gap: 2px;
    }

    .calendar-weekday {
        font-size: 0.7rem;
        padding: 0.3rem 0;
    }

    .calendar-day {
        font-size: 0.75rem;
        padding: 0.3rem 0;
    }

    .calendar-nav {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .calendar-header h3 {
        font-size: 1.1rem;
    }
}

/* ===== PÁGINA CONTACTO ===== */

.contact-main {
    padding: 3rem 0 4rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
}

/* Información de contacto */
.contact-info {
    background: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    border: 1px solid var(--gris-borde);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.contact-info .section-title {
    margin-bottom: 1rem;
}

.contact-info-text {
    color: #475569;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.2rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f2f7;
}

.contact-item:last-of-type {
    border-bottom: none;
}

.contact-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: #eef3ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--azul-electrico);
}

.contact-icon svg {
    width: 22px;
    height: 22px;
}

.contact-detail h4 {
    font-size: 1rem;
    color: #0a0a1a;
    margin-bottom: 0.2rem;
}

.contact-detail p {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Redes sociales */
.contact-social {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f2f7;
}

.contact-social h4 {
    font-size: 1rem;
    color: #0a0a1a;
    margin-bottom: 0.8rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #0a0a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--azul-electrico);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 102, 255, 0.3);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

/* Formulario de contacto */
.contact-form-wrapper {
    background: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    border: 1px solid var(--gris-borde);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.contact-form-wrapper .section-title {
    margin-bottom: 1.5rem;
}

.contact-form .form-group {
    margin-bottom: 1.2rem;
}

.contact-form .form-group label {
    display: block;
    font-weight: 600;
    color: #0a0a1a;
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.contact-form .form-group input,
.contact-form .form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid var(--gris-borde);
    border-radius: 12px;
    font-family: 'Times New Roman', Times, serif;
    font-size: 1rem;
    transition: 0.3s;
    background: #fafcff;
    color: #1a1a2e;
}

.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus {
    outline: none;
    border-color: var(--azul-electrico);
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.08);
}

.contact-form .form-group input.error,
.contact-form .form-group textarea.error {
    border-color: #dc2626;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08);
}

.contact-form .form-group .field-error {
    color: #dc2626;
    font-size: 0.8rem;
    margin-top: 0.3rem;
    display: none;
}

.contact-form .form-group .field-error.visible {
    display: block;
}

.btn-submit {
    background: var(--azul-electrico);
    color: #fff;
    border: none;
    padding: 0.9rem 2.5rem;
    border-radius: 60px;
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
}

.btn-submit:hover {
    background: var(--azul-electrico-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 102, 255, 0.3);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    margin-top: 1.2rem;
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    font-weight: 500;
    text-align: center;
    display: none;
}

.form-message.success {
    display: block;
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.form-message.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Mapa */
.contact-map {
    padding: 2rem 0 4rem;
    background: #fafcff;
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--gris-borde);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.map-placeholder {
    width: 100%;
    height: 400px;
    background: #eef3ff;
}

.map-placeholder svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* ===== RESPONSIVE CONTACTO ===== */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info {
        order: 2;
    }

    .contact-form-wrapper {
        order: 1;
    }
}

@media (max-width: 768px) {
    .contact-main {
        padding: 2rem 0 3rem;
    }

    .contact-info,
    .contact-form-wrapper {
        padding: 1.8rem 1.2rem;
        border-radius: 16px;
    }

    .contact-item {
        padding: 0.8rem 0;
        gap: 1rem;
    }

    .contact-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .contact-icon svg {
        width: 18px;
        height: 18px;
    }

    .map-placeholder {
        height: 280px;
    }

    .social-icons {
        gap: 0.8rem;
    }

    .social-icon {
        width: 38px;
        height: 38px;
    }

    .social-icon svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .contact-info,
    .contact-form-wrapper {
        padding: 1.2rem 1rem;
        border-radius: 12px;
    }

    .contact-item {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.6rem 0;
    }

    .contact-detail p {
        font-size: 0.9rem;
    }

    .map-placeholder {
        height: 200px;
    }

    .contact-form .form-group input,
    .contact-form .form-group textarea {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }

    .btn-submit {
        padding: 0.7rem 1.5rem;
        font-size: 1rem;
    }
}

/* ===== DASHBOARD ===== */

.dashboard-main {
    padding: 0;
    margin-top: 70px;
    background: #f7f9fc;
    min-height: calc(100vh - 70px);
}

.dashboard-layout {
    display: flex;
    min-height: calc(100vh - 70px);
}

/* ===== SIDEBAR ===== */
.dashboard-sidebar {
    width: 240px;
    background: #0a0a1a;
    color: #f0f4fa;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 70px;
    height: calc(100vh - 70px);
    overflow-y: auto;
    flex-shrink: 0;
    border-right: 1px solid #1a1a3a;
}

.sidebar-header {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid #1a1a3a;
}

.sidebar-logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: #f0f4fa;
}

.sidebar-nav {
    padding: 1rem 0.8rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: #b8cde0;
    font-family: 'Times New Roman', Times, serif;
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
    text-align: left;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.sidebar-link.active {
    background: rgba(0, 102, 255, 0.15);
    color: #0066FF;
    border-left: 3px solid #0066FF;
}

.sidebar-icon {
    font-size: 1.2rem;
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #1a1a3a;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-user {
    font-size: 0.9rem;
    color: #b8cde0;
}

.sidebar-logout {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #1a1a3a;
    color: #b8cde0;
    padding: 0.4rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Times New Roman', Times, serif;
    font-size: 0.85rem;
    transition: 0.3s;
}

.sidebar-logout:hover {
    background: rgba(220, 38, 38, 0.15);
    border-color: #dc2626;
    color: #dc2626;
}

/* ===== CONTENIDO PRINCIPAL ===== */
.dashboard-content {
    flex: 1;
    padding: 1.5rem 2rem 2rem;
    overflow-y: auto;
}

.dashboard-view {
    display: none;
    animation: fadeInView 0.3s ease;
}

.dashboard-view.active {
    display: block;
}

@keyframes fadeInView {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.8rem;
}

.view-header h2 {
    font-size: 1.8rem;
    color: #0a0a1a;
    margin: 0;
}

.view-date {
    font-size: 0.9rem;
    color: #64748b;
}

.view-filters {
    display: flex;
    gap: 0.8rem;
}

.filter-select {
    padding: 0.4rem 1rem;
    border: 2px solid var(--gris-borde);
    border-radius: 8px;
    font-family: 'Times New Roman', Times, serif;
    font-size: 0.9rem;
    background: #ffffff;
    color: #0a0a1a;
    cursor: pointer;
}

/* ===== MÉTRICAS ===== */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: #ffffff;
    padding: 1.2rem 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--gris-borde);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.metric-info {
    flex: 1;
}

.metric-value {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    color: #0a0a1a;
}

.metric-label {
    font-size: 0.85rem;
    color: #64748b;
}

.metric-change {
    font-size: 0.8rem;
    font-weight: 600;
}

.metric-change.positive {
    color: #166534;
}

.metric-change.negative {
    color: #991b1b;
}

/* ===== GRÁFICOS ===== */
.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.chart-card {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--gris-borde);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.chart-card.full-width {
    grid-column: 1 / -1;
}

.chart-card h4 {
    font-size: 1rem;
    color: #0a0a1a;
    margin-bottom: 1rem;
}

.chart-container {
    width: 100%;
    height: 200px;
}

.chart-svg {
    width: 100%;
    height: 100%;
}

/* ===== TABLAS ===== */
.table-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--gris-borde);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gris-borde);
}

.table-header h4 {
    font-size: 1rem;
    color: #0a0a1a;
    margin: 0;
}

.btn-table-action {
    background: transparent;
    border: none;
    color: var(--azul-electrico);
    font-family: 'Times New Roman', Times, serif;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.2s;
}

.btn-table-action:hover {
    color: var(--azul-electrico-dark);
}

.table-wrapper {
    overflow-x: auto;
    padding: 0;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.dashboard-table thead {
    background: #f7f9fc;
}

.dashboard-table th {
    padding: 0.8rem 1.2rem;
    text-align: left;
    font-weight: 600;
    color: #0a0a1a;
    border-bottom: 2px solid var(--gris-borde);
}

.dashboard-table td {
    padding: 0.8rem 1.2rem;
    border-bottom: 1px solid #f0f2f7;
    color: #1e293b;
}

.dashboard-table tbody tr:hover {
    background: #f7f9fc;
}

.user-avatar {
    display: inline-block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #eef3ff;
    color: var(--azul-electrico);
    text-align: center;
    line-height: 32px;
    font-weight: 600;
    font-size: 0.75rem;
    margin-right: 0.5rem;
}

.status-badge {
    padding: 0.2rem 0.8rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-badge.success {
    background: #dcfce7;
    color: #166534;
}

.status-badge.warning {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.danger {
    background: #fee2e2;
    color: #991b1b;
}

.btn-icon {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
    font-size: 1rem;
    transition: 0.2s;
    border-radius: 4px;
}

.btn-icon:hover {
    background: #f1f5f9;
}

.table-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.table-search {
    padding: 0.4rem 1rem;
    border: 2px solid var(--gris-borde);
    border-radius: 8px;
    font-family: 'Times New Roman', Times, serif;
    font-size: 0.85rem;
    background: #fafcff;
}

.table-search:focus {
    outline: none;
    border-color: var(--azul-electrico);
}

/* ===== REPORTES ===== */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
}

.report-card {
    background: #ffffff;
    padding: 1.2rem 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--gris-borde);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: 0.3s;
}

.report-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.report-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.report-info {
    flex: 1;
}

.report-info h4 {
    font-size: 1rem;
    color: #0a0a1a;
    margin: 0 0 0.2rem;
}

.report-info p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0 0 0.6rem;
}

.report-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-report {
    padding: 0.2rem 1rem;
    border: 1px solid var(--gris-borde);
    border-radius: 6px;
    background: transparent;
    font-family: 'Times New Roman', Times, serif;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.2s;
}

.btn-report:hover {
    border-color: var(--azul-electrico);
    color: var(--azul-electrico);
}

/* ===== PROYECTOS ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
}

.project-card {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--gris-borde);
    transition: 0.3s;
}

.project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.project-status {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    margin-bottom: 0.6rem;
}

.project-card h4 {
    font-size: 1.1rem;
    color: #0a0a1a;
    margin: 0 0 0.3rem;
}

.project-card p {
    font-size: 0.9rem;
    color: #475569;
    margin: 0 0 1rem;
}

.project-progress {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
    background: var(--azul-electrico);
    transition: width 0.5s;
}

.progress-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #0a0a1a;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #64748b;
}

/* ===== CONFIGURACIÓN ===== */
.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.settings-card {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--gris-borde);
}

.settings-card.full-width {
    grid-column: 1 / -1;
}

.settings-card h4 {
    font-size: 1rem;
    color: #0a0a1a;
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gris-borde);
}

.settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.settings-item label {
    font-size: 0.9rem;
    color: #0a0a1a;
}

.settings-select,
.settings-input {
    padding: 0.3rem 0.8rem;
    border: 2px solid var(--gris-borde);
    border-radius: 6px;
    font-family: 'Times New Roman', Times, serif;
    font-size: 0.85rem;
    background: #fafcff;
}

.settings-select:focus,
.settings-input:focus {
    outline: none;
    border-color: var(--azul-electrico);
}

.settings-item.toggle input[type="checkbox"] {
    width: 40px;
    height: 22px;
    appearance: none;
    background: #cbd5e1;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: 0.3s;
    flex-shrink: 0;
}

.settings-item.toggle input[type="checkbox"]:checked {
    background: var(--azul-electrico);
}

.settings-item.toggle input[type="checkbox"]::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: #ffffff;
    border-radius: 50%;
    transition: 0.3s;
}

.settings-item.toggle input[type="checkbox"]:checked::after {
    left: 20px;
}

/* ===== RESPONSIVE DASHBOARD ===== */
@media (max-width: 1024px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .settings-card.full-width {
        grid-column: 1;
    }
}

@media (max-width: 768px) {
    .dashboard-layout {
        flex-direction: column;
    }

    .dashboard-sidebar {
        width: 100%;
        height: auto;
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        padding: 0.5rem;
        border-right: none;
        border-bottom: 1px solid #1a1a3a;
    }

    .sidebar-header {
        display: none;
    }

    .sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 0.5rem;
        gap: 0.3rem;
    }

    .sidebar-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        width: auto;
    }

    .sidebar-footer {
        display: none;
    }

    .dashboard-content {
        padding: 1rem;
    }

    .metrics-grid {
        grid-template-columns: 1fr 1fr;
    }

    .view-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .reports-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-table th,
    .dashboard-table td {
        padding: 0.5rem 0.6rem;
        font-size: 0.75rem;
    }

    .user-avatar {
        width: 24px;
        height: 24px;
        line-height: 24px;
        font-size: 0.6rem;
        margin-right: 0.3rem;
    }

    .sidebar-link {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }

    .sidebar-icon {
        font-size: 0.9rem;
    }
}

.script-execution-section {
    background: url('./Assets/images/Fondo02.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
}

.script-execution-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 26, 0.75);
    backdrop-filter: blur(4px);
}

.script-execution-container {
    position: relative;
    z-index: 1;
    max-width: 650px;
    width: 100%;
    background: rgba(10, 22, 40, 0.92);
    border-radius: 24px;
    padding: 3rem 2.5rem 2.8rem;
    text-align: center;
    border: 1px solid rgba(0, 102, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 102, 255, 0.05);
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.script-execution-container .logo-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.script-execution-container .logo-link:hover {
    transform: scale(1.05);
}

.script-execution-container .logo-link img {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 4px 20px rgba(0, 102, 255, 0.3));
}

.script-execution-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #f0f4fa;
    margin-bottom: 0.3rem;
    letter-spacing: 1px;
}

.script-execution-title .highlight {
    color: #0066FF;
    position: relative;
}

.script-execution-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #8B1A4A;
    border-radius: 2px;
}

.script-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #0066FF, #8B1A4A);
    border-radius: 2px;
    margin: 1.2rem auto 1.2rem;
}

.script-name-badge {
    display: inline-block;
    background: rgba(0, 102, 255, 0.12);
    border: 1px solid rgba(0, 102, 255, 0.25);
    border-radius: 50px;
    padding: 0.5rem 2rem;
    font-size: 1.1rem;
    color: #93c5fd;
    font-weight: 600;
    margin-bottom: 1.2rem;
    font-family: 'Times New Roman', Times, serif;
}

.script-image-box {
    display: inline-block;
    margin-bottom: 1.2rem;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.script-image-box img {
    height: 35px;
    width: auto;
    vertical-align: middle;
}

.script-result-box {
    margin-top: 0.5rem;
    padding: 1.2rem 1.5rem;
    border-radius: 16px;
    background: rgba(0, 102, 255, 0.06);
    border: 1px solid rgba(0, 102, 255, 0.12);
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.script-result-box h4 {
    font-size: 1.2rem;
    color: #f0f4fa;
    font-weight: 500;
    margin: 0;
    line-height: 1.6;
}

.script-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid rgba(255, 255, 255, 0.08);
    border-top: 4px solid #0066FF;
    border-right: 4px solid #8B1A4A;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    margin: 1.2rem auto 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Estados del resultado */
.status-success { color: #86efac !important; }
.status-error { color: #fca5a5 !important; }
.status-warning { color: #fcd34d !important; }
.status-info { color: #93c5fd !important; }

/* Responsive */
@media (max-width: 768px) {
    .script-execution-container {
        padding: 2rem 1.5rem 2rem;
        border-radius: 20px;
        margin: 1rem;
    }
    .script-execution-title { font-size: 1.8rem; }
    .script-name-badge { font-size: 0.95rem; padding: 0.4rem 1.5rem; }
    .script-result-box h4 { font-size: 1rem; }
    .script-execution-container .logo-link img { width: 100px; }
}

@media (max-width: 480px) {
    .script-execution-container {
        padding: 1.5rem 1rem 1.8rem;
        border-radius: 16px;
    }
    .script-execution-title { font-size: 1.4rem; }
    .script-name-badge { font-size: 0.85rem; padding: 0.3rem 1rem; }
    .script-image-box img { height: 28px; }
    .script-spinner { width: 36px; height: 36px; border-width: 3px; }
}

.error-section {
    margin-top: 70px;
    padding: 3rem 0 4rem;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3a 50%, #0a0a1a 100%);
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
}

.error-container {
    width: 100%;
}

.error-wrapper {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* ===== CÓDIGO DE ERROR ===== */
.error-code {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.2rem;
    margin-bottom: 1rem;
    font-size: 8rem;
    font-weight: 700;
    line-height: 1;
    font-family: 'Times New Roman', Times, serif;
}

.error-number {
    color: #0066FF;
    text-shadow: 0 0 40px rgba(0, 102, 255, 0.3), 0 0 80px rgba(0, 102, 255, 0.1);
    animation: pulseNumber 2s ease-in-out infinite;
}

.error-number:nth-child(1) {
    animation-delay: 0s;
}

.error-number:nth-child(2) {
    animation-delay: 0.3s;
}

.error-number:nth-child(3) {
    animation-delay: 0.6s;
}

.error-guinda {
    color: #8B1A4A;
    text-shadow: 0 0 40px rgba(139, 26, 74, 0.3), 0 0 80px rgba(139, 26, 74, 0.1);
}

@keyframes pulseNumber {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* ===== MENSAJE DE ERROR ===== */
.error-message {
    margin-top: 2rem;
}

.error-title {
    font-size: 2.8rem;
    color: #f0f4fa;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.error-title .highlight {
    color: #8B1A4A;
    position: relative;
}

.error-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #0066FF;
    border-radius: 2px;
}

.error-description {
    font-size: 1.15rem;
    color: #b8cde0;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================
   ANIMACIÓN DEL ESCÁNER (Adaptada)
   ============================================================ */

.body-scanner {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 320px;
    margin: 0 auto 2rem;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: hidden;
}

/* Escáner principal */
.scanner {
    position: absolute;
    margin: auto;
    width: 280px;
    height: 230px;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a3a;
    border-top-right-radius: 16px;
    border-top-left-radius: 16px;
    box-shadow: inset 0 -20px 0 0 #1a1a3a, inset 0 -40px 0 0 #2a2a5a;
    border: 1px solid rgba(0, 102, 255, 0.15);
}

.scanner:before, .scanner:after {
    content: '';
    position: absolute;
    margin: auto;
}

.scanner:before {
    width: 20px;
    height: 30px;
    top: -30px;
    left: 20px;
    background: rgba(0, 102, 255, 0.3);
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
}

.scanner:after {
    width: 150px;
    height: 20px;
    background: #2a2a5a;
    top: -20px;
    right: 20px;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
}

/* Banda transportadora */
.belt {
    position: absolute;
    margin: auto;
    width: 100%;
    max-width: 500px;
    height: 30px;
    background: #2a2a5a;
    border-radius: 15px;
    bottom: 30px;
    left: 0;
    right: 0;
    border: 4px solid #1a1a3a;
}

.belt:before, .belt:after {
    position: absolute;
    content: '';
    margin: auto;
}

.belt:before {
    width: 10px;
    height: 50px;
    background: #3a3a6a;
    bottom: -54px;
    left: 20px;
    box-shadow: calc(100% - 40px) 0 0 0 #3a3a6a;
}

.belt:after {
    width: 30px;
    height: 10px;
    background: #4a4a8a;
    bottom: -54px;
    left: 10px;
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;
    box-shadow: calc(100% - 50px) 0 0 0 #4a4a8a;
}

/* Monitor */
.monitor {
    position: absolute;
    width: 160px;
    height: 90px;
    background: #0a0a1a;
    margin: auto;
    bottom: 130px;
    left: auto;
    right: 20px;
    border: 4px solid #1a1a3a;
    text-align: center;
    line-height: 85px;
    font-size: 50px;
    color: #0066FF;
    font-family: 'Share Tech Mono', 'Times New Roman', monospace;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 102, 255, 0.05);
}

.monitor.text {
    font-size: 25px;
    color: #8B1A4A;
}

.monitor:before, .monitor:after {
    content: '';
    position: absolute;
    margin: auto;
}

.monitor:before {
    width: 10px;
    height: 20px;
    background: #2a2a5a;
    left: 0;
    right: 0;
    bottom: -24px;
}

.monitor:after {
    width: 105px;
    height: 10px;
    background: #2a2a5a;
    left: -24px;
    bottom: -34px;
}

/* Ventana de escaneo */
.scan-window {
    position: absolute;
    margin: auto;
    width: 150px;
    height: 120px;
    background: #0a0a1a;
    bottom: 80px;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 102, 255, 0.1);
}

.scan-window.scanning {
    animation: scanning 0.5s ease infinite alternate;
}

.scan-window:before {
    content: '';
    position: absolute;
    width: 10px;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    box-shadow: 
        12px 0 0 0 rgba(0, 0, 0, 0.1),
        24px 0 0 0 rgba(0, 0, 0, 0.1),
        36px 0 0 0 rgba(0, 0, 0, 0.1),
        48px 0 0 0 rgba(0, 0, 0, 0.1),
        60px 0 0 0 rgba(0, 0, 0, 0.1),
        72px 0 0 0 rgba(0, 0, 0, 0.1),
        84px 0 0 0 rgba(0, 0, 0, 0.1),
        96px 0 0 0 rgba(0, 0, 0, 0.1),
        108px 0 0 0 rgba(0, 0, 0, 0.1),
        120px 0 0 0 rgba(0, 0, 0, 0.1),
        132px 0 0 0 rgba(0, 0, 0, 0.1),
        144px 0 0 0 rgba(0, 0, 0, 0.1);
}

@keyframes scanning {
    from {
        background: #0a0a1a;
    }
    to {
        background: #1a1a3a;
    }
}

/* Elemento oculto */
.hide {
    position: absolute;
    margin: auto;
    width: 75px;
    background: #1a1a3a;
    height: 120px;
    bottom: 80px;
    left: 0;
    right: 226px;
    z-index: 3;
    box-shadow: 225px 0 0 0 #1a1a3a;
}

.hide:before {
    content: '';
    position: absolute;
    width: 150px;
    height: 120px;
    top: 0;
    left: 75px;
    background: rgba(0, 0, 0, 0.5);
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
}

/* Caja del usuario */
.box {
    position: absolute;
    margin: auto;
    width: 80px;
    height: 80px;
    background: #2a1a3a;
    bottom: 80px;
    left: 0;
    right: 540px;
    z-index: 1;
    font-family: 'Times New Roman', Times, serif;
    text-align: center;
    color: #8B1A4A;
    padding-top: 5px;
    font-size: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    border: 1px solid rgba(139, 26, 74, 0.2);
    transition: all 0.5s ease;
}

.box p {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    margin: 0;
    padding: 0 4px;
    font-size: 10px;
    color: #b8cde0;
}

.box .user-name {
    font-size: 11px;
    font-weight: 600;
    color: #93c5fd;
}

.box .user-agent {
    font-size: 8px;
    color: #64748b;
    white-space: normal;
    line-height: 1.2;
}

.box .user-icon {
    position: absolute;
    margin: auto;
    width: 40px;
    height: 30px;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0066FF;
    border-top-right-radius: 20px;
    border-top-left-radius: 20px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.box .user-icon:before {
    content: '';
    position: absolute;
    left: 2px;
    top: -34px;
    width: 34px;
    height: 35px;
    border-radius: 50%;
    background: inherit;
}

.box.scanned {
    background: rgba(42, 26, 58, 0.3);
    box-shadow: inset 0 0 0 2px rgba(139, 26, 74, 0.3);
    text-indent: -99999px;
}

.box.scanned .user-icon {
    opacity: 1;
}

.box.scanned p {
    display: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .error-code {
        font-size: 5rem;
    }

    .error-title {
        font-size: 2.2rem;
    }

    .error-description {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .body-scanner {
        max-width: 380px;
        height: 280px;
    }

    .scanner {
        width: 220px;
        height: 190px;
    }

    .belt {
        max-width: 380px;
    }

    .monitor {
        width: 120px;
        height: 70px;
        font-size: 35px;
        line-height: 65px;
        right: 10px;
        bottom: 110px;
    }

    .monitor.text {
        font-size: 20px;
    }

    .scan-window {
        width: 120px;
        height: 100px;
        bottom: 65px;
    }

    .hide {
        width: 60px;
        height: 100px;
        bottom: 65px;
        right: 180px;
        box-shadow: 180px 0 0 0 #1a1a3a;
    }

    .hide:before {
        width: 120px;
        height: 100px;
        left: 60px;
    }

    .box {
        width: 65px;
        height: 65px;
        bottom: 65px;
        right: 440px;
        font-size: 11px;
    }

    .box p {
        font-size: 8px;
    }

    .box .user-name {
        font-size: 9px;
    }

    .box .user-agent {
        font-size: 7px;
    }

    .error-actions {
        flex-direction: column;
        align-items: center;
    }

    .error-actions .btn-primary,
    .error-actions .btn-outline {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .error-code {
        font-size: 3.5rem;
    }

    .error-title {
        font-size: 1.8rem;
    }

    .body-scanner {
        max-width: 320px;
        height: 240px;
    }

    .scanner {
        width: 180px;
        height: 160px;
    }

    .scanner:after {
        width: 100px;
        height: 15px;
    }

    .belt {
        max-width: 320px;
        height: 25px;
        bottom: 20px;
    }

    .belt:before {
        height: 40px;
        bottom: -44px;
    }

    .belt:after {
        height: 8px;
        bottom: -44px;
    }

    .monitor {
        width: 90px;
        height: 55px;
        font-size: 28px;
        line-height: 50px;
        right: 5px;
        bottom: 85px;
        border-width: 3px;
    }

    .monitor.text {
        font-size: 16px;
    }

    .monitor:before {
        height: 15px;
        bottom: -19px;
        width: 8px;
    }

    .monitor:after {
        width: 75px;
        height: 8px;
        left: -18px;
        bottom: -27px;
    }

    .scan-window {
        width: 90px;
        height: 80px;
        bottom: 50px;
        border-radius: 8px;
    }

    .hide {
        width: 45px;
        height: 80px;
        bottom: 50px;
        right: 135px;
        box-shadow: 135px 0 0 0 #1a1a3a;
    }

    .hide:before {
        width: 90px;
        height: 80px;
        left: 45px;
    }

    .box {
        width: 50px;
        height: 50px;
        bottom: 50px;
        right: 335px;
        font-size: 9px;
        border-radius: 6px;
    }

    .box p {
        font-size: 7px;
    }

    .box .user-name {
        font-size: 8px;
    }

    .box .user-agent {
        font-size: 6px;
    }

    .box .user-icon {
        width: 30px;
        height: 22px;
    }

    .box .user-icon:before {
        width: 26px;
        height: 26px;
        top: -28px;
        left: 1px;
    }
}

.error-actions .btn-primary {
    background: var(--azul-electrico);
    color: #fff;
    padding: 0.9rem 2.8rem;
    border-radius: 60px;
    text-decoration: none;
    font-size: 1.1rem;
    border: 1px solid var(--azul-electrico);
    transition: 0.25s;
    box-shadow: 0 4px 14px rgba(0, 102, 255, 0.3);
    display: inline-block;
}

.error-actions .btn-primary:hover {
    background: var(--azul-electrico-dark);
    border-color: var(--azul-electrico-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0, 102, 255, 0.4);
}

.error-actions .btn-outline {
    background: transparent;
    color: var(--azul-electrico);
    padding: 0.9rem 2.8rem;
    border-radius: 60px;
    text-decoration: none;
    font-size: 1.1rem;
    border: 2px solid var(--azul-electrico);
    transition: 0.25s;
    display: inline-block;
}

.error-actions .btn-outline:hover {
    background: var(--azul-electrico);
    color: #fff;
    transform: translateY(-3px);
}

/* Animación de parpadeo para el monitor */
.monitor.text {
    animation: blinkText 1s ease-in-out infinite;
}

@keyframes blinkText {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

/* Sombra de neón para el código de error */
.error-code:hover .error-number {
    animation-play-state: paused;
}

.error-code .error-number {
    display: inline-block;
    transition: transform 0.3s ease;
}

.error-code .error-number:hover {
    transform: scale(1.2) rotate(-5deg);
}

.profile-hero {
    margin-top: 80px;
    padding: 4rem 0 3rem;
    background: linear-gradient(135deg, #eef3ff 0%, #dce5ff 100%);
    border-bottom: 3px solid var(--azul-electrico);
}

.profile-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

.profile-image {
    text-align: center;
}

.profile-avatar {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    background: #eef3ff;
    color: var(--azul-electrico);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    font-weight: 700;
    margin: 0 auto;
    border: 4px solid var(--azul-electrico);
    box-shadow: 0 8px 30px rgba(0, 102, 255, 0.12);
}

.profile-content h1 {
    font-size: 2.8rem;
    color: #0a0a1a;
    margin-bottom: 0.2rem;
}

.profile-content .cargo {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--azul-electrico);
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.profile-content .biografia {
    font-size: 1.05rem;
    color: #1e293b;
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.profile-content .biografia strong {
    color: var(--azul-electrico);
}

.profile-content .biografia:last-child {
    margin-bottom: 0;
}

.profile-back {
    display: inline-block;
    margin-top: 2rem;
    color: var(--azul-electrico);
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}

.profile-back:hover {
    color: var(--guinda);
    transform: translateX(-4px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .profile-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .profile-avatar {
        max-width: 200px;
        font-size: 4rem;
    }

    .profile-content h1 {
        font-size: 2.2rem;
    }

    .profile-content .biografia {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .profile-hero {
        padding: 3rem 0 2rem;
    }

    .profile-content h1 {
        font-size: 1.8rem;
    }

    .profile-avatar {
        max-width: 160px;
        font-size: 3rem;
    }
}

.careers-hero {
    margin-top: 80px;
    padding: 5rem 0 4rem;
    background: linear-gradient(135deg, #eef3ff 0%, #dce5ff 100%);
    border-bottom: 3px solid var(--azul-electrico);
    text-align: center;
}

.careers-intro {
    max-width: 750px;
    margin: 0 auto 0.5rem;
    font-size: 1.15rem;
    color: #1e293b;
    line-height: 1.8;
}

/* ===== FILTROS ===== */
.filters-section {
    padding: 2rem 0 1rem;
    background: #ffffff;
    border-bottom: 1px solid var(--gris-borde);
}

.filters-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.filter-btn {
    padding: 0.4rem 1.5rem;
    border: 2px solid var(--gris-borde);
    border-radius: 50px;
    background: transparent;
    color: #1e293b;
    font-family: 'Times New Roman', Times, serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.3s;
}

.filter-btn:hover {
    border-color: var(--azul-electrico);
    color: var(--azul-electrico);
}

.filter-btn.active {
    background: var(--azul-electrico);
    border-color: var(--azul-electrico);
    color: #fff;
}

.filter-btn.active:hover {
    background: var(--azul-electrico-dark);
}

.search-job {
    display: flex;
    position: relative;
}

.search-job input {
    padding: 0.5rem 1rem;
    border: 2px solid var(--gris-borde);
    border-radius: 50px;
    font-family: 'Times New Roman', Times, serif;
    font-size: 0.9rem;
    background: #fafcff;
    width: 220px;
    transition: 0.3s;
}

.search-job input:focus {
    outline: none;
    border-color: var(--azul-electrico);
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.08);
}

.search-job button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--azul-electrico);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    cursor: pointer;
    transition: 0.3s;
}

.search-job button:hover {
    background: var(--azul-electrico-dark);
}

/* ===== OFERTAS LABORALES ===== */
.jobs-section {
    padding: 3rem 0 5rem;
}

.jobs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.job-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--gris-borde);
    padding: 1.8rem 2rem;
    transition: 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-start;
}

.job-card:hover {
    transform: translateY(-4px);
    border-color: var(--azul-electrico);
    box-shadow: 0 12px 36px rgba(0, 102, 255, 0.06);
}

.job-card.hidden {
    display: none;
}

.job-info {
    flex: 1;
    min-width: 200px;
}

.job-info h3 {
    font-size: 1.3rem;
    color: #0a0a1a;
    margin-bottom: 0.3rem;
}

.job-info .job-department {
    font-size: 0.85rem;
    color: var(--azul-electrico);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.job-info .job-description {
    font-size: 0.95rem;
    color: #475569;
    margin-top: 0.5rem;
    line-height: 1.6;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-top: 0.8rem;
    font-size: 0.85rem;
    color: #64748b;
}

.job-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.job-tag {
    display: inline-block;
    padding: 0.15rem 0.8rem;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.job-tag.presencial {
    background: #eef3ff;
    color: var(--azul-electrico);
}

.job-tag.hibrido {
    background: #f5f0e8;
    color: #8B1A4A;
}

.job-tag.remoto {
    background: #dcfce7;
    color: #166534;
}

.job-tag.destacado {
    background: #fef3c7;
    color: #92400e;
}

.job-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    min-width: 140px;
    align-items: flex-end;
}

.btn-apply {
    background: var(--azul-electrico);
    color: #fff;
    border: none;
    padding: 0.5rem 2rem;
    border-radius: 50px;
    font-family: 'Times New Roman', Times, serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
    text-align: center;
    text-decoration: none;
}

.btn-apply:hover {
    background: var(--azul-electrico-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 102, 255, 0.3);
}

.btn-save {
    background: transparent;
    color: #64748b;
    border: 1px solid var(--gris-borde);
    padding: 0.3rem 1.2rem;
    border-radius: 50px;
    font-family: 'Times New Roman', Times, serif;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
    text-align: center;
}

.btn-save:hover {
    border-color: var(--azul-electrico);
    color: var(--azul-electrico);
}

/* ===== SIN RESULTADOS ===== */
.no-results-jobs {
    text-align: center;
    padding: 3rem 0;
    color: #94a3b8;
    display: none;
}

.no-results-jobs.visible {
    display: block;
}

/* ===== PROCESO DE SELECCIÓN ===== */
.process-section {
    padding: 4rem 0;
    background: #f7f9fc;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.process-step {
    text-align: center;
    padding: 1.5rem;
}

.process-step .step-number {
    display: inline-block;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--azul-electrico);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 48px;
    margin-bottom: 0.8rem;
}

.process-step h4 {
    font-size: 1.1rem;
    color: #0a0a1a;
    margin-bottom: 0.3rem;
}

.process-step p {
    font-size: 0.9rem;
    color: #475569;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .filters-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        justify-content: center;
    }

    .search-job input {
        width: 100%;
    }

    .job-card {
        flex-direction: column;
        padding: 1.5rem;
    }

    .job-actions {
        flex-direction: row;
        width: 100%;
        align-items: stretch;
    }

    .btn-apply,
    .btn-save {
        width: auto;
        flex: 1;
    }

    .jobs-grid {
        padding: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .careers-hero {
        padding: 3rem 0 2rem;
    }

    .careers-hero .hero-title {
        font-size: 2rem;
    }

    .filter-btn {
        padding: 0.3rem 1rem;
        font-size: 0.8rem;
    }

    .job-info h3 {
        font-size: 1.1rem;
    }

    .job-actions {
        flex-direction: column;
    }

    .btn-apply,
    .btn-save {
        width: 100%;
    }
}