:root {
    --agecso-blue: #0f4c81;
    --agecso-green: #58a55c;
    --agecso-dark: #17324d;
    --agecso-light: #f4f8fb;
    --agecso-gold: #f0b429;
    --agecso-muted: #6b7a8c;
}

html, body {
    height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #27323f;
    background: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

.topbar {
    background: #005fa3;
    color: #fff;
    font-size: 0.86rem;
    padding: 0.55rem 0;
}

.topbar-info span,
.topbar-message {
    opacity: 0.95;
}

.topbar-message {
    color: #e0f2fe;
    font-weight: 600;
}

.main-navbar {
    background: linear-gradient(90deg, #00a2ff 0%, #4dbfff 50%, #008ae0 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.5rem 0;
    transition: box-shadow 0.3s ease, padding 0.3s ease;
}

.main-navbar.stuck {
    box-shadow: 0 8px 30px rgba(0, 162, 255, 0.2);
    padding: 0.35rem 0;
}

.navbar-brand {
    font-weight: 800;
    color: #fff !important;
}

.brand-wrap {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.brand-wrap strong {
    display: block;
    color: #fff;
    font-size: 1.4rem;
    letter-spacing: -0.01em;
    line-height: 1;
    font-weight: 800;
}

.brand-wrap small {
    display: block;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-top: 0.15rem;
    letter-spacing: 0.3px;
}

.brand-text {
    font-size: 1.85rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    color: #fff !important;
    text-transform: uppercase;
    line-height: 1;
    margin-left: 0.6rem;
}

.brand-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 2px;
}

.main-navbar .nav-item {
    position: relative;
}

.main-navbar .nav-item + .nav-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.25);
}

.main-navbar .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.55rem 0.85rem !important;
    position: relative;
    letter-spacing: 0.01em;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 8px;
}

.main-navbar .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.main-navbar .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.22);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.main-navbar .nav-link.active::after {
    content: "";
    position: absolute;
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.25rem;
    height: 2px;
    background: #fff;
    border-radius: 2px;
}

.main-navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.4);
    padding: 0.4rem 0.6rem;
}

.main-navbar .navbar-toggler-icon {
    filter: invert(1) grayscale(1) brightness(2);
}

.hero {
    background: linear-gradient(120deg, rgba(15, 76, 129, 0.92), rgba(88, 165, 92, 0.86));
    color: #fff;
    padding: 110px 0;
}

.section-padding {
    padding: 80px 0;
}

.btn-agecso {
    background: var(--agecso-green);
    border-color: var(--agecso-green);
    color: #fff;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.7rem 1.25rem;
    box-shadow: 0 10px 22px rgba(88, 165, 92, 0.22);
}

.btn-agecso:hover {
    background: #478a4b;
    border-color: #478a4b;
    color: #fff;
    transform: translateY(-1px);
}

.btn-header {
    white-space: nowrap;
    padding: 0.55rem 1.15rem;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(88, 165, 92, 0.3);
}

.main-navbar .btn-header {
    background: #fff !important;
    color: #008ae0 !important;
    border-color: #fff !important;
    font-weight: 800;
    border-radius: 50px;
    padding: 0.55rem 1.45rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    letter-spacing: 0.01em;
}

.main-navbar .btn-header:hover {
    background: #f0f9ff !important;
    color: #00a2ff !important;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.28);
}

.main-navbar .nav-item.ms-lg-3 .btn-agecso {
    margin-left: 0.5rem;
}

/* Glassmorphic Rounded Login Button */
.main-navbar .nav-link-user {
    width: 38px;
    height: 38px;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    padding: 0 !important;
    color: #fff !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.main-navbar .nav-link-user:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: #fff !important;
    transform: translateY(-2px) scale(1.08) !important;
    box-shadow: 0 8px 16px rgba(0, 162, 255, 0.2) !important;
}

.main-navbar .nav-link-user svg {
    transition: none !important;
    color: #fff !important;
}

.card-service {
    border: 0;
    box-shadow: 0 12px 30px rgba(15, 76, 129, 0.08);
    height: 100%;
}

