:root {
    --uts-green: #A4D233;
    --uts-dark-green: #7FA827;
    --uts-blue: #00A3E0;
    --uts-dark: #2D2D2D;
    --uts-gray: #6C757D;
    --uts-light-gray: #F8F9FA;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--uts-dark);
    background-color: #fff;
}

html {
    scroll-behavior: smooth;
}

.navbar {
    padding: 0.8rem 0;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(2.2px);
    -webkit-backdrop-filter: blur(2.2px);
    border: 1px solid rgba(255, 255, 255, 1);
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.nav-link {
    color: var(--uts-dark) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--uts-green);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.nav-link:hover {
    color: var(--uts-blue) !important;
}

.btn-uts-green {
    background-color: var(--uts-green);
    color: var(--uts-dark);
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #3e5013;
    padding: 8px 0;
}

.btn-asistente {
    background-color: #cbcbcb;
    color: var(--uts-dark);
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 8px 0;
}

@media screen and (max-width: 500px) {
    #contain-desktop-logos {
        display: none;
    }

    #contain-mobile-logos {
        display: block;
    }
}

@media screen and (min-width: 501px) {
    #contain-desktop-logos {
        display: block;
    }

    #contain-mobile-logos {
        display: none;
    }
}

.btn-uts-green:hover {
    background-color: var(--uts-dark-green);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(164, 210, 51, 0.4);
}

.btn-asistente:hover {
    background-color: #a9a9a9;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(171, 171, 171, 0.4);
}

.contain-nav-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background: linear-gradient(135deg, var(--uts-blue) 0%, var(--uts-green) 100%);
}

.carousel-ultimas-section {
    padding: 48px 0 40px;
    background: linear-gradient(180deg, #fff 0%, #f0f4f8 100%);
    overflow: hidden;
    position: relative;
}

.carousel-header-wrapper {
    text-align: center;
    margin-bottom: 16px;
    padding: 0 1rem;
}
 
.carousel-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    animation: pulse-dot 1.4s ease-in-out infinite;
    flex-shrink: 0;
}
 
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.7); }
}
 
.carousel-section-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--uts-dark);
    margin: 0 0 3px;
    line-height: 1.2;
}
 
.carousel-section-sub {
    font-size: 1rem;
    color: var(--uts-gray);
    margin: 0;
}
 
.carousel-track-outer {
    width: 100%;
    overflow: hidden;

    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 8%,
        black 92%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 8%,
        black 92%,
        transparent 100%
    );
}
 
.carousel-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 340px;
    gap: 20px;
    width: max-content;
    padding: 12px 40px;
    animation: carousel-scroll 70s linear infinite;
}
 
.carousel-track-outer:hover .carousel-track {
    animation-play-state: paused;
}
 
@keyframes carousel-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.carousel-card {
    width: 340px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    flex-shrink: 0;
    position: relative;
}
 
.carousel-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.15);
}
 
.carousel-card-img-wrap {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}
 
.carousel-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}
 
.carousel-card:hover .carousel-card-img-wrap img {
    transform: scale(1.07);
}
 

.carousel-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 40%,
        rgba(0, 0, 0, 0.55) 100%
    );
}
 
.carousel-badge-nuevo {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 3px 9px;
    border-radius: 99px;
    display: flex;
    align-items: center;
    gap: 3px;
    box-shadow: 0 3px 10px rgba(239, 68, 68, 0.45);
    animation: badge-pop 1.8s ease-in-out infinite;
}
 
@keyframes badge-pop {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.08); }
}
 
.carousel-cat-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 163, 224, 0.85);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 99px;
    backdrop-filter: blur(4px);
}

.carousel-card-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
 
.carousel-card-title {
    font-size: 0.87rem;
    font-weight: 700;
    color: var(--uts-dark);
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
 
.carousel-read-more {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--uts-blue);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s ease, color 0.2s ease;
}
 
.carousel-card:hover .carousel-read-more {
    gap: 8px;
    color: var(--uts-dark-green);
}

