/* ============================================
   ESTILOS ESPECÍFICOS - PÁGINA INICIO ELEGANTE
   ============================================ */

/* Hero Slider Section */
.hero-slider {
    position: relative;
    overflow: hidden;
    padding: 0;
    min-height: 950px;
    height: 950px;
}

.hero-slides-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 950px;
    opacity: 1;
    z-index: 0;
    filter: blur(2px);
    transition: filter 0.3s ease;
}

.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.4));
    z-index: 2;
    pointer-events: none;
}

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

/* Hero Slider Controls */
.hero-slider-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider-arrow {
    width: 50px;
    height: 50px;
    background: rgba(0, 102, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 102, 255, 0.5);
    border-radius: 50%;
    color: var(--color-white);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.hero-slider-arrow.prev {
    left: 30px;
}

.hero-slider-arrow.next {
    right: 30px;
}

.hero-slider-arrow:hover {
    background: rgba(0, 102, 255, 0.4);
    border-color: var(--color-accent);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.6);
}

.hero-slider-dots {
    display: flex;
    gap: 12px;
    align-items: center;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 102, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid rgba(0, 102, 255, 0.3);
}

.hero-dot.active {
    background: var(--color-accent);
    width: 35px;
    border-radius: 8px;
    border-color: rgba(0, 102, 255, 0.6);
    box-shadow: 0 2px 10px rgba(0, 102, 255, 0.6), 0 0 20px rgba(0, 102, 255, 0.4);
}

.hero-dot:hover {
    background: rgba(0, 102, 255, 0.6);
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(0, 102, 255, 0.5);
}

/* Hero Section Elegante */
.hero {
    background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-bg-section) 100%);
    color: var(--color-primary);
    padding: 180px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 700px;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 102, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 82, 204, 0.15) 0%, transparent 50%);
    opacity: 0.5;
    z-index: 1;
}

.hero::after {
    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.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    animation: fadeInUp 1s ease;
    max-width: 900px;
    margin: 0 auto;
}

.hero-content-slide {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    pointer-events: none;
    animation: none;
}

.hero-content-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
    pointer-events: all;
    animation: fadeInUp 0.8s ease;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 102, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 102, 255, 0.4);
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.hero-badge span {
    color: var(--color-white);
}

.hero-badge i {
    color: var(--color-accent);
    text-shadow: 0 0 10px rgba(0, 102, 255, 0.6);
}

.hero-badge-white span {
    color: var(--color-white) !important;
}

.hero-badge-white i {
    color: var(--color-white) !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.hero h1 {
    color: var(--color-white);
    font-size: 3.5rem;
    margin-bottom: 25px;
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 0, 0, 0.3);
    font-family: 'GingerBrand', sans-serif;
    font-weight: normal;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.25rem;
    margin-bottom: 45px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.6s both;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.8s both;
}

.hero-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    padding-top: 50px;
    border-top: 1px solid rgba(0, 102, 255, 0.3);
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 1s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--color-accent);
    font-family: 'GingerBrand', sans-serif;
    margin-bottom: 5px;
    -webkit-text-stroke: 2px var(--color-white);
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.5),
        0 0 20px rgba(255, 255, 255, 0.3),
        0 2px 5px rgba(0, 0, 0, 0.5);
    paint-order: stroke fill;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* Carrusel de Instituciones */
.institutions-carousel-section {
    background: var(--color-bg-light);
    padding: 15px 0;
    overflow: hidden;
    position: relative;
}

.institutions-carousel-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.institutions-carousel-track {
    display: flex;
    gap: 90px;
    animation: scrollInstitutions 30s linear infinite;
    width: fit-content;
}

@keyframes scrollInstitutions {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-60%);
    }
}

.institution-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 350px;
    padding: 8px 36px;
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--color-border);
}

.institution-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.2);
    border-color: var(--color-accent);
}

.institution-logo {
    width: 45px;
    height: 45px;
    background: transparent;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.institution-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.institution-sigla {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
    text-align: center;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.institution-desc {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--color-text-light);
    text-align: center;
    line-height: 1.4;
    max-width: 280px;
}

/* Features Section */
.features {
    padding: 40px 0 100px;
    background: var(--color-bg-section);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    margin-top: 60px;
}

.feature-card {
    background: var(--color-bg-light);
    padding: 45px 35px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-alt));
    transform: scaleX(0);
    transition: var(--transition);
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.6);
}

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

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-accent);
    box-shadow: 0 8px 30px rgba(0, 102, 255, 0.4);
}

