/* 
 * Certificaciones y Premios Styles
 * Modern, premium design for Alunasa's certifications and awards page
 */

/* Hero Section Styles - Modern Design */
.page-hero {
    position: relative;
    height: 60vh;
    min-height: 500px;
    background: linear-gradient(135deg, rgba(29, 29, 27, 0.7) 0%, rgba(50, 50, 117, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 76px; /* Space for navbar */
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/images/quienes_somos/alunasa7.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    z-index: 0;
    animation: subtle-zoom 15s infinite alternate;
}

.page-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 20px;
    max-width: 800px;
    animation: fade-in-up 0.8s ease-out forwards;
}

/* Hero badges container for mini badges */
.hero-badges-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.mini-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border-radius: 50px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.mini-badge:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

.mini-badge i {
    font-size: 1rem;
    color: var(--brand-silver);
}

@keyframes fade-in-up {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(50, 50, 117, 0.9) 0%, rgba(42, 59, 143, 0.9) 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.page-hero-title {
    color: white;
    font-size: 4rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    display: inline-block;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-hero-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--brand-blue), var(--brand-silver));
    border-radius: 2px;
}

.page-hero-subtitle {
    color: white;
    font-size: 1.3rem;
    margin-top: 30px;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.5rem;
    z-index: 2;
    animation: bounce 2s infinite;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
    padding: 10px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-scroll-indicator:hover {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-50%) translateY(-5px) rotate(90deg);
}

@keyframes subtle-zoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.02); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* Main Content Styles */
.certificaciones-content {
    padding: var(--section-padding);
    background-color: #f9f9f9;
}

.intro-section {
    margin-top: 60px;
    margin-bottom: 70px;
}

.section-title {
    margin-bottom: 25px;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--brand-blue);
    transition: width 0.3s ease;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
}

.section-divider {
    margin: 80px 0 50px;
    position: relative;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.1), transparent);
}

.section-subtitle {
    font-size: 2.2rem;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-subtitle::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--brand-blue);
    transition: width 0.3s ease;
}

.section-subtitle:hover::after {
    width: 100px;
}

/* Certificaciones Cards - Modern Design 2023 */
.certificaciones-grid {
    margin-bottom: 60px;
}

.certificacion-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.certificacion-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.certificacion-icon-top {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: var(--brand-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 2;
    transition: transform 0.3s ease;
}

.certificacion-card:hover .certificacion-icon-top {
    transform: scale(1.1) rotate(10deg);
}

.certificacion-image {
    height: 160px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    padding: 20px;
    position: relative;
}

.certificacion-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to top, rgba(248, 249, 250, 1) 0%, rgba(248, 249, 250, 0) 100%);
    z-index: 1;
}

.certificacion-image img {
    max-height: 120px;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.05));
}

.certificacion-card:hover .certificacion-image img {
    transform: scale(1.05);
}

.certificacion-content {
    padding: 25px 20px;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.certificacion-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--brand-blue);
    position: relative;
    padding-bottom: 10px;
}

.certificacion-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--brand-blue);
    transition: width 0.3s ease;
}

.certificacion-card:hover .certificacion-title::after {
    width: 60px;
}

.certificacion-text {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.certificacion-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.certificacion-year {
    font-size: 0.85rem;
    color: var(--brand-blue);
    font-weight: 600;
}

/* Premios Cards - Modern Design */
.premios-section {
    margin-bottom: 80px;
    position: relative;
}

.premios-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    height: 100%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--brand-blue-light) 15%, var(--brand-blue-light) 85%, transparent);
    opacity: 0.3;
    z-index: 0;
    display: none;
}

@media (min-width: 992px) {
    .premios-section::before {
        display: block;
    }
}

.premio-card {
    position: relative;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.premio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-blue-dark));
    z-index: 1;
}

.premio-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.premio-icon {
    position: relative;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(var(--brand-blue-rgb), 0.2);
    position: absolute;
    top: -35px;
    left: 30px;
    z-index: 2;
    transition: transform 0.3s ease;
}

.premio-card:hover .premio-icon {
    transform: scale(1.1);
}

.premio-card:hover .premio-icon {
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 15px 25px rgba(var(--brand-blue-rgb), 0.25);
}

