/* 1. VARIABLES GLOBALES*/
:root {
    --color-primary:            #3db103;
    --color-primary-light:      rgba(61, 177, 3, 0.4);
    --color-secondary:          #50e5f9;
    --color-secondary-light:    rgba(80, 229, 249, 0.85);
    --gradient:                 linear-gradient(90deg, var(--color-primary-light) 42%, var(--color-secondary-light) 60%);
    --color-text-dark:          #222;
    --color-text-light:         #666;
    --color-bg-white:           #ffffff;
    --spacing-xs:               0.5rem;
    --spacing-sm:               1rem;
    --spacing-md:               2rem;
    --spacing-lg:               4rem;
    --border-radius:            20px;
    --shadow-sm:                0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md:                0 8px 25px rgba(0, 0, 0, 0.1);
    --shadow-lg:                0 15px 40px rgba(0, 0, 0, 0.2);
    --transition-speed:         0.3s;
}


/* 2. RESET Y BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-image:   url('../img/fondo.png');
    background-size:    cover;
    background-position: center;
    background-repeat:  no-repeat;
    background-attachment: fixed;
    min-height:         100vh;
    width:              100vw;
    overflow-x:         hidden;
    display:            flex;
    flex-direction:     column;
    font-family:        -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height:        1.6;
}

/* Accesibilidad – saltar al contenido */
.skip-to-main {
    position:   absolute;
    top:        -40px;
    left:       0;
    background: var(--color-primary);
    color:      white;
    padding:    8px 16px;
    text-decoration: none;
    z-index:    10000;
}

.skip-to-main:focus {
    top: 0;
}


/* 3. HEADER */
.header-container {
    background:         var(--gradient);
    height:             10vh;
    min-height:         70px;
    width:              100vw;
    padding:            0.5rem 2rem;
    backdrop-filter:    blur(10px);
    position:           sticky;
    top:                0;
    z-index:            1000;
    display:            flex;
    align-items:        center;
    justify-content:    space-between;
    box-shadow:         0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Logos izquierda */
.header-content {
    display:    flex;
    align-items: center;
    gap:        1rem;
}

.header-logo,
.header-gc-logo {
    height:     auto;
    filter:     drop-shadow(0 2px 8px rgba(0, 212, 255, 0.3));
    transition: all var(--transition-speed) ease;
}

.header-logo,
.header-gc-logo  {
    width: clamp(55px, 4vw, 65px);
}

.header-logo:hover,
.gc-logo-wrapper:hover {
    filter:    drop-shadow(0 4px 12px rgba(0, 212, 255, 0.5));
    transform: scale(1.05);
}

/* Logo InnHub + sublogo apilados */
.gc-logo-wrapper {
    display:        flex;
    flex-direction: column;
    align-items:    center;
    justify-content: center;
}

.header-gc-sublogo {
    margin-top: clamp(2px, 0.3vw, 4px);
    width:      clamp(75px, 6vw, 85px);
    height:     auto;
    opacity:    0.9;
    filter:     drop-shadow(0 1px 4px rgba(0, 212, 255, 0.25));
}

/* Divisor visual entre logos */
.header-divider {
    width:      2px;
    height:     50px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.3), rgba(255,255,255,0.8), rgba(255,255,255,0.3));
    margin:     0 0.5rem;
}

/* Nav desktop */
.header-menu {
    display:    flex;
    align-items: center;
    gap:        2rem;
}

.nav-link {
    color:          white;
    text-decoration: none;
    font-weight:    500;
    padding:        0.5rem 1rem;
    border-radius:  8px;
    transition:     all var(--transition-speed) ease;
    position:       relative;
}

.nav-link:hover,
.nav-link:focus {
    color: rgb(0, 51, 153) !important; 
    background: rgba(255, 255, 255, 0.1);
    outline:    2px solid rgba(255, 255, 255, 0.3);
    outline-offset: 2px;
}

.nav-link-cta {
    background: rgba(255, 255, 255, 0.2);
    border:     1px solid rgba(255, 255, 255, 0.3);
}

.nav-link-cta:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Botón hamburguesa (oculto en desktop) */
.mobile-menu-toggle {
    display:    none;
    flex-direction: column;
    gap:        4px;
    background: transparent;
    border:     none;
    cursor:     pointer;
    padding:    0.5rem;
}

.hamburger-line {
    width:          25px;
    height:         3px;
    background:     white;
    border-radius:  2px;
    transition:     all var(--transition-speed) ease;
}


/* 4. MENÚ MÓVIL */
.mobile-menu {
    display:        none;
    position:       fixed;
    top:            10vh;
    left:           0;
    right:          0;
    background:     var(--gradient);
    backdrop-filter: blur(10px);
    padding:        1rem;
    flex-direction: column;
    gap:            0.5rem;
    box-shadow:     0 4px 10px rgba(0, 0, 0, 0.2);
    z-index:        999;
    transform:      translateY(-100%);
    transition:     transform var(--transition-speed) ease;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-nav-link {
    color:          white;
    text-decoration: none;
    padding:        1rem;
    border-radius:  8px;
    transition:     background var(--transition-speed) ease;
}

.mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* 4.5 MOBILE LOGIN DROPDOWN */

.mobile-login-dropdown-container {
    position: relative;
}

.mobile-login-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent !important;
    border: none;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none !important;
}

.mobile-login-trigger:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

.mobile-login-trigger:focus {
    background: transparent !important;
    outline: none !important;
}

/* Estilos cuando el botón móvil está activo */
.mobile-login-trigger.active {
    background: rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5) !important;
    transform: scale(1.02);
    color: rgb(0, 51, 153) !important;
    outline: none !important;
}

.mobile-login-trigger.active span,
.mobile-login-trigger.active svg {
    color: rgb(0, 51, 153) !important;
}

.mobile-login-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1002;
    max-height: 0;
    overflow: hidden;
}

.mobile-login-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    max-height: 500px;
}

.mobile-login-dropdown .edit-icon {
    position: absolute;
    right: 12%;
    top: 67%;
    transform: translateY(-50%);
    cursor: pointer;
    background-color: var(--color-text-light);
    font-size: 1.1rem;
}

.mobile-login-dropdown .edit-icon:hover {
    color: var(--color-primary);
}

/* 5. LOGIN DROPDOWN */
.login-dropdown-container {
    position: relative;
    display:  inline-block;
}

.login-trigger {
    display:    flex;
    align-items: center;
    gap:        0.5rem;
    background: transparent !important;
    border:     none;
    cursor:     pointer;
    padding:    0.6rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size:  1rem;
    color:      white !important;
    box-shadow: none !important;
    outline:    none !important;
}

.login-trigger:hover,
.login-trigger:focus{
    background: transparent !important;
    outline: none !important;
    color: white !important;

}

/* Estilos cuando el botón está activo (dropdown abierto) */
.login-trigger.active {
    background: rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5) !important;
    transform: scale(1.02);
    color: rgb(0, 51, 153) !important; 
    outline: none !important;
}

.login-trigger.active:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    color: rgb(0, 51, 153) !important; 
}

.login-trigger.active span,
.login-trigger.active svg {
    color: rgb(0, 51, 153) !important; 
    fill: currentColor;
}

.login-trigger svg {
    transition: transform 0.3s ease;
}

.login-trigger:hover svg,
.login-trigger.active svg {
    transform: translateY(2px);
}

/* Panel desplegable */
.login-dropdown {
    position:   absolute;
    top:        calc(100% + 10px);
    right:      0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding:    1.5rem;
    min-width:  320px;
    opacity:    0;
    visibility: hidden;
    transform:  translateY(-10px);
    transition: all 0.3s ease;
    z-index:    1001;
}

.login-dropdown.active {
    opacity:    1;
    visibility: visible;
    transform:  translateY(0);
}

.dropdown-header {
    text-align: center;
}

.dropdown-header h3 {
    color:     #333;
    font-size: 1.5rem;
}

.dropdown-header p {
    color:     #666;
    font-size: 0.9rem;
}

/* Campos del formulario login */
.login-form .form-group {
    margin-bottom: 1rem;
}

.login-form label {
    display:    flex;
    align-items: center;
    gap:        0.5rem;
    font-size:  0.9rem;
    color:      #444;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.login-form label svg {
    color: var(--color-primary);
}

.login-form input {
    width:          100%;
    padding:        0.75rem 1rem;
    border:         2px solid #e0e0e0;
    border-radius:  8px;
    font-size:      0.90rem;
    transition:     all 0.3s ease;
}

.login-form input:focus {
    outline:        none;
    border-color:   var(--color-primary);
    box-shadow:     0 0 0 3px rgba(61, 177, 3, 0.1);
}

.login-form input::placeholder {
    color: #999;
}


/* Icono del ojo */
.login-form .edit-icon {
    background:     transparent;
    position: absolute;
    right: 12%;
    top: 68.5%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--color-text-dark);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hover */
.login-form .edit-icon:hover {
    color: var(--color-primary);
}

.login-form .edit-icon i {
    pointer-events: none;
    color: var(--color-primary);
}

/* Botón enviar login */
.login-submit-btn {
    width:          100%;
    padding:        0.875rem 1.5rem;
    background:     linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color:          white;
    border:         none;
    border-radius:  8px;
    font-size:      1rem;
    font-weight:    600;
    cursor:         pointer;
    display:        flex;
    align-items:    center;
    justify-content: center;
    gap:            0.5rem;
    transition:     all 0.3s ease;
    margin-top:     1.5rem;
}

