
/* =========================================================
   FÉNIX EXPERIENCE — CONTACTO
   Extiende styles.css + store.css + content.css
========================================================= */

.contact-hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 150px 7vw 82px;
  border-bottom: 1px solid var(--border);
}

.contact-hero-background {
  position: absolute;
  top: -15%;
  right: 0;
  bottom: -15%;
  left: 0;

  background:
    linear-gradient(
      90deg,
      rgba(5, 7, 7, 0.97) 0%,
      rgba(5, 7, 7, 0.76) 45%,
      rgba(5, 7, 7, 0.34) 100%
    ),
    url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=2200&q=90")
    center 46% / cover no-repeat;

  transform: translate3d(0,0,0) scale(1.08);
  will-change: transform;
  pointer-events: none;
}

.contact-hero-light {
  position: absolute;
  inset: 0;
  pointer-events: none;

  background:
    radial-gradient(
      circle at 72% 46%,
      rgba(229, 200, 117, 0.12),
      transparent 34%
    );
}

.contact-hero-content {
  position: relative;
  z-index: 2;
  width: min(900px, 100%);
}

.contact-hero h1 {
  font-family: var(--serif);
  font-size: clamp(68px, 9vw, 145px);
  line-height: 0.84;
  font-weight: 400;
  letter-spacing: -5px;
  animation: heroTitleIn 1.2s cubic-bezier(.16,1,.3,1) both;
}

.contact-hero h1 em {
  color: var(--gold);
  font-style: italic;
}

.contact-hero-copy {
  max-width: 570px;
  margin-top: 38px;
  color: var(--white-soft);
  font-size: 15px;
  line-height: 1.8;
  animation: heroContentIn 1s .35s cubic-bezier(.16,1,.3,1) both;
}

.contact-hero-bottom {
  position: absolute;
  left: 7vw;
  right: 7vw;
  bottom: 30px;
  z-index: 3;
  display: flex;
  justify-content: space-between;

  color: rgba(244,241,233,.42);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}


/* =========================================================
   CONTACTO PRINCIPAL
========================================================= */

.contact-section {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: 90px;
  align-items: start;
}

.contact-intro {
  position: sticky;
  top: 115px;
}

.contact-intro h2 {
  max-width: 650px;
}

.contact-intro > p {
  max-width: 520px;
  margin-top: 32px;
  color: var(--white-soft);
  font-size: 14px;
  line-height: 1.85;
}

.contact-channels {
  margin-top: 48px;
  border-top: 1px solid var(--border);
}

.contact-channel {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 18px;

  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.contact-channel-number {
  color: var(--gold);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.8px;
}

.contact-channel-copy strong {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
}

.contact-channel-copy small {
  display: block;
  margin-top: 5px;
  color: var(--white-soft);
  font-size: 9px;
  line-height: 1.5;
}

.contact-channel-icon {
  color: var(--gold);
  font-size: 18px;
}


/* =========================================================
   FORMULARIO
========================================================= */

.contact-form-wrap {
  position: relative;
  padding: 55px;
  border: 1px solid var(--border);
  background:
    linear-gradient(
      145deg,
      rgba(12,18,18,.95),
      rgba(7,12,12,.96)
    );
  overflow: hidden;
}

.contact-form-wrap::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  right: -190px;
  top: -190px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(229,200,117,.10),
    transparent 67%
  );
  pointer-events: none;
}

.contact-form-header {
  position: relative;
  z-index: 2;
  margin-bottom: 42px;
}

.contact-form-header h3 {
  font-family: var(--serif);
  font-size: clamp(35px,4vw,54px);
  font-weight: 400;
  line-height: 1;
}

.contact-form-header p {
  max-width: 520px;
  margin-top: 15px;
  color: var(--white-soft);
  font-size: 11px;
  line-height: 1.7;
}

.contact-form {
  position: relative;
  z-index: 2;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 22px;
}

.form-field {
  position: relative;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  display: block;
  margin-bottom: 10px;
  color: rgba(244,241,233,.52);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(229,200,117,.22);
  outline: none;
  background: transparent;
  color: var(--white);
  padding: 3px 0 14px;
  border-radius: 0;
  font-family: var(--sans);
  font-size: 13px;
  transition:
    border-color .3s ease,
    box-shadow .3s ease;
}

.form-field select {
  background: var(--black-card);
  padding: 13px 10px;
  border: 1px solid var(--border);
}

.form-field textarea {
  min-height: 145px;
  resize: vertical;
  line-height: 1.7;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 1px 0 var(--gold);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(244,241,233,.22);
}

.form-field .field-error {
  min-height: 14px;
  margin-top: 7px;
  color: #d9a5a0;
  font-size: 8px;
  letter-spacing: .4px;
}

.contact-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-top: 34px;
}

.contact-form-note {
  max-width: 350px;
  color: rgba(244,241,233,.34);
  font-size: 8px;
  line-height: 1.6;
}

.contact-submit {
  min-width: 190px;
}


/* =========================================================
   ESTADO DEL MENSAJE
========================================================= */