.premio-content {
    flex: 1;
    padding: 45px 30px 30px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.premio-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--brand-blue);
    position: relative;
    padding-bottom: 12px;
    transition: color 0.3s ease;
}

.premio-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--brand-blue);
    transition: width 0.3s ease;
}

.premio-card:hover .premio-title::after {
    width: 80px;
}

.premio-text {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
    position: relative;
    flex: 1;
}

.premio-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.premio-year {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brand-blue);
}

.premio-more-link {
    color: var(--brand-blue-dark);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.premio-more-link:hover {
    color: var(--brand-blue);
    transform: translateX(5px);
}

.premio-more-link i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.premio-more-link:hover i {
    transform: translateX(3px);
}

.premio-badge {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(var(--brand-blue-rgb), 0.1);
    color: var(--brand-blue-dark);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Reconocimientos Cards - Ultra Modern Design */
.reconocimientos-section {
    margin-bottom: 80px;
    position: relative;
}

.reconocimiento-card {
    position: relative;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.reconocimiento-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, transparent 50%, rgba(var(--brand-blue-rgb), 0.05) 50%);
    z-index: 0;
    transition: all 0.5s ease;
}

.reconocimiento-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

.reconocimiento-card:hover::after {
    width: 150px;
    height: 150px;
}

.reconocimiento-header {
    position: relative;
    padding: 30px 30px 20px;
    display: flex;
    align-items: center;
    z-index: 2;
    gap: 15px;
}

.reconocimiento-icon-simple {
    font-size: 2rem;
    color: var(--brand-blue);
    transition: transform 0.3s ease;
}

.reconocimiento-card:hover .reconocimiento-icon-simple {
    transform: scale(1.2);
}

.reconocimiento-icon::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.5s ease;
}

.reconocimiento-card:hover .reconocimiento-icon {
    border-radius: 50%;
    transform: scale(1.1);
}

.reconocimiento-card:hover .reconocimiento-icon::before {
    transform: scale(5);
    opacity: 0;
}

.reconocimiento-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    color: var(--brand-blue);
    transition: all 0.3s ease;
    position: relative;
}

.reconocimiento-title::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-blue);
    transition: width 0.4s ease;
}

.reconocimiento-card:hover .reconocimiento-title::before {
    width: 50px;
}

.reconocimiento-body {
    padding: 20px 30px 35px;
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.reconocimiento-text {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
    margin: 0;
    position: relative;
    padding-top: 15px;
}

.reconocimiento-footer {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.reconocimiento-year {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brand-blue);
    letter-spacing: 1px;
}

.reconocimiento-more {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(var(--brand-blue-rgb), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-blue);
    transition: all 0.3s ease;
    cursor: pointer;
}

.reconocimiento-card:hover .reconocimiento-more {
    background: var(--brand-blue);
    color: white;
    transform: rotate(90deg);
}

/* CTA Section */
.btn.btn-primary {
    background-color: var(--brand-blue);
    border-color: var(--brand-blue);
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(var(--brand-blue-rgb), 0.2);
    color: white !important;
}

.btn.btn-primary:hover,
.btn.btn-primary:focus,
.btn.btn-primary:active {
    background-color: var(--brand-blue-dark) !important;
    border-color: var(--brand-blue-dark) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(var(--brand-blue-rgb), 0.3);
    color: white !important;
}

.hero-badge {
    display: inline-block;
    background-color: rgba(50, 50, 117, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes titleShine {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .page-hero {
        margin-top: 0;
    }
    
    .page-hero-title {
        font-size: 2.5rem;
    }
    
    .certificacion-card, .premio-card, .reconocimiento-card {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .page-hero {
        height: 40vh;
    }
    
    .page-hero-title {
        font-size: 2.2rem;
    }
    
    .section-title, .section-subtitle {
        font-size: 1.8rem;
    }
    
    .premio-card {
        flex-direction: column;
    }
    
    .premio-icon {
        flex: 0 0 60px;
        height: 60px;
        width: 100%;
    }
    
    .certificacion-card {
        margin-bottom: 30px;
    }
    
    .reconocimiento-card {
        margin-bottom: 30px;
    }
}

@media (max-width: 575px) {
    .page-hero-title {
        font-size: 1.8rem;
    }
    
    .page-hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-badge {
        font-size: 12px;
        padding: 6px 12px;
    }
}