.login-submit-btn:hover {
    transform:  translateY(-2px);
    box-shadow: 0 5px 15px rgba(61, 177, 3, 0.3);
}

.login-submit-btn:active {
    transform: translateY(0);
}

/*  Botón de cerrar (X) */
.close-dropdown {
    position:       absolute;
    top:            10px;
    right:          10px;
    background:     transparent;
    border:         none;
    cursor:         pointer;
    padding:        8px;
    display:        flex;
    align-items:    center;
    justify-content: center;
    width:          32px;
    height:         32px;
    border-radius:  50%;
    transition:     all 0.3s ease;
    z-index:        10;
}

.close-dropdown:hover {
    background:     rgba(0, 0, 0, 0.05);
    transform:      rotate(90deg);
}

.close-dropdown svg {
    width:          18px;
    height:         18px;
    color:          #666;
    transition:     color 0.3s ease;
}

.close-dropdown:hover svg {
    color:          #333;
}

/* 6. PARTÍCULAS DE FONDO*/
.bg-particles {
    position:       fixed;
    top:            0;
    left:           0;
    width:          100vw;
    height:         100vh;
    pointer-events: none;
    z-index:        -1;
    overflow:       hidden;
    will-change:    transform;
}

.particle {
    position:       absolute;
    border-radius:  50%;
    opacity:        0.8;
    animation:      float-particle 15s ease-in-out infinite;
    box-shadow:     0 0 20px rgba(255, 255, 255, 0.5);
    will-change:    transform, opacity;
}

/* Configuración individual */
.particle:nth-child(1) {
    width: 15px; height: 15px;
    top: 15%; left: 10%;
    animation-delay: 0s;
    background: radial-gradient(circle, var(--color-primary), rgba(255,255,255,0.8));
}
.particle:nth-child(2) {
    width: 20px; height: 20px;
    top: 70%; left: 85%;
    animation-delay: 3s;
    background: radial-gradient(circle, var(--color-secondary), rgba(255,255,255,0.8));
}
.particle:nth-child(3) {
    width: 12px; height: 12px;
    top: 90%; left: 15%;
    animation-delay: 6s;
    background: radial-gradient(circle, rgba(255,255,255,1), var(--color-primary-light));
}
.particle:nth-child(4) {
    width: 18px; height: 18px;
    top: 25%; left: 75%;
    animation-delay: 9s;
    background: radial-gradient(circle, var(--color-secondary), var(--color-primary-light));
}
.particle:nth-child(5) {
    width: 14px; height: 14px;
    top: 60%; left: 45%;
    animation-delay: 12s;
    background: radial-gradient(circle, rgba(255,255,255,1), var(--color-secondary-light));
}
.particle:nth-child(6) {
    width: 16px; height: 16px;
    top: 35%; left: 20%;
    animation-delay: 2s;
    background: radial-gradient(circle, var(--color-primary), rgba(255,255,255,0.8));
}
.particle:nth-child(7) {
    width: 10px; height: 10px;
    top: 50%; left: 60%;
    animation-delay: 5s;
    background: radial-gradient(circle, var(--color-secondary), rgba(255,255,255,0.8));
}
.particle:nth-child(8) {
    width: 22px; height: 22px;
    top: 80%; left: 70%;
    animation-delay: 8s;
    background: radial-gradient(circle, rgba(255,255,255,1), var(--color-primary));
}


/* 7. HERO – texto principal + knowledge hub
main {
    flex:     1;
    width:    100%;
    position: relative;
    z-index:  1;
}

/* Grid hero */
.container {
    display:              grid;
    grid-template-columns: 1fr 1fr;
    align-items:          center;
    gap:                  clamp(2rem, 5vw, 4rem);
    max-width:            1400px;
    margin:               0 auto;
    padding:              clamp(2rem, 5vw, 4rem);
    min-height:           calc(100vh - 10vh);
}

/* Lado texto */
.main-text {
    max-width: 600px;
}

.main-text h1 {
    font-size:  clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 50%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip:         text;
    margin-bottom:           var(--spacing-md);
    line-height:             1.1;
    text-shadow:             0 0 30px rgba(255, 255, 255, 0.5);
}

.main-text .subtitle {
    font-size:   clamp(1rem, 2vw, 1.5rem);
    color:       rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: var(--spacing-lg);
}

