/**
 * About Section Block - Estilos del Frontend
 * Layout basado en grid 12 columnas
 */

.edgc-about-section {
  padding: 4rem 0;
  /* Fondo transparente por defecto - se puede cambiar desde el editor */
}

.edgc-about-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Layout principal */
.edgc-about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 2.5rem;
  align-items: start;
}

/* Columna de Contenido */
.edgc-about-content {
  padding-right: 1rem;
}

.edgc-about-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #0b4f93;
  line-height: 1.2;
  margin: 0 0 2rem 0;
}

.edgc-about-description {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(71, 85, 105, 0.9);
  max-width: 65ch;
  margin: 0;
}

.edgc-about-description p {
  margin: 0 0 1em 0;
}

.edgc-about-description p:last-child {
  margin-bottom: 0;
}

.edgc-about-button {
  display: inline-block;
  margin-top: 2.5rem;
  padding: 1rem 2.5rem;
  border-radius: 9999px;
  background-color: #0b4f93;
  color: white;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.edgc-about-button:hover {
  background-color: #093e72;
  color: white;
  transform: translateY(-1px);
}

.edgc-about-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(11, 79, 147, 0.4);
}

/* Galería de imágenes */
.edgc-about-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.edgc-about-gallery-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.edgc-about-gallery-right {
  display: flex;
}

.edgc-about-img {
  border-radius: 1.5rem;
  overflow: hidden;
}

.edgc-about-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.edgc-about-img-1 {
  flex: 1;
}

.edgc-about-img-2 {
  flex: 1;
  margin-left: 2.5rem;
}

.edgc-about-img-3 {
  flex: 1;
  min-width: 280px;
}

.edgc-about-img-3 img {
  height: 100%;
  min-height: 500px;
}

/* Placeholder para imágenes (solo visible en admin) */
.edgc-about-img-placeholder {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  border: 2px dashed #90caf9;
  border-radius: 1.5rem;
  color: #1976d2;
  font-weight: 500;
}

.edgc-about-img-placeholder.edgc-about-img-2 {
  margin-left: 2.5rem;
}

.edgc-about-img-placeholder.edgc-about-img-3 {
  min-height: 500px;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1200px) {
  .edgc-about-title {
    font-size: 2.2rem;
  }

  .edgc-about-img-3 img {
    min-height: 400px;
  }
}

@media (max-width: 1024px) {
  .edgc-about-section {
    padding: 3rem 0;
  }

  .edgc-about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .edgc-about-content {
    padding-right: 0;
    text-align: center;
  }

  .edgc-about-description {
    margin: 0 auto;
  }

  .edgc-about-gallery {
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .edgc-about-title {
    font-size: 1.875rem;
  }

  .edgc-about-description {
    font-size: 0.95rem;
  }

  .edgc-about-gallery {
    grid-template-columns: 1fr;
  }

  .edgc-about-gallery-left {
    flex-direction: row;
  }

  .edgc-about-img-2 {
    margin-left: 0;
  }

  .edgc-about-img-3 img {
    min-height: 250px;
  }
}

@media (max-width: 576px) {
  .edgc-about-section {
    padding: 2rem 0;
  }

  .edgc-about-gallery-left {
    flex-direction: column;
  }

  .edgc-about-button {
    display: block;
    text-align: center;
  }
}

/* Tamaños de pantalla grandes */
@media (min-width: 1280px) {
  .edgc-about-title {
    font-size: 3rem;
  }

  .edgc-about-description {
    font-size: 1.125rem;
  }
}
