/* CSS Optimizado */
:root {
--color-azul: #003366;
--color-turquesa: #00a79d;
--color-dorado: #f0e68c;
--color-gris: #f4f4f4;
--color-blanco: #ffffff;
--color-negro: #333;
}

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

html {
scroll-behavior: smooth;
font-size: 16px;
}

body {
font-family:'Times New Roman', Times, serif;
color: var(--color-azul);
background-color: var(--color-blanco);
line-height: 1.6;
}

.container {
max-width: 1600px;
margin: 0 auto;
padding: 0 1rem;
}

/* Hero Section */
.hero {
padding: 2rem 0;
}

.hero-banner {
display: flex;
flex-direction: column;
justify-content:start;
align-items: center;
gap: 1.5rem;
min-height: 480px;
padding: 2rem;
border-radius: 0.5rem;
background: 
linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.4)), 
url('../images/graficos/hero.png') center/cover;
position: relative;
}

.hero-text {
max-width: 800px;
}

.hero-title {
color: var(--color-blanco);
font-size: clamp(1.8rem, 5vw, 3rem);
font-weight: 900;
line-height: 1.2;
margin-bottom: 0.5rem;
}

.hero-subtitle {
color: var(--color-blanco);
font-size: clamp(1rem, 2.5vw, 1.25rem);
font-weight: 400;
line-height: 1.5;
margin-bottom: 1rem;
}

.hero-button {
display: inline-flex;
align-items: center;
justify-content: center;
height: 3rem;
padding: 0 1.5rem;
min-width: 150px;
cursor: pointer;
border: none;
border-radius: 0.5rem;
background-color: var(--color-dorado);
color: var(--color-negro);
font-size: 1rem;
font-weight: 700;
transition: all 0.3s ease;
text-decoration: none;
}

.hero-button:hover {
background-color: var(--color-turquesa);
color: var(--color-blanco);
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

        .container-clients {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        /*-- Clients Section --*/
        .clients-section {
            padding: 5rem 0;
            background-color: #f0f7ff;
            position: relative;
            overflow: hidden;
        }
        
        .clients-section::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: 
                radial-gradient(circle at 10% 20%, rgba(0, 163, 255, 0.03) 0%, transparent 20%),
                radial-gradient(circle at 90% 80%, rgba(0, 103, 163, 0.03) 0%, transparent 20%);
            z-index: 0;
        }
        
        .section-header {
            text-align: center;
            margin-bottom: 3rem;
            position: relative;
            z-index: 1;
        }

/**.prueba-card {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-blanco);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--sombra);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 51, 102, 0.05);
}

.prueba-card img {
  width: auto;
  height: auto;
  max-width: 100%;
  min-height: 150px;
  object-fit: cover; /* mejor que cover para logos o íconos
  transition: all 0.4s ease;
  display: block;
  z-index: 1;
}**/


.section-title {
    font-size: 2.5rem;
    color: var(--color-azul);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--color-turquesa);
    border-radius: 2px;
}

/**.section-subtitle {
    font-size: 1.2rem;
    color: var(--color-azul);
    max-width: 700px;
    margin: 0 auto;
    font-weight: 500;
    opacity: 0.8;
}

/* Clients Grid */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.client-card {
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-blanco);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--sombra);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 51, 102, 0.05);
}

.client-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 167, 157, 0.05) 0%, rgba(0, 51, 102, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.client-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.client-card:hover::before {
    opacity: 1;
}

.client-logo {
    max-width: 100%;
    max-height: 220px;
    min-height: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    /**filter: grayscale(100%);**/
    opacity: 0.7;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.client-card:hover .client-logo {
    /**filter: grayscale(0%);**/
    opacity: 1;
    transform: scale(1.05);
}

.client-name {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 51, 102, 0.9);
    color: var(--color-blanco);
    padding: 8px 10px;
    font-size: 0.8rem;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 2;
    border-radius: 0 0 12px 12px;
}

.client-card:hover .client-name {
    transform: translateY(0);
}

/* Statistics */
.clients-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 4rem;
    position: relative;
    z-index: 1;
}