/* CTA */
.cta-container {
    display:    flex;
    flex-wrap:  wrap;
    gap:        var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.cta-button {
    background:      linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
    backdrop-filter: blur(20px);
    border:          2px solid rgba(255, 255, 255, 0.3);
    color:           white;
    border-radius:   50px;
    font-size:       clamp(0.9rem, 2vw, 1.1rem);
    padding:         1rem 2rem;
    font-weight:     600;
    cursor:          pointer;
    transition:      all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    display:         inline-flex;
    align-items:     center;
    gap:             0.5rem;
    position:        relative;
    overflow:        hidden;
    box-shadow:      var(--shadow-md);
}

.cta-button::before {
    content:    '';
    position:   absolute;
    top:        0;
    left:       -100%;
    width:      100%;
    height:     100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover,
.cta-button:focus {
    transform:    translateY(-3px) scale(1.05);
    box-shadow:   var(--shadow-lg);
    border-color: rgba(255, 255, 255, 0.6);
    outline:      2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.cta-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}

.cta-secondary {
    background: transparent;
}

.cta-arrow {
    transition: transform var(--transition-speed) ease;
}

.cta-button:hover .cta-arrow {
    transform: translateX(4px);
}

/* Trust signals (contadores) */
.trust-signals {
    display:    flex;
    flex-wrap:  wrap;
    gap:        var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.trust-item {
    display:        flex;
    flex-direction: column;
    align-items:    flex-start;
}

.trust-number {
    font-size:  clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff, var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip:         text;
    line-height:             1;
}

.trust-label {
    font-size:  clamp(0.8rem, 1.5vw, 1rem);
    color:      rgba(255, 255, 255, 0.8);
    margin-top: 0.25rem;
}

/* ── Knowledge Hub (lado derecho) ── */
.knowledge-hub {
    display:        flex;
    align-items:    center;
    justify-content: center;
    padding:        var(--spacing-md);
}

.hub-container {
    position:  relative;
    width:     clamp(360px, 48vw, 620px);
    height:    clamp(360px, 48vw, 620px);
    animation: float-hub 6s ease-in-out infinite;
}

/* Icono central */
.central-icon {
    position:  absolute;
    top:       50%;
    left:      50%;
    transform: translate(-50%, -50%);
    font-size: 4.5rem;
    width:     150px;
    height:    150px;
    display:        flex;
    align-items:    center;
    justify-content: center;
    background:     linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius:  50%;
    z-index:        10;
    box-shadow:     0 25px 70px rgba(102, 126, 234, 0.65);
    animation:      pulse-center 3s ease-in-out infinite;
}

/* Órbitas */
.orbit {
    position:       absolute;
    top:            50%;
    left:           50%;
    border:         2px solid rgba(255, 255, 255, 0.2);
    border-radius:  50%;
    transform:      translate(-50%, -50%);
    animation:      rotate-orbit linear infinite;
}

.orbit-1 { width: 260px; height: 260px; animation-duration: 20s; }
.orbit-2 { width: 380px; height: 380px; animation-duration: 30s; }
.orbit-3 { width: 500px; height: 500px; animation-duration: 40s; }

/* Líneas de conexión radiantes */
.connection-line {
    position:         absolute;
    top:              50%;
    left:             50%;
    width:            2px;
    height:           190px;
    background:       linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
    transform-origin: top center;
    animation:        pulse-line 3s ease-in-out infinite;
}

.line-1 { transform: translate(-50%, -100%) rotate(0deg);   }
.line-2 { transform: translate(-50%, -100%) rotate(90deg);  }
.line-3 { transform: translate(-50%, -100%) rotate(180deg); }
.line-4 { transform: translate(-50%, -100%) rotate(270deg); }

/* Nodos flotantes */
.knowledge-node {
    position:       absolute;
    width:          72px;
    height:         72px;
    background:     rgba(255, 255, 255, 0.95);
    border-radius:  50%;
    display:        flex;
    align-items:    center;
    justify-content: center;
    font-size:      1.7rem;
    cursor:         pointer;
    box-shadow:     0 10px 30px rgba(0, 0, 0, 0.18);
    transition:     all var(--transition-speed) ease;
    animation:      pulse-node 2s ease-in-out infinite;
}

.knowledge-node:hover {
    transform:  scale(1.2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    z-index:    15;
}

/* Posiciones de los nodos (reloj) */
.node-1 { top:    8%;  left:  50%; transform: translateX(-50%); }
.node-2 { top:   22%;  right: 12%; }
.node-3 { top:   50%;  right:  3%; transform: translateY(-50%); }
.node-4 { bottom: 22%; right: 12%; }
.node-5 { bottom:  8%; left:  50%; transform: translateX(-50%); }
.node-6 { bottom: 22%; left:  12%; }
.node-7 { top:   50%;  left:   3%; transform: translateY(-50%); }
.node-8 { top:   22%;  left:  12%; }


/* 8. SECCIÓN SOLUCIONES TECNOLÓGICAS */
.secondary-container {
    background:     linear-gradient(to bottom, rgba(255,255,255,0.95), rgba(255,255,255,1));
    position:       relative;
    width:          100%;
    padding:        clamp(3rem, 5vw, 6rem) clamp(1rem, 3vw, 3rem);
    display:        flex;
    flex-direction: column;
    align-items:    center;
}

.section-title {
    font-size:   clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    margin-bottom: var(--spacing-sm);
    color:       var(--color-text-dark);
    text-align:  center;
}

.section-subtitle {
    font-size:   clamp(1rem, 2vw, 1.3rem);
    color:       var(--color-text-light);
    text-align:  center;
    max-width:   800px;
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

/* Buscador + filtros */
.search-filter-container {
    width:          100%;
    max-width:      1000px;
    margin-bottom:  var(--spacing-xs);
    display:        flex;
    flex-direction: column;
    gap:            var(--spacing-sm);
}

.search-box {
    position: relative;
    width:    100%;
}

.search-icon {
    position:  absolute;
    left:      1rem;
    top:       50%;
    transform: translateY(-50%);
    color:     var(--color-text-light);
}

#search-solutions {
    width:          100%;
    padding:        1rem 1rem 1rem 3rem;
    border:         2px solid #e0e0e0;
    border-radius:  50px;
    font-size:      1rem;
    transition:     all var(--transition-speed) ease;
}

#search-solutions:focus {
    outline:      none;
    border-color: var(--color-primary);
    box-shadow:   0 0 0 3px rgba(61, 177, 3, 0.1);
}

.filter-buttons {
    display:        flex;
    flex-wrap:      wrap;
    gap:            0.5rem;
    justify-content: center;
}

.filter-btn {
    padding:       0.5rem 1.5rem;
    border:        2px solid #e0e0e0;
    background:    white;
    border-radius: 50px;
    font-size:     0.9rem;
    cursor:        pointer;
    transition:    all var(--transition-speed) ease;
    font-weight:   500;
}

.filter-btn:hover,
.filter-btn:focus {
    border-color:   var(--color-primary);
    background:     var(--color-primary-light);
    outline:        2px solid var(--color-primary-light);
    outline-offset: 2px;
}

.filter-btn.active {
    background:   var(--color-primary);
    color:        white;
    border-color: var(--color-primary);
}


/* 9. CARDS DE SOLUCIONES */
.card-container {
    display:              grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap:                  var(--spacing-md);
    width:                100%;
    max-width:            1400px;
}

.info-card {
    position:       relative;
    background:     white;
    border-radius:  var(--border-radius);
    box-shadow:     var(--shadow-md);
    padding:        var(--spacing-md);
    color:          var(--color-text-dark);
    transition:     all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow:       hidden;
    display:        flex;
    flex-direction: column;
    gap:            var(--spacing-sm);
    cursor:         pointer;
    border:         2px solid transparent;
    text-decoration: none;
}

/* Línea gradiente superior al hover */
.info-card::before {
    content:          '';
    position:         absolute;
    top:              0;
    left:             0;
    right:            0;
    height:           4px;
    background:       linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transform:        scaleX(0);
    transform-origin: left;
    transition:       transform 0.4s ease;
}

.info-card:hover::before {
    transform: scaleX(1);
}

.info-card:hover,
.info-card:focus-within {
    transform:    translateY(-8px);
    box-shadow:   0 20px 50px rgba(151, 71, 255, 0.15);
    border-color: var(--color-primary-light);
}

/* ===== BADGE CONTENEDOR ===== */

.badge-nuevo {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
    color: #ffffff;
    border-radius: 50px;
    padding: clamp(10px, 2px, 15px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}




/* Icono de la card */
.card-icon {
    width:          90px;
    height:         90px;
    display:        flex;
    align-items:    center;
    justify-content: center;
    background:     linear-gradient(135deg, var(--color-primary-light), var(--color-secondary-light));
    border-radius:  16px;
    color:          var(--color-primary);
    margin-bottom:  var(--spacing-sm);
}

.card-icon img,
.card-icon-img {
    width:      85%;
    height:     85%;
    object-fit: contain;
}

/* Texto de la card */
.info-card h3 {
    font-size:  clamp(1.3rem, 2vw, 1.6rem);
    color:      var(--color-text-dark);
    font-weight: 700;
    margin:     0;
}

.card-description {
    font-size:   clamp(0.9rem, 1.5vw, 1rem);
    line-height: 1.6;
    color:       var(--color-text-light);
    flex:        1;
}

/* Footer de la card */
.card-footer {
    display:        flex;
    justify-content: space-between;
    align-items:    center;
    padding-top:    var(--spacing-sm);
    border-top:     1px solid #e0e0e0;
    background-color: transparent;
}

.card-tag {
    font-size:     0.85rem;
    color:         var(--color-primary);
    font-weight:   600;
    padding:       0.25rem 0.75rem;
    background:    var(--color-primary-light);
    border-radius: 12px;
}

.card-link-btn {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
    background: transparent;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.info-card:hover .card-link-btn {
    animation: pulseStrong 1.5s infinite;
    outline:        2px solid var(--color-primary-light);
    outline-offset: 2px;
}

/* Pulso fuerte */
@keyframes pulseStrong {
    0% {
        box-shadow: 
            0 0 0 0 rgba(0, 123, 255, 0.7),
            0 0 10px var(--color-primary-light);
    }
    70% {
        box-shadow: 
            0 0 0 12px rgba(0, 123, 255, 0),
            0 0 25px var(--color-primary-light);
    }
    100% {
        box-shadow: 
            0 0 0 0 rgba(0, 123, 255, 0),
            0 0 10px var(--color-primary-light);
    }
}

.card-link-btn:hover,
.card-link-btn:focus {
    background:     var(--color-primary);
    color:          white;
    transform:      scale(1.1);
    outline:        2px solid var(--color-primary-light);
    outline-offset: 2px;
}

/* Mensaje sin resultados */
.no-results {
    text-align: center;
    padding:    var(--spacing-lg);
    color:      var(--color-text-light);
}

.no-results svg {
    margin-bottom: var(--spacing-sm);
    opacity:       0.5;
}


/* 10. ADMIN – BOTÓN AGREGAR SOLUCIÓN */
.boton-container {
    width:          100%;
    display:        flex;
    justify-content: flex-end;
    padding: var(--spacing-sm);
}
.admin-add-btn {
    display:    flex;
    align-items: center;
    gap:        clamp(6px, 1vw, 10px);
    background: linear-gradient(135deg, var(--color-primary) 0%, #2d8502 100%);
    color:      #fff;
    padding:    clamp(8px, 1.2vw, 12px) clamp(14px, 2.2vw, 22px);
    border-radius: 12px;
    font-weight: 600;
    font-size:  clamp(0.82rem, 1.4vw, 0.95rem);
    border:     none;
    cursor:     pointer;
    box-shadow: 0 4px 15px rgba(61, 177, 3, 0.3);
    transition: transform var(--transition-speed) ease,
                box-shadow var(--transition-speed) ease,
                background var(--transition-speed) ease;
}

.admin-add-btn:hover {
    transform:  translateY(-2px);
    box-shadow: 0 6px 20px rgba(61, 177, 3, 0.4);
    background: linear-gradient(135deg, #2d8502 0%, var(--color-primary) 100%);
}

.admin-add-btn svg {
    transition: transform var(--transition-speed) ease;
    flex-shrink: 0;
}

.admin-add-btn:hover svg {
    transform: rotate(90deg);
}


/* 11. ADMIN – MODAL (overlay + contenedor) */
.admin-modal {
    display:            none;
    position:           fixed;
    inset:              0;
    background:         rgba(44, 44, 44, 0.92);
    backdrop-filter:    blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index:            10000;
    overflow-y:         auto;
    padding:            clamp(16px, 3vw, 40px);
    animation:          fadeIn var(--transition-speed) ease;
}

.admin-modal.active {
    display:        flex;
    align-items:    flex-start;
    justify-content: center;
}

.admin-modal-content {
    background:    var(--color-bg-white);
    border-radius: 24px;
    max-width:     800px;
    width:         100%;
    box-shadow:    0 25px 50px rgba(0, 0, 0, 0.18);
    border:        1px solid rgba(61, 177, 3, 0.25);
    animation:     slideUp 0.4s ease;
    position:      relative;
    overflow:      visible;
}

/* Header del modal */
.admin-modal-header {
    display:        flex;
    justify-content: space-between;
    align-items:    center;
    padding:        clamp(18px, 3vw, 30px);
    background:     linear-gradient(135deg,
                        rgba(61, 177, 3, 0.96)  0%,
                        rgba(80, 229, 249, 0.92) 100%);
    border-bottom:  1px solid rgba(255, 255, 255, 0.12);
    border-top-right-radius: 24px;
    border-top-left-radius:  24px;

}

.admin-modal-header h2 {
    color:      #000;
    font-size:  clamp(1.1rem, 2.2vw, 1.5rem);
    font-weight: 700;
    margin:     0;
    display:    flex;
    align-items: center;
    gap:        clamp(8px, 1.2vw, 14px);
}

.admin-modal-header h2 svg {
    color:      #00e1ff;
    flex-shrink: 0;
}

.admin-modal-close {
    background:    rgba(49, 49, 49, 0.1);
    border:        none;
    width:         clamp(34px, 4.5vw, 42px);
    height:        clamp(34px, 4.5vw, 42px);
    border-radius: 12px;
    display:       flex;
    align-items:   center;
    justify-content: center;
    cursor:        pointer;
    color:         #fff;
    transition:    background var(--transition-speed) ease,
                   transform  var(--transition-speed) ease;
    flex-shrink:   0;
}

.admin-modal-close:hover {
    background: rgba(255, 59, 48, 0.22);
    transform:  rotate(90deg);
}


/* 12. ADMIN – FORMULARIO */
#addSolutionForm {
    padding: clamp(18px, 3vw, 30px);
}

#addSolutionForm .form-row {
    display:              grid;
    grid-template-columns: 1fr 1fr;
    gap:                  clamp(12px, 2vw, 22px);
    margin-top:           clamp(12px, 2vw, 22px);
    margin-bottom:        clamp(14px, 2vw, 22px);
}

#addSolutionForm .form-group {
    display:        flex;
    margin-bottom:  clamp(16px, 2.5vw, 24px);
    flex-direction: column;
    position:       relative;   /* ancla el catalog-popup */
}

#addSolutionForm .form-group label {
    color:       #111;
    font-weight: 600;
    font-size:   clamp(0.8rem, 1.3vw, 0.9rem);
    display:     flex;
    align-items: center;
    gap:         8px;
    margin-bottom: 0;
}

#addSolutionForm .form-group label svg {
    width:      16px;
    height:     16px;
    flex-shrink: 0;
    color:      var(--color-text-light);
}

/* Inputs, textarea y select */
#addSolutionForm .form-group input,
#addSolutionForm .form-group textarea,
#addSolutionForm .form-group select {
    background:     #fafafa;
    border:         1.5px solid #c8c8c8;
    border-radius:  12px;
    padding:        clamp(9px, 1.3vw, 13px) 16px;
    color:          #111;
    font-size:      clamp(0.82rem, 1.3vw, 0.92rem);
    font-family:    inherit;
    transition:     border-color var(--transition-speed) ease,
                    box-shadow   var(--transition-speed) ease,
                    background   var(--transition-speed) ease;
}

#addSolutionForm .form-group input:focus,
#addSolutionForm .form-group textarea:focus,
#addSolutionForm .form-group select:focus {
    outline:      none;
    border-color: var(--color-primary);
    background:   rgba(61, 177, 3, 0.06);
    box-shadow:   0 0 0 3px rgba(61, 177, 3, 0.18);
}

