/* ==========================================
   CERTIFICACIONES PAGE STYLES
   ========================================== */

/* HERO SECTION */
.certificaciones-hero {
  position: relative;
  background: linear-gradient(135deg, #1b6b3c, #144c2c);
  background-image: url('../assets/img/inicio/Imagen9.jpeg');
  background-size: cover;
  background-position: center;
  padding: var(--spacing-2xl) 0;
  overflow: hidden;
  animation: fadeIn 0.8s ease-out;
}

.certificaciones-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(27, 107, 60, 0.95);
  z-index: 1;
}

.certificaciones-hero__header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-xl);
  animation: slideInUp 0.8s ease-out 0.3s both;
}

.certificaciones-hero__title-wrapper {
  flex: 1;
  color: var(--color-white);
}

.certificaciones-hero__logo {
  flex-shrink: 0;
  animation: fadeInScale 0.8s ease-out 0.5s both;
}

.ra-logo {
  height: 250px;
  width: auto;
  max-width: 250px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
}

.certificaciones-hero__title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  font-family: "Montserrat", "Poppins", var(--font-family-primary);
  margin-bottom: var(--spacing-sm);
  text-shadow: 
    2px 2px 4px rgba(0, 0, 0, 0.8),
    4px 4px 8px rgba(0, 0, 0, 0.6);
  letter-spacing: 1px;
  line-height: 1.2;
  text-transform: uppercase;
}

.certificaciones-hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 600;
  font-family: "Montserrat", "Poppins", var(--font-family-primary);
  opacity: 0.95;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.5px;
}

/* INTRO SECTION */
.certificaciones-intro {
  padding: var(--spacing-2xl) 0;
  background-color: var(--color-white);
}

.certificaciones-intro__content {
  max-width: 900px;
  margin: 0 auto;
}

.certificaciones-intro__text {
  font-size: var(--font-size-lg);
  font-weight: 500;
  line-height: 1.8;
  color: var(--color-dark-gray);
  margin-bottom: var(--spacing-lg);
  letter-spacing: 0.2px;
  text-align: justify;
}

.certificaciones-intro__text strong {
  font-weight: 700;
  color: var(--color-primary);
}

/* IMPLEMENTACIÓN SECTION */
.implementacion {
  padding: var(--spacing-2xl) 0;
  background: linear-gradient(135deg, var(--color-light-gray), #ffffff);
}

.implementacion__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

.implementacion__column {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.implementacion__item {
  background: var(--color-white);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-left: 5px solid var(--color-accent);
  transition: all var(--transition-smooth);
  animation: fadeInUp 0.6s ease-out both;
  position: relative;
  overflow: hidden;
  border-top: 2px solid rgba(255, 140, 0, 0.1);
}

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

.implementacion__item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 140, 0, 0.05), transparent);
  transition: left 0.5s;
}

.implementacion__item:hover::before {
  left: 100%;
}

.implementacion__item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-left-width: 6px;
}

.implementacion__icon {
  font-size: 2rem;
  margin-bottom: var(--spacing-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #ff8c00, #ff6b00);
  border-radius: var(--radius-md);
  filter: drop-shadow(0 4px 8px rgba(255, 140, 0, 0.3));
  transition: all var(--transition-bounce);
  box-shadow: 0 4px 15px rgba(255, 140, 0, 0.2);
  color: var(--color-white);
}

.implementacion__icon i {
  font-size: 2rem;
}

.implementacion__item:hover .implementacion__icon {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 6px 20px rgba(255, 140, 0, 0.4);
}

.implementacion__title {
  font-size: var(--font-size-xl);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: var(--spacing-md);
  letter-spacing: 0.3px;
  line-height: 1.3;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  font-family: "Montserrat", "Poppins", var(--font-family-primary);
}

.implementacion__list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.implementacion__list li {
  font-size: var(--font-size-base);
  font-weight: 500;
  line-height: 1.8;
  color: var(--color-dark-gray);
  margin-bottom: var(--spacing-sm);
  padding-left: var(--spacing-xl);
  position: relative;
  letter-spacing: 0.2px;
}

.implementacion__list li::before {
  content: '\f00c';
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--color-white);
  font-size: 0.9rem;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-accent), #ff6b00);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(255, 140, 0, 0.3);
}

/* SELLO SECTION */
.sello-section {
  padding: var(--spacing-2xl) 0;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: var(--color-white);
}

.sello-section__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.sello-section__image {
  text-align: center;
  animation: fadeInLeft 0.8s ease-out;
}

.sello-section__image img {
  max-width: 100%;
  height: auto;
  max-height: 400px;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

.sello-section__text {
  animation: fadeInRight 0.8s ease-out;
}

.sello-section__title {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  font-family: "Montserrat", "Poppins", var(--font-family-primary);
  margin-bottom: var(--spacing-lg);
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.sello-section__description {
  font-size: var(--font-size-lg);
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 0.2px;
  opacity: 0.95;
}

/* ANIMATIONS */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE */
@media (max-width: 968px) {
  .certificaciones-hero__header {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-lg);
  }

  .certificaciones-hero__logo {
    order: -1;
  }

  .implementacion__grid {
    grid-template-columns: 1fr;
  }

  .sello-section__content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .certificaciones-hero {
    height: 350px;
  }

  .ra-logo {
    height: 150px;
  }

  .certificaciones-intro__text {
    font-size: var(--font-size-base);
    text-align: left;
  }
}

