:root {
    --primary-gradient: linear-gradient(135deg, #6200ea 0%, #00b0ff 100%);
    --bg-color: #f0f4f8;
    --text-color: #333;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    --hover-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    --accent-lime: #76ff03;

    /* Card Colors */
    --card-cyan: #00e5ff;
    --card-purple: #d500f9;
    --card-orange: #ff9100;
    --card-red: #ff1744;
    --card-blue: #2979ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--white);
    overflow-x: hidden;
}

/* Navbar - Full Width Modern Glass */
.navbar {
    position: fixed;
    /* Changed to fixed so it follows */
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.8rem 5%;
    /* Reduced initial padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;

    /* Initial State: Solid/Dark for legibility over Light Hero */
    background: rgba(26, 35, 126, 0.95);
    /* Deep Navy */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);

    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scrolled State: Becomes Transparent/Glass */
.navbar.scrolled {
    padding: 0.6rem 5%;
    /* Reduced scrolled padding */
    background: rgba(26, 35, 126, 0.4);
    backdrop-filter: blur(5px);
    box-shadow: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo-img {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.logo-text {
    color: #fff;
    /* Reverted to White */
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    /* Reverted to White */
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: 0.3s;
}

/* Hover Effect - Simple Glow */
.nav-links a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: translateY(-2px);
}

/* Remove the underline effect I added previously since we are doing pills now */
.nav-links a::after {
    display: none;
}

.btn-login {
    background: var(--white);
    color: #6200ea;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.btn-login:hover {
    transform: scale(1.05);
}

/* Social Icons in Navbar */
.social-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 2rem;
}

.social-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: transform 0.3s, background 0.3s;

    /* Added circular background for guaranteed contrast */
    width: 40px;
    height: 40px;
    background: rgba(255, 238, 88, 0.4);
    /* Light Yellow Clear */
    border-radius: 50%;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.social-icon-link:hover {
    transform: translateY(-3px);
    background: #ffeb3b;
    /* Yellow Strong */
    color: var(--dark-blue);
    border-color: #fbc02d;
}

.social-svg {
    width: 20px;
    /* Slightly smaller to fit in circle */
    height: 20px;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1));
}