#addSolutionForm .form-group input::placeholder,
#addSolutionForm .form-group textarea::placeholder {
    color: #999;
}

#addSolutionForm .form-group textarea {
    resize:     vertical;
    min-height: 100px;
}

#addSolutionForm .form-group select {
    cursor:     pointer;
    appearance: auto;
}

/* Radio buttons para tipo de imagen */
.radio-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: #fafafa;
    flex: 1;
    min-width: 140px;
}

.radio-option:hover {
    border-color: var(--color-primary);
    background: rgba(61, 177, 3, 0.05);
}

.radio-option input[type="radio"] {
    width: auto;
    margin: 0;
    padding: 0;
    cursor: pointer;
}

.radio-option span {
    font-weight: 500;
    color: #444;
}

.radio-option input[type="radio"]:checked + span {
    color: var(--color-primary);
    font-weight: 600;
}

.radio-option:has(input[type="radio"]:checked) {
    border-color: var(--color-primary);
    background: rgba(61, 177, 3, 0.1);
}

/* Upload box para imágenes  */
.image-upload-area {
    width: 100%;
    margin-top: 0.5rem;
}

.upload-box {
    border: 2px dashed #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
    position: relative;
    min-height: 180px;
    max-height: 280px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden; 
}

.upload-box:hover {
    border-color: var(--color-primary);
    background: rgba(61, 177, 3, 0.05);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
}

.upload-content svg {
    color: var(--color-text-light);
}

.upload-text {
    font-size: 0.9rem;
    color: var(--color-text-dark);
    font-weight: 500;
    margin: 0;
}

.upload-hint {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin: 0;
}

/* Container de preview de imagen */
.image-preview-container {
    display: none;
    position: relative;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    max-height: 240px; 
    padding: 0.5rem;
}

