/**
 * About Section Styles with BEM methodology
 * Mobile-first design with site's brand colors
 */

/* Block: about-section */
.about-section {
  padding: 50px 0;
  position: relative;
  overflow: hidden;
}

.about-section__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  position: relative;
}

/* Mobile-first: Stack vertically */
.about-section__row {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: stretch;
  margin: 0 !important;
}

/* Content card with hover effects */
.about-section__content {
  width: 100%;
  background: #fff;
  border-radius: 15px;
  padding: 30px 20px;
  box-shadow: 0 10px 30px rgba(29, 69, 119, 0.1);
  opacity: 1; /* Fixed: was 0 */
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  order: 2;
  transform: translateY(0);
  /* Mobile styles */
  text-align: center;
}

.about-section__content:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(29, 69, 119, 0.2);
}

/* Image container with hover effects */
.about-section__image-container {
  width: 100%;
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(29, 69, 119, 0.15);
  opacity: 1; /* Fixed: was 0 */
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  order: 1;
  padding: 0;
  transform: translateY(0);
}

.about-section__image-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(29, 69, 119, 0.25);
}

/* Image styling */
.about-section__image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              filter 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-section__image:hover {
  transform: scale(1.05);
  filter: brightness(1.1) contrast(1.05);
}

/* Image overlay */
.about-section__image-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(29, 69, 119, 0.3),
    rgba(29, 69, 119, 0.1)
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.about-section__image-container:hover::before {
  opacity: 1;
}

/* Typography with site colors */
.about-section__title {
  font-size: 2rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: 1px;
  font-family: "poppins", sans-serif;
}

/* Subtitle - Simple and clean */
.about-section__subtitle {
  font-size: 1.1rem;
  color: #1d4577;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  line-height: 1.4;
}

/* Description - Simple and clean */
.about-section__description {
  font-size: 1rem;
  line-height: 1.8;
  color: #222222;
  margin-bottom: 0;
  font-family: "poppins", sans-serif;
  letter-spacing: 0.5px;
}

/* Button with site styling and enhanced hover effects */
.about-section__button {
  display: inline-block;
  padding: 12px 32px;
  background-color: #1d4577;
  color: #fff;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
  font-family: "poppins", sans-serif;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(29, 69, 119, 0.3);
  transform: translateY(0);
  border: 2px solid transparent;
}

.about-section__button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.about-section__button:hover {
  background-color: rgba(80, 149, 208, 0.98);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(29, 69, 119, 0.4);
  color: #fff;
  text-decoration: none;
  border-color: rgba(255, 255, 255, 0.2);
}

.about-section__button:hover::before {
  left: 100%;
}

.about-section__button:active {
  transform: translateY(0) scale(0.98);
}

/* Ripple effect */
.about-section__button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.about-section__button:active::before {
  width: 300px;
  height: 300px;
}

/* Enhanced Keyframes */


/* Fade in animations */
.about-section__content--fade-in {
  opacity: 1;
  transform: translateY(0);
}

.about-section__image-container--fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Tablet breakpoint */
@media (min-width: 768px) {
  .about-section {
    padding: 70px 0;
  }

  .about-section__row {
    flex-direction: row;
    gap: 50px;
    align-items: stretch; /* Igualar alturas */
  }

  .about-section__content {
    flex: 1;
    order: 1;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Remove mobile styles for tablet and up */
    margin: 0;
    text-align: left;
  }

  .about-section__image-container {
    flex: 1;
    order: 2;
    /* Se ajusta automáticamente al tamaño del contenido hermano */
    align-self: stretch;
    margin: 0;
  }

  .about-section__image {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
  }

  .about-section__title {
    font-size: 2.5rem;
  }

  .about-section__subtitle {
    font-size: 1.2rem;
  }

  .about-section__description {
    font-size: 1.1rem;
  }
  

}

/* Desktop breakpoint */
@media (min-width: 992px) {
  .about-section {
    padding: 90px 0;
  }

  .about-section__container {
    padding: 0 20px;
  }

  .about-section__row {
    gap: 60px;
  }

  .about-section__content {
    padding: 60px 50px;
  }

  .about-section__image-container {
    /* Se ajusta automáticamente al contenido */
    align-self: stretch;
  }

  .about-section__image {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
  }

  .about-section__title {
    font-size: 3rem;
  }

  .about-section__button {
    padding: 14px 34px;
    font-size: 1.1rem;
  }
}

/* Large desktop */
@media (min-width: 1200px) {
  .about-section__image-container {
    /* Se ajusta automáticamente al contenido */
    align-self: stretch;
  }

  .about-section__image {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
  }
}





/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .about-section__image,
  .about-section__button,
  .about-section__content,
  .about-section__image-container {
    transition: none;
    animation: none;
  }

  .about-section__image:hover {
    transform: none;
  }

  .about-section__button:hover {
    transform: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .about-section__content {
    border: 2px solid #1d4577;
  }
}