/* Deep Navy-Slate Corporate Footer Makeover */
.footer {
    background: linear-gradient(180deg, #101c2c 0%, #070d18 100%) !important;
    color: #fff;
    margin-top: 0;
    flex-shrink: 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, #00a2ff 20%, #00a2ff 80%, transparent 100%);
}

.footer-main {
    padding: 70px 0 45px !important;
}

.footer h5 {
    color: #4dbfff !important; /* Beautiful light celestial blue */
    font-weight: 800 !important;
    margin-bottom: 1.5rem !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
}

.footer p {
    color: rgba(255, 255, 255, 0.72) !important;
    line-height: 1.75;
    font-size: 0.9rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.75) !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
}

.footer a:hover {
    color: #00a2ff !important;
    padding-left: 4px !important;
}

.footer-brand {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.footer-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    flex: 0 0 auto;
    border-radius: 12px;
    background: #fff;
    padding: 0.35rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* Social media buttons */
.social-links-container {
    margin-top: 1.5rem;
}

.social-link-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.75) !important;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    transition: all 0.3s ease !important;
}

.social-link-btn:hover {
    background: #00a2ff !important;
    border-color: #00a2ff !important;
    color: #fff !important;
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 4px 12px rgba(0, 162, 255, 0.3);
    padding-left: 0 !important; /* cancel shifting default a:hover */
}

/* Footer links styling */
.footer-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-links li {
    margin-bottom: 0.75rem !important;
    font-size: 0.9rem !important;
}

.footer-links li a {
    display: inline-flex;
    align-items: center;
}