/* Spectacular Hero Section - DAYLIGHT MODE */
.hero {
    min-height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    /* Soft Daylight Gradient (White -> Pale Blue -> Soft Lavender) */
    background: radial-gradient(circle at top left, #ffffff 0%, #f0f7ff 40%, #f3e5f5 100%);
    perspective: 1000px;
}

/* Background Animated Orbs */
.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: floatOrb 20s infinite ease-in-out alternate;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: #b3e5fc;
    /* Pastel Blue */
    top: -150px;
    left: -150px;
    opacity: 0.5;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: #e1bee7;
    /* Pastel Purple */
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
    opacity: 0.5;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: #b2dfdb;
    /* Pastel Teal */
    top: 30%;
    left: 40%;
    opacity: 0.4;
    animation-duration: 25s;
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

/* 3D Floating Scene */
.hero-3d-scene {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero-3d-el {
    position: absolute;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
    animation: heroFloat 8s ease-in-out infinite;
}

.el-main {
    top: 5%;
    /* Slightly higher to show full figure */
    right: 25%;
    /* Moved significantly left to close gap with text */
    width: 700px;
    /* Increased size slightly for impact */
    height: auto;
    z-index: 2;
    animation-delay: 0s;
    opacity: 1;
    /* No blend mode needed for transparent PNG */
    will-change: transform;
    /* Optimize for parallax */
    transform-origin: center bottom;
}

.el-book {
    top: 15%;
    left: 10%;
    width: 200px;
    transform: rotate(-15deg);
    animation-delay: -2s;
    animation-duration: 9s;
}

.el-trophy {
    bottom: 25%;
    left: 15%;
    width: 180px;
    transform: rotate(10deg);
    animation-delay: -4s;
    animation-duration: 11s;
}

.el-tech {
    bottom: 20%;
    right: 25%;
    width: 150px;
    transform: rotate(-20deg);
    animation-delay: -1s;
    opacity: 0.9;
}

.el-building {
    top: 10%;
    right: 40%;
    width: 120px;
    opacity: 0.5;
    filter: blur(2px);
    /* Depth of field effect */
    animation-delay: -5s;
}

@keyframes heroFloat {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

/* Glass Content */
.hero-content-glass {
    position: relative;
    z-index: 10;
    text-align: left;
    max-width: 650px;
    padding-left: 10%;
    margin-right: auto;
    will-change: transform, opacity;
    /* Optimize for parallax */
}

.hero-title-main {
    font-size: 5rem;
    /* Slightly smaller for better fit */
    font-weight: 800;
    line-height: 1.2;
    /* More breathing room */
    margin: 1.5rem 0;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    /* Significantly larger gap between lines */
    /* Alignment */
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.title-line {
    display: block;
    color: #1a237e;
    /* Navy Blue for contrast on light */
    letter-spacing: 2px;
    /* Positive spacing for cleaner look */
}

.gradient-text {
    background: linear-gradient(to right, #00b0ff, #d500f9);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle-glass {
    font-size: 1.4rem;
    color: #455a64;
    /* Blue Grey */
    max-width: 600px;
    margin: 0 auto 3rem;
    font-weight: 300;
    line-height: 1.6;
}

.glass-pill {
    background: rgba(255, 255, 255, 0.6);
    /* Icy white */
    backdrop-filter: blur(12px);
    border: 1px solid rgba(26, 35, 126, 0.1);
    color: #1a237e;
    /* Navy */
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    letter-spacing: 1px;
    text-shadow: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.pulse-dot {
    background: #00e676;
    box-shadow: 0 0 10px #00e676;
}

/* Actions */
.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
    /* Alignment */
    margin-top: 2rem;
}

.cta-btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border: none;
}

.primary-glow {
    background: #6200ea;
    color: white;
    box-shadow: 0 0 20px rgba(98, 0, 234, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.primary-glow:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(98, 0, 234, 0.8);
    background: #7c4dff;
}

.secondary-glass {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(26, 35, 126, 0.2);
    color: #1a237e;
}

.secondary-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

/* Override hover behavior during animation if needed, 
   but usually hover state halts animation or composes. 
   Here we keep it simple. */

/* Services Section */
.services-section {
    padding: 5rem 0;
    /* Vibrant Gradient Background (Orange Theme) */
    background: linear-gradient(135deg, #c34304 0%, #ff9100 100%);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Custom 5-Node Pattern Overlay (Spheres Only - Animated) */
.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* SVG with 5 Spheres Only (No Lines) */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 800' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23ffffff' stop-opacity='0.15'/%3E%3Cstop offset='100%25' stop-color='%23ffffff' stop-opacity='0.05'/%3E%3C/linearGradient%3E%3C/defs%3E%3C!-- 5 Spheres --%3E%3Ccircle cx='150' cy='150' r='120' fill='url(%23a)'/%3E%3Ccircle cx='400' cy='600' r='60' fill='url(%23a)'/%3E%3Ccircle cx='800' cy='250' r='90' fill='url(%23a)'/%3E%3Ccircle cx='1050' cy='550' r='140' fill='url(%23a)'/%3E%3Ccircle cx='950' cy='100' r='40' fill='url(%23a)'/%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* Floating Animation (Faster and more visible) */
    animation: floatSpheres 8s ease-in-out infinite alternate;
    z-index: 1;
}

@keyframes floatSpheres {
    0% {
        transform: scale(1) translate(0, 0);
    }

    100% {
        transform: scale(1.15) translate(-50px, -30px);
    }
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    color: #fff;
    /* Changed to white for contrast */
    position: relative;
    z-index: 2;
}

.services-section {
    padding: 8rem 0 5rem 0;
    /* Increase top padding for the wave */
    /* Deep Indigo Gradient for Harmony */
    background: linear-gradient(135deg, #1a237e 0%, #4527a0 100%);
    position: relative;
    overflow: hidden;
    z-index: 5;
    /* Ensure it sits on top of Hero bottom */

    /* Double Wave Clip Path */
    -webkit-clip-path: url(#top-double-wave);
    clip-path: url(#top-double-wave);

    margin-top: -6rem;
    /* Pull up to overlap Hero */
}

/* ... existing styles ... */

.services-grid {
    display: flex;
    gap: 2rem;
    width: max-content;
    /* Animation removed for JS control */
    padding: 0;
    /* Removed padding to fix loop gap */
    cursor: grab;
    /* Indicate drag capability */
    touch-action: pan-y;
    /* Allow vertical scroll, handle horizontal via JS */
}

.services-grid:active {
    cursor: grabbing;
}

.service-card {
    background: var(--glass-bg);
    border-radius: 2rem;
    padding: 2rem;
    min-width: 280px;
    /* Fixed width for carousel */
    min-height: 280px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
    color: #2c3e50;
}

.card-content p {
    font-size: 0.9rem;
    color: #555;
    position: relative;
    z-index: 2;
}

.card-icon {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 160px;
    height: 160px;
    object-fit: contain;
    transition: 0.3s;
    z-index: 1;
}

.service-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Generic colored overlay/accent at bottom of card */
.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: #ccc;
}

.card-cyan .card-overlay {
    background: var(--card-cyan);
}

.card-purple .card-overlay {
    background: var(--card-purple);
}

.card-orange .card-overlay {
    background: var(--card-orange);
}

.card-red .card-overlay {
    background: var(--card-red);
}

.card-blue .card-overlay {
    background: var(--card-blue);
}


/* Community Section */
.community-section {
    padding: 5rem 8%;
    background: #fff;
    position: relative;
    padding: 10rem 8% 6rem 8%;
    /* Increased top padding */
    /* Vibrant Cyan/Blue Gradient */
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);

    /* Slanted layout consistently */
    clip-path: polygon(0 10%, 100% 0, 100% 100%, 0% 100%);

    margin-top: -6rem;
    /* Overlap with White Uniforms section */

    position: relative;
    overflow: hidden;
    z-index: 10;
}

/* ... existing styles ... */

/* Uniforms Section */
.uniforms-section {
    padding: 5rem 8%;
    background: #fff;
    text-align: center;
}

.community-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.community-text-side {
    flex: 1;
}

.community-title {
    text-align: left;
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #fff;
    /* White title */
}

.script-font {
    font-family: 'Poppins', cursive;
    /* Fallback if no script font loaded, but distinct style */
    font-style: italic;
    color: #ffd700;
    /* Gold highlight for INAS */
}

.community-desc {
    font-size: 1.1rem;
    color: #e0f7fa;
    /* Light cyan white */
    margin-bottom: 2rem;
    line-height: 1.6;
}

.community-tags {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.tag {
    background: rgba(98, 0, 234, 0.1);
    color: #6200ea;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-weight: 600;
    transition: 0.3s;
}

.tag:hover {
    background: #6200ea;
    color: #fff;
    transform: translateY(-3px);
}

.community-image-wrapper {
    flex: 1.2;
    position: relative;
}

.glass-frame {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: rotate(2deg);
    transition: 0.5s;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.glass-frame:hover {
    transform: rotate(0deg) scale(1.02);
}

.community-img {
    width: 100%;
    border-radius: 1.5rem;
    display: block;
}

.floating-icon {
    position: absolute;
    font-size: 3rem;
    filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.2));
    animation: float 4s ease-in-out infinite;
}

.icon-1 {
    top: -20px;
    right: -20px;
    animation-delay: 0s;
}

.icon-2 {
    bottom: -30px;
    left: 20px;
    animation-delay: 1s;
}

.icon-3 {
    bottom: 40%;
    right: -40px;
    animation-delay: 2s;
}

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

    .community-title {
        text-align: center;
    }

    .community-desc {
        text-align: center;
    }

    .community-tags {
        justify-content: center;
    }
}


/* Excellence Banner replacement: Results Section */
.results-section {
    padding: 10rem 8% 6rem 8%;
    /* Simple Gray Gradient */
    background: linear-gradient(135deg, #757f9a 0%, #d7dde8 100%);

    /* Slanted/Angled Edge (Clip-path) REPLACED WITH WAVE */
    /* clip-path: polygon(0 10%, 100% 0, 100% 100%, 0% 100%); */
    -webkit-clip-path: url(#results-wave);
    clip-path: url(#results-wave);

    /* Layered Transition (Overlap) */
    margin-top: -6rem;
    /* Keep negative margin for overlap */
    padding-top: 10rem;
    /* Ensure title isn't cut by the wave */

    position: relative;
    z-index: 10;
    overflow: hidden;
}

.results-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 800' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23ffffff' stop-opacity='0.15'/%3E%3Cstop offset='100%25' stop-color='%23ffffff' stop-opacity='0.05'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='150' cy='150' r='120' fill='url(%23a)'/%3E%3Ccircle cx='400' cy='600' r='60' fill='url(%23a)'/%3E%3Ccircle cx='800' cy='250' r='90' fill='url(%23a)'/%3E%3Ccircle cx='1050' cy='550' r='140' fill='url(%23a)'/%3E%3Ccircle cx='950' cy='100' r='40' fill='url(%23a)'/%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: floatSpheres 8s ease-in-out infinite alternate;
    z-index: 0;
}

/* Ensure title is visible on gray */
.results-section .section-title {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-size: 3rem;
    /* "Titulo que se vea" */
}

.results-container {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 2rem;
    padding-top: 1rem;
    /* Hide scrollbar aesthetics but keep function */
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.results-container::-webkit-scrollbar {
    height: 8px;
}

.results-container::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 10px;
}

.result-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    min-width: 220px;
    flex: 1;
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.result-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: #fff;
}

.featured-result {
    transform: scale(1.05);
    /* Slight default lift */
    background: rgba(255, 255, 255, 0.85);
    border: 2px solid rgba(98, 0, 234, 0.3);
    box-shadow: 0 15px 45px rgba(98, 0, 234, 0.2);
    z-index: 2;
}

.featured-result:hover {
    transform: scale(1.08) translateY(-8px);
    border-color: #6200ea;
}

.year-label {
    font-size: 1.4rem;
    color: #455a64;
    font-weight: 800;
    margin-bottom: 0.5rem;
    margin-top: 2rem;
}

.featured-result .year-label {
    background: -webkit-linear-gradient(45deg, #6200ea, #d500f9);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Social Nav in Header */
.social-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-left: 2rem;
    padding-left: 2rem;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.social-icon-link {
    color: #455a64;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.social-icon-link:hover {
    transform: translateY(-2px);
}

.social-icon-link.instagram:hover {
    color: #E1306C;
}

.social-icon-link.youtube:hover {
    color: #FF0000;
}

.menu-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
}

.score-display {
    margin-bottom: 1.5rem;
}

.score-label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #78909c;
    margin-bottom: -5px;
    font-weight: 600;
}

.score-number {
    font-size: 3.5rem;
    font-weight: 900;
    /* Gradient Text for Score */
    background: -webkit-linear-gradient(45deg, #2c3e50, #455a64);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -2px;
}

.featured-result .score-number {
    background: -webkit-linear-gradient(45deg, #ff6d00, #ffab00);
    /* Orange Gradient for highlight */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rank-details {
    width: 100%;
    background: rgba(255, 255, 255, 0.5);
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.rank-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    color: #666;
}

.rank-row strong {
    color: #333;
}

/* Trend Badge */
.trend-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #fff;
    border-radius: 20px;
    padding: 0.3rem 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
}

.trend-badge.up {
    color: #00c853;
    background: #e8f5e9;
}

.trend-badge.down {
    color: #ff1744;
    background: #ffebee;
}

.floating-tooltip {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #6200ea;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .results-section {
        border-radius: 2rem 2rem 0 0;
    }

    .result-card {
        min-width: 240px;
        /* Wider cards on mobile horizontal scroll */
    }
}


/* Uniforms Section */
.uniforms-section {
    padding: 5rem 8%;
    background: #fff;
    text-align: center;
}

.uniforms-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 8rem;
    /* Increased from 3rem to prevent overlap */
    position: relative;
    z-index: 5;
}

.uniform-card {
    position: relative;
    width: 280px;
    height: 400px;
    /* Taller for full body */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 2rem;
    transition: 0.3s;
}

.uniform-card:hover .uniform-img {
    transform: scale(1.08) translateY(-10px);
}

.uniform-bg-circle {
    position: absolute;
    bottom: 0;
    width: 280px;
    height: 250px;
    border-radius: 200px 200px 20px 20px;
    z-index: 0;
    opacity: 0.15;
    transition: 0.3s;
}

.circle-blue {
    background: #2979ff;
}

.circle-purple {
    background: #d500f9;
}

.circle-cyan {
    background: #00e5ff;
}

.uniform-card:hover .uniform-bg-circle {
    opacity: 0.25;
    height: 270px;
}

.uniform-img {
    height: 380px;
    /* Big character */
    object-fit: contain;
    z-index: 1;
    transition: 0.4s ease-out;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

.uniform-title {
    margin-top: 1rem;
    font-size: 1.5rem;
    z-index: 2;
    color: #333;
}

.uniform-desc {
    font-size: 0.9rem;
    color: #666;
    z-index: 2;
}

/* --- Impressive Footer --- */
.main-footer {
    background: linear-gradient(135deg, #0d1b2a 0%, #1b263b 100%);
    /* Deep Dark Navy */
    color: #fff;
    padding: 10rem 8% 2rem 8%;
    position: relative;
    margin-top: -6rem;
    /* Overlap Community Section */
    clip-path: polygon(0 10%, 100% 0, 100% 100%, 0% 100%);
    z-index: 15;
    /* Topmost */
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

/* Col 1: Brand */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-logo img {
    height: 60px;
}

.footer-logo span {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.footer-tagline {
    font-family: 'Poppins', serif;
    font-style: italic;
    color: #ffd700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer-desc {
    color: #b0bec5;
    line-height: 1.6;
    max-width: 300px;
}

/* Headings */
.footer-heading {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 40px;
    height: 3px;
    background: #ffd700;
    border-radius: 2px;
}

/* Links */
.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #cfd8dc;
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(5px);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Contact List */
.contact-list {
    list-style: none;
}

.contact-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
    color: #b0bec5;
}

.contact-list .icon {
    font-size: 1.2rem;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-btn {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-svg-footer {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.social-btn:hover {
    background: #fff;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.social-btn.instagram:hover {
    color: #E1306C;
    /* Insta Pink/Red */
}

.social-btn.youtube:hover {
    color: #FF0000;
    /* YouTube Red */
}

/* Bottom */
.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    color: #546e7a;
    font-size: 0.9rem;
}

/* Mobile Adjustments for Footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .contact-list li {
        justify-content: center;
    }

    .social-icons {
        justify-content: center;
    }
}


/* --- NEW Mobile Navigation Styles --- */

/* Menu Toggle Button (Visible only on mobile) */
.menu-toggle {
    display: none;
    /* Hidden on desktop */
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    z-index: 1001;
    /* Above navbar background */
    margin-left: 1rem;
    transition: 0.3s;
}

.menu-toggle:hover {
    transform: scale(1.1);
}

/* Mobile Changes */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 8rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .search-container {
        margin: 0 auto;
    }

    .hero-image-container {
        height: 50vh;
        width: 100%;
        justify-content: center;
    }

    .navbar {
        padding: 1.5rem;
    }

    /* Show hamburger on mobile */
    .menu-toggle {
        display: block;
    }

    /* Mobile Nav Links - Glassmorphism Drawer (Refined) */
    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        /* Reduced width */
        height: 100vh;
        /* Advanced Glassmorphism */
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(25px) saturate(180%);
        -webkit-backdrop-filter: blur(25px) saturate(180%);

        /* Floating / 3D Effect */
        box-shadow: -10px 0 40px rgba(98, 0, 234, 0.15);
        /* Purple glow */
        border-left: 1px solid rgba(255, 255, 255, 0.6);
        border-radius: 30px 0 0 30px;
        /* Rounded left edge */

        padding-top: 6rem;
        gap: 1.5rem;
        z-index: 1000;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        /* Bouncy pop-out */
        padding-left: 2rem;
        padding-right: 2rem;
    }

    /* Active state to slide in */
    .nav-links.active {
        transform: translateX(0);
    }

    .nav-item {
        color: #455a64;
        font-size: 1.1rem;
        font-weight: 700;
        padding: 0.8rem 1.5rem;
        border-radius: 50px;
        /* Pill shape */
        width: 100%;
        text-align: center;
        border: none;
        transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
    }

    .nav-item:hover {
        background: linear-gradient(135deg, #6200ea 0%, #d500f9 100%);
        color: #fff;
        transform: translateX(-5px) scale(1.05);
        /* Slide and grow */
        box-shadow: 0 5px 15px rgba(98, 0, 234, 0.3);
        padding-left: 1.5rem;
        /* Reset padding shift from previous style */
    }
}

/* --- New Page Styles (Inner Pages) --- */

.page-hero {
    height: 50vh;
    /* Taller for better impact */
    /* Soft 3D Gradient (Purple/Blue) - Distinct from Navbar */
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
    /* Or maybe a soft blue? */
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
    box-shadow: inset 0 -50px 50px -20px rgba(255, 255, 255, 0.5);
    /* Inner light glow */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    /* Space for navbar */
    overflow: hidden;
}

.page-hero-content {
    z-index: 2;
    z-index: 2;
    color: #4527a0;
    /* Deep Purple for contrast against pastel */
    text-shadow: none;
    /* Remove shadow for cleaner look or keep subtle light shadow */
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.5);
    /* White glow instead of dark shadow */
    transform: translateY(20px);
}

/* Facilities Content Specifics */
.facilities-content {
    background: linear-gradient(180deg, #fdfbfd 0%, #eef2f3 100%);
    /* Softest gray/lavender shift */
    position: relative;
    overflow: hidden;
}

/* Reuse the spheres animation */
.facilities-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Using the same SVG data URI from results-section */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 800' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%236200ea' stop-opacity='0.15'/%3E%3Cstop offset='100%25' stop-color='%2300c6ff' stop-opacity='0.08'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='150' cy='150' r='120' fill='url(%23a)'/%3E%3Ccircle cx='400' cy='600' r='60' fill='url(%23a)'/%3E%3Ccircle cx='800' cy='250' r='90' fill='url(%23a)'/%3E%3Ccircle cx='1050' cy='550' r='140' fill='url(%23a)'/%3E%3Ccircle cx='950' cy='100' r='40' fill='url(%23a)'/%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: floatSpheres 12s ease-in-out infinite alternate;
    z-index: 0;
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Content Section Main */
.content-section {
    padding: 5rem 8%;
    background: #f5f7fa;
    min-height: 50vh;
}

/* Video Wrapper */
.video-wrapper {
    max-width: 900px;
    margin: 0 auto 5rem;
    text-align: center;
}

.glass-video-frame {
    background: #000;
    padding: 1rem;
    border-radius: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.video-caption {
    margin-top: 1rem;
    color: #666;
    font-style: italic;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    height: 250px;
    border-radius: 1rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gallery-placeholder {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

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

/* Horizonte Grid */
.horizonte-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.info-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-left: 5px solid transparent;
    transition: 0.3s;
}

.info-card:nth-child(1) {
    border-color: #00c6ff;
}

/* Mission Cyan */
.info-card:nth-child(2) {
    border-color: #6200ea;
}

/* Vision Purple */
.info-card:nth-child(3) {
    border-color: #ffd700;
}

/* Philo Gold */

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.pedagogia-section {
    background: linear-gradient(135deg, #6200ea 0%, #3700b3 100%);
    color: #fff;
    padding: 4rem;
    border-radius: 2rem;
    text-align: center;
}

.dark-title {
    color: #333 !important;
    text-shadow: none !important;
}

/* Bank Cards for Pagos */
.cards-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 4rem;
}

.bank-card {
    width: 320px;
    height: 200px;
    border-radius: 20px;
    padding: 25px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    /* Glass / Metallic Effect */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
    /* Glass Edge */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bank-card:hover {
    transform: translateY(-10px) rotateX(5deg);
}

.card-gradient-1 {
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
}

.card-gradient-2 {
    background: linear-gradient(135deg, #d32f2f 0%, #c62828 100%);
}

.chip {
    width: 50px;
    height: 35px;
    background: linear-gradient(135deg, #ffd700 0%, #fbc02d 100%);
    border-radius: 5px;
}

.bank-logo {
    text-align: right;
    font-size: 1.2rem;
    font-weight: 800;
}

.card-number {
    font-size: 1.5rem;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
    text-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
}

.card-holder {
    display: flex;
    flex-direction: column;
}

.card-holder span {
    font-size: 0.7rem;
    opacity: 0.8;
}

.card-type {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    font-size: 0.8rem;
    opacity: 0.9;
}

.payment-info-box {
    background: #fff3e0;
    border-left: 5px solid #ff9800;
    padding: 1.5rem;
    border-radius: 0.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.btn-primary {
    display: inline-block;
    background: #ffd700;
    color: #000;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 2rem;
    transition: 0.3s;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

/* =========================================
   Redesign Overrides (Glassmorphism)
   ========================================= */

.bank-card {
    width: 320px;
    height: 200px;
    border-radius: 20px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: white;

    /* Glass / Metallic Effect */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bank-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.6) !important;
}

/* Gradients with opacity for Glass feel */
.card-gradient-1 {
    background: linear-gradient(135deg, rgba(0, 78, 146, 0.85), rgba(0, 4, 40, 0.9));
}

.card-gradient-2 {
    background: linear-gradient(135deg, rgba(221, 36, 118, 0.85), rgba(255, 81, 47, 0.9));
}

/* Glass Shine Overlay */
.card-overlay {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
    opacity: 0;
    transform: rotate(30deg);
    transition: 0.5s;
    pointer-events: none;
    z-index: 1;
}

.bank-card:hover .card-overlay {
    opacity: 1;
    transform: rotate(30deg) translateY(-20px);
}

.payment-info-box {
    /* Glass Panel Override */
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.6) !important;
    /* Override old border */

    padding: 2.5rem;
    border-radius: 24px;
    max-width: 650px;
    margin: 3rem auto 0;
    text-align: center;
    box-shadow: 0 20px 40px rgba(100, 100, 111, 0.1);
    transition: transform 0.3s;
}

.payment-info-box:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.85) !important;
}

.payment-requirements li {
    background: rgba(98, 0, 234, 0.05);
    margin-bottom: 0.5rem;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border-left: 4px solid #6200ea;
    font-size: 0.95rem;
    text-align: left;
}

/* Fix for Uniforms Section Title Visibility */
.uniforms-section .section-title {
    color: #1a237e !important;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    font-weight: 700;
}

/* --- Contact Page Styles --- */

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    padding: 0 5%;
}

.contact-card {
    background: #fff;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: #6200ea;
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.contact-label {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-value {
    color: #546e7a;
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 0 5%;
    align-items: start;
}

@media (max-width: 900px) {
    .contact-split-section {
        grid-template-columns: 1fr;
    }
}

.map-container,
.form-container {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    height: 100%;
    min-height: 520px;
    /* Match form height */
}

.map-container iframe,
.form-container iframe {
    width: 100%;
    height: 100%;
    display: block;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 3rem;
    color: #666;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Redesigned Payment Page Styles --- */

.payments-container-new {
    max-width: 1400px;
    /* Wider container for horizontal stretch */
    margin: 0 auto;
    padding: 0 3%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* Ensure info box spans full width */
.payments-container-new .payment-info-box {
    grid-column: 1 / -1;
    margin-top: 1rem;
}

/* Reset payment block margins inside grid */
.payment-block {
    background: #fff;
    border-radius: 16px;
    padding: 2rem 2.5rem;
    /* Less vertical padding */
    margin-bottom: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-left: 6px solid #ccc;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center content vertically */
    gap: 0.5rem;
    /* Reduce gap */
    transition: transform 0.2s;
    height: 100%;
    min-height: 250px;
    /* Force a minimum height but encourage width */
}

/* Responsive: Stack on mobile */
@media (max-width: 900px) {
    .payments-container-new {
        grid-template-columns: 1fr;
    }
}

.payment-block:hover {
    transform: translateX(5px);
}

.payment-block.caja-social {
    border-left-color: #004b8d;
}

.payment-block.davivienda {
    border-left-color: #dd0021;
}

.bank-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Spread name and badge */
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.2rem;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 0.5rem;
}

.bank-name-large {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2c3e50;
}

.account-type-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: #f0f2f5;
    border-radius: 6px;
    font-weight: 600;
    color: #555;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin: 0;
    /* Remove margin as it's in header now */
}

.account-number-large {
    font-size: 2.5rem;
    /* Slightly smaller to fit width */
    font-family: 'Courier New', Courier, monospace;
    font-weight: 800;
    color: #333;
    letter-spacing: 0px;
    margin: 0.5rem 0;
    white-space: nowrap;
    /* Keep on one line if possible */
}

.account-details-grid {
    display: flex;
    /* Horizontal details */
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 0.5rem;
    padding-top: 0;
    border-top: none;
}

.detail-item strong {
    display: block;
    color: #2c3e50;
    font-size: 1rem;
}

.detail-item span {
    color: #888;
    font-size: 0.85rem;
    text-transform: uppercase;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .account-number-large {
        font-size: 1.8rem;
        white-space: normal;
        word-break: break-all;
    }

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

.payment-security-notice {
    text-align: center;
    background: #e3f2fd;
    color: #0d47a1;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    display: inline-block;
    margin: 0 auto 2rem;
    font-weight: 500;
    font-size: 0.95rem;
    border: 1px solid #bbdefb;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.payment-security-notice::before {
    content: "🔒 ";
    margin-right: 0.5rem;
}

/* --- Chatbot Widget Styles --- */

.chat-toggle-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #6200ea;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(98, 0, 234, 0.4);
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.3s;
    display: flex;
    /* Center icon */
    align-items: center;
    justify-content: center;
}

.chat-toggle-btn:hover {
    transform: scale(1.1);
}

.chat-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-window.hidden,
.chat-toggle-btn.hidden {
    display: none;
}

.chat-header {
    background: #6200ea;
    color: white;
    padding: 1rem;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header button {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

.chat-history {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.message {
    padding: 0.8rem 1rem;
    border-radius: 12px;
    max-width: 80%;
    font-size: 0.95rem;
    line-height: 1.5;
}

.message.bot {
    background: #fff;
    border: 1px solid #eee;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    color: #333;
}

.message.user {
    background: #6200ea;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-input-area {
    padding: 1rem;
    border-top: 1px solid #eee;
    background: white;
    display: flex;
    gap: 0.5rem;
}

.chat-input-area input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 25px;
    outline: none;
    transition: 0.2s;
}

.chat-input-area input:focus {
    border-color: #6200ea;
}

.chat-input-area button {
    background: #6200ea;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.2s;
}

.chat-input-area button:hover {
    background: #5000c0;
}

/* Mobile Responsiveness for Chat */
@media (max-width: 480px) {
    .chat-window {
        width: 90%;
        right: 5%;
        bottom: 90px;
        height: 60vh;
    }
}

/* INTRO OVERLAY STYLES */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    transition: opacity 0.8s ease-out;
}

.intro-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.intro-overlay-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    /* Darker overlay for intro text */
    z-index: 1;
}

.intro-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    animation: fadeUp 1s ease-out;
}

.intro-logo {
    width: 180px;
    /* Adjust size as needed */
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
    animation: fadeInDown 1s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.intro-animated-text {
    font-size: 3.5rem;
    /* Phrases are now the "Hero" text */
    font-weight: 800;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff;
    /* White text */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
    min-height: 1.2em;
    /* Prevent layout shift */
}

.enter-btn {
    padding: 1rem 3rem;
    font-size: 1.2rem;
    font-weight: 800;
    /* Extra bold */
    color: #000;
    /* Black text */
    background: #ffd700;
    /* Solid Yellow background */
    border: 2px solid #ffd700;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy transition */
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 3rem;
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
}


/* Resultados Section */
.results-section {
    padding: 6rem 1rem;
    /* Premium Blue-Grey Gradient from reference */
    background: linear-gradient(180deg, #8E99AC 0%, #CFD3DC 100%);
    padding-bottom: 8rem !important;
    /* Reduced space based on user feedback */
    margin-bottom: 0 !important;
    position: relative;
    z-index: 10;
    overflow: visible;
}

.results-section .section-title {
    color: #ffffff;
    /* White title as in reference */
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
    text-align: center;
}

.enter-btn:hover {
    background: #fff;
    /* White on hover */
    color: #000;
    border-color: #fff;
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.4);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* SLOT MACHINE TEXT ANIMATION */
.slot-char {
    display: inline-block;
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity 0.5s;
    opacity: 1;
}

.prepare-in {
    opacity: 0;
}

/* Exit Animations */
.out-up {
    animation: slotOutUp 0.6s forwards;
}

.out-down {
    animation: slotOutDown 0.6s forwards;
}

/* Enter Animations */
.in-up {
    animation: slotInUp 0.6s forwards;
}

.in-down {
    animation: slotInDown 0.6s forwards;
}

@keyframes slotOutUp {
    to {
        transform: translateY(-100px);
        opacity: 0;
        filter: blur(5px);
    }
}

@keyframes slotOutDown {
    to {
        transform: translateY(100px);
        opacity: 0;
        filter: blur(5px);
    }
}

@keyframes slotInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
        filter: blur(5px);
    }

    to {
        transform: translateY(0);
        opacity: 1;
        filter: blur(0);
    }
}

@keyframes slotInDown {
    from {
        transform: translateY(-100px);
        opacity: 0;
        filter: blur(5px);
    }

    to {
        transform: translateY(0);
        opacity: 1;
        filter: blur(0);
    }
}

/* Quick Access Item - Transparent & Clean */
.quick-access-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    /* Align content to bottom */
    min-width: 280px;
    /* Consistencia con las otras tarjetas */
    min-height: 280px;
    position: relative;
    /* Removed background, removed shadow removed padding */
    padding-bottom: 2rem;
    transition: transform 0.3s;
    cursor: pointer;
}

/* Floor Shadow Effect */
.quick-access-item::after {
    content: '';
    position: absolute;
    bottom: 110px;
    /* Moved up to sit under the image (above text) */
    width: 60%;
    height: 20px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 70%);
    /* Darker */
    border-radius: 50%;
    transform: scale(1);
    opacity: 0.8;
    /* More visible */
    transition: transform 0.5s ease, opacity 0.5s ease;
    z-index: 0;
    /* Behind everything */
    pointer-events: none;
}

.quick-access-item:hover {
    transform: translateY(-5px);
    /* Gentle container lift */
}

/* Animate Shadow on Hover (Shrink & Fade as object lifts) */
.quick-access-item:hover::after {
    transform: scale(0.6);
    /* Shadow gets smaller */
    opacity: 0.3;
    /* Shadow gets fainter */
}

.qa-image {
    width: 280px;
    /* Increased from 240px */
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.25));
    /* Deeper base shadow */
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.5s ease;
    /* Bouncy transition */
    z-index: 2;
    margin-bottom: 1rem;
}

.quick-access-item:hover .qa-image {
    transform: scale(1.25) translateY(-25px);
    /* Stronger Pop-Out */
    filter: drop-shadow(0 50px 50px rgba(0, 0, 0, 0.3));
    /* Dramatic floating shadow */
}

.qa-content {
    text-align: center;
    z-index: 3;
}

.qa-content h3 {
    font-size: 1.8rem;
    /* Larger font */
    font-weight: 800;
    color: #fff;
    /* White text creates contrast against dark/colored section bg */
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 0.2rem;
    letter-spacing: 0.5px;
}

.qa-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Special styling for Instalaciones to match others */
.special-installations .qa-image {
    width: 300px;
    /* Strong presence */
    margin-bottom: 0.5rem;
}

.special-horarios .qa-image {
    width: 310px;
    /* Adjusted for asset width */
    margin-bottom: 0.5rem;
}

.special-circulares .qa-image {
    width: 290px;
    /* Matches the taller aspect ratio of the circular doc */
    margin-bottom: 0.5rem;
}

/* =========================================
   Uniforms Section (Photo Studio)
   ========================================= */
.uniforms-section {
    position: relative;
    padding: 6rem 1rem;
    overflow: hidden;
    /* Infinite Cyclorama Background - User Image */
    background: url('assets/studio_background.png') no-repeat center center;
    background-size: cover;
    margin-top: 0;
    /* Align perfectly with flow */
    padding-top: 6rem;
    /* Standard padding */
    position: relative;
    z-index: 1;
    /* Lower than results */
}

/* Wave Separator Top (Inside Uniforms, matching Results Grid) */
.custom-shape-divider-top-1 {
    position: absolute;
    top: -1px;
    /* Overlap slightly */
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(0deg);
    /* Top Wave SVG is top-filled */
    z-index: 15;
}

.custom-shape-divider-top-1 svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
    /* Slight increase for smoother wave */
}

.custom-shape-divider-top-1 .shape-fill,
.custom-shape-divider-top-1 path {
    fill: #CFD3DC !important;
    /* Matches bottom of Results Gradient - Fixes white stripe */
}

/* Wave Separator Bottom (Uniforms -> Community) */
.custom-shape-divider-bottom-2 {
    position: absolute;
    bottom: -1px;
    /* Slight overlap */
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(0deg);
    /* Bottom Wave SVG is bottom-filled */
    z-index: 15;
}

.custom-shape-divider-bottom-2 svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

/* Explicit Custom Style for Community to ensure match */
.community-section {
    /* Watercolor Background (CSS Recreated for High Quality) */
    background-color: #ffffff;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(129, 212, 250, 0.5) 0%, transparent 40%),
        radial-gradient(circle at 90% 10%, rgba(255, 204, 128, 0.5) 0%, transparent 40%),
        radial-gradient(circle at 30% 80%, rgba(178, 235, 242, 0.4) 0%, transparent 40%),
        radial-gradient(circle at 70% 90%, rgba(255, 171, 145, 0.4) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.8) 0%, transparent 60%);
    background-size: 150% 150%;
    animation: watercolorFlow 20s ease infinite alternate;
    /* Subtle breathing effect */
    position: relative;
    z-index: 10;
    color: #2c3e50;
    /* Dark Text for readability on light bg */
    box-shadow: none;
    padding-top: 8rem;
    /* Extra space for wave */
}

/* Community Section Text Overrides */
.community-section .section-title {
    color: #2c3e50 !important;
    text-shadow: none;
}

.community-section .highlight-text {
    color: #0277bd !important;
    /* Ocean Blue Highight */
    text-shadow: none;
}

.community-section .community-desc {
    color: #455a64;
    font-weight: 600;
}

.community-section .tag {
    background: rgba(255, 255, 255, 0.6);
    color: #01579b;
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}



/* Floor spotlight effect - Adjusted for Yellow Theme */
.uniforms-section::before {
    display: none;
    /* Removed single spotlight in favor of the 3-light background */
}

/* Add lamps visual (Asset pending) */


.uniforms-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.studio-stage {
    width: 100%;
    margin-top: 0;
    justify-content: center;
    /* Center initially */
    gap: 1rem;
    flex-wrap: nowrap !important;
    /* Force Single Row */
    display: flex;
    align-items: flex-end;
    /* Align feet to floor */
    padding-bottom: 2rem;
}

/* Interactive Models */
.uniform-model {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* Snappier interaction */
    opacity: 0.85;
    transform-origin: center bottom;
    flex-shrink: 0;
    width: 250px;
    height: 380px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.uniform-model img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
    /* Soft ambient shadow */
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
    margin-bottom: 1rem;
}

/* Contact Shadow (Floor) */
/* Contact Shadow (Floor) */
.model-shadow {
    width: 140px;
    height: 15px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    margin-top: -10px;
    /* Pull up under feet */
    z-index: 1;
    transition: opacity 0.4s, transform 0.4s;
    opacity: 0.7;
}

/* Highlight Model */
.uniform-model.center-piece {
    width: 360px;
    /* Larger center piece */
    z-index: 3;
}

.uniform-model.center-piece img {
    max-height: 480px;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.2));
}

.uniform-model.center-piece .model-shadow {
    width: 200px;
    height: 20px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 70%);
}

.uniform-model caption {
    margin-top: 1.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.6;
    transition: opacity 0.3s, color 0.3s, transform 0.3s;
}

/* Hover Interactions */
.uniform-model:hover {
    transform: translateY(-10px);
}

.uniform-model:hover img {
    transform: scale(1.03);
}

.uniform-model:hover .model-shadow {
    opacity: 0.3;
    transform: scale(0.9);
}

.uniform-model:hover caption {
    opacity: 1;
    transform: translateY(-5px);
}

.uniform-model.active {
    opacity: 1;
    transform: scale(1.15) translateY(-10px);
    /* Make it pop */
    z-index: 10;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

.uniform-model img {
    /* Existing style but ensure smooth transition */
    transition: transform 0.5s ease;
}

/* Remove old hover card styles specifically if present or override them */
.uniform-info-card {
    display: none !important;
}

/* Split Layout Desktop Styles */
.uniforms-split-layout {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    align-items: center;
    gap: 2rem;
    padding-bottom: 4rem;
}

.models-area {
    width: 65%;
    /* Reduced to give more space for text */
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.details-panel {
    width: 30%;
    /* Increased width */
    min-height: 400px;
    /* Fixed height to prevent jumping */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center text vertically */
    padding: 2.5rem;
    text-align: left;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.5s ease;

    /* Premium Glassmorphism Container */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: none;
    /* Removed white border as requested */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    /* Stronger, softer shadow */
}

.details-panel.active {
    opacity: 1;
    transform: translateX(0);
}

.desc-content h3 {
    font-size: 2rem;
    /* Color is set inline by JS, but base style here */
    margin-bottom: 1rem;
    font-weight: 800;
    text-shadow: none;
    /* Removed contrast shadow since we have a white bg now */
}

.desc-content p {
    font-size: 1.1rem;
    color: #37474f;
    /* Dark gray for good contrast on white */
    line-height: 1.6;
    font-weight: 500;
}

/* =========================================
   HORIZONTE PAGE STYLES
   ========================================= */

.horizon-container {
    /* Deprecated in new layout, used as general reference for cleaning */
    display: none;
}

/* Full Width Section System */
.section-full {
    width: 100%;
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.container-centered {
    max-width: 1200px;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* Background Variants */
.bg-white {
    background-color: #ffffff;
}

.bg-soft {
    background: linear-gradient(180deg, #fdfbfd 0%, #f4f6f8 100%);
}

.bg-pattern {
    background-color: #f8f9fa;
    background-image: radial-gradient(#e9eff1 1px, transparent 1px);
    background-size: 20px 20px;
}

.bg-dark-gradient {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    color: white;
}


/* Motto Banner */
.motto-banner {
    padding: 3rem;
    text-align: center;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.4) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.motto-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: #4527a0;
    /* Deep purple brand color */
    line-height: 1.4;
    font-style: italic;
    font-family: 'Outfit', sans-serif;
}

/* Mission & Vision Grid */
.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.horizon-card {
    padding: 2.5rem;
    border-radius: 20px;
    background: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.horizon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Article Badge */
.article-badge {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.25rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

.center-badge {
    display: block;
    width: fit-content;
    margin: 0 auto 2rem auto;
}

.card-header-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.horizon-card h3 {
    font-size: 1.8rem;
    color: #37474f;
    margin-bottom: 0.5rem;
}

.card-divider {
    height: 1px;
    background: #eee;
    margin: 1.5rem 0;
}

/* Philosophy Section */
.philosophy-section {
    text-align: center;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.philo-item h4 {
    color: #0097a7;
    /* Teal for clean look */
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.value-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.value-card:hover {
    transform: translateY(-3px);
    border-color: #ffd740;
    /* INAS Yellow/Gold */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.value-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.value-card h4 {
    color: #f57f17;
    /* Warm dark yellow/orange */
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.full-width {
    grid-column: span 3;
    background: #e8f5e9;
    /* Light green tint for enviroment */
}

/* Student Profile */
/* Removed profile-section specific bg since it's now handled by section bg */
.profile-content {
    text-align: center;
}

.white-title {
    color: white !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.glass-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.profile-list {
    list-style: none;
    padding: 0;
    font-size: 1.5rem;
    line-height: 2;
    margin-top: 2rem;
    font-weight: 300;
}

/* Responsive Horizon */
@media (max-width: 900px) {

    .mv-grid,
    .philosophy-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }

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

/* Active Model Animation: Scale & Glow (Static Order) */
.uniform-model.active {
    opacity: 1;
    transform: scale(1.15) translateY(-10px);
    z-index: 20;
    /* Use the CSS var set by JS for the color, fallback to purple */
    filter: drop-shadow(0 0 20px var(--active-glow, rgba(98, 0, 234, 0.6)));
}

/* Dim others logic - we can't easily do it with just CSS sibling selectors if the active one is in the middle
   without :has(). Assuming modern browser or just keeping it subtle.
   Let's just make the non-hovered/non-active ones slightly less opaque via the base class.
*/
.studio-stage:hover .uniform-model:not(:hover):not(.active) {
    opacity: 0.5;
    filter: blur(1px);
    transition: all 0.4s ease;
}


/* Responsive */
@media (max-width: 900px) {
    .uniforms-split-layout {
        flex-direction: column;
    }

    .models-area,
    .details-panel {
        width: 100%;
        text-align: center;
    }

    .studio-stage {
        flex-direction: row;
        /* Keep horizontal scroll or wrap on mobile? Left as wrap previously */
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* =========================================
   CONTACT PAGE REDESIGN styles
   ========================================= */

.container-wide {
    width: 95%;
    max-width: 1600px;
    /* Much wider than centered container */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

/* Gray Spheres (User Request) */
.with-spheres-gray {
    position: relative;
    overflow: hidden;
}

.with-spheres-gray::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Silver/Gray Gradient (#cfd8dc to #eceff1) */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 800' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%2390a4ae' stop-opacity='0.2'/%3E%3Cstop offset='100%25' stop-color='%23cfd8dc' stop-opacity='0.15'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='150' cy='150' r='120' fill='url(%23a)'/%3E%3Ccircle cx='400' cy='600' r='60' fill='url(%23a)'/%3E%3Ccircle cx='800' cy='250' r='90' fill='url(%23a)'/%3E%3Ccircle cx='1050' cy='550' r='140' fill='url(%23a)'/%3E%3Ccircle cx='950' cy='100' r='40' fill='url(%23a)'/%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: floatSpheres 15s ease-in-out infinite alternate;
    z-index: 1;
}

/* New Asymmetrical Content Design */
.contact-modern-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 0;
    width: 100%;
    min-height: 85vh;
    border-radius: 30px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
    margin-top: 2rem;
}

/* Sidebar (Left) */
.contact-sidebar {
    background: rgba(255, 255, 255, 0.7);
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3rem;
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.5);
}

.sidebar-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    transition: transform 0.3s ease;
}

.sidebar-item:hover {
    transform: translateX(10px);
}

.sidebar-icon-box {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #eceff1 0%, #cfd8dc 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #455a64;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.sidebar-info h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #78909c;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.sidebar-info p {
    font-size: 1.1rem;
    color: #263238;
    font-weight: 600;
    line-height: 1.5;
}

/* Main Content (Right) */
.contact-main-area {
    padding: 0;
    position: relative;
    display: flex;
    flex-direction: column;
}

.map-header-area {
    height: 50%;
    min-height: 300px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.form-body-area {
    height: 50%;
    min-height: 400px;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 900px) {
    .contact-modern-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-sidebar {
        padding: 3rem 2rem;
        flex-direction: row;
        flex-wrap: wrap;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    }
}

.contact-glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: default;
}

.contact-glass-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 20px 40px rgba(245, 127, 23, 0.2);
    /* Warm Orange Glow */
    border-color: #fff;
}

.contact-icon-large {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.contact-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #bf360c;
    /* Deep Warm Red/Orange */
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-card-text {
    font-size: 1rem;
    color: #455a64;
    line-height: 1.6;
}

/* Split Section for Map/Form */
.contact-split-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    width: 100%;
    margin-top: 2rem;
    justify-content: center;
}

.glass-panel-heavy {
    flex: 1;
    min-width: 350px;
    /* Ensure good width on tablet/desktop */
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    height: 600px;
    /* Fixed height for consistency */
    position: relative;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.glass-panel-heavy:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.glass-panel-header {
    background: rgba(255, 255, 255, 0.8);
    padding: 1rem;
    text-align: center;
    font-weight: 700;
    color: #e65100;
    /* Warm accent */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .glass-panel-heavy {
        min-width: 100%;
        height: 500px;
    }
}

/* Custom Chat Button Styles */
.chat-toggle-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1000;
    padding: 0;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: auto;
    height: auto;
    box-shadow: none !important;
    /* Remove any default button shadows */
}

.chat-toggle-btn img {
    width: 90px;
    /* Good size for FAB */
    height: 90px;
    display: block;
    filter: drop-shadow(0 10px 25px rgba(98, 0, 234, 0.4));
    /* Purple glow shadow */
    transition: filter 0.3s;
}

.chat-toggle-btn:hover {
    transform: scale(1.1) rotate(5deg);
}

.chat-toggle-btn:hover img {
    filter: drop-shadow(0 15px 35px rgba(98, 0, 234, 0.6));
}

/* Masonry Gallery Styles */
.community-gallery-grid {
    display: flex;
    gap: 1.5rem;
    width: 100%;
    margin-top: 2rem;
    justify-content: center;
}

.gallery-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.gallery-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
    position: relative;
    border: 4px solid #fff;
    /* Polaroid effect */
}

.gallery-card:hover {
    transform: translateY(-8px) scale(1.02);
    z-index: 5;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    /* Soft, deep shadow */
}

.card-tall {
    width: 220px;
    height: 350px;
}

.card-square {
    width: 220px;
    height: 200px;
}

.card-wide {
    width: 220px;
    height: 135px;
    /* Fits under square to match tall height + gap */
}

.placeholder-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: #555;
    font-weight: 600;
}

.placeholder-content .emoji {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

/* Specific placeholder gradients */
.art-theme {
    background: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 100%);
    color: #fff;
}

.friends-theme {
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
    color: #fff;
}

.reading-theme {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    color: #fff;
}

.sports-theme {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
    color: #fff;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .community-gallery-grid {
        flex-wrap: wrap;
    }

    .card-tall,
    .card-square,
    .card-wide {
        width: 100%;
        max-width: 300px;
        height: 250px;
        /* Uniform height on mobile */
    }
}

.chat-toggle-btn:hover img {
    filter: drop-shadow(0 15px 35px rgba(98, 0, 234, 0.6));
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .studio-stage {
        flex-direction: column;
        align-items: center;
        gap: 5rem;
    }

    .uniform-model.center-piece {
        order: -1;
        /* Show main uniform first */
        width: 300px;
    }
}

/* Gallery Overlay for new images */
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    padding: 1.5rem;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    opacity: 1;
    transition: all 0.3s ease;
    z-index: 10;
    pointer-events: none;
}

/* Sphere Animation Utility */
.with-spheres {
    position: relative;
    overflow: hidden;
}

.with-spheres::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Increased Opacity for better visibility: 0.15 -> 0.3 and 0.08 -> 0.2 */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 800' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%236200ea' stop-opacity='0.3'/%3E%3Cstop offset='100%25' stop-color='%2300c6ff' stop-opacity='0.2'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='150' cy='150' r='120' fill='url(%23a)'/%3E%3Ccircle cx='400' cy='600' r='60' fill='url(%23a)'/%3E%3Ccircle cx='800' cy='250' r='90' fill='url(%23a)'/%3E%3Ccircle cx='1050' cy='550' r='140' fill='url(%23a)'/%3E%3Ccircle cx='950' cy='100' r='40' fill='url(%23a)'/%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: floatSpheres 12s ease-in-out infinite alternate;
    z-index: 1;
    /* Ensure it is above bg but below content (z-index 2) */
}

/* Red/Yellow Spheres for Payments Page */
.with-spheres-warm {
    position: relative;
    overflow: hidden;
}

.with-spheres-warm::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Red (#e31c23) to Yellow (#fbc02d) gradient */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 800' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23e31c23' stop-opacity='0.25'/%3E%3Cstop offset='100%25' stop-color='%23fbc02d' stop-opacity='0.2'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='150' cy='150' r='120' fill='url(%23a)'/%3E%3Ccircle cx='400' cy='600' r='60' fill='url(%23a)'/%3E%3Ccircle cx='800' cy='250' r='90' fill='url(%23a)'/%3E%3Ccircle cx='1050' cy='550' r='140' fill='url(%23a)'/%3E%3Ccircle cx='950' cy='100' r='40' fill='url(%23a)'/%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: floatSpheres 12s ease-in-out infinite alternate;
    z-index: 1;
}

/* =========================================
   PAYMENTS 3D REDESIGN styles
   ========================================= */

.cards-3d-stage {
    display: flex;
    justify-content: center;
    gap: 3rem;
    perspective: 1500px;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.payment-card-3d {
    width: 380px;
    height: 240px;
    position: relative;
    border-radius: 25px;
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.payment-card-3d:hover {
    transform: rotateY(10deg) rotateX(5deg) translateY(-15px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}

.card-large {
    width: 480px;
    /* Bigger width */
    height: 300px;
    /* Bigger height */
}

/* Adjust font sizes for the larger card */
.card-large .bank-logo-text {
    font-size: 1.5rem;
}

.card-large .card-number {
    font-size: 2rem;
    margin: 1.5rem 0;
}

.card-large .card-glass-content {
    padding: 2.5rem;
}

/* Card Skins */
.card-bcs {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.card-davi {
    /* Davivienda Red Gradient + Sphere Pattern */
    background:
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 40%),
        linear-gradient(135deg, #e31c23 0%, #b71c1c 100%);
    background-blend-mode: overlay, overlay, overlay, normal;
}

.card-glass-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Glass Overlay Effect */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    border-left: 1px solid rgba(255, 255, 255, 0.5);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: white;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Key Visual Styles */
.key-visual-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    animation: floatKey 6s ease-in-out infinite;
}

@keyframes floatKey {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.key-glass-icon {
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4));
    border-radius: 40px;
    box-shadow: 0 15px 35px rgba(245, 127, 23, 0.3);
    /* Orange glow */
}

.floating-key {
    font-size: 5rem;
    filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.2));
    transform: rotate(45deg);
}

.key-info-text {
    text-align: center;
}

.key-label {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #546e7a;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.key-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: #e65100;
    /* Deep Orange */
    background: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Card Elements */
.chip-icon {
    width: 50px;
    height: 35px;
    background: linear-gradient(135deg, #ffd700 0%, #d4af37 100%);
    border-radius: 6px;
    position: relative;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bank-logo-text {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.card-number {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.5rem;
    letter-spacing: 3px;
    display: flex;
    gap: 1rem;
    font-weight: 700;
}

.card-details-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}

.label {
    font-size: 0.6rem;
    opacity: 0.8;
    display: block;
    margin-bottom: 2px;
}

.value {
    text-transform: uppercase;
    font-weight: 600;
}

.card-extra-info {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    text-align: right;
    font-size: 0.7rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.payment-card-3d:hover .card-extra-info {
    opacity: 1;
}

/* Payment Info Glass Box */
.payment-info-glass {
    max-width: 800px;
    margin: 2rem auto 0;
    background: rgba(255, 255, 255, 0.7);
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid white;
}

.info-icon-3d {
    font-size: 3rem;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.2));
}

.info-text-content h3 {
    color: #4527a0;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.tags-row {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.info-tag {
    background: #e1bee7;
    /* Light Purple tag */
    color: #4a148c;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Mobile Payments */
@media(max-width: 800px) {
    .cards-3d-stage {
        flex-direction: column;
        align-items: center;
    }

    .payment-info-glass {
        flex-direction: column;
        text-align: center;
    }

    .tags-row {
        justify-content: center;
    }
}

/* --- Timeline & Circulares Styles --- */

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 4rem auto;
    padding: 2rem;
}

/* Central Line */
.timeline-line {
    position: absolute;
    top: 50px;
    bottom: 50px;
    left: 50%;
    width: 6px;
    background: linear-gradient(to bottom, #6200ea 0%, #d500f9 100%);
    transform: translateX(-50%);
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(98, 0, 234, 0.4);
}

.timeline-item {
    position: relative;
    width: 100%;
    margin-bottom: 4rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Badge (Icon/Date) on the line */
.timeline-badge {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 70px;
    height: 70px;
    background: #fff;
    border: 4px solid #6200ea;
    border-radius: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(98, 0, 234, 0.3);
    font-weight: 800;
    font-size: 0.9rem;
    color: #6200ea;
    text-align: center;
    line-height: 1.1;
}

.pulse-badge {
    animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
    0% {
        box-shadow: 0 0 0 0 rgba(98, 0, 234, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(98, 0, 234, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(98, 0, 234, 0);
    }
}

.badge-date {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Glass Panel Card */
.timeline-panel {
    width: 42%;
    position: relative;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-right: auto;
    /* Default Left Alignment */
}

/* Right alignment for alternate items */
.timeline-item.right .timeline-panel {
    margin-right: 0;
    margin-left: auto;
}

/* Connectors arrows */
.timeline-panel::before {
    content: '';
    position: absolute;
    top: 25px;
    right: -14px;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    border-left: 14px solid rgba(255, 255, 255, 0.7);
}

.timeline-item.right .timeline-panel::before {
    right: auto;
    left: -14px;
    border-left: none;
    border-right: 14px solid rgba(255, 255, 255, 0.7);
}

/* Hover Effect */
.timeline-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(98, 0, 234, 0.1);
    background: rgba(255, 255, 255, 0.9);
}

/* Tags */
.tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.tag-urgent {
    background: linear-gradient(45deg, #ff1744, #ff5252);
}

.tag-info {
    background: linear-gradient(45deg, #2979ff, #448aff);
}

.tag-event {
    background: linear-gradient(45deg, #00e676, #69f0ae);
}

.tag-admin {
    background: linear-gradient(45deg, #651fff, #b388ff);
}

.panel-header h3 {
    margin: 0;
    color: #1a237e;
    font-size: 1.4rem;
    line-height: 1.3;
}

.panel-body p {
    color: #546e7a;
    font-size: 1rem;
    line-height: 1.6;
    margin-top: 1rem;
}

.panel-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: flex-end;
}

.btn-download {
    background: transparent;
    border: 2px solid #6200ea;
    color: #6200ea;
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    transition: all 0.2s;
}

.btn-download:hover {
    background: #6200ea;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(98, 0, 234, 0.3);
}

/* Responsive Timeline */
@media (max-width: 900px) {
    .timeline-line {
        left: 40px;
    }

    .timeline-badge {
        left: 40px;
        width: 50px;
        height: 50px;
        font-size: 0.7rem;
    }

    .timeline-panel {
        width: 100%;
        margin-left: 90px;
        margin-right: 0 !important;
    }

    .timeline-item {
        justify-content: flex-start;
    }

    /* All arrows point left on mobile */
    .timeline-panel::before,
    .timeline-item.right .timeline-panel::before {
        left: -14px;
        right: auto;
        border-right: 14px solid rgba(255, 255, 255, 0.7);
        border-left: none;
    }
}


/* --- FACILITIES / INSTALACIONES STYLES --- */
.facilities-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.video-wrapper {
    margin-bottom: 4rem;
    text-align: center;
}

.glass-video-frame {
    position: relative;
    width: 100%;
    /* Force 16:9 Aspect Ratio */
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-video-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-caption {
    margin-top: 1rem;
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.gallery-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 300px;
    /* Fixed height for consistency */
    background: #f5f5f5;
}

.gallery-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(98, 0, 234, 0.2);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Prevents stretching */
    display: block;
}

.gallery-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1.5rem;
    color: #fff;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.gallery-desc {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* --- Mobile Responsiveness Fixes --- */

@media (max-width: 768px) {

    /* Navbar & Menu */
    .navbar {
        padding: 0.5rem 1rem;
        /* Reduce padding significantly */
        min-height: 60px;
        /* Force smaller height */
    }

    .logo-img {
        height: 30px;
        /* Smaller logo */
    }

    .logo-text {
        font-size: 0.75rem;
        /* Smaller text for mobile */
        line-height: 1.1;
    }

    /* --- SPECTACULAR SOFT 3D MOBILE MENU --- */
    .nav-links {
        /* Glass with a soft purple/blue tint */
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(230, 240, 255, 0.9));
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        box-shadow: -10px 0 50px rgba(98, 0, 234, 0.25);
        padding-top: 6rem;
        display: flex;
        flex-direction: column;
        gap: 1.2rem;
        border-left: 1px solid rgba(255, 255, 255, 0.5);
    }

    /* Floating 3D Pills for Links */
    .nav-links .nav-item {
        color: #1565c0;
        /* Deep Blue Text */
        background: rgba(240, 245, 255, 0.7);
        /* Soft Blue Tint */
        border: 1px solid rgba(255, 255, 255, 1);
        border-radius: 50px;
        padding: 1rem 2rem;
        width: 85%;
        margin: 0 auto;
        text-align: center;
        font-weight: 700;
        font-size: 1.15rem;
        box-shadow:
            8px 8px 20px rgba(174, 174, 192, 0.2),
            -8px -8px 20px rgba(255, 255, 255, 0.9);
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        position: relative;
        overflow: hidden;
    }

    /* Hover/Active State - "Lifted" Effect */
    .nav-links .nav-item:hover {
        color: #fff;
        background: linear-gradient(135deg, #6200ea 0%, #d500f9 100%);
        transform: translateY(-5px) scale(1.05);
        /* Lift up 3D */
        box-shadow:
            0 15px 30px rgba(98, 0, 234, 0.3),
            /* Glowing purple shadow beneath */
            inset 0 0 10px rgba(255, 255, 255, 0.3);
        /* Inner glow */
        border-color: transparent;
    }

    /* Staggered Animation for Menu Items (handled by JS toggling class, but we add base) */
    .nav-links.active .nav-item {
        animation: slideInRight 0.5s ease forwards;
        opacity: 0;
    }

    .nav-links.active .nav-item:nth-child(1) {
        animation-delay: 0.1s;
    }

    .nav-links.active .nav-item:nth-child(2) {
        animation-delay: 0.2s;
    }

    .nav-links.active .nav-item:nth-child(3) {
        animation-delay: 0.3s;
    }

    .nav-links.active .nav-item:nth-child(4) {
        animation-delay: 0.4s;
    }

    .nav-links.active .nav-item:nth-child(5) {
        animation-delay: 0.5s;
    }

    .nav-links.active .nav-item:nth-child(6) {
        animation-delay: 0.6s;
    }

    .nav-links.active .nav-item:nth-child(7) {
        animation-delay: 0.7s;
    }

    @keyframes slideInRight {
        from {
            opacity: 0;
            transform: translateX(50px);
        }

        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .menu-toggle {
        display: block;
        color: #6200ea;
        /* Purple toggle */
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(5px);
        border-radius: 12px;
        padding: 8px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.5);
    }

    /* Hero Section */
    .hero {
        padding-top: 5rem;
        /* Reduce top padding to pull content up if needed, or keep to clear navbar */
        min-height: auto;
        /* Allow auto height on mobile */
        padding-bottom: 4rem;
    }

    .hero-title-main {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    /* Darker gradient for CULTURA on mobile */
    .hero-title-main .gradient-text {
        background: linear-gradient(to right, #6200ea, #4527a0);
        /* Dark Purple */
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        text-shadow: none;
        /* Remove glow for cleaner look or keep subtle */
        filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.5));
    }

    .hero-subtitle-glass {
        font-size: 1.1rem;
        /* Slightly larger */
        color: #000;
        /* Pure black for max contrast */
        font-weight: 600;
        /* Bolder */
        line-height: 1.4;
    }

    /* Add background to text container for legibility */
    .hero-content-glass {
        background: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding: 0;
        border-radius: 0;
        margin: 0 1rem;
        box-shadow: none;
        z-index: 50;
        /* Text ON TOP of image */
        position: relative;
    }

    /* Ensure text pops without the background */
    .hero-title-main,
    .hero-subtitle-glass {
        text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 1);
    }

    .hero-3d-scene {
        z-index: 20;
        /* Lift scene above glass */
    }

    .hero-3d-el {
        /* General rule for all 3D elements in hero on mobile */
        opacity: 1;
        /* Full Visibility */
        filter: none;
        z-index: 30;
        /* Bring IN FRONT of glass */
        pointer-events: none;
        /* Let clicks pass through to text if any */
    }

    .el-main {
        /* Adjusted position to be visible at bottom right */
        transform: translate(10%, 10%) scale(0.45) !important;
        right: -80px;
        /* Moved further right */
        top: auto;
        bottom: 0;
        position: absolute;
    }

    /* Uniforms */
    .uniforms-grid {
        margin-top: 4rem;
        gap: 2rem;
    }

    .uniforms-section {
        padding-bottom: 2rem;
    }

    .uniform-card {
        margin-bottom: 2rem;
    }

    /* Facilities */
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .contact-list li {
        justify-content: center;
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-logo {
        justify-content: center;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-desc {
        margin: 0 auto;
    }

    /* Schedules Page - Tabs */
    #grade-tabs {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    /* Ensure tabs don't overflow */
    .grade-tab {
        flex: 1 1 auto;
        /* Allow grow and shrink */
        min-width: 80px;
        /* Minimum width */
    }

    /* Contact Page */
    .contact-modern-wrapper {
        flex-direction: column !important;
    }

    .contact-sidebar,
    .contact-form-side {
        width: 100% !important;
    }

    .contact-sidebar {
        margin-bottom: 2rem;
    }
}