.image-preview-container img {
    max-width: 80%; 
    max-height: 80%;
    width: auto;
    height: auto;
    border-radius: 8px;
    object-fit: contain; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
/* Botón de eliminar imagen */
.remove-image-btn {
    position: absolute;
    top: 0.25rem; 
    right: 0.25rem; 
    background: #ef4444;
    border: none;
    border-radius: 50%;
    width: 32px; 
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.remove-image-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.remove-image-btn svg {
    width: 18px;
    height: 18px;
}

/* Cuando hay imagen visible, ocultar el upload content */
.upload-box:has(.image-preview-container[style*="display: flex"]) .upload-content {
    display: none !important;
}

/* Botones Cancelar */
.form-actions {
    display:        flex;
    gap:            clamp(10px, 1.8vw, 18px);
    justify-content: flex-end;
    margin-top:     auto;
    padding-top:    clamp(16px, 2.2vw, 22px);
    border-top:     1px solid #e8e8e8;
}

.btn-cancel,
.btn-submit {
    padding:       clamp(9px, 1.3vw, 13px) clamp(18px, 2.8vw, 26px);
    border-radius: 12px;
    font-weight:   600;
    font-size:     clamp(0.82rem, 1.3vw, 0.92rem);
    cursor:        pointer;
    border:        none;
    display:       flex;
    align-items:   center;
    gap:           8px;
    transition:    transform    var(--transition-speed) ease,
                   box-shadow  var(--transition-speed) ease,
                   background  var(--transition-speed) ease;
}

.btn-cancel {
    background: #f0f0f0;
    color:      #444;
}

.btn-cancel:hover {
    background: #e4e4e4;
    transform:  translateY(-2px);
}

.btn-submit {
    background: linear-gradient(135deg, var(--color-primary) 0%, #2d8502 100%);
    color:      #fff;
    box-shadow: 0 4px 15px rgba(61, 177, 3, 0.3);
}

.btn-submit:hover {
    transform:  translateY(-2px);
    box-shadow: 0 6px 20px rgba(61, 177, 3, 0.4);
}

.btn-submit svg {
    flex-shrink: 0;
}


/* 13. SELECTOR DE ICONOS – input row + popup + grid */

/* Row: preview | input | botón catálogo */
.input-row {
    display:       flex;
    align-items:   stretch;
    border:        1.5px solid #c8c8c8;
    border-radius: 12px;
    overflow:      hidden;
    transition:    border-color var(--transition-speed) ease;
    background:    #fafafa;
    z-index:       1;
}

.input-row:focus-within {
    border-color: var(--color-primary);
    box-shadow:   0 0 0 3px rgba(61, 177, 3, 0.18);
}

/* Miniatura del icono activo */
.icon-preview {
    display:        flex;
    align-items:    center;
    justify-content: center;
    width:          clamp(38px, 5vw, 46px);
    min-width:      clamp(38px, 5vw, 46px);
    background:     #eeeeee;
    border-right:   1px solid #ddd;
    color:          var(--color-primary);
}

/* Campo de texto readonly */
.input-row input[type="text"] {
    flex:           1;
    min-width:      0;
    border:         none;
    border-radius:  0;
    background:     transparent;
    box-shadow:     none;
    outline:        none;
    padding:        0 12px;
    font-size:      clamp(0.8rem, 1.3vw, 0.88rem);
    color:          #333;
    height:         clamp(38px, 5vw, 46px);
    font-family:    inherit;
}

.input-row input[type="text"]::placeholder {
    color: #aaa;
}

/* Botón que abre el catálogo */
.btn-catalog {
    display:        flex;
    align-items:    center;
    justify-content: center;
    width:          clamp(38px, 5vw, 46px);
    min-width:      clamp(38px, 5vw, 46px);
    background:     var(--color-primary);
    border:         none;
    cursor:         pointer;
    color:          #fff;
    transition:     background var(--transition-speed) ease;
}

.btn-catalog:hover {
    background: #2d8502;
}

* ── Popup flotante del catálogo ── */

/* Backdrop detrás del popup */
.catalog-popup::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.catalog-popup.open::before {
    opacity: 1;
    pointer-events: auto;
}

.catalog-popup {
    position:       fixed;
    top:            50%;
    left:           50%;
    transform:      translate(-50%, -50%) scale(0.9);
    background:     #fff;
    border-radius:  20px;
    box-shadow:     0 8px 32px rgba(0, 0, 0, 0.15);
    z-index:        100000;
    overflow:       hidden;
    opacity:        0;
    pointer-events: none;
    transition:     opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    width:          90%;
    max-width:      600px;                          
    max-height:     70vh;                           
    display:        none;
    flex-direction: column;
    visibility:     hidden;
}

.catalog-popup.open {
    opacity:        1;
    transform:      translate(-50%, -50%) scale(1); 
    pointer-events: auto;
    visibility:     visible;                       
    display:        flex;                           
}

/* Header del popup */
.catalog-header {
    display:        flex;
    align-items:    center;
    justify-content:space-between;
    padding:        12px 16px 8px;                 
    border-bottom:  none;
    flex-shrink:    0;
}

.catalog-header span {
    font-size:  clamp(0.85rem, 1.3vw, 0.95rem);
    font-weight: 600;
    color:      #222;
}

.catalog-header .close-btn {
    background:    transparent;
    border:        none;
    cursor:        pointer;
    color:         #999;
    font-size:     28px;
    line-height:   1;
    padding:       0;
    width:         32px;
    height:        32px;
    display:       flex;
    align-items:   center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}

.catalog-header .close-btn:hover {
    background: #f5f5f5;
    color:      #333;
}

/* Buscador dentro del popup */
.catalog-search {
    padding:     0 16px 12px;                      
    flex-shrink: 0;
}

.catalog-search input {
    width:         100%;
    border:        1.5px solid #e0e0e0;
    border-radius: 10px;                           
    padding:       10px 14px;                       
    font-size:     0.9rem;                          
    font-family:   inherit;
    outline:       none;
    color:         #333;
    background:    #fafafa;
    transition:    border-color var(--transition-speed) ease, background 0.2s;
}

.catalog-search input:focus {
    border-color: var(--color-primary);
    background:   #fff;
}

.catalog-search input::placeholder {
    color:        #999;
}

/* Tabs de categoría */
.catalog-tabs {
    display:        flex;
    gap:            6px;
    padding:        0 16px 12px;
    overflow-x:     auto;
    overflow-y:     hidden;
    scrollbar-width: thin;
    scrollbar-color: #d0d0d0 transparent;
    flex-shrink:    0;
}


.catalog-tabs::-webkit-scrollbar        { height: 6px; }
.catalog-tabs::-webkit-scrollbar-track  { background: transparent; }
.catalog-tabs::-webkit-scrollbar-thumb  { background: #d0d0d0; border-radius: 3px; }
.catalog-tabs::-webkit-scrollbar-thumb:hover { background: #b0b0b0; }

.catalog-tabs button {
    flex-shrink:   0;
    background:    #f5f5f5;
    border:        none;
    border-radius: 18px;                            
    padding:       6px 14px;                       
    font-size:     0.85rem;                         
    font-weight:   500;
    color:         #666;
    cursor:        pointer;
    font-family:   inherit;
    transition:    background 0.2s, color 0.2s;
    white-space:   nowrap;
}

.catalog-tabs button:hover {
    background: #e8e8e8;
    color:      #333;
}

.catalog-tabs button.active {
    background: var(--color-primary);
    color:      #fff;
}

/* ── Grid de iconos  ── */
.catalog-grid {
    display:              grid;
    grid-template-columns: repeat(7, 1fr);
    gap:                  6px;
    padding:              10px 16px 16px;
    overflow:             visible;                  
    flex:                 1;
}

/* Removidos los estilos de scrollbar del grid */

/* Celda individual */
.catalog-item {
    aspect-ratio:   1;
    display:        flex;
    flex-direction: column;
    align-items:    center;
    justify-content: center;
    gap:            4px;                            
    border-radius:  8px;                           
    cursor:         pointer;
    color:          #333;
    padding:        10px 4px;                   
    position:       relative;
    transition:     background 0.2s, transform 0.15s, color 0.2s;
}

.catalog-item:hover {
    background: rgba(61, 177, 3, 0.08);
    color:      var(--color-primary);
    transform:  scale(1.05);                        
}

.catalog-item svg {
    width:  28px;                                   
    height: 28px;
    flex-shrink: 0;
}

.catalog-item span {
    font-size:   0.7rem;                            
    font-weight: 500;
    text-align:  center;
    line-height: 1.2;
    color:       inherit;
    max-width:   100%;
    overflow:    hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalog-item.selected {
    background: var(--color-primary);
    color:      #fff;
    box-shadow: 0 2px 8px rgba(61, 177, 3, 0.35);
}

/* Texto "Icono actual:" debajo del popup */
.editIconSection small,
#iconSection small {
    display:     block;
    margin-top:  12px;
    font-size:   0.875rem;
    color:       #666;
    font-weight: 400;
}


/* 14. SCROLL TO TOP */
.scroll-to-top {
    position:       fixed;
    bottom:         2rem;
    right:          2rem;
    width:          50px;
    height:         50px;
    border-radius:  50%;
    background:     linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color:          white;
    border:         none;
    box-shadow:     var(--shadow-lg);
    cursor:         pointer;
    display:        flex;
    align-items:    center;
    justify-content: center;
    opacity:        0;
    visibility:     hidden;
    transition:     all var(--transition-speed) ease;
    z-index:        999;
}

.scroll-to-top.visible {
    opacity:    1;
    visibility: visible;
}

.scroll-to-top:hover,
.scroll-to-top:focus {
    transform:  translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    outline:    2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* 15. FOOTER */
footer {
    background:      var(--gradient);
    backdrop-filter: blur(10px);
    color:           white;
    padding:         var(--spacing-lg) var(--spacing-md);
    position:        relative;    
    overflow:        hidden;     
}

.footer-content {
    max-width:            1400px;
    margin:               0 auto;
    display:              grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap:                  var(--spacing-md);
    margin-bottom:        var(--spacing-md);
    position:             relative;   
    z-index:              2;          
}

.footer-section h4 {
    font-size:     1.2rem;
    margin-bottom: var(--spacing-sm);
}

.footer-section p {
    color:       rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a,
#footerLoginLink {
    color:          rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition:     color var(--transition-speed) ease;
}

.footer-section ul li a:hover,
.footer-section ul li a:focus,
#footerLoginLink:focus,
#footerLoginLink:hover {
    color:          white;
    text-decoration: underline;
    cursor: pointer;
}

.footer-bottom {
    text-align:  center;
    padding-top: var(--spacing-md);
    border-top:  1px solid rgba(255, 255, 255, 0.2);
    position:    relative;
    z-index:     2;          
}

.footer-bottom p {
    margin:    0;
    font-size: 0.9rem;
    color:     rgba(255, 255, 255, 0.7);
}


/*  FOOTER  */

/* Estilos base para enlaces del footer */
.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
}

/* Hover state */
.footer-section a:hover {
    color: var(--color-secondary);
    text-decoration: none;
}

/* PAGINACIÓN */

/* Transición suave al restaurar scroll */
html.restoring-scroll {
    scroll-behavior: auto;
}

/* Animación para cambio de página */
.solutions-grid,
.cards-grid {
    transition: opacity 0.3s ease;
}

/* Estado de carga durante cambio de página */
.solutions-grid.loading,
.cards-grid.loading {
    opacity: 0.5;
    pointer-events: none;
}
/* 16. ANIMACIONES (@keyframes) */
@keyframes float-particle {
    0%, 100% { transform: translateY(0px)   translateX(0px)   scale(1);   opacity: 0.8; }
    25%      { transform: translateY(-30px)  translateX(25px)  scale(1.2); opacity: 1;   }
    50%      { transform: translateY(-20px)  translateX(-20px) scale(0.8); opacity: 0.7; }
    75%      { transform: translateY(25px)   translateX(30px)  scale(1.1); opacity: 0.9; }
}

@keyframes float-hub {
    0%, 100% { transform: translateY(0px);  }
    50%      { transform: translateY(-20px); }
}

@keyframes pulse-center {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 20px 60px rgba(102, 126, 234, 0.6);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        box-shadow: 0 30px 80px rgba(102, 126, 234, 0.8);
    }
}

@keyframes rotate-orbit {
    from { transform: translate(-50%, -50%) rotate(0deg);   }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes pulse-node {
    0%, 100% { transform: scale(1);    }
    50%      { transform: scale(1.05); }
}

@keyframes pulse-line {
    0%, 100% { opacity: 0.3; }
    50%      { opacity: 0.8; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0);    }
}


/* 17. RESPONSIVE */

/* ── Tablets (≤ 1024 px) ── */
@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
        gap:        var(--spacing-lg);
    }

    .main-text {
        max-width: 100%;
        text-align: center;
    }

    .cta-container {
        justify-content: center;
    }

    .trust-signals {
        justify-content: center;
    }

    .knowledge-hub {
        order: -1;
    }

    .card-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

/* ── Móvil (≤ 768 px) ── */
@media (max-width: 768px) {
    /* Header → menú hamburguesa */
    .header-menu        { display: none; }
    .mobile-menu-toggle { display: flex; }
    .mobile-menu        { display: flex; }

    /* Login dropdown oculto en móvil */
    .login-dropdown-container { display: none; }

    /* Container hero: ajustar padding y espaciado */
    .container {
        padding: clamp(1.5rem, 4vw, 2rem);
        gap: clamp(1.5rem, 4vw, 2.5rem);
        min-height: auto;
    }

    /* Texto principal centrado */
    .main-text {
        text-align: center;
        order: 2;
    }

    .main-text h1 {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .main-text .subtitle {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }

    /* Knowledge hub más pequeño y arriba */
    .knowledge-hub {
        order: 1;
        padding: 1rem 0;
    }

    .hub-container {
        width:  clamp(200px, 65vw, 280px);
        height: clamp(200px, 65vw, 280px);
    }

    /* Icono central más pequeño */
    .central-icon {
        font-size: 2.5rem;
        width: 80px;
        height: 80px;
    }

    /* Órbitas proporcionalmente más pequeñas */
    .orbit-1 { width: 160px; height: 160px; }
    .orbit-2 { width: 220px; height: 220px; }
    .orbit-3 { width: 280px; height: 280px; }

    /* Líneas de conexión más cortas */
    .connection-line {
        height: 110px;
    }

    /* Nodos más pequeños */
    .knowledge-node {
        width:     45px;
        height:    45px;
        font-size: 1rem;
    }

    /* Trust signals centrados */
    .trust-signals {
        justify-content: center;
        gap: 1rem;
    }

    .trust-item {
        align-items: center;
    }

    /* CTA buttons */
    .cta-container {
        justify-content: center;
        margin-bottom: 1.5rem;
    }

    /* Cards una columna */
    .card-container {
        grid-template-columns: 1fr;
    }

    .search-filter-container {
        gap: var(--spacing-md);
    }

    /* Footer una columna */
    .footer-content {
        grid-template-columns: 1fr;
        text-align:            center;
    }

    /* Scroll-to-top más pequeño */
    .scroll-to-top {
        bottom: 1rem;
        right:  1rem;
        width:  45px;
        height: 45px;
    }

    /* Modal: scroll interior */
    .admin-modal-content {
        max-height: 90vh;
        overflow-y: auto;
    }

    /* Formulario: una columna */
    #addSolutionForm .form-row {
        grid-template-columns: 1fr;
    }

    /* Popup iconos: limitar ancho */
    .catalog-popup {
        left:      0;
        right:     0;
        max-width: calc(100vw - 32px);
    }

    /* Grid iconos: 6 columnas */
    .catalog-grid {
        grid-template-columns: repeat(6, 1fr);
        max-height:            180px;
    }
}

/* ── Móvil pequeño (≤ 480 px) ── */
@media (max-width: 480px) {
    .header-container {
        padding: 0.5rem 1rem;
    }

    /* Hero section ajustes */
    .container {
        padding: 1rem;
        gap: 1rem;
    }

    .main-text h1 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .main-text .subtitle {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    /* Knowledge hub aún más pequeño */
    .hub-container {
        width:  clamp(180px, 55vw, 220px);
        height: clamp(180px, 55vw, 220px);
    }

    .central-icon {
        font-size: 2rem;
        width: 60px;
        height: 60px;
    }

    .orbit-1 { width: 130px; height: 130px; }
    .orbit-2 { width: 180px; height: 180px; }
    .orbit-3 { width: 220px; height: 220px; }

    .connection-line {
        height: 90px;
    }

    .knowledge-node {
        width:     38px;
        height:    38px;
        font-size: 0.9rem;
    }

    /* Trust signals en columna */
    .trust-signals {
        flex-direction: column;
        align-items:    center;
        gap:            var(--spacing-sm);
    }

    .trust-number {
        font-size: 1.8rem;
    }

    .trust-label {
        font-size: 0.75rem;
    }

    /* Secciones y títulos */
    .section-title    { 
        font-size: 1.6rem;
        margin-bottom: 0.75rem;
    }
    
    .section-subtitle { 
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    /* CTA buttons apilados */
    .cta-button {
        width:          100%;
        justify-content: center;
        font-size: 0.9rem;
        padding: 0.875rem 1.5rem;
    }

    /* Botones acción se apilan (submit arriba) */
    .form-actions {
        flex-direction: column-reverse;
    }

    .btn-cancel,
    .btn-submit {
        width:          100%;
        justify-content: center;
    }

    /* Grid iconos: 5 columnas */
    .catalog-grid {
        grid-template-columns: repeat(5, 1fr);
        max-height:            160px;
    }

    /* Tabs un poco más pequeños */
    .catalog-tabs button {
        padding:   3px 9px;
        font-size: 0.7rem;
    }
}

/* ── Tablet landscape (769px - 1024px) ── */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        gap: 2rem;
    }

    .hub-container {
        width:  clamp(300px, 40vw, 450px);
        height: clamp(300px, 40vw, 450px);
    }

    .central-icon {
        font-size: 3.5rem;
        width: 120px;
        height: 120px;
    }

    .orbit-1 { width: 220px; height: 220px; }
    .orbit-2 { width: 320px; height: 320px; }
    .orbit-3 { width: 420px; height: 420px; }

    .knowledge-node {
        width:     60px;
        height:    60px;
        font-size: 1.4rem;
    }
}

/*  18. MEDIA QUERIES DE ACCESIBILIDAD / ENTORNO */

/* Reduce movimiento */
@media (prefers-reduced-motion: reduce) {
    .particle,
    .hub-container,
    .knowledge-node,
    .orbit {
        animation: none;
    }
}

/* Alto contraste */
@media (prefers-contrast: high) {
    .nav-link,
    .cta-button,
    .filter-btn {
        border-width: 3px;
    }
}

/* Impresión */
@media print {
    .header-container,
    .bg-particles,
    .knowledge-hub,
    .scroll-to-top,
    .mobile-menu-toggle,
    .search-filter-container,
    .filter-buttons {
        display: none;
    }

    .info-card {
        break-inside: avoid;
    }
}

/* TARJETAS DINÁMICAS - IDENTIFICACIÓN */

.dynamic-card {
    position: relative;
}

.dynamic-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: calc(var(--border-radius) + 2px);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.dynamic-card:hover::before {
    opacity: 0.1;
}


/* ANIMACIONES ADICIONALES */

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animar la aparición de tarjetas dinámicas */
.dynamic-card {
    animation: pageFadeIn 0.5s ease-out;
}

/* Escalonar la animación de tarjetas */
.dynamic-card:nth-child(7) { animation-delay: 0.05s; }
.dynamic-card:nth-child(8) { animation-delay: 0.1s; }
.dynamic-card:nth-child(9) { animation-delay: 0.15s; }
.dynamic-card:nth-child(10) { animation-delay: 0.2s; }
.dynamic-card:nth-child(11) { animation-delay: 0.25s; }
.dynamic-card:nth-child(12) { animation-delay: 0.3s; }

/* MEJORAS VISUALES ADICIONALES */

/* Mejorar el espaciado entre tarjetas predeterminadas y dinámicas */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;

}

/* Asegurar que todas las tarjetas tengan el mismo tamaño */
.info-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.card-description {
    flex-grow: 1;
}

/* Mejorar iconos dinámicos */
.dynamic-card .card-icon i {
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.dynamic-card:hover .card-icon i {
    color: var(--color-secondary);
    transform: scale(1.1);
}

/* 9. PAGINACIÓN*/

   /* Contenedor de la paginación */
.pagination {
  margin-top: 20px;
  gap: 6px; 
  background-color: transparent;
}

/* Estilo general de los enlaces */
.page-link {
  color: #616161;
  padding: 8px 14px;
  border: none;              
  transition: all 0.3s ease;
}

/* Hover */
.page-link:hover {
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-secondary-light));
    color: #000000;
    border-radius:50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Página activa */
/* Página activa como círculo */
.page-item.active .page-link {
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-secondary-light));
    color: #000000;
    border-radius: 50%;          
    width: 55px;                 
    height: 55px;               
    display: flex;               
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    transform: translate3d(0, -5px, 5px);
}

