:root {
    --bg-dark: #050a14;
    --bg-card: #0a1325;
    --bg-card-hover: #101d38;
    --yellow: #ffd000;
    --yellow-hover: #e6bc00;
    --text-main: #ffffff;
    --text-muted: #e2e8f0;
    --border-color: rgba(255, 208, 0, 0.15);
    --border-glow: rgba(255, 208, 0, 0.4);
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
}

h1, h2, h3, h4, .brand-text {
    font-family: var(--font-heading);
}

/* ==========================================
   NAVBAR & NAVEGACIÓN
   ========================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(5, 10, 20, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.8rem 1.5rem;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-main);
}

.brand-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--yellow);
    color: var(--bg-dark);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-main {
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.brand-sub {
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--yellow);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--yellow);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
}

.mobile-menu.show {
    display: flex;
}

.mobile-link {
    color: var(--text-main);
    text-decoration: none;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mobile-link.highlight {
    color: var(--yellow);
    font-weight: 700;
}

/* ==========================================
   ESTRUCTURA & CONTENEDORES
   ========================================== */
.main-content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    min-height: 70vh;
}

.page-section {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.page-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   BOTONES & ELEMENTOS UI
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.btn-yellow {
    background-color: var(--yellow);
    color: var(--bg-dark);
}

.btn-yellow:hover {
    background-color: var(--yellow-hover);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border-color: rgba(255,255,255,0.3);
}

.btn-outline:hover {
    border-color: var(--yellow);
    color: var(--yellow);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-rounded {
    border-radius: 50px;
    padding: 0.85rem 1.8rem;
    font-size: 1rem;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(255, 208, 0, 0.2);
}

.btn-rounded:hover {
    box-shadow: 0 6px 20px rgba(255, 208, 0, 0.4);
    transform: translateY(-2px);
}

/* ==========================================
   SECCIÓN HERO PRINCIPAL & ESTADÍSTICAS
   ========================================== */
.hero-banner {
    background: url('Images/Banner_Inicio.jpg') center/cover no-repeat;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3.5rem 2.5rem;
    margin-bottom: 2rem;
}

.hero-badge {
    display: inline-block;
    color: var(--yellow);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 2.8rem;
    line-height: 1.15;
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.text-highlight {
    color: var(--yellow);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 750px;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    font-size: 2rem;
    color: var(--yellow);
}

.stat-num {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    font-family: var(--font-heading);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================
   SISTEMA DE HERO BANNERS INTERNOS
   ========================================== */
.comando-hero-card,
.actividades-hero-card,
.red-hero-card,
.recursos-hero-card,
.actualidad-hero-card,
.unete-hero-card {
    padding: 0;
    overflow: hidden;
}

.comando-hero-banner,
.actividades-hero-banner,
.red-hero-banner,
.recursos-hero-banner,
.actualidad-hero-banner,
.unete-hero-banner {
    position: relative;
    min-height: 230px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.comando-hero-banner { background-image: url('Images/Banner_ComandoAlerta.png'); }
.actividades-hero-banner { background-image: url('Images/Banner_Actividades.png'); }
.red-hero-banner { background-image: url('Images/Banner_NuestraRed.png'); }
.recursos-hero-banner { background-image: url('Images/Banner_Recursos.jpg'); }
.actualidad-hero-banner { background-image: url('Images/Banner_Actualidad.jpg'); }
.unete-hero-banner { background-image: url('Images/Banner_ComandoAlerta.png'); }

.comando-hero-overlay,
.actividades-hero-overlay,
.red-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #0a1325 0%, rgba(10, 19, 37, 0.9) 45%, rgba(10, 19, 37, 0.3) 100%);
    z-index: 1;
}

.comando-hero-content,
.actividades-hero-content,
.red-hero-content {
    position: relative;
    z-index: 2;
    padding: 2.5rem 3rem;
    max-width: 600px;
}

.comando-hero-title,
.actividades-hero-title,
.red-hero-title {
    font-size: 2.6rem;
    font-weight: 900;
    letter-spacing: 1px;
    line-height: 1.1;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.comando-hero-subtitle,
.actividades-hero-subtitle,
.red-hero-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.comando-hero-decor,
.actividades-hero-decor,
.red-hero-decor,
.cta-decor {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) skewX(-20deg);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.comando-hero-decor { right: 2rem; }
.actividades-hero-decor.left { left: 380px; }
.actividades-hero-decor.right, .red-hero-decor.right { right: 2rem; }
.red-hero-decor.left { left: 360px; }

.cta-decor.left { left: -15px; z-index: 1; }
.cta-decor.right { right: -15px; z-index: 1; }

.comando-hero-decor span,
.actividades-hero-decor span,
.red-hero-decor span,
.cta-decor span {
    display: block;
    height: 80px;
    background: var(--yellow);
    border-radius: 2px;
}

.cta-decor span { height: 120px; }

.comando-hero-decor span:nth-child(1),
.actividades-hero-decor span:nth-child(1),
.red-hero-decor span:nth-child(1),
.cta-decor span:nth-child(1) {
    width: 10px;
    opacity: 0.5;
}

.comando-hero-decor span:nth-child(2),
.actividades-hero-decor span:nth-child(2),
.red-hero-decor span:nth-child(2),
.cta-decor span:nth-child(2) {
    width: 18px;
}

/* ==========================================
   TARJETAS & GRID SYSTEM
   ========================================== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.3s, border-color 0.3s;
}

.card:hover {
    border-color: var(--border-glow);
}

.hero-mini { padding: 2.5rem; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }

.section-label {
    color: var(--yellow);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
}

.section-label-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.yellow-bar {
    width: 24px;
    height: 4px;
    background-color: var(--yellow);
    border-radius: 2px;
}

.section-label-text {
    color: var(--text-main);
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.feature-box {
    background: rgba(255,255,255,0.02);
    padding: 1.25rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
}

.feature-icon {
    color: var(--yellow);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.tool-card { border-top: 4px solid var(--yellow); }

.tool-badge {
    display: inline-block;
    background: rgba(255, 208, 0, 0.1);
    color: var(--yellow);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

/* ==========================================
   CARRUSEL DINÁMICO DESDE GOOGLE DRIVE
   ========================================== */
.slider-container-card {
    padding: 1.75rem 2rem !important;
    margin: 1.5rem 0;
}

.slider-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 1.25rem;
}

.slider-controls {
    display: flex;
    gap: 0.75rem;
}

.slider-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.slider-arrow:hover {
    border-color: var(--yellow);
    color: var(--yellow);
}

.slider-arrow.highlight {
    background: var(--yellow);
    color: var(--bg-dark);
    border-color: var(--yellow);
}

.slider-arrow.highlight:hover {
    background: var(--yellow-hover);
}

.slider-wrapper {
    overflow: hidden;
    width: 100%;
    border-radius: 14px;
    min-height: 320px;
    display: flex;
    align-items: center;
}

.slider-track {
    display: flex;
    gap: 24px;
    width: 100%;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.slide {
    flex: 0 0 calc(33.333% - 16px) !important;
    max-width: calc(33.333% - 16px) !important;
    min-width: calc(33.333% - 16px) !important;
    display: flex;
    flex-direction: column;
    background: #090d16;
    border: 1.5px solid var(--yellow, #ffc107);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
}

.slide-img-wrapper {
    width: 100%;
    height: 240px;
    background: #050811;
    overflow: hidden;
}

.slide-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.slide-caption {
    padding: 0.85rem 0.75rem;
    background: #0d121f;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.slide-caption p {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: var(--yellow);
    width: 24px;
    border-radius: 10px;
}

.slider-loading {
    width: 100%;
    padding: 3rem 1rem;
    text-align: center;
    color: var(--yellow, #ffc107);
    font-size: 1.2rem;
}

.slider-loading i {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
    display: inline-block;
}

.slider-loading p {
    color: var(--text-muted, #e2e8f0);
    font-size: 0.95rem;
    margin: 0;
    font-weight: 500;
}

/* ==========================================
   HERRAMIENTAS DEL COMANDO (3 COLUMNAS)
   ========================================== */
.tools-banner-card { padding: 2.5rem 2rem; }

.tools-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    align-items: center;
    gap: 0;
}

.tools-col {
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tools-col:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.tools-info { padding-left: 0; }

.tools-title {
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.tools-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    max-width: 280px;
}

.btn-tools-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.4rem;
    border: 1.5px solid var(--yellow);
    border-radius: 50px;
    color: var(--yellow);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    width: fit-content;
    transition: all 0.3s ease;
}

.btn-tools-pill:hover {
    background: var(--yellow);
    color: var(--bg-dark);
    box-shadow: 0 0 15px rgba(255, 208, 0, 0.3);
}

.tools-brand {
    align-items: center;
    text-align: center;
}

.tools-img-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.tools-img-link:hover {
    transform: translateY(-4px);
}

.tools-brand-img {
    max-width: 100%;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.copilot-icon-wrapper {
    width: 90px;
    height: 90px;
    border: 4px solid var(--yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--yellow);
    margin-bottom: 0.75rem;
    position: relative;
}

.copilot-text {
    font-family: var(--font-heading);
    font-weight: 900;
    font-style: italic;
    font-size: 1.25rem;
    color: var(--yellow);
    letter-spacing: 1px;
}

.hacker-avatar {
    font-size: 4.5rem;
    color: var(--yellow);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.alerta-text-logo {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.4rem;
    color: var(--yellow);
    letter-spacing: 2px;
}

.yellow-triangle {
    font-size: 0.9rem;
    margin-left: 2px;
    vertical-align: middle;
}

/* ==========================================
   BANNERS DE CTA FINAL
   ========================================== */
.cta-card-wrapper,
.cta-centered-card,
.red-bottom-card {
    padding: 0;
    overflow: hidden;
}

.cta-banner {
    position: relative;
    background: url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    min-height: 220px;
    display: flex;
    align-items: center;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #0a1325 0%, rgba(10, 19, 37, 0.88) 55%, rgba(10, 19, 37, 0.45) 100%);
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    padding: 2.5rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cta-title {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 0.75rem;
}

.cta-desc {
    color: var(--text-muted);
    max-width: 550px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cta-centered-banner,
.red-bottom-banner {
    position: relative;
    background: radial-gradient(circle at center, #0f1c38 0%, #050a14 100%);
    padding: 3rem 2rem;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.red-bottom-banner {
    padding: 2rem 3rem;
    min-height: 120px;
}

.cta-centered-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 650px;
}

.cta-centered-title {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 0.5rem;
}

.cta-centered-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.red-bottom-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    max-width: 900px;
}

.red-bottom-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.red-bottom-icon {
    font-size: 2.2rem;
    color: var(--yellow);
    display: flex;
    align-items: center;
}

.red-bottom-divider {
    width: 1px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
}

.red-bottom-title {
    font-size: 1.4rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 1px;
    white-space: nowrap;
}

.red-bottom-right-divider {
    width: 1px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.2);
}

.red-bottom-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.4;
    max-width: 420px;
}

/* ==========================================
   COMPONENTES DE PÁGINAS Y FLUJOS
   ========================================== */
.flow-steps-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.flow-icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 1.25rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.flow-step:hover .flow-icon-circle {
    transform: translateY(-4px);
    border-color: var(--yellow);
    color: var(--yellow);
}

.flow-step h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.flow-step p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
    max-width: 220px;
}

.flow-arrow {
    color: var(--yellow);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 2rem;
}

.member-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    min-height: 250px;
    display: flex;
    align-items: flex-end;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.member-card:hover {
    transform: translateY(-4px);
    border-color: var(--yellow);
}

.member-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.member-card:hover .member-card-bg {
    transform: scale(1.05);
}

.member-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(5, 10, 20, 0.2) 0%, rgba(5, 10, 20, 0.85) 60%, rgba(5, 10, 20, 0.98) 100%);
    z-index: 1;
}

.member-card-content {
    position: relative;
    z-index: 2;
    padding: 1.5rem;
    width: 100%;
}

.member-icon {
    font-size: 1.8rem;
    color: var(--yellow);
    margin-bottom: 0.5rem;
}

.member-card-content h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.4rem;
}

.member-card-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.benefits-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 1.5rem 0;
    gap: 1rem;
}

.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    padding: 0 1rem;
}

.benefit-icon {
    font-size: 2.2rem;
    color: var(--yellow);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
}

.benefit-item h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.35;
    max-width: 240px;
}

.benefit-divider {
    width: 1px;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.12);
}

/* Submenús en Cápsula */
.red-tabs-menu {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.4rem;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    margin: 0 auto 1.5rem auto;
    max-width: 650px;
}

.red-tab-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.2rem;
    border-radius: 50px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.red-tab-btn:hover { color: #ffffff; }

.red-tab-btn.active {
    background: var(--bg-card);
    color: var(--yellow);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.red-tab-content { display: none; }
.red-tab-content.active { display: block; }

.tabs-header {
    display: flex;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-weight: 700;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1rem;
}

.tab-btn.active {
    color: var(--yellow);
    border-bottom: 2px solid var(--yellow);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ==========================================
   NUESTRA RED: CARRUSELES Y COLABORADORES (3 POR FILA DE FORMA UNIFICADA)
   ========================================== */
.uni-slider-card,
.centros-slider-card,
.colab-slider-card {
    padding: 2rem !important;
}

.uni-slider-wrapper,
.centros-slider-wrapper,
.colab-slider-wrapper {
    overflow: hidden;
    width: 100%;
}

.uni-slider-track,
.centros-slider-track,
.colab-slider-track {
    display: flex;
    gap: 1.25rem;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.colab-card,
.centro-card,
.uni-card {
    flex: 0 0 calc((100% - 2.5rem) / 3) !important;
    max-width: calc((100% - 2.5rem) / 3) !important;
    min-width: calc((100% - 2.5rem) / 3) !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

.colab-card {
    height: 140px;
    background: #ffffff !important;
    border-radius: 14px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.colab-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 208, 0, 0.25);
}

.colab-card .partner-logo {
    max-width: 100%;
    max-height: 55px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.uni-card {
    height: 140px;
    background: #ffffff !important;
    border-radius: 14px;
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.uni-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 208, 0, 0.25);
}

.uni-logo-box {
    height: 55px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.uni-logo {
    max-width: 90%;
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.uni-name {
    color: #0f172a !important;
    font-size: 0.88rem !important;
    font-weight: 800 !important;
    line-height: 1.2;
    margin: 0;
}

.uni-country {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 600;
}

.centros-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ver-todos-link {
    color: var(--yellow);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s ease;
}

.ver-todos-link:hover { transform: translateX(4px); }

.centro-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.centro-card-img-box {
    position: relative;
    width: 100%;
    height: 190px;
}

.centro-card-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.centro-badge {
    position: absolute;
    bottom: 12px;
    left: 14px;
    background: #dbeafe;
    color: #1e40af;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.centro-card-body { padding: 1.25rem; }

.centro-card-body h3 {
    color: #0f172a;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.centro-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 600;
}

.centro-card-meta i { color: #94a3b8; }

.centros-slider-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
}

.centros-dots { display: flex; gap: 0.5rem; }

.centros-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.centros-dots .dot.active {
    background: var(--yellow);
    width: 24px;
    border-radius: 10px;
}

.centros-arrows { display: flex; gap: 0.5rem; }

.partners-logos-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
}

.partner-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    height: 90px;
    padding: 0.85rem 1.25rem;
    background: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 208, 0, 0.25);
}

.partner-logo {
    max-width: 100%;
    max-height: 48px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* ==========================================
   RECURSOS Y ACTUALIDAD
   ========================================== */
.recurso-item-card {
    display: flex;
    padding: 0;
    overflow: hidden;
    min-height: 200px;
}

.recurso-media-box {
    position: relative;
    width: 320px;
    min-width: 320px;
    overflow: hidden;
}

.recurso-media-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recurso-media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 10, 20, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.recurso-media-badge {
    color: #ffffff;
    font-weight: 900;
    line-height: 1.2;
}

.recurso-media-badge i {
    font-size: 2rem;
    color: var(--yellow);
    margin-bottom: 0.4rem;
}

.recurso-info-box {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.recurso-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.recurso-action {
    display: flex;
    justify-content: flex-end;
}

.recurso-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.recurso-partners-tags {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.partner-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.35rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffffff;
}

.partner-tag.muted {
    background: transparent;
    border: none;
    color: var(--text-muted);
}

.btn-resource-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-resource-pill:hover {
    border-color: var(--yellow);
    color: var(--yellow);
    transform: translateX(4px);
}

.actualidad-tabs-menu {
    display: flex;
    justify-content: flex-start;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    padding: 0.4rem;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    overflow-x: auto;
    white-space: nowrap;
}

.actualidad-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    border-radius: 50px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.actualidad-tab-btn:hover { color: #ffffff; }

.actualidad-tab-btn.active {
    background: var(--bg-card);
    color: var(--yellow);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.actualidad-filter-bar {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.flex-1 { flex: 1; }

.sort-dropdown select {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: #ffffff;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}

/* GRID DE NOTICIAS DE ACTUALIDAD */
#noticias-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.5rem !important;
}

#noticias-grid .noticia-card {
    grid-column: span 1 !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.noticia-card-img {
    position: relative;
    height: 180px !important;
    max-height: 180px !important;
}

.noticia-card-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.noticia-card-badge {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    background: rgba(10, 19, 37, 0.9);
    backdrop-filter: blur(4px);
    border: 1px solid var(--border-color);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.noticia-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.noticia-card-body h3 {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.3;
}

.noticia-card-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.4;
    margin-top: 0.5rem;
    flex: 1;
}

.noticia-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.3s;
}

.noticia-link:hover { color: var(--yellow); }

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.pagination-num,
.pagination-arrow {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination-num:hover,
.pagination-arrow:hover {
    border-color: var(--yellow);
    color: var(--yellow);
}

.pagination-num.active {
    background: var(--yellow);
    color: var(--bg-dark);
    border-color: var(--yellow);
}

/* Mantener estructura cuando hay 1 solo resultado en Noticias */
#noticias-grid.is-single-result {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
}

#noticias-grid.is-single-result .noticia-card {
    grid-column: span 1 !important;
    width: 100% !important;
}

/* ==========================================
   SECCIÓN ACTIVIDADES CON IMAGEN
   ========================================== */
.activity-card {
    padding: 0 !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-left: 4px solid #00f0ff !important;
}

.activity-card.border-yellow { border-left: 4px solid var(--yellow) !important; }

.activity-card-img {
    width: 100%;
    height: 180px;
    position: relative;
    overflow: hidden;
    background: #050a14;
}

.activity-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.activity-card-img img.img-contain {
    object-fit: contain !important;
    padding: 0.75rem;
}

.activity-card:hover .activity-card-img img {
    transform: scale(1.04);
}

.activity-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.activity-card-body h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-top: 0.25rem;
    margin-bottom: 0.75rem;
    color: #ffffff;
    line-height: 1.3;
}

.activity-tag {
    font-size: 0.75rem;
    font-weight: 800;
    color: #00f0ff;
    margin-bottom: 0.5rem;
}

.activity-tag.yellow { color: var(--yellow); }

.activity-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0.5rem 0 1rem;
}

.activity-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.proximamente-card {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem 2rem !important;
    border-left: 4px solid var(--yellow) !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.proximamente-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--yellow);
    margin: 0.5rem 0;
    letter-spacing: 1px;
}

/* ==========================================
   SECCIÓN ÚNETE & FORMULARIO
   ========================================== */
.perfil-card {
    position: relative;
    padding: 1.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.perfil-card:hover,
.perfil-card.active {
    transform: translateY(-4px);
    border-color: var(--yellow);
    box-shadow: 0 8px 25px rgba(255, 208, 0, 0.15);
}

.perfil-card-decor {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: transparent;
    transition: background 0.3s ease;
}

.perfil-card:hover .perfil-card-decor,
.perfil-card.active .perfil-card-decor {
    background: var(--yellow);
}

.perfil-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.perfil-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 208, 0, 0.1);
    color: var(--yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.perfil-card-header h3 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.perfil-card-desc {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.form-custom-card {
    padding: 2.5rem !important;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

.form-custom-title {
    color: #ffffff;
    font-size: 1.75rem;
    font-weight: 800;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: #cbd5e1;
    font-size: 0.95rem;
    font-weight: 600;
}

.required-asterisk { color: #ef4444; }

.custom-input {
    width: 100%;
    padding: 0.85rem 1.1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #ffffff;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.custom-input::placeholder { color: #64748b; }

.custom-input:focus {
    border-color: var(--yellow);
    background: rgba(255, 208, 0, 0.03);
    box-shadow: 0 0 12px rgba(255, 208, 0, 0.15);
}

.custom-select option {
    background: #0f172a;
    color: #ffffff;
}

.custom-textarea {
    resize: vertical;
    font-family: inherit;
    min-height: 120px;
}

.btn-submit-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: var(--yellow);
    color: #0f172a;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 208, 0, 0.3);
}

.form-success-box {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 14px;
    color: #ffffff;
}

.form-success-box h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.form-success-box p {
    color: #cbd5e1;
    font-size: 0.95rem;
    margin: 0;
}

.success-icon {
    font-size: 3rem;
    color: #22c55e;
    margin-bottom: 0.5rem;
}

/* ==========================================
   TOAST & FOOTER
   ========================================== */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--yellow);
    color: var(--bg-dark);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateY(150%);
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    z-index: 2000;
}

.toast.show { transform: translateY(0); }

.footer {
    background: rgba(5, 10, 20, 0.95);
    border-top: 1px solid var(--border-color);
    padding: 1.75rem 1.5rem 1rem;
    margin-top: 4rem;
    backdrop-filter: blur(10px);
}

.footer-container-compact {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand-side {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.footer-nav-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.footer-nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-nav-links a:hover { color: var(--yellow); }

.footer-social-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social-links a:hover {
    background: var(--yellow);
    color: var(--bg-dark);
    border-color: var(--yellow);
    transform: translateY(-2px);
}

.footer-bottom-compact {
    max-width: 1200px;
    margin: 0.75rem auto 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ==========================================
   UTILIDADES & BUSCADOR
   ========================================== */
.search-bar {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.search-bar input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.8rem !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.search-bar input::placeholder {
    color: var(--text-muted, #94a3b8) !important;
}

.search-bar input:focus {
    border-color: var(--yellow) !important;
    background: rgba(255, 208, 0, 0.04) !important;
    box-shadow: 0 0 12px rgba(255, 208, 0, 0.2);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--yellow) !important;
    font-size: 1rem;
    pointer-events: none;
    z-index: 2;
}

.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.text-center { text-align: center; }

/* ==========================================
   MEDIA QUERIES UNIFICADAS (RESPONSIVE)
   ========================================== */
@media (max-width: 1000px) {
    .actividades-hero-decor.left,
    .red-hero-decor.left {
        display: none;
    }
}

@media (max-width: 900px) {
    .slide {
        flex: 0 0 calc(50% - 12px) !important;
        max-width: calc(50% - 12px) !important;
        min-width: calc(50% - 12px) !important;
    }

    .colab-card,
    .centro-card,
    .uni-card {
        flex: 0 0 calc(50% - 0.65rem) !important;
        max-width: calc(50% - 0.65rem) !important;
        min-width: calc(50% - 0.65rem) !important;
    }

    #noticias-grid,
    #noticias-grid.is-single-result {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .tools-col {
        padding: 0;
        align-items: center;
        text-align: center;
    }

    .tools-col:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        padding-bottom: 2rem;
    }

    .tools-desc { max-width: 100%; }

    .partners-logos-grid { grid-template-columns: repeat(3, 1fr); }

    .recurso-item-card { flex-direction: column; }
    .recurso-media-box {
        width: 100%;
        min-width: 100%;
        height: 180px;
    }
    .recurso-footer-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-container-compact {
        flex-direction: column;
        text-align: center;
        gap: 1.25rem;
    }

    .footer-brand-side {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-nav-links { justify-content: center; }
}

@media (max-width: 850px) {
    .cta-content {
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
    }
    
    .cta-title { font-size: 1.8rem; }

    .flow-steps-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .flow-arrow {
        transform: rotate(90deg);
        padding-bottom: 0;
    }

    .actualidad-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-cta { display: none; }
    .mobile-toggle { display: block; }
    .hero-title { font-size: 2.1rem; }

    .comando-hero-content,
    .actividades-hero-content,
    .red-hero-content {
        padding: 2rem;
        max-width: 100%;
    }
    
    .comando-hero-title,
    .red-hero-title { font-size: 2rem; }
    .actividades-hero-title { font-size: 1.9rem; }
    
    .comando-hero-decor,
    .actividades-hero-decor,
    .red-hero-decor,
    .cta-decor { display: none; }

    .benefits-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .benefit-divider {
        width: 60%;
        height: 1px;
    }

    .cta-centered-title { font-size: 1.7rem; }

    .red-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .red-bottom-right-divider { display: none; }

    .red-bottom-title {
        white-space: normal;
        font-size: 1.2rem;
    }
}

@media (max-width: 600px) {
    .slide,
    .colab-card,
    .centro-card,
    .uni-card {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
    }

    #noticias-grid,
    #noticias-grid.is-single-result {
        grid-template-columns: 1fr !important;
    }

    .partners-logos-grid { grid-template-columns: repeat(2, 1fr); }

    .red-tabs-menu {
        flex-direction: column;
        border-radius: 12px;
    }
    
    .red-tab-btn { border-radius: 8px; }
}