/* ==========================================================================
   Secciones
   ========================================================================== */

section {
  padding-block: var(--space-2xl);
}

/* --- Hero --- */
.hero {
  background-color: var(--color-black);
  color: var(--text-on-dark);
  padding-block: var(--space-2xl);
  overflow: hidden;
}

.hero__inner {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.hero__content {
  flex: 1 1 520px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  line-height: 1.15;
  color: var(--text-on-dark);
  max-width: 620px;
}

.hero__title em {
  display: block;
  font-style: italic;
  color: var(--color-gold);
  font-weight: var(--fw-regular);
}

.hero__text {
  font-size: var(--fs-body);
  color: var(--text-on-dark-muted);
  max-width: 520px;
  margin-block: var(--space-md);
  line-height: 1.7;
}

.hero__checks {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  font-size: 0.85rem;
  color: var(--text-on-dark-muted);
}

.hero__checks span {
  color: var(--color-gold);
  margin-right: 0.3rem;
}

/* Insignia del hero: imagen del logo completo */
.hero__emblem {
  flex: 0 0 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__emblem-img {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1 / 1;
  height: auto;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--color-border-dark);
}

/* --- Servicios --- */
.services {
  background-color: var(--color-cream);
}

.services__heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.services__heading .section-heading {
  margin-bottom: 0;
  flex: 1 1 420px;
}

.services__heading p {
  flex: 1 1 320px;
  color: var(--text-on-light-muted);
  font-size: var(--fs-body);
  line-height: 1.6;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--color-border);
}

/* --- Nuestra misión --- */
.mission {
  background-color: var(--color-black);
  color: var(--text-on-dark);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.mission__watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-principal);
  font-weight: var(--fw-bold);
  font-size: 22rem;
  color: rgba(255, 255, 255, 0.025);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.mission .eyebrow {
  justify-content: center;
}

.mission__quote {
  position: relative;
  font-family: var(--font-display);
  font-size: 2.1rem;
  line-height: 1.45;
  max-width: 880px;
  margin-inline: auto;
}

.mission__quote em {
  font-style: italic;
  color: var(--color-gold);
}

.mission__text {
  position: relative;
  max-width: 620px;
  margin: var(--space-md) auto 0;
  color: var(--text-on-dark-muted);
  font-size: 0.95rem;
}

.mission__values {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md) var(--space-lg);
  margin-top: var(--space-lg);
  font-size: 0.8rem;
  font-weight: var(--fw-medium);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-on-dark);
}

.mission__values span::before {
  content: '\25C6';
  color: var(--color-gold);
  margin-right: 0.5rem;
  font-size: 0.7rem;
}

/* --- Así trabajamos --- */
.process {
  background-color: var(--color-cream);
}

.process__heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-md);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-lg);
}

.process__heading .section-heading {
  margin-bottom: 0;
}

.process__heading p {
  color: var(--text-on-light-muted);
  max-width: 360px;
}

.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.process__step-number {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-gold);
  margin-bottom: var(--space-xs);
}

.process__step h3 {
  font-family: var(--font-principal);
  font-size: 1.05rem;
  margin-bottom: var(--space-xs);
  color: var(--text-on-light);
}

.process__step p {
  color: var(--text-on-light-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* --- Banda CTA --- */
.cta-band {
  background-color: var(--color-gold-strong);
  padding-block: var(--space-xl);
}

.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.cta-band__content {
  flex: 1 1 480px;
}

.cta-band .eyebrow {
  color: var(--text-on-light);
}

.cta-band .eyebrow::before {
  background-color: var(--text-on-light);
}

.cta-band__content h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--text-on-light);
  margin-bottom: var(--space-xs);
}

.cta-band__content p {
  color: #3E3212;
  max-width: 480px;
  font-size: 0.95rem;
}

/* --- Footer --- */
.site-footer {
  background-color: var(--color-black);
  color: var(--text-on-dark-soft);
  padding-block: var(--space-xl) var(--space-md);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
}

.footer__brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.9rem;
}

.footer__logo {
  height: 56px;
  width: auto;
  flex-shrink: 0;
  display: block;
}

.footer__brand p {
  font-size: 0.5rem;
  color: var(--text-on-dark-muted);
  max-width: 220px;
}