.feature-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-alt));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--color-white);
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.4);
    transition: var(--transition);
}

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

.feature-card h3 {
    margin-bottom: 18px;
    color: var(--color-primary);
    font-size: 1.4rem;
    font-family: 'GingerBrand', sans-serif;
}

.feature-card p {
    color: var(--color-text-light);
    line-height: 1.7;
}



/* Servicios Preview Section */
.services-preview {
    padding: 100px 0;
    background: var(--color-bg-section);
}

.services-row {
    display: flex;
    gap: 30px;
    margin-top: 60px;
    justify-content: center;
    flex-wrap: wrap;
}

.services-row .service-preview-card {
    flex: 1;
    min-width: 250px;
    max-width: 280px;
}

.service-preview-card {
    background: var(--color-bg-light);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-preview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-alt));
    transform: scaleX(0);
    transition: var(--transition);
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.6);
}

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

.service-preview-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-accent);
    box-shadow: 0 8px 30px rgba(0, 102, 255, 0.4);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-alt));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--color-white);
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.4);
}

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

.service-preview-card h3 {
    margin-bottom: 15px;
    color: var(--color-primary);
    font-size: 1.3rem;
    font-family: 'GingerBrand', sans-serif;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-preview-card p {
    color: var(--color-text-light);
    margin-bottom: 0;
    line-height: 1.7;
    flex-grow: 1;
    min-height: 100px;
}

.service-link-wrapper {
    margin-top: auto;
    padding-top: 25px;
    border-top: 1px solid var(--color-border);
    margin-bottom: 0;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-link {
    color: var(--color-accent);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    font-size: 0.95rem;
    padding: 10px 20px;
    border: 2px solid var(--color-accent);
    border-radius: 8px;
    width: 100%;
    justify-content: center;
}

.service-link:hover {
    background: var(--color-accent);
    color: var(--color-white);
    gap: 12px;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.4);
}

.services-cta {
    text-align: center;
    margin-top: 50px;
}

/* Testimonios Section */
.testimonials-section {
    background: var(--color-bg-light);
    padding: 100px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    margin-top: 60px;
}

.testimonial-card {
    background: var(--color-bg-light);
    padding: 40px 35px;
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-accent);
    box-shadow: 0 8px 30px rgba(0, 102, 255, 0.4);
}

.testimonial-rating {
    color: var(--color-accent);
    margin-bottom: 20px;
    font-size: 1.1rem;
    text-shadow: 0 0 10px rgba(0, 102, 255, 0.4);
}

.testimonial-text {
    color: var(--color-text);
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-alt));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.4);
}

.author-info h4 {
    margin: 0 0 5px 0;
    color: var(--color-primary);
    font-size: 1rem;
    font-family: 'GingerBrand', sans-serif;
}

.author-info p {
    margin: 0;
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-bg-section) 100%);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(0, 102, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(0, 82, 204, 0.2) 0%, transparent 50%);
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--color-white);
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.cta-content h2::after {
    background: var(--color-accent);
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.6);
}