.text-primary-light {
    color: #00a2ff;
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.footer-links li:hover .text-primary-light {
    transform: translateX(2px);
}

/* Footer contact list with proper bootstrap icons */
.footer-contact-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-contact-list li {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
    margin-bottom: 1rem !important;
    font-size: 0.9rem !important;
    color: rgba(255, 255, 255, 0.72) !important;
    line-height: 1.6 !important;
}

.footer-contact-list li a {
    color: rgba(255, 255, 255, 0.72) !important;
}

.footer-contact-list li a:hover {
    color: #00a2ff !important;
    padding-left: 0 !important; /* Override standard text link shift */
}

.contact-icon {
    color: #00a2ff !important;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* Contact Button */
.btn-footer-cta {
    background: linear-gradient(135deg, #00a2ff 0%, #008ae0 100%) !important;
    color: #fff !important;
    border: none !important;
    font-weight: 750 !important;
    font-size: 0.88rem !important;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    box-shadow: 0 4px 15px rgba(0, 162, 255, 0.2) !important;
}

.btn-footer-cta:hover {
    background: linear-gradient(135deg, #33b5ff 0%, #0099ff 100%) !important;
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 8px 24px rgba(0, 162, 255, 0.4) !important;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 25px 0 !important;
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 0.8rem !important;
}

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
    gap: 1.5rem;
}

.page-loader.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.page-loader img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.loader-spinner {
    width: 42px;
    height: 42px;
    border: 3px solid #e2e8f0;
    border-top-color: var(--agecso-blue);
    border-radius: 50%;
    animation: loaderSpin 0.8s linear infinite;
}

.loader-text {
    color: var(--agecso-blue);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
}

@keyframes loaderSpin {
    to { transform: rotate(360deg); }
}

@media (max-width: 1199px) {
    .main-navbar .navbar-nav {
        padding: 1rem 0.5rem;
        gap: 0.25rem;
    }

    .main-navbar .nav-item + .nav-item::before {
        display: none;
    }

    .main-navbar .nav-link {
        padding: 0.6rem 0.75rem !important;
        border-radius: 8px;
    }

    .main-navbar .nav-link.active::after {
        left: 0.75rem;
        right: 0.75rem;
    }

    .btn-header {
        margin-top: 0.5rem;
        width: 100%;
        text-align: center;
    }

    .main-navbar .nav-item.ms-lg-3,
    .main-navbar .nav-item.ms-lg-2 {
        margin-left: 0 !important;
    }
}

@media (max-width: 575px) {
    .brand-wrap small {
        display: none;
    }

    .brand-wrap strong {
        font-size: 1.15rem;
    }

    .brand-mark {
        width: 40px;
        height: 40px;
    }

    .brand-logo {
        width: 46px;
        height: 46px;
    }

    .topbar {
        text-align: center;
    }
}

/* ====== Enhanced Cards & Content ====== */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 1;
}

.hero .container {
    position: relative;
    z-index: 1;
}

/* Card Noticias */
.card {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(15, 76, 129, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
    background: #fff;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(15, 76, 129, 0.14);
}

.card .card-img-top {
    border-radius: 16px 16px 0 0;
    transition: transform 0.4s ease;
}

.card:hover .card-img-top {
    transform: scale(1.04);
}

.card .card-body {
    padding: 1.4rem;
}

.card .card-title {
    font-weight: 700;
    color: var(--agecso-dark);
    line-height: 1.35;
    margin-bottom: 0.6rem;
}

.card .card-text {
    color: #5a6a7a;
    line-height: 1.6;
    font-size: 0.92rem;
}

/* Card Service (eventos, servicios, etc) */
.card-service {
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(15, 76, 129, 0.06);
    box-shadow: 0 4px 20px rgba(15, 76, 129, 0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card-service::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--agecso-blue), var(--agecso-green));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.card-service:hover::before {
    transform: scaleX(1);
}

.card-service:hover {
    box-shadow: 0 12px 35px rgba(15, 76, 129, 0.12);
    transform: translateY(-4px);
}

.card-service h3 {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--agecso-dark);
    margin-bottom: 0.7rem;
}

.card-service h5 {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--agecso-dark);
    margin-bottom: 0.5rem;
}

/* Badges */
.badge {
    font-weight: 600;
    padding: 0.4em 0.75em;
    border-radius: 8px;
    font-size: 0.78rem;
    letter-spacing: 0.3px;
}

/* Section titles */
.section-padding h1,
.section-padding h2 {
    font-weight: 800;
    color: var(--agecso-dark);
}

.section-padding .lead {
    color: #5a6a7a;
    font-weight: 400;
    line-height: 1.65;
}

/* Alerts */
.alert {
    border: 0;
    border-radius: 12px;
    padding: 1.1rem 1.3rem;
}

.alert-info {
    background: #eef6fc;
    color: #2a5a7a;
}

.alert-success {
    background: #eef9ef;
    color: #2d6a32;
}

.alert-danger {
    background: #fdf0f0;
    color: #8a2a2a;
}

/* Form controls */
.form-control, .form-select {
    border-radius: 10px;
    border-color: #dce4ec;
    padding: 0.65rem 0.9rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--agecso-blue);
    box-shadow: 0 0 0 0.2rem rgba(15, 76, 129, 0.12);
}

/* Buttons */
.btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    transition: all 0.2s ease;
}

.btn-outline-primary {
    color: var(--agecso-blue);
    border-color: var(--agecso-blue);
}

.btn-outline-primary:hover {
    background: var(--agecso-blue);
    color: #fff;
}

/* Footer contact button */
.footer .btn-agecso {
    font-size: 0.9rem;
    padding: 0.55rem 1.1rem;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Infinite Logo Slider Marquee */
.logo-marquee-section {
    overflow: hidden;
    padding: 60px 0;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.02);
}

.logo-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #fff;
    padding: 15px 0;
}

/* Gradient fade effects on the sides for a beautiful smooth blur transition */
.logo-slider-container::before,
.logo-slider-container::after {
    content: "";
    height: 100%;
    position: absolute;
    width: 150px;
    z-index: 2;
    pointer-events: none;
    top: 0;
}