.stat-box {
    text-align: center;
    min-width: 150px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-turquesa);
    margin-bottom: 0.5rem;
    position: relative;
}

.stat-number::after {
    content: "+";
    position: absolute;
    top: 0;
    right: -15px;
    font-size: 1.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--color-azul);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive */
@media (min-width: 768px) {
    .clients-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 767px) {
    .clients-section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .clients-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 1rem;
    }
    
    .clients-stats {
        gap: 1.5rem;
        margin-top: 3rem;
    }
    
    .stat-box {
        min-width: 120px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .clients-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    
    .client-card {
        padding: 1rem;
    }
    
    .clients-stats {
        gap: 1rem;
    }
    
    .stat-box {
        min-width: 100px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
}


/* ========== SECCIÓN DE PREMIOS ========== */
/* ===== Projects Fade Effect ===== */
.projects-section {
  padding: 4rem 0;
  background: transparent;
}

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

.projects-section .section-header h2 {
  font-size: 2.2rem;
  color: #003366;
  font-weight: 400;
}

/* Contenedor fade */
.projects-fade-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  height: 300px; /* Altura fija para evitar saltos */
}

/* Contenedor de tarjetas */
.projects-fade {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Tarjetas con fade */
.project-fade-card {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  text-align: center;
  padding: 1rem 2rem;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.project-fade-card.active {
  opacity: 1;
}

.project-content {
  max-width: 700px;
  margin: 0 auto;
}

.project-year {
  display: block;
  color: #00a79d;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.project-fade-card h3 {
  font-size: 1.6rem;
  color: #003366;
  font-weight: 300;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.project-fade-card p {
  color: #5a6d88;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .projects-fade-container {
    height: 350px;
  }
  
  .project-fade-card h3 {
    font-size: 1.4rem;
  }
  
  .project-fade-card p {
    font-size: 1rem;
  }
}
/* ========== ESTRUCTURA DE LA TARJETA ========== */
.award-header {
  padding: 25px 25px 15px;
  color: var(--color-blanco);
  position: relative;
}



.award-icon i {
  font-size: 28px;
  color: var(--color-azul);
}

.award-year {
  font-size: 0.9rem;
  color: var(--color-dorado);
  margin-bottom: 5px;
  font-weight: 600;
}

.award-title {
  color: black;
  font-size: 1.4rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.award-organization {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  opacity: 0.9;
}

.award-organization i {
  margin-right: 8px;
}

.award-body {
  padding: 25px;
}

.award-description {
  margin-bottom: 20px;
  line-height: 1.7;
}

.award-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #eee;
  padding-top: 20px;
}

.award-category {
  background: var(--color-gris);
  color: var(--color-turquesa);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.award-link {
  color: var(--color-azul);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  transition: color 0.3s;
}

.award-link:hover {
  color: var(--color-turquesa);
}

.award-link i {
  margin-left: 5px;
  transition: transform 0.3s;
}

.award-link:hover i {
  transform: translateX(5px);
}

/* ========== FLECHAS ========== */
.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.nav-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-blanco);
  border: 2px solid var(--color-azul);
  color: var(--color-turquesa);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1.2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.nav-btn i {
  width: 80%;
  height: 80%;
  margin: auto;
  align-items: center;
  justify-content: center;
}

.nav-btn:hover {
  background: var(--color-turquesa);
  color: var(--color-blanco);
  transform: scale(1.05);
}

/* ========== DOTS DE NAVEGACIÓN ========== */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: all 0.3s;
}

.dot.active {
  background: var(--color-turquesa);
  transform: scale(1.2);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .award-card {
    flex: 0 0 300px;
  }
}

@media (max-width: 768px) {
  .section-title-awards {
    font-size: 2rem;
  }
  .award-card {
    flex: 0 0 280px;
  }
  .nav-btn {
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 480px) {
  .awards-section {
    padding: 3rem 0;
  }
  .section-title-awards {
    font-size: 1.8rem;
  }
  .section-subtitle-awards {
    font-size: 1rem;
  }
  .award-card {
    flex: 0 0 260px;
  }
}