/* Botones deshabilitados */
.page-item.disabled .page-link {
  color: #6c757d;
  background-color: transparent;
  pointer-events: none;
}


/* OVERLAY Y CONTENEDOR DEL MODAL */

/* Overlay del modal */
.modal-overlay-evento {
    display: none; /* Oculto por defecto */
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 44, 44, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    padding: clamp(16px, 3vw, 40px);
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Clase active para mostrar el modal */
.modal-overlay-evento.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    animation: fadeIn 0.3s ease;
}

/* Dialog del modal */
.modal-dialog-evento {
    background: var(--color-bg-white);
    border-radius: 24px;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(61, 177, 3, 0.25);
    position: relative;
    overflow: visible;
    margin: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Animación de entrada del dialog */
.modal-overlay-evento.active .modal-dialog-evento {
    transform: scale(1) translateY(0);
}

/*BOTÓN CERRAR */

.modal-cerrar-evento {
    position:       absolute;
    top:            clamp(18px, 3vw, 30px);
    right:          clamp(18px, 3vw, 30px);
    background:     rgba(49, 49, 49, 0.1);
    border:         none;
    width:          clamp(34px, 4.5vw, 42px);
    height:         clamp(34px, 4.5vw, 42px);
    border-radius:  12px;
    display:        flex;
    align-items:    center;
    justify-content: center;
    cursor:         pointer;
    color:          #fff;
    transition:     background var(--transition-speed) ease,
                    transform  var(--transition-speed) ease;
    flex-shrink:    0;
    z-index:        10;
    text-decoration: none;
    font-size:      clamp(1.2rem, 2.5vw, 1.6rem);
}

.modal-cerrar-evento:hover {
    background: rgba(255, 59, 48, 0.22);
    transform:  rotate(90deg);
    color:      #fff;
}

/* HEADER DEL MODAL*/

.modal-header-evento {
    display:        flex;
    justify-content: space-between;
    align-items:    center;
    padding:        clamp(18px, 3vw, 30px);
    background:     linear-gradient(135deg,
                        rgba(61, 177, 3, 0.96)  0%,
                        rgba(80, 229, 249, 0.92) 100%);
    border-bottom:  1px solid rgba(255, 255, 255, 0.12);
    border-top-right-radius: 24px;
    border-top-left-radius:  24px;
}

.modal-header-evento h2 {
    color:      #000;
    font-size:  clamp(1.1rem, 2.2vw, 1.5rem);
    font-weight: 700;
    margin:     0;
    display:    flex;
    align-items: center;
    gap:        clamp(8px, 1.2vw, 14px);
}

/* BODY DEL MODAL */

.modal-body-evento {
    padding: clamp(18px, 3vw, 30px);
}

.modal-body-evento form {
    display:        flex;
    flex-direction: column;
}

/* GRID DE CAMPOS*/

.row-evento {
    display:              grid;
    grid-template-columns: 1fr 1fr;

}

.col-evento {
    display:        flex;
    margin-bottom:  clamp(16px, 2.5vw, 24px);
    flex-direction: column;
    position:       relative;
}

.col-evento-full {
    grid-column: 1 / -1;
}

.col-evento label {
    color:       #111;
    font-weight: 600;
    font-size:   clamp(0.8rem, 1.3vw, 0.9rem);
    display:     flex;
    align-items: center;
    gap:         8px;
    margin-bottom: 0;
}

.col-evento label svg {
    width:      16px;
    height:     16px;
    flex-shrink: 0;
    color:      var(--color-text-light);
}

/* INPUTS, TEXTAREA Y SELECT */

.col-evento input,
.col-evento textarea,
.col-evento select {
    background:     #fafafa;
    border:         1.5px solid #c8c8c8;
    border-radius:  12px;
    padding:        clamp(9px, 1.3vw, 13px) 16px;
    color:          #111;
    font-size:      clamp(0.82rem, 1.3vw, 0.92rem);
    font-family:    inherit;
    transition:     border-color var(--transition-speed) ease,
                    box-shadow   var(--transition-speed) ease,
                    background   var(--transition-speed) ease;
}

.col-evento input:focus,
.col-evento textarea:focus,
.col-evento select:focus {
    outline:      none;
    border-color: var(--color-primary);
    background:   rgba(61, 177, 3, 0.06);
    box-shadow:   0 0 0 3px rgba(61, 177, 3, 0.18);
}

.col-evento input::placeholder,
.col-evento textarea::placeholder {
    color: #999;
}

.col-evento textarea {
    resize:     vertical;
    min-height: 100px;
}

.col-evento select {
    cursor:     pointer;
    appearance: auto;
}

/* RADIO BUTTONS PARA TIPO DE IMAGEN */

.radio-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: #fafafa;
    flex: 1;
    min-width: 140px;
}