.hero-section {
    padding: 1px 0;
    min-height: 1vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)" /></svg>');
    opacity: 0.3;
}

.min-vh-70 {
    min-height: 50vh;
}

.hero-content {
    padding: 1rem 0;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px; 
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.slogan-icon {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.slogan-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--uts-dark);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary-uts {
    background-color: white;
    color: var(--uts-dark);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary-uts:hover {
    background-color: var(--uts-green);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-outline-uts {
    background-color: transparent;
    color: white;
    border: 2px solid white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.btn-outline-uts:hover {
    background-color: white;
    color: var(--uts-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.hero-image {
    position: relative;
    z-index: 2;
    animation: float 3s ease-in-out infinite;
}

.hero-image img {
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}


@keyframes btn-attention {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.02); }
}

.btn-noticias-highlight {
    display: inline-flex;
    align-items: center;
    position: relative;
    background: var(--uts-green);
    color: var(--uts-dark);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.rem;
    text-decoration: none;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 24px rgba(164, 210, 51, 0.5),
                0 2px 0px var(--uts-dark-green);
    transition: all 0.2s ease;
    animation: btn-attention 2.5s ease-in-out infinite;
}

.btn-noticias-highlight:hover {
    background: var(--uts-dark-green);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(164, 210, 51, 0.6),
                0 2px 0px #5a7a1a;
    animation: none;
}

.btn-noticias-highlight:active {
    transform: translateY(1px);
    box-shadow: 0 4px 12px rgba(164, 210, 51, 0.4);
}



@keyframes float {

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

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

.stats-section {
    padding: 60px 0;
    background-color: white;
    margin-top: -50px;
    position: relative;
    z-index: 3;
}

.stat-card {
    text-align: center;
    padding: 2.5rem;
    background: white;
    border-radius: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
}

.stat-card:hover {
    background: linear-gradient(135deg, var(--uts-green) 0%, var(--uts-dark-green) 100%);
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(164, 210, 51, 0.3);
    border-color: var(--uts-green);
}

.stat-icon {
    font-size: 3.5rem;
    color: var(--uts-blue);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
    color: white;
    transform: scale(1.2);
}

.stat-value {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--uts-dark);
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.stat-card:hover .stat-value {
    color: white;
}

.stat-label {
    font-size: 1rem;
    color: var(--uts-gray);
    font-weight: 600;
    transition: all 0.3s ease;
}

.stat-card:hover .stat-label {
    color: white;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--uts-dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--uts-green), transparent);
}

.section-header p {
    font-size: 1.2rem;
    color: var(--uts-gray);
    
}

.news-section {
    padding: 20px 0 20px !important; 
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
}

.section-header-news {
    padding-top: 0;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.section-header-news h1 {
    padding-top: 0;
    margin-top: 0;
    margin-bottom: 1.5rem;
    text-align: center;
}
.news-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    height: 100%;
    transition: all 0.3s ease;
    border-left: 5px solid var(--uts-green);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.news-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-left-color: var(--uts-blue);
}

.news-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--uts-green) 0%, var(--uts-dark-green) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.news-card:hover .news-icon {
    transform: rotate(360deg) scale(1.1);
    background: linear-gradient(135deg, var(--uts-blue) 0%, #0080b8 100%);
}

.news-date {
    color: var(--uts-blue);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.news-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--uts-dark);
    margin-bottom: 1rem;
}

.news-description {
    color: var(--uts-gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.news-link {
    color: var(--uts-blue);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.news-link:hover {
    color: var(--uts-dark-green);
    transform: translateX(5px);
}

.services-section {
    padding: 80px 0;
    background-color: white;
}

.service-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    border: 2px solid #e8ecf1;
}

.service-card:hover {
    background: linear-gradient(135deg, var(--uts-blue) 0%, #0080b8 100%);
    color: white;
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(0, 163, 224, 0.3);
    border-color: var(--uts-blue);
}

.service-icon {
    width: 90px;
    height: 90px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    color: var(--uts-blue);
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-card:hover .service-icon {
    background: var(--uts-green);
    color: var(--uts-dark);
    transform: scale(1.15) rotate(360deg);
}

.service-card h4 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--uts-dark);
}

.service-card:hover h4 {
    color: white;
}

.service-card p {
    color: var(--uts-gray);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-card:hover p {
    color: rgba(255, 255, 255, 0.95);
}

.service-link {
    color: var(--uts-blue);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.service-card:hover .service-link {
    color: var(--uts-green);
}

.cta-section {
    padding: 40px 0;
    background: linear-gradient(135deg, var(--uts-dark) 0%, #1a1a1a 100%);
    text-align: center;
    padding-bottom: 10%;
}

.cta-content h2 {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.btn-cta {
    background: linear-gradient(135deg, var(--uts-green) 0%, var(--uts-dark-green) 100%);
    color: var(--uts-dark);
    border: none;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-cta:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(164, 210, 51, 0.5);
    color: var(--uts-dark);
}


.footer-uts {
    background: linear-gradient(135deg, #0066A1 0%, #004d7a 50%, #A4D233 100%);
    color: white;
    padding: 3rem 2rem 1.5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    align-items: start;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.uts-logo {
    max-width: 280px;
    height: auto;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.uts-logo:hover {
    transform: scale(1.05);
    filter: brightness(0) invert(1) drop-shadow(0 4px 8px rgba(255, 255, 255, 0.3));
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #A4D233;
}

.footer-section p {
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 0.3rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.95;
}

.footer-section i {
    font-size: 1.1rem;
    color: #A4D233;
}

.footer-social {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(164, 210, 51, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(164, 210, 51, 0.4);
    border-color: #A4D233;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.9rem;
    margin: 0.4rem 0;
    opacity: 0.9;
}

.footer-tagline {
    font-weight: 700;
    font-size: 1.1rem;
    color: #A4D233;
    margin-top: 0.5rem;
}


@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .cta-content h2 {
        font-size: 2.2rem;
    }
    .btn-uts-green, .btn-asistente {
        padding: 0.2rem 0.4rem !important;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .carousel-section-title {
        font-size: 2.5rem;
    }
 
    .carousel-track {
        grid-auto-columns: 210px; 
    }

    .carousel-card {
        width: 210px; 
    }

    .carousel-card-img-wrap {
        height: 170px;
    }
    .contain-nav-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background: linear-gradient(135deg, var(--uts-blue) 0%, var(--uts-green) 60%);
    }
    .hero-section {
        padding: 40px 0;
        min-height: auto;
    }
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-primary-uts,
    .btn-outline-uts {
        width: 100%;
        text-align: center;
    }

    .stat-value {
        font-size: 2.2rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .news-title {
        font-size: 1.3rem;
    }

    .service-card h4 {
        font-size: 1.2rem;
    }
    .btn-noticias-highlight {
        padding: 0.85rem 1.5rem;
        font-size: 1.3rem;
        width: 80%;
        justify-content: center;
        align-items: center;
    }

    .hero-buttons {
        width: 100%;
        justify-content: center;
        align-items: center;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.stat-card,
.news-card,
.service-card {
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.stat-card:nth-child(1) {
    animation-delay: 0.1s;
}

.stat-card:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.3s;
}

.stat-card:nth-child(4) {
    animation-delay: 0.4s;
}

.news-card:nth-child(1) {
    animation-delay: 0.1s;
}

.news-card:nth-child(2) {
    animation-delay: 0.3s;
}

.news-card:nth-child(3) {
    animation-delay: 0.5s;
}

.service-card:nth-child(1) {
    animation-delay: 0.1s;
}

.service-card:nth-child(2) {
    animation-delay: 0.2s;
}

.service-card:nth-child(3) {
    animation-delay: 0.3s;
}

.service-card:nth-child(4) {
    animation-delay: 0.4s;
}
