:root {
    --primary-blue: #138ACF;
    --accent-gold: #ffb400;
    --dark-text: #222831;
    --background-blue: #3785C5;
    --background-light: #F7f9FC;
}

body {
    font-family: "Didact Gothic", sans-serif;
    color: var(--dark-text);
}

.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

body.bloqueo-cookies {
    overflow: hidden !important;
}
#cookie-overlay { 
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(34, 40, 49, 0.4);
    z-index: 9998; 
    backdrop-filter: blur(8px); 
    -webkit-backdrop-filter: blur(8px); 
}

#cookie-banner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--background-light);
    color: var(--dark-text);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 9999; 
    width: 90%;
    max-width: 500px;
    text-align: center;
}
.cookie-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.btn-cookie {
    padding: 10px 24px;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    background-color: var(--primary-blue);
    color: #ffffff;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
}

.btn-cookie:hover {
    transform: scale(1.05);
    background-color: var(--background-blue);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

#btn-accept {
    background-color: var(--accent-gold);
}

#btn-accept:hover {
    background-color: #e6a200;
}
.animation-container {
    width: 450px;
    height: 450px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

@media (max-width: 600px) {
    .animation-container { width: 300px; height: 300px; }
}

.animation { position: relative; width: 100%; height: 100%; }
.anim_layer {
    position: absolute; width: 100%; height: 100%;
    background-repeat: no-repeat; background-size: 90%; background-position: center;
}

#anim_1_floor { background-image: url('/vision_app_assets/root/anim_girl_layer1_floor.png'); z-index: 1; }
#anim_1_table { 
    background-image: url('/vision_app_assets/root/anim_girl_layer2_device.png'); 
    animation: anim_1_table 3s ease-in-out infinite; z-index: 2; 
}
#anim_1_chair { 
    background-image: url('/vision_app_assets/root/anim_girl_layer3_chair.png'); 
    animation: anim_1_chair 3s ease-in-out infinite; z-index: 3; 
}
#anim_1_girl { 
    background-image: url('/vision_app_assets/root/anim_girl_layer4_girl.png'); 
    animation: anim_1_girl 3s ease-in-out infinite; z-index: 4; 
}

@keyframes anim_1_table { 0% { transform: rotate(0deg); } 50% { transform: rotate(-5deg); } 100% { transform: rotate(0deg); } }
@keyframes anim_1_chair { 0% { transform: rotate(0deg); } 50% { transform: rotate(5deg); } 100% { transform: rotate(0deg); } }
@keyframes anim_1_girl { 0% { transform: translateY(0em); } 50% { transform: translateY(-0.7em); } 100% { transform: translateY(0em); } }

.slide { display: none; }
.slide.active-slide { display: block; }
.active-slide .slide-content { animation: slideUp 0.9s ease-out forwards; }

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 32px;
    border-radius: 9999px;
    background-color: var(--accent-gold);
    color: #ffffff !important;
    text-shadow: 0px 1px 3px rgba(0,0,0,0.3);
    font-weight: 900;
    text-transform: uppercase;
    transition: all 0.3s ease-in-out;
    border: none;
    cursor: pointer;
    text-decoration: none !important;
}
.button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}
.pulse {
    animation: attention-pulse 1.6s ease-in-out infinite;
}
@keyframes attention-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.07); }
}

.nav-hover-effect {
    position: relative;
    text-decoration: none;
    padding-bottom: 6px;
    transition: color 0.3s ease;
}

.nav-hover-effect::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1.5px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-gold);
    transition: width 0.3s ease;
}

.nav-hover-effect:hover {
    color: var(--primary-blue);
}

.nav-hover-effect:hover::after {
    width: 100%;
}

.dropdown-link {
    display: block;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    color: var(--dark-text);
    position: relative;
}

.dropdown-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--accent-gold);
    transition: width 0.4s ease;
}

.dropdown-link:hover {
    background-color: #c5f4fa;
    color: var(--primary-blue);
    padding-left: 1.25rem;
}

.dropdown-link:hover::before {
    width: 100%;
}

.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-gold) transparent; 
    padding-bottom: 20px; 
}

.custom-scrollbar::-webkit-scrollbar {
    height: 10px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    margin: 0 20px; 
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: var(--accent-gold); 
    border-radius: 10px;
    transition: background-color 0.3s;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background-color: var(--accent-gold); 
}

.commitment-grid {
    display: grid;
    gap: 50px;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 3rem;
    text-align: left;
}
.commitment-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.commitment-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
.commitment-card i {
    font-size: 3rem;
    color: var(--accent-gold);
    margin-bottom: 20px;
}
.commitment-card h4 {
    font-size: 1.4rem;
    color: var(--primary-blue);
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 60px;
    margin-top: 4rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}