.radio-option:hover {
    border-color: var(--color-primary) !important;
    background: rgba(61, 177, 3, 0.05);
}

.radio-option input[type="radio"] {
    width: auto;
    margin: 0;
    padding: 0;
    cursor: pointer;
}

.radio-option span {
    font-weight: 500;
    color: #444;
}

.radio-option input[type="radio"]:checked + span {
    color: var(--color-primary) ;
    font-weight: 600;
}

.radio-option:has(input[type="radio"]:checked) {
    border-color: var(--color-primary) !important;
    background: rgba(61, 177, 3, 0.1);
}


/* INPUT ROW - SELECTOR DE ICONOS*/

.input-row {
    display:       flex;
    align-items:   stretch;
    border:        1.5px solid #c8c8c8;
    border-radius: 12px;
    overflow:      hidden;
    transition:    border-color var(--transition-speed) ease;
    background:    #fafafa;
    z-index:       1;
}

.input-row:focus-within {
    border-color: var(--color-primary);
    box-shadow:   0 0 0 3px rgba(61, 177, 3, 0.18);
}

/* Miniatura del icono activo */
.icon-preview {
    display:        flex;
    align-items:    center;
    justify-content: center;
    width:          clamp(38px, 5vw, 46px);
    min-width:      clamp(38px, 5vw, 46px);
    background:     #eeeeee;
    border-right:   1px solid #ddd;
    color:          var(--color-primary);
}

/* Campo de texto readonly */
.input-row input[type="text"] {
    flex:           1;
    min-width:      0;
    border:         none;
    border-radius:  0;
    background:     transparent;
    box-shadow:     none;
    outline:        none;
    padding:        0 12px;
    font-size:      clamp(0.8rem, 1.3vw, 0.88rem);
    color:          #333;
    height:         clamp(38px, 5vw, 46px);
    font-family:    inherit;
}

.input-row input[type="text"]::placeholder {
    color: #aaa;
}

/* Botón que abre el catálogo */
.btn-catalog {
    display:        flex;
    align-items:    center;
    justify-content: center;
    width:          clamp(38px, 5vw, 46px);
    min-width:      clamp(38px, 5vw, 46px);
    background:     var(--color-primary);
    border:         none;
    cursor:         pointer;
    color:          #fff;
    transition:     background var(--transition-speed) ease;
}

.btn-catalog:hover {
    background: #2d8502;
}

/* ÁREA DE CARGA DE IMAGEN PNG */

.image-upload-area {
    width: 100%;
    margin-top: 0.5rem;
}

