/* ==========================================================================
   VEGALED · Secciones (hero, servicios, proyectos, nosotros, contacto)
   ========================================================================== */

/* --- Cabeceras de sección --- */
.section {
  padding-block: var(--section-gap);
}

.section--tint {
  background: var(--color-paper);
}

.section--dark {
  background: var(--color-ink);
  color: var(--color-white);
}

.section__head {
  max-width: 46rem;
  margin-bottom: var(--space-7);
}

.section__eyebrow {
  font-size: var(--fs-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.section--dark .section__eyebrow {
  color: var(--color-accent-bright);
}

.section__title {
  font-size: clamp(var(--fs-2xl), 4vw, var(--fs-3xl));
  margin-bottom: var(--space-4);
}

.section__lead {
  font-size: var(--fs-md);
  color: var(--color-ink-soft);
}

.section--dark .section__lead {
  color: rgba(255, 255, 255, 0.75);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: min(92vh, 48rem);
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--color-white);
  background-color: var(--color-ink);
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: transparent;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-block: var(--space-9);
}

.hero__eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-bright);
  margin-bottom: var(--space-4);
  text-shadow: 0 1px 3px rgba(32, 32, 32, 0.75);
}

.hero__title {
  max-width: 22ch;
  font-size: clamp(var(--fs-3xl), 6vw, var(--fs-4xl));
  font-weight: var(--weight-extrabold);
  margin-bottom: var(--space-5);
  text-shadow: 0 2px 8px rgba(32, 32, 32, 0.65), 0 1px 3px rgba(32, 32, 32, 0.5);
}

.hero__subtitle {
  max-width: 52ch;
  font-size: var(--fs-md);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--space-6);
  text-shadow: 0 1px 2px rgba(32, 32, 32, 0.9), 0 2px 6px rgba(32, 32, 32, 0.7), 0 4px 12px rgba(32, 32, 32, 0.5);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-7);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-shadow: 0 1px 4px rgba(32, 32, 32, 0.7);
}

.hero__stats strong {
  display: block;
  font-size: var(--fs-xl);
  color: var(--color-accent-bright);
}

.hero__stats span {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.7);
}

.hero__stats-note {
  max-width: 24rem;
}

.hero__stats-note span {
  color: rgba(255, 255, 255, 0.9);
}

/* --- FAQ --- */
.faq-list {
  display: grid;
  gap: var(--space-3);
  max-width: 48rem;
}

.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--duration) var(--ease);
}

.faq-item:hover {
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: var(--fs-xl);
  font-weight: var(--weight-regular);
  color: var(--color-accent);
  transition: transform var(--duration) var(--ease);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 var(--space-5) var(--space-4);
  color: var(--color-ink-soft);
  font-size: var(--fs-sm);
}

/* --- Proyectos --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 15rem;
  gap: var(--space-4);
}

.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.project-card:hover img {
  transform: scale(1.06);
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(32, 32, 32, 0.85) 100%);
  opacity: 0.9;
  transition: opacity var(--duration) var(--ease);
}

.project-card figcaption {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--space-5);
  color: var(--color-white);
}

.project-card h3 {
  font-size: var(--fs-md);
  margin-bottom: var(--space-1);
}

.project-card p {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.75);
}

.project-card--wide {
  grid-column: span 2;
}

.project-card--tall {
  grid-row: span 2;
}

/* --- Nosotros --- */
.nosotros {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}

.nosotros__media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* --- Contacto --- */
.contacto {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: start;
}

.contacto__datos {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.contacto__datos p {
  color: var(--color-ink-soft);
}

.contacto__datos a {
  color: var(--color-accent);
  font-weight: var(--weight-medium);
}

.contacto__datos a:hover { text-decoration: underline; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 56rem) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nosotros,
  .contacto {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

@media (max-width: 40rem) {
  .section {
    padding-block: var(--space-8);
  }

  .projects-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 14rem;
  }

  .project-card--wide,
  .project-card--tall {
    grid-column: auto;
    grid-row: auto;
  }

  .hero__stats {
    gap: var(--space-5);
  }
}