.logo-slider-container::before {
    left: 0;
    background: linear-gradient(to right, #fff 0%, rgba(255, 255, 255, 0) 100%);
}

.logo-slider-container::after {
    right: 0;
    background: linear-gradient(to left, #fff 0%, rgba(255, 255, 255, 0) 100%);
}

/* Track holding all slides */
.logo-slider-track {
    display: flex;
    /* (180px width + 30px margin) * 28 slides = 5880px */
    width: calc(210px * 28);
    animation: scrollLogos 45s linear infinite;
}

.logo-slider-track:hover {
    animation-play-state: paused; /* Pause scrolling on hover so users can see/interact with specific logos! */
}

/* Individual slides containing each logo */
.logo-slide {
    width: 180px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    margin: 0 15px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.logo-slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 162, 255, 0.12);
    border-color: rgba(0, 162, 255, 0.25);
}

.logo-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.65;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.logo-slide:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Infinite loop keyframe calculation for 14 slides */
@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-210px * 14)); /* Slides width + margins to restart seamlessly */
    }
}

/* Premium Hero Carousel Styles */
.hero-carousel-section {
    width: 100%;
    min-height: 600px;
    background: #000;
}

.hero-carousel-section .carousel-item {
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero-content-container {
    padding: 130px 0;
}

.fw-black {
    font-weight: 900;
}

/* Beautiful Big Bold Typography */
.hero-carousel-section h1 {
    font-size: 3.65rem !important;
    font-weight: 900 !important;
    line-height: 1.15 !important;
    letter-spacing: -0.015em !important;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.45) !important;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif !important;
}

/* Slogan Highlights in Premium Sky Blue */
.hero-carousel-section .highlight-text {
    color: #4dbfff !important;
    font-weight: 900 !important;
}

/* Description lead paragraph */
.hero-carousel-section .lead {
    font-size: 1.18rem !important;
    line-height: 1.7 !important;
    color: rgba(255, 255, 255, 0.88) !important;
    max-width: 650px !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

/* Elegant glassmorphism Pill Badges */
.hero-carousel-section .badge {
    border-radius: 50px !important;
    padding: 0.55rem 1.25rem !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.hero-carousel-section .badge.bg-primary {
    background: rgba(0, 162, 255, 0.25) !important;
    color: #4dbfff !important;
    border-color: rgba(0, 162, 255, 0.4) !important;
}

.hero-carousel-section .badge.bg-info {
    background: rgba(77, 191, 255, 0.22) !important;
    color: #fff !important;
    border-color: rgba(77, 191, 255, 0.45) !important;
}

.hero-carousel-section .badge.bg-success {
    background: rgba(88, 165, 92, 0.25) !important;
    color: #82e287 !important;
    border-color: rgba(88, 165, 92, 0.4) !important;
}

.hero-carousel-section .badge.bg-warning {
    background: rgba(255, 193, 7, 0.22) !important;
    color: #ffda6a !important;
    border-color: rgba(255, 193, 7, 0.45) !important;
}

/* Premium Buttons Styling */
.hero-carousel-section .btn {
    border-radius: 50px !important;
    font-weight: 800 !important;
    padding: 0.85rem 1.85rem !important;
    font-size: 0.95rem !important;
    letter-spacing: 0.02em !important;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.22) !important;
}

.hero-carousel-section .btn:hover {
    transform: translateY(-3px) scale(1.02) !important;
}

/* Button 1: White (btn-light) */
.hero-carousel-section .btn-light {
    background: #fff !important;
    color: #005fa3 !important;
    border: 2px solid #fff !important;
}

.hero-carousel-section .btn-light:hover {
    background: #f0f9ff !important;
    border-color: #f0f9ff !important;
    color: #00a2ff !important;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.25) !important;
}

/* Button 2: Brand Green (btn-agecso) */
.hero-carousel-section .btn-agecso {
    background: linear-gradient(135deg, #58a55c 0%, #438747 100%) !important;
    color: #fff !important;
    border: 2px solid transparent !important;
    box-shadow: 0 4px 16px rgba(88, 165, 92, 0.35) !important;
}

.hero-carousel-section .btn-agecso:hover {
    background: linear-gradient(135deg, #66bb6b 0%, #4caf50 100%) !important;
    box-shadow: 0 8px 28px rgba(88, 165, 92, 0.5) !important;
}

/* Indicators Customization */
.hero-carousel-section .carousel-indicators [type="button"] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    margin: 0 6px;
}

.hero-carousel-section .carousel-indicators .active {
    background-color: #fff;
    transform: scale(1.3);
}

/* Custom animation for active slide content sliding up gracefully */
.hero-carousel-section .carousel-item.active .badge,
.hero-carousel-section .carousel-item.active h1,
.hero-carousel-section .carousel-item.active p,
.hero-carousel-section .carousel-item.active .btn {
    animation: slideUpFade 0.9s cubic-bezier(0.215, 0.610, 0.355, 1) both;
}

.hero-carousel-section .carousel-item.active .badge { animation-delay: 0.15s; }
.hero-carousel-section .carousel-item.active h1 { animation-delay: 0.3s; }
.hero-carousel-section .carousel-item.active p { animation-delay: 0.45s; }
.hero-carousel-section .carousel-item.active .btn { animation-delay: 0.6s; }

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Soft cinematic background zoom-in Ken Burns effect on the active slide */
.hero-carousel-section .carousel-item.active {
    animation: kenBurnsZoom 15s ease-out forwards;
}

@keyframes kenBurnsZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.06);
    }
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .hero-carousel-section, .hero-carousel-section .carousel-item {
        min-height: 520px;
    }
    .hero-content-container {
        padding: 95px 0;
    }
    .hero-carousel-section h1 {
        font-size: 2.3rem !important;
    }
}