.upload-box {
    border: 2px dashed #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
    position: relative;
    min-height: 180px;
    max-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.upload-box:hover {
    border-color: var(--color-primary);
    background: rgba(61, 177, 3, 0.05);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
}

.upload-content svg {
    color: var(--color-text-light);
}

.upload-text {
    font-size: 0.9rem;
    color: var(--color-text-dark);
    font-weight: 500;
    margin: 0;
}

.upload-hint {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin: 0;
}

/* Container de preview de imagen */
.image-preview-container {
    display: none;
    position: relative;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    max-height: 240px;
    padding: 0.5rem;
}

.image-preview-container img {
    max-width: 80%;
    max-height: 80%;
    width: auto;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Botón de eliminar imagen */
.remove-image-btn {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: #ef4444;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.remove-image-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.remove-image-btn svg {
    width: 18px;
    height: 18px;
}

/* Cuando hay imagen visible, ocultar el upload content */
.upload-box:has(.image-preview-container[style*="display: flex"]) .upload-content {
    display: none !important;
}

/* Imagen actual en el modal de editar */
.modal-body-evento img {
    max-width: 200px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

/* FOOTER Y BOTONES */

.modal-footer-evento {
    display:        flex;
    gap:            clamp(10px, 1.8vw, 18px);
    justify-content: flex-end;
    margin-top:     auto;
    padding-top:    clamp(16px, 2.2vw, 22px);
    border-top:     1px solid #e8e8e8;
}

.btn-evento {
    padding:       clamp(9px, 1.3vw, 13px) clamp(18px, 2.8vw, 26px);
    border-radius: 12px;
    font-weight:   600;
    font-size:     clamp(0.82rem, 1.3vw, 0.92rem);
    cursor:        pointer;
    border:        none;
    display:       flex;
    align-items:   center;
    gap:           8px;
    transition:    transform    var(--transition-speed) ease,
                   box-shadow  var(--transition-speed) ease,
                   background  var(--transition-speed) ease;
    text-decoration: none;
}

.btn-evento-secondary {
    background: #f0f0f0;
    color:      #444 !important;
}

.btn-evento-secondary:hover {
    background: #e4e4e4;
    transform:  translateY(-2px);
}

.btn-evento-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, #2d8502 100%);
    color:      #fff;
    box-shadow: 0 4px 15px rgba(61, 177, 3, 0.3);
}

.btn-evento-primary:hover {
    transform:  translateY(-2px);
    box-shadow: 0 6px 20px rgba(61, 177, 3, 0.4);
}

.btn-evento svg {
    flex-shrink: 0;
}

/* ANIMACIONES */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/*RESPONSIVE */

@media (max-width: 768px) {
    .row-evento {
        grid-template-columns: 1fr;
        gap: clamp(10px, 2vw, 16px);
    }
    
    .modal-overlay-evento {
        padding: 1rem;
    }
    
    .modal-dialog-evento {
        width: 95%;
    }
    
    .modal-header-evento,
    .modal-body-evento {
        padding: clamp(16px, 2.5vw, 24px);
    }
    
    .radio-option {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .modal-footer-evento {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-evento {
        width: 100%;
        justify-content: center;
    }
}

.acciones-solucion {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

/* TOOLTIPS MODERNOS PARA BOTONE */

.btn-editar[data-tooltip],
.btn-eliminar[data-tooltip] {
    position: relative;
}

.btn-editar[data-tooltip]::after,
.btn-eliminar[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-editar[data-tooltip]::before,
.btn-eliminar[data-tooltip]::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.btn-editar[data-tooltip]:hover::after,
.btn-eliminar[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.btn-editar[data-tooltip]:hover::before,
.btn-eliminar[data-tooltip]:hover::before {
    opacity: 1;
}

/* Variante de tooltip para el botón editar (azul) */
.btn-editar[data-tooltip]::after {
    background: linear-gradient(135deg,
        #2f8a02 0%,
        #3db103 55%,
        #6fdc32 100%);
}

.btn-editar[data-tooltip]::before {
    border-top-color: #3db103;
}

/* Variante de tooltip para el botón eliminar (rojo) */
.btn-eliminar[data-tooltip]::after {
    background: linear-gradient(135deg,
        #ff4d4f 0%,
        #ff6b6b 60%,
        #ffd6d6 100%);
}

.btn-eliminar[data-tooltip]::before {
    border-top-color: #ff4d4f;
}


/* BOTONES DE EDITAR Y ELIMINAR */

.btn-editar,
.btn-eliminar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Efecto de onda al hacer click */
.btn-editar::before,
.btn-eliminar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-editar:active::before,
.btn-eliminar:active::before {
    width: 300px;
    height: 300px;
}

/* BOTÓN EDITAR */
.btn-editar {
    background: linear-gradient(135deg,
        #2f8a02 0%,
        #3db103 55%,
        #6fdc32 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-editar:hover {
    background: linear-gradient(135deg,
        #2f8a02 0%,
        #3db103 55%,
        #6fdc32 100%);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

.btn-editar:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(102, 234, 120, 0.3);
}

/* BOTÓN ELIMINAR */
.btn-eliminar {
    background: linear-gradient(135deg,
        #ff4d4f 0%,
        #ff6b6b 60%,
        #ffd6d6 100%);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
}

.btn-eliminar:hover {
    background: linear-gradient(135deg,
        #e63a3c 0%,
        #ff4d4f 60%,
        #ffb3b3 100%);
    box-shadow: 0 4px 16px rgba(255, 77, 79, 0.45);
    transform: translateY(-2px);
}

.btn-eliminar:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 77, 79, 0.3);
}


/* Iconos dentro de los botones */
.btn-editar i,
.btn-eliminar i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.btn-editar:hover i {
    transform: rotate(15deg) scale(1.1);
}

.btn-eliminar:hover i {
    transform: scale(1.15);
}

i {
    font-size: 1.1rem;
    color: #ffffff;
}

.modal.fade.show {
    display: flex !important;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.45);
    animation: modalFadeIn 0.3s ease;
}

.modal-dialog.modal-dialog-centered {
    width: clamp(300px, 34%, 520px);
    margin: auto;
}

.modal-content {
    background: #ffffff;
    border-radius: 18px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    animation: modalSlideIn 0.35s ease;
}

.modal-header {
    position: relative;
    padding: 26px 32px 18px;
    background: #fff !important;
    border-bottom: 2px solid #39A900;
}

.modal-header h5 {
    margin: 0 auto;
    font-size: 1.55rem;
    font-weight: 800;
    color: #020202;
    text-align: center;
}

.modal-header .btn-close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: #f2f2f2;
    border: 1px solid #dcdcdc;
    opacity: 1;
    transition: all 0.25s ease;
}

.modal-header .btn-close:hover {
    background-color: #c70c0c;
    color : #fff;
    transform: rotate(90deg);
}

.modal-body {
    padding: 28px 36px;
    text-align: center;
}

.modal-body p {
    font-size: 1rem;
    color: #444;
    margin-bottom: 6px;
}

.modal-body strong {
    display: block;
    margin-top: 4px;
    font-weight: 600;
    color: #444;
}

.modal-footer {
    padding: 22px 36px 26px;
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    border-top: 1px solid #e0e0e0;
}

.modal-footer .btn {
    min-width: 150px;
    font-weight: 600;
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 0.95rem;
}

.modal-footer .btn{
    background: #ffffff;
    color: #6c757d;
    border: 2px solid #d6d6d6;
}

.modal-footer .btn:hover {
    background: #f5f5f5;
}

/* Botón acción rojo */
.modal-footer .btn-eliminar {
    background-color: #e53935;
    border: none;
    color: #fff;
    min-width: 150px;
    font-weight: 600;
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 0.95rem;
    border: 2px solid #d6d6d6;
}

.modal-footer .btn-eliminar:hover {
    background-color: #c62828;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-14px) scale(0.97);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}


/*  MODAL DE ELIMINAR  */

.modal-delete-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-delete-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-delete-dialog {
    width: 90%;
    max-width: 480px;
    transform: scale(0.7) translateY(50px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-delete-overlay.active .modal-delete-dialog {
    transform: scale(1) translateY(0);
}

.modal-delete-content {
    background: linear-gradient(145deg, #ffffff 0%, #f9fafb 100%);
    border-radius: 20px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
}

.modal-delete-header {
    padding: 28px 28px 20px;
    border-bottom: 2px solid rgba(239, 68, 68, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.modal-delete-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Icono de advertencia en el título */
.modal-delete-title::before {
    content: '⚠';
    font-size: 1.75rem;
    -webkit-text-fill-color: #dc2626;
    background: none;
    animation: pulse-warning 2s infinite;
}

@keyframes pulse-warning {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.modal-delete-close,
.btn-close {
    background: rgba(239, 68, 68, 0.05);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    position: relative;
    z-index: 1;
}

.modal-delete-close:hover,
.btn-close:hover {
    background: rgba(239, 68, 68, 0.15);
    transform: rotate(90deg);
}

.btn-close::before {
    content: "×";
    font-size: 28px;
    color: #dc2626;
    line-height: 1;
    font-weight: 300;
}

.modal-delete-body {
    padding: 32px 28px;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Icono grande de advertencia en el body */
.modal-delete-body::before {
    content: '🗑️';
    font-size: 4rem;
    display: block;
    margin-bottom: 20px;
    animation: shake-trash 3s infinite;
}

@keyframes shake-trash {
    0%, 100% {
        transform: rotate(0deg);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: rotate(-5deg);
    }
    20%, 40%, 60%, 80% {
        transform: rotate(5deg);
    }
}

.modal-delete-body p {
    margin-bottom: 12px;
    color: #4b5563;
    font-size: 1.05rem;
    line-height: 1.6;
}

.modal-delete-body p:first-of-type {
    font-size: 1.15rem;
    font-weight: 500;
    color: #1f2937;
}

.modal-delete-body strong {
    color: #dc2626;
    font-weight: 700;
    background: rgba(220, 38, 38, 0.1);
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-block;
}

.modal-delete-footer {
    padding: 20px 28px 28px;
    border-top: 2px solid rgba(229, 231, 235, 0.5);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    position: relative;
    z-index: 1;
}

/* Botón Cancelar */
.modal-delete-footer .btn {
    width: fit-content;
    margin-top: 1%;
    padding: 12px 24px;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    background: white;
    color: #6b7280;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.modal-delete-footer .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(107, 114, 128, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.modal-delete-footer .btn:hover::before {
    width: 300px;
    height: 300px;
}

.modal-delete-footer .btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #374151;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.modal-delete-footer .btn:active {
    transform: translateY(0);
}

/* Botón Eliminar */
.modal-delete-footer .btn-eliminar {
    padding: 12px 28px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.4);
    position: relative;
    overflow: hidden;
}

.modal-delete-footer .btn-eliminar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.modal-delete-footer .btn-eliminar:hover::before {
    width: 300px;
    height: 300px;
}

.modal-delete-footer .btn-eliminar:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5);
    transform: translateY(-2px);
}

.modal-delete-footer .btn-eliminar:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
}

.modal-delete-footer .btn-eliminar i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.modal-delete-footer .btn-eliminar:hover i {
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 640px) {
    .modal-delete-dialog {
        width: 95%;
        margin: 0 auto;
    }
    
    .modal-delete-header {
        padding: 24px 20px 16px;
    }
    
    .modal-delete-title {
        font-size: 1.25rem;
    }
    
    .modal-delete-body {
        padding: 24px 20px;
    }
    
    .modal-delete-body::before {
        font-size: 3rem;
        margin-bottom: 16px;
    }
    
    .modal-delete-footer {
        padding: 16px 20px 24px;
        flex-direction: column-reverse;
    }
    
    .modal-delete-footer .btn,
    .modal-delete-footer .btn-eliminar {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }
}

/* ============================================
   NOTIFICACIONES TOAST
   ============================================ */

.toast-notification {
    position: fixed;
    top: -100px;
    right: 20px;
    background: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 100000;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 400px;
    min-width: 300px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 0;
    transform: translateY(-20px);
}

.toast-notification.show {
    top: 20px;
    opacity: 1;
    transform: translateY(0);
}

.toast-notification.success {
    border-left: 4px solid #3db103;
    background: linear-gradient(135deg, #ffffff 0%, #f0fff0 100%);
}

.toast-notification.error {
    border-left: 4px solid #dc3545;
    background: linear-gradient(135deg, #ffffff 0%, #fff0f0 100%);
}

.toast-notification .toast-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    animation: iconPop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast-notification.success .toast-icon {
    color: #3db103;
}

.toast-notification.error .toast-icon {
    color: #dc3545;
}

.toast-notification .toast-message {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
}

.toast-notification.hiding {
    animation: slideOutRight 0.3s ease-out forwards;
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

@keyframes iconPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* INDICADOR DE CARGA */

#loadingOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#loadingOverlay.active {
    opacity: 1;
}

.loading-spinner {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    animation: popIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes popIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.loading-spinner p {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3db103;
    border-right: 5px solid #50e5f9;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* RESPONSIVE */

@media (max-width: 768px) {
    .toast-notification {
        right: 10px;
        left: 10px;
        max-width: calc(100% - 20px);
        min-width: auto;
    }
    
    .toast-notification.show {
        top: 10px;
    }
    
    .loading-spinner {
        padding: 30px;
        margin: 0 20px;
    }
    
    .loading-spinner p {
        font-size: 14px;
    }
    
    .spinner {
        width: 50px;
        height: 50px;
        border-width: 4px;
    }
}

/* MEJORAS VISUALES ADICIONALES */

/* Efecto pulse para el spinner */
.spinner::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 5px solid transparent;
    border-top-color: rgba(61, 177, 3, 0.3);
    animation: pulse 2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* Ocultar el ícono nativo de ver contraseña en todos los navegadores */

/* Edge / IE */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

/* Chrome / Safari / Opera */
input[type="password"]::-webkit-credentials-auto-fill-button,
input[type="password"]::-webkit-strong-password-auto-fill-button {
    display: none !important;
    visibility: hidden;
    pointer-events: none;
}

/* Chrome (el ojito específico) */
input::-webkit-textfield-decoration-container {
    display: none;
}