.cta-content h2 {
    font-family: 'GingerBrand', sans-serif;
}

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

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Responsive Hero Slider */
@media (max-width: 768px) {
    .hero {
        min-height: 580px;
        padding: 120px 0 80px;
    }

    .hero-slider {
        min-height: 700px;
        height: 700px;
    }

    .hero-slide {
        min-height: 700px;
    }

    .hero-slider-controls {
        bottom: 20px;
        gap: 12px;
    }

    .hero-slider-arrow {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }

    .hero-slider-arrow.prev {
        left: 12px;
    }

    .hero-slider-arrow.next {
        right: 12px;
    }

    .hero-content {
        padding: 0 20px;
        max-width: 100%;
    }

    .hero-badge {
        padding: 6px 12px;
        font-size: 0.75rem;
        margin-bottom: 15px;
    }

    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 22px;
        line-height: 1.5;
        padding: 0 5px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 30px;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
        padding: 13px 25px;
        font-size: 0.85rem;
    }

    .hero-stats {
        gap: 20px;
        padding-top: 22px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .stat-number {
        font-size: 1.7rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 480px;
        padding: 100px 0 60px;
    }

    .hero-slider {
        min-height: 600px;
        height: 600px;
    }

    .hero-slide {
        min-height: 600px;
    }

    .hero-slider-controls {
        bottom: 15px;
        flex-direction: row;
        gap: 8px;
    }

    .hero-slider-arrow {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .hero-slider-arrow.prev {
        left: 8px;
    }

    .hero-slider-arrow.next {
        right: 8px;
    }

    .hero-dot {
        width: 8px;
        height: 8px;
    }

    .hero-dot.active {
        width: 28px;
    }

    .hero-content {
        padding: 0 15px;
        max-width: 100%;
    }

    .hero-badge {
        padding: 5px 10px;
        font-size: 0.65rem;
        margin-bottom: 10px;
    }

    .hero h1 {
        font-size: 1.4rem;
        margin-bottom: 10px;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 0.8rem;
        margin-bottom: 18px;
        line-height: 1.4;
        padding: 0;
    }

    .hero-buttons {
        margin-bottom: 22px;
        gap: 8px;
    }

    .hero-buttons .btn {
        padding: 11px 20px;
        font-size: 0.75rem;
    }

    .hero-stats {
        flex-direction: row;
        gap: 15px;
        padding-top: 18px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .stat-item {
        min-width: 80px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.65rem;
        line-height: 1.2;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .features {
        padding: 25px 0 45px;
    }

    .features .container {
        padding: 0 20px;
    }

    .features .section-title {
        margin-bottom: 30px;
    }

    .features .section-title h2 {
        font-size: 1.7rem;
        margin-bottom: 8px;
    }

    .features .section-title p {
        font-size: 0.9rem;
        padding: 0 10px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .feature-card {
        padding: 28px 20px;
    }

    .feature-icon {
        width: 65px;
        height: 65px;
        font-size: 1.8rem;
        margin-bottom: 16px;
    }

    .feature-card h3 {
        font-size: 1.15rem;
        margin-bottom: 10px;
    }

    .feature-card p {
        font-size: 0.88rem;
        line-height: 1.5;
    }

    .services-preview {
        padding: 45px 0;
    }

    .services-preview .container {
        padding: 0 20px;
    }

    .services-preview .section-title {
        margin-bottom: 30px;
    }

    .services-preview .section-title h2 {
        font-size: 1.7rem;
        margin-bottom: 8px;
    }

    .services-preview .section-title p {
        font-size: 0.9rem;
        padding: 0 10px;
    }

    .services-row {
        flex-direction: column;
        gap: 20px;
        margin-top: 30px;
    }

    .services-row .service-preview-card {
        max-width: 100%;
    }

    .service-preview-card {
        padding: 28px 20px;
    }

    .service-icon {
        width: 65px;
        height: 65px;
        font-size: 1.7rem;
        margin-bottom: 16px;
    }

    .service-preview-card h3 {
        font-size: 1.15rem;
        min-height: auto;
        margin-bottom: 10px;
    }

    .service-preview-card p {
        font-size: 0.88rem;
        min-height: auto;
        line-height: 1.5;
    }

    .service-link-wrapper {
        margin-top: 16px;
        padding-top: 16px;
        min-height: auto;
    }

    .service-link {
        padding: 9px 16px;
        font-size: 0.82rem;
    }

    .testimonials-section {
        padding: 45px 0;
    }

    .testimonials-section .container {
        padding: 0 20px;
    }

    .testimonials-section .section-title {
        margin-bottom: 30px;
    }

    .testimonials-section .section-title h2 {
        font-size: 1.7rem;
        margin-bottom: 8px;
    }

    .testimonials-section .section-title p {
        font-size: 0.9rem;
        padding: 0 10px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .testimonial-card {
        padding: 26px 20px;
    }

    .testimonial-rating {
        font-size: 0.9rem;
        margin-bottom: 14px;
    }

    .testimonial-text {
        font-size: 0.9rem;
        margin-bottom: 16px;
        line-height: 1.5;
    }

    .author-avatar {
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
    }

    .author-info h4 {
        font-size: 0.88rem;
    }

    .author-info p {
        font-size: 0.8rem;
    }

    .cta-section {
        padding: 45px 0;
    }

    .cta-section .container {
        padding: 0 20px;
    }

    .cta-content {
        padding: 0;
        max-width: 100%;
    }

    .cta-content h2 {
        font-size: 1.7rem;
        margin-bottom: 10px;
        line-height: 1.3;
    }

    .cta-content p {
        font-size: 0.9rem;
        margin-bottom: 22px;
        line-height: 1.5;
        padding: 0 5px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
        padding: 13px 25px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .features {
        padding: 20px 0 35px;
    }

    .features .container {
        padding: 0 15px;
    }

    .features .section-title {
        margin-bottom: 25px;
    }

    .features .section-title h2 {
        font-size: 1.4rem;
        margin-bottom: 6px;
    }

    .features .section-title p {
        font-size: 0.82rem;
        padding: 0 5px;
    }

    .features-grid {
        gap: 16px;
        margin-top: 25px;
    }

    .feature-card {
        padding: 22px 18px;
    }

    .feature-icon {
        width: 58px;
        height: 58px;
        font-size: 1.6rem;
        margin-bottom: 14px;
    }

    .feature-card h3 {
        font-size: 1.05rem;
        margin-bottom: 8px;
    }

    .feature-card p {
        font-size: 0.82rem;
        line-height: 1.5;
    }

    .services-preview {
        padding: 35px 0;
    }

    .services-preview .container {
        padding: 0 15px;
    }

    .services-preview .section-title {
        margin-bottom: 25px;
    }

    .services-preview .section-title h2 {
        font-size: 1.4rem;
        margin-bottom: 6px;
    }

    .services-preview .section-title p {
        font-size: 0.82rem;
        padding: 0 5px;
    }

    .services-row {
        gap: 16px;
        margin-top: 25px;
    }

    .service-preview-card {
        padding: 22px 18px;
    }

    .service-icon {
        width: 58px;
        height: 58px;
        font-size: 1.6rem;
        margin-bottom: 14px;
    }

    .service-preview-card h3 {
        font-size: 1.05rem;
        margin-bottom: 8px;
    }

    .service-preview-card p {
        font-size: 0.82rem;
        line-height: 1.5;
    }

    .service-link-wrapper {
        margin-top: 14px;
        padding-top: 14px;
    }

    .service-link {
        padding: 8px 14px;
        font-size: 0.78rem;
    }

    .testimonials-section {
        padding: 35px 0;
    }

    .testimonials-section .container {
        padding: 0 15px;
    }

    .testimonials-section .section-title {
        margin-bottom: 25px;
    }

    .testimonials-section .section-title h2 {
        font-size: 1.4rem;
        margin-bottom: 6px;
    }

    .testimonials-section .section-title p {
        font-size: 0.82rem;
        padding: 0 5px;
    }

    .testimonials-grid {
        gap: 16px;
        margin-top: 25px;
    }

    .testimonial-card {
        padding: 20px 18px;
    }

    .testimonial-rating {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }

    .testimonial-text {
        font-size: 0.82rem;
        margin-bottom: 14px;
        line-height: 1.5;
    }

    .author-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .author-info h4 {
        font-size: 0.82rem;
    }

    .author-info p {
        font-size: 0.75rem;
    }

    .cta-section {
        padding: 35px 0;
    }

    .cta-section .container {
        padding: 0 15px;
    }

    .cta-content {
        padding: 0;
        max-width: 100%;
    }

    .cta-content h2 {
        font-size: 1.4rem;
        margin-bottom: 8px;
        line-height: 1.3;
    }

    .cta-content p {
        font-size: 0.85rem;
        margin-bottom: 18px;
        line-height: 1.4;
        padding: 0;
    }

    .cta-buttons {
        gap: 8px;
    }

    .cta-buttons .btn {
        padding: 11px 20px;
        font-size: 0.8rem;
    }

    .institutions-carousel-section {
        padding: 12px 0;
    }

    .institutions-carousel-section .container {
        padding: 0 15px;
    }

    .institution-item {
        min-width: 150px;
        padding: 5px 12px;
        gap: 3px;
        border-radius: 10px;
    }

    .institution-logo {
        width: 30px;
        height: 30px;
    }
    
    .institution-sigla {
        font-size: 0.9rem;
    }
    
    .institution-desc {
        font-size: 0.55rem;
        line-height: 1.2;
        max-width: 140px;
    }

    .institutions-carousel-track {
        gap: 20px;
    }
}

/* Animaciones mejoradas para secciones al cargar */
.section-title {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.institutions-carousel-section {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards;
}

.features {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

.services-preview {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

.cta-section {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
}

.feature-card,
.stat-card,
.service-preview-card {
    opacity: 0;
    animation: scaleIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.15s; }
.feature-card:nth-child(3) { animation-delay: 0.2s; }
.feature-card:nth-child(4) { animation-delay: 0.25s; }
.feature-card:nth-child(5) { animation-delay: 0.3s; }
.feature-card:nth-child(6) { animation-delay: 0.35s; }


.service-preview-card:nth-child(1) { animation-delay: 0.1s; }
.service-preview-card:nth-child(2) { animation-delay: 0.15s; }
.service-preview-card:nth-child(3) { animation-delay: 0.2s; }
.service-preview-card:nth-child(4) { animation-delay: 0.25s; }