@media (max-width: 575px) {
    .hero-carousel-section, .hero-carousel-section .carousel-item {
        min-height: 460px;
    }
    .hero-content-container {
        padding: 70px 0;
    }
    .hero-carousel-section h1 {
        font-size: 1.85rem !important;
    }
    .hero-carousel-section .lead {
        font-size: 0.92rem !important;
    }
    .hero-carousel-section .btn-lg {
        padding: 0.55rem 1.1rem !important;
        font-size: 0.9rem !important;
    }
}

/* Advanced Service Cards Makeover */
.card-service {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Card Accent Border-Top styling using unified corporate blues */
.row .col-md-4:nth-child(1) .card-service {
    border-top: 4px solid #00a2ff !important;
}
.row .col-md-4:nth-child(2) .card-service {
    border-top: 4px solid #4dbfff !important;
}
.row .col-md-4:nth-child(3) .card-service {
    border-top: 4px solid #005fa3 !important;
}

/* Card Hover states and unified glowing shadows */
.card-service:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 16px 40px rgba(0, 162, 255, 0.12) !important;
}

/* Icon Box for Cards */
.card-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    transition: all 0.3s ease;
}

/* Specific glows */
.blue-glow {
    background: rgba(0, 162, 255, 0.08);
    color: #00a2ff;
}
.green-glow {
    background: rgba(88, 165, 92, 0.08);
    color: #58a55c;
}
.gold-glow {
    background: rgba(240, 180, 41, 0.08);
    color: #f0b429;
}

/* Scale and glow icon box on hover */
.card-service:hover .card-icon-box {
    transform: scale(1.1) rotate(5deg);
}

.card-service:hover .blue-glow {
    background: #00a2ff !important;
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(0, 162, 255, 0.25) !important;
}

.card-service:hover .green-glow {
    background: #58a55c !important;
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(88, 165, 92, 0.25) !important;
}

.card-service:hover .gold-glow {
    background: #f0b429 !important;
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(240, 180, 41, 0.25) !important;
}

/* Card Links */
.card-link {
    font-size: 0.92rem;
    font-weight: 700;
    color: #008ae0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease, transform 0.2s ease;
}

.card-service:hover .card-link {
    color: #00a2ff;
}

.card-link i {
    transition: transform 0.2s ease;
}

.card-link:hover i {
    transform: translateX(4px);
}

/* Rueda CTA Section Modern Redesign */
.rueda-cta-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.rueda-bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    pointer-events: none;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: rgba(0, 162, 255, 0.05);
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: rgba(88, 165, 92, 0.04);
    bottom: -50px;
    left: -50px;
}

.highlight-text-blue {
    color: #00a2ff;
    position: relative;
    display: inline-block;
}