.site-footer h4 {
  font-family: var(--font-principal);
  color: var(--color-gold);
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.site-footer address,
.site-footer p {
  font-style: normal;
  font-size: 0.7rem;
  line-height: 1.8;
  color: var(--text-on-dark-muted);
}

.site-footer a:hover {
  color: var(--color-gold);
}

.footer__bottom {
  border-top: 1px solid var(--color-border-dark);
  padding-top: var(--space-md);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-on-dark-soft);
}

/* --- Responsive general --- */
@media (max-width: 900px) {
  .hero__inner {
    flex-direction: column;
    text-align: center;
  }

  .hero__title,
  .hero__text {
    margin-inline: auto;
  }

  .hero__checks {
    justify-content: center;
  }

  .services__grid,
  .process__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .mission__quote {
    font-size: 1.6rem;
  }

  .mission__watermark {
    font-size: 12rem;
  }
}

@media (max-width: 720px) {
  .hero__title {
    font-size: 2.3rem;
  }

  .section-heading h2 {
    font-size: 1.8rem;
  }

  .services__grid,
  .process__grid {
    grid-template-columns: 1fr;
  }

  .services__heading,
  .process__heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-band__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --- Trabajos realizados (galería) --- */
.gallery {
  background-color: var(--color-white);
}

.gallery__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: var(--space-lg);
}

.gallery__tab {
  padding: 0.6rem 1.3rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background-color: var(--color-white);
  font-family: var(--font-principal);
  font-size: 0.82rem;
  font-weight: var(--fw-medium);
  color: var(--text-on-light-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.gallery__tab:hover {
  border-color: var(--color-gold);
  color: var(--text-on-light);
}

.gallery__tab.is-active {
  background-color: var(--color-black);
  border-color: var(--color-black);
  color: var(--color-gold);
}

.gallery__panel {
  display: none;
}

.gallery__panel.is-active {
  display: block;
}

.gallery__carousel {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.gallery__track {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-block: 0.25rem 0.5rem;
  flex: 1;
}

.gallery__track::-webkit-scrollbar {
  height: 6px;
}

.gallery__track::-webkit-scrollbar-thumb {
  background-color: var(--color-border);
  border-radius: 10px;
}

.gallery__placeholder {
  flex: 0 0 260px;
  aspect-ratio: 4 / 3;
  background-color: var(--color-black);
  border: 1px dashed rgba(200, 155, 60, 0.35);
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  scroll-snap-align: start;
}

.gallery__placeholder img {
  width: 52px;
  height: 52px;
  opacity: 0.55;
}

.gallery__placeholder span {
  font-family: var(--font-principal);
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-on-dark-soft);
}

.gallery__nav {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background-color: var(--color-white);
  font-size: 1.3rem;
  line-height: 1;
  color: var(--text-on-light);
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.gallery__nav:hover {
  background-color: var(--color-black);
  border-color: var(--color-black);
  color: var(--color-gold);
}

@media (max-width: 720px) {
  .gallery__nav {
    display: none;
  }
}

/* --- Solicitar cotización --- */
.contact {
  background-color: var(--color-cream);
}

.contact__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  align-items: stretch;
}

.contact__form-col {
  flex: 1 1 480px;
}

.contact__form-col h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  margin-bottom: var(--space-xs);
  color: var(--text-on-light);
}

.contact__intro {
  color: var(--text-on-light-muted);
  font-size: var(--fs-body);
  margin-bottom: var(--space-lg);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  font-weight: var(--fw-medium);
  color: var(--text-on-light);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-family: var(--font-principal);
  font-size: 0.95rem;
  color: var(--text-on-light);
  background-color: var(--color-white);
}

.form-group textarea {
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--color-gold);
  outline-offset: 1px;
}

.contact__info {
  flex: 1 1 360px;
  background-color: var(--color-black);
  color: var(--text-on-dark);
  padding: var(--space-lg) var(--space-md);
  border-radius: var(--radius-card);
}

.contact__info h3 {
  font-family: var(--font-principal);
  font-size: 1.2rem;
  margin-bottom: var(--space-sm);
  color: var(--text-on-dark);
}

.contact__info p {
  color: var(--text-on-dark-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.contact__info-email {
  margin-top: var(--space-md);
  margin-bottom: 0 !important;
}

.contact__info-email strong {
  color: var(--text-on-dark);
}

.form-status {
  margin-top: var(--space-sm);
  font-size: 0.9rem;
  min-height: 1.2em;
}

.form-status--success {
  color: #2f7a3d;
}

.form-status--error {
  color: #c0392b;
}

@media (max-width: 900px) {
  .contact__inner {
    flex-direction: column;
  }
}