.contact-status {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition:
    max-height .45s cubic-bezier(.16,1,.3,1),
    opacity .35s ease,
    transform .35s ease;
}

.contact-status.visible {
  max-height: 180px;
  opacity: 1;
  transform: translateY(0);
}

.contact-status-inner {
  margin-top: 26px;
  padding: 18px;
  border: 1px solid rgba(229,200,117,.28);
  background: rgba(229,200,117,.035);
}

.contact-status strong {
  display: block;
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
}

.contact-status p {
  margin-top: 8px;
  color: var(--white-soft);
  font-size: 10px;
  line-height: 1.65;
}


/* =========================================================
   FAQ
========================================================= */

.contact-faq {
  border-top: 1px solid var(--border);
}

.contact-faq-list {
  border-top: 1px solid var(--border);
}

.contact-faq-item {
  border-bottom: 1px solid var(--border);
}

.contact-faq-trigger {
  width: 100%;
  min-height: 78px;

  display: grid;
  grid-template-columns: 50px 1fr 45px;
  align-items: center;
  gap: 20px;

  border: 0;
  background: transparent;
  text-align: left;
}

.contact-faq-trigger > span:first-child {
  color: var(--gold);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.8px;
}

.contact-faq-trigger strong {
  font-family: var(--serif);
  font-size: clamp(20px,2.4vw,31px);
  font-weight: 400;
}

.contact-faq-trigger > span:last-child {
  justify-self: end;
  color: var(--gold);
  font-size: 24px;
  transition: transform .3s ease;
}

.contact-faq-panel {
  height: 0;
  overflow: hidden;
  transition: height .5s cubic-bezier(.16,1,.3,1);
}

.contact-faq-panel-inner {
  max-width: 760px;
  padding: 0 40px 28px 70px;
  color: var(--white-soft);
  font-size: 12px;
  line-height: 1.8;
}

.contact-faq-item.open
.contact-faq-trigger > span:last-child {
  transform: rotate(45deg);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 980px) {

  .contact-section {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .contact-intro {
    position: static;
  }

}

@media (max-width: 800px) {

  .contact-hero {
    min-height: 74vh;
    padding: 125px 7vw 78px;
  }

  .contact-hero h1 {
    font-size: clamp(60px,15vw,100px);
    letter-spacing: -3px;
  }

  .contact-form-wrap {
    padding: 38px 28px;
  }

}

@media (max-width: 560px) {

  .contact-hero {
    min-height: 70vh;
    padding: 115px 5vw 72px;
  }

  .contact-hero h1 {
    font-size: 60px;
  }

  .contact-hero-copy {
    font-size: 12px;
  }

  .contact-hero-bottom {
    left: 5vw;
    right: 5vw;
    font-size: 7px;
  }

  .contact-hero-bottom span:nth-child(2) {
    display: none;
  }

  .contact-form-grid {
    grid-template-columns: 1fr;
  }

  .form-field.full {
    grid-column: auto;
  }

  .contact-form-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-submit {
    width: 100%;
  }

  .contact-faq-trigger {
    grid-template-columns: 32px 1fr 28px;
    gap: 12px;
  }

  .contact-faq-panel-inner {
    padding: 0 0 25px 44px;
  }

}


/* =========================================================
   FIX — TEXTO DE ACORDEONES EN FONDO OSCURO
   Los botones no heredaban correctamente el color de body
   en algunos navegadores.
========================================================= */

.contact-faq-trigger {
  color: var(--white);
}

.contact-faq-trigger strong {
  color: var(--white);
}

.contact-faq-trigger:hover strong,
.contact-faq-item.open .contact-faq-trigger strong {
  color: var(--gold-light);
}

.contact-faq-panel,
.contact-faq-panel-inner {
  color: var(--white-soft);
}

/*
  Fallback para el título de FAQ:
  si el reveal general ya activó la sección,
  el título también se muestra aunque el observer
  específico tarde en ejecutarse.
*/
.contact-faq .section-header.visible
.content-animated-title {
  opacity: 1;
  transform: translateY(0) skewY(0);
  filter: blur(0);
  letter-spacing: -2px;
}

.contact-faq .section-header.visible
.content-animated-title em {
  color: var(--gold);
}

/* También aseguramos los acordeones de fundadores */
.founder-trigger {
  color: var(--white);
}

.founder-heading strong {
  color: var(--white);
}


/* =========================================================
   FIX CTA CONTACTO V3.2
   El CSS general del home deja .cta h2 oculto hasta que
   script.js añade .text-revealed. En contacto usamos
   content.js, por eso este título usa el reveal editorial.
========================================================= */

.contact-faq + .cta .content-animated-title {
  color: var(--white);
}

.contact-faq + .cta .content-animated-title em {
  color: var(--gold);
}

/* Fallback: si las animaciones están deshabilitadas o el
   observer no se ejecuta, el texto jamás queda invisible. */
@media (prefers-reduced-motion: reduce) {
  .contact-faq + .cta .content-animated-title {
    opacity: 1;
    transform: none;
    filter: none;
    letter-spacing: -2px;
  }
}