.team-card {
    background-color: transparent;
    box-shadow: none;
    flex: 0 1 220px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px;
}
.team-link {
    text-decoration: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
.team-card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    border: none; 
    filter: drop-shadow(0 10px 15px rgba(26, 54, 93, 0.15)); 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.team-card h3 {
    margin: 5px 0;
    font-size: 1.5rem;
    color: var(--primary-blue);
    transition: color 0.3s ease;
    font-weight: 700;
}
.team-link:hover img {
    transform: translateY(-15px) scale(1.03);
    filter: drop-shadow(0 20px 25px rgba(26, 54, 93, 0.2));
}
.team-link:hover h3 {
    color: var(--accent-gold) !important;
}

/* ===================================================
   BLOG — READING PROGRESS BAR
   =================================================== */
#blog-reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-gold));
    z-index: 99999;
    transition: width 0.1s linear;
    pointer-events: none;
}

/* ===================================================
   BLOG POST — ARTICLE LAYOUT
   =================================================== */
article.blog-post {
    background: #ffffff;
}

.blog-post-header {
    background: linear-gradient(135deg, #eef6fd 0%, #f0f7fd 55%, #f7f9fc 100%);
    border-radius: 1.5rem;
    padding: 2.75rem;
    margin-bottom: 3rem;
    border: 1px solid #d1e8f7;
    position: relative;
    overflow: hidden;
}

.blog-post-header::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(19, 138, 207, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.blog-post-header::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 180, 0, 0.07) 0%, transparent 70%);
    pointer-events: none;
}

/* ===================================================
   BLOG POST — ARTICLE CONTENT TYPOGRAPHY
   =================================================== */
.article-content {
    font-size: 1.0625rem;
    line-height: 1.9;
    color: #374151;
    padding-top: 2rem;
    border-top: 2px solid #e5edf5;
}

.article-content > p {
    margin-bottom: 1.5rem;
}

.article-content h2 {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--dark-text);
    margin-top: 2.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.625rem;
    border-bottom: 2px solid #eff2f5;
    line-height: 1.3;
    position: relative;
}

.article-content h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 52px;
    height: 2px;
    background: var(--accent-gold);
    border-radius: 9999px;
}

.article-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    padding-left: 0.875rem;
    border-left: 3px solid var(--accent-gold);
}

.article-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.article-content ul li {
    position: relative;
    padding-left: 1.625rem;
    margin-bottom: 0.625rem;
    line-height: 1.8;
}

.article-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 7px;
    height: 7px;
    background: var(--accent-gold);
    border-radius: 50%;
    flex-shrink: 0;
}

.article-content img {
    border-radius: 1rem;
    box-shadow: 0 16px 48px rgba(19, 138, 207, 0.1), 0 4px 16px rgba(0, 0, 0, 0.05);
    margin: 2.5rem auto;
    display: block;
    max-width: 100%;
    border: 1px solid #e5edf5;
}

.article-content strong {
    color: var(--dark-text);
    font-weight: 700;
}

.article-content em {
    color: #4b5563;
}

.article-content blockquote {
    border-left: 4px solid var(--primary-blue);
    background: linear-gradient(135deg, #f0f7fd, #f7f9fc);
    padding: 1.5rem 1.75rem;
    border-radius: 0 0.875rem 0.875rem 0;
    margin: 2rem 0;
    font-style: italic;
    font-size: 1.05rem;
    color: #374151;
    line-height: 1.8;
}

.article-content .info-box {
    background: linear-gradient(135deg, #f0f7fd, #eaf4fb);
    border: 1px solid #bfdbf7;
    border-radius: 1rem;
    padding: 1.75rem 2rem;
    margin: 2rem 0;
}

.article-content .info-box h2 {
    border-bottom: none;
    padding-bottom: 0;
    color: var(--primary-blue);
    font-size: 1.2rem;
    margin-top: 0;
}

.article-content .info-box h2::after {
    display: none;
}

.article-content .event-card {
    background: linear-gradient(135deg, #fffbf0, #fff9e6);
    border: 1px solid #ffe599;
    border-left: 4px solid var(--accent-gold);
    border-radius: 1rem;
    padding: 1.75rem 2rem;
    margin: 2rem 0;
}

.article-content .event-card h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--dark-text);
    margin-top: 0;
    margin-bottom: 0.875rem;
    border-left: none;
    padding-left: 0;
}

/* Back to blog pill button */
.blog-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    border-radius: 9999px;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none !important;
    transition: all 0.25s ease;
    letter-spacing: 0.025em;
}

.blog-back-link:hover {
    background: var(--primary-blue);
    color: #ffffff !important;
    transform: translateX(-4px);
    box-shadow: 0 4px 16px rgba(19, 138, 207, 0.28);
}

/* ===================================================
   BLOG INDEX — CARD STYLES
   =================================================== */
.blog-post-card {
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.blog-post-card:hover {
    transform: translateY(-8px);
}

.blog-featured-card {
    display: none;
}
.blog-featured-card.active {
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .blog-featured-card.active {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

.blog-featured-img {
    min-height: 220px;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .blog-featured-img {
        min-height: 340px;
    }
}