.benefit-item-modern {
    padding: 1.25rem;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.benefit-item-modern:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 162, 255, 0.08);
    border-color: rgba(0, 162, 255, 0.1) !important;
}

.benefit-icon-box {
    width: 48px;
    height: 48px;
    background: rgba(0, 162, 255, 0.1);
    color: #00a2ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.benefit-icon-box.blue-box { background: rgba(0, 138, 224, 0.1); color: #008ae0; }
.benefit-icon-box.green-box { background: rgba(88, 165, 92, 0.1); color: #58a55c; }

.shadow-blue-lg {
    box-shadow: 0 10px 25px rgba(0, 162, 255, 0.25) !important;
}

/* Enhanced Mockup */
.rueda-mockup-container {
    position: relative;
    perspective: 1000px;
    padding: 20px;
}

.dashboard-mockup-frame {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.6s ease;
}

.rueda-mockup-container:hover .dashboard-mockup-frame {
    transform: rotateY(0deg) rotateX(0deg);
}

.mockup-browser-header {
    background: #101c2c;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mockup-dots { display: flex; gap: 6px; }
.mockup-dots span { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.mockup-url-bar {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    padding: 4px 30px;
    border-radius: 6px;
}

.mockup-status {
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pulse-status {
    width: 8px;
    height: 8px;
    background: #ff0000;
    border-radius: 50%;
    animation: statusPulse 1.5s infinite;
}

@keyframes statusPulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

.mockup-ui-content {
    padding: 25px;
    background: #f8fafc;
}

.ui-welcome-card {
    background: linear-gradient(135deg, #005fa3 0%, #00a2ff 100%);
    padding: 15px 20px;
    border-radius: 12px;
    color: #fff;
}

.ui-welcome-card h6 { font-size: 0.85rem; margin: 0; }
.ui-progress {
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    width: 70%;
    border-radius: 10px;
    margin-top: 8px;
}

.ui-stat-card {
    background: #fff;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.ui-stat-card small { display: block; font-size: 0.6rem; color: #64748b; text-transform: uppercase; }
.ui-stat-card strong { font-size: 1.1rem; color: #00a2ff; }

.ui-agenda-list { margin-top: 20px; }
.ui-list-header { font-size: 0.65rem; font-weight: 800; color: #94a3b8; letter-spacing: 1px; margin-bottom: 10px; }

.ui-meeting-item {
    background: #fff;
    padding: 10px 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.ui-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
}

.ava-blue { background: #00a2ff; }
.ava-green { background: #58a55c; }
.ui-name { font-size: 0.75rem; font-weight: 600; color: #1e293b; }

.ui-badge { font-size: 0.6rem; padding: 2px 8px; border-radius: 50px; font-weight: 700; }
.bg-soft-success { background: rgba(88, 165, 92, 0.1); color: #58a55c; }
.bg-soft-warning { background: rgba(255, 193, 7, 0.1); color: #b45309; }

.ui-notification-card {
    position: absolute;
    bottom: -10px;
    right: -20px;
    background: #fff;
    padding: 15px 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    z-index: 10;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.notif-icon { color: #58a55c; font-size: 1.5rem; }
.notif-text strong { display: block; font-size: 0.85rem; color: #1e293b; }
.notif-text span { font-size: 0.75rem; color: #64748b; }

.mockup-float-element {
    position: absolute;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1;
}

.float-1 { width: 80px; height: 80px; top: -20px; left: -20px; background: rgba(0, 162, 255, 0.05); }
.float-2 { width: 60px; height: 60px; bottom: 40px; right: -30px; background: rgba(88, 165, 92, 0.05); }

/* Contact Page Advanced Styles */
.contact-hero-banner {
    position: relative;
    overflow: hidden;
}

.contact-info-block {
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
}

.contact-info-block:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 162, 255, 0.06) !important;
    border-color: rgba(0, 162, 255, 0.15) !important;
}

.contact-info-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 162, 255, 0.04);
}

/* Custom form wrapper */
.card-contact-form {
    background: #fff;
    border-radius: 24px !important;
    border-top: 4px solid #00a2ff !important;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.04) !important;
}

.card-contact-form .input-group {
    border-radius: 12px;
    overflow: hidden;
}

.card-contact-form .input-group-text {
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #00a2ff !important;
}

.card-contact-form .form-control {
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0.7rem 1rem;
    font-size: 0.92rem;
    border-radius: 12px;
    transition: all 0.25s ease;
}

.card-contact-form .form-control:focus {
    background: #fff !important;
    border-color: #00a2ff !important;
    box-shadow: 0 0 0 4px rgba(0, 162, 255, 0.12) !important;
}

.card-contact-form textarea.form-control {
    border-radius: 12px !important;
}

/* Somos AGECSO Sector Directory Styles */
.card-sector-directory {
    background: #fff;
    border-radius: 16px !important;
    border-left: 4px solid #00a2ff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.card-sector-directory:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 162, 255, 0.08) !important;
    border-left-color: #005fa3 !important;
}

.sector-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

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

/* ====== News Enhancement Styles ====== */
.news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.news-content p {
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.bg-soft-primary {
    background-color: rgba(0, 162, 255, 0.1);
}

.card-img-top .carousel-item img {
    border-radius: 16px 16px 0 0;
}

.carousel-control-prev, .carousel-control-next {
    width: 10%;
    opacity: 0.8;
}

.carousel-control-prev-icon, .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    padding: 15px;
}

/* ====== Modern News Grid Styling ====== */
.news-modern-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    height: 100%; /* Asegura altura completa */
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.news-card-media {
    position: relative;
    height: 250px;
    overflow: hidden;
    background-color: #f8f9fa; /* Fondo neutro para imágenes que no llenen el espacio */
}

.news-card-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important; /* Muestra la imagen completa sin recortes */
    transition: transform 0.5s ease;
    display: block;
}

.news-modern-card:hover .news-card-media img {
    transform: scale(1.1);
}

.news-card-date {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: #00a2ff;
    color: #fff;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 162, 255, 0.3);
}

.news-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #101c2c;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-excerpt {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-read-more {
    color: #00a2ff !important;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none !important;
}

.news-read-more:hover {
    color: #008ae0 !important;
}

/* Modal Styles */
.news-modal .modal-content {
    border-radius: 24px;
}

.news-modal-title {
    font-size: 2rem;
    font-weight: 800;
    color: #101c2c;
    line-height: 1.2;
}

.news-modal-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #4a5568;
}

.news-modal-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.rounded-4 {
    border-radius: 1.5rem !important;
}

.event-type-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    color: #198754;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

.event-info-list {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 1rem;
}

.event-info-item {
    font-size: 0.85rem;
    color: #475569;
    display: flex;
    align-items: center;
}

.bg-soft-success {
    background-color: rgba(25, 135, 84, 0.08);
}

.event-details-grid {
    border: 1px solid rgba(25, 135, 84, 0.1);
}

/* Modern Pillars Section */
.bg-modern-light {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.pillar-card {
    border-radius: 24px !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    background: #fff;
}

.pillar-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 162, 255, 0.1) !important;
}

.pillar-line {
    height: 6px;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.pillar-line.blue { background: #00a2ff; }
.pillar-line.light-blue { background: #4dbfff; }
.pillar-line.dark-blue { background: #005fa3; }

.pillar-icon-wrapper {
    width: 70px;
    height: 70px;
    background: rgba(0, 162, 255, 0.1);
    color: #00a2ff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.pillar-icon-wrapper.light-blue { background: rgba(77, 191, 255, 0.12); color: #4dbfff; }
.pillar-icon-wrapper.dark-blue { background: rgba(0, 95, 163, 0.1); color: #005fa3; }

.pillar-card:hover .pillar-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    background: #00a2ff;
    color: #fff;
}

.pillar-card:hover .pillar-icon-wrapper.light-blue { background: #4dbfff; }
.pillar-card:hover .pillar-icon-wrapper.dark-blue { background: #005fa3; }

.pillar-link {
    color: #00a2ff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}

.pillar-link:hover {
    color: #005fa3;
    transform: translateX(5px);
}
