/* ==============================
   CONTACTO PAGE — Styles
   ============================== */

.page-hero {
  min-height: 50vh;
  background:
    linear-gradient(135deg, rgba(3,30,61,0.93) 0%, rgba(3,30,61,0.78) 60%, rgba(232,160,32,0.18) 100%),
    url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?w=1600&q=80') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 2rem 60px;
  position: relative;
}
.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(3,30,61,0.5) 100%);
  pointer-events: none;
}
.page-hero__content { position: relative; z-index: 1; }
.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.08em;
  margin: 0.5rem 0 1rem;
  text-shadow: 0 4px 32px rgba(0,0,0,0.3);
}
.page-hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.8);
  font-weight: 300;
  line-height: 1.7;
}
.page-hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}
.page-hero__scroll span {
  display: block;
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollDown 1.5s ease-in-out infinite;
}

.navbar__links a.active { color: var(--gold); }

/* ---- CANALES RÁPIDOS ---- */
.canales {
  background: var(--navy);
  padding: 0 2rem;
  margin-top: -1px;
}
.canales__container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.canal__card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.75rem 1.5rem;
  text-decoration: none;
  border-right: 1px solid rgba(255,255,255,0.08);
  transition: background var(--transition);
  cursor: pointer;
}
.canal__card:last-child { border-right: none; }
.canal__card:hover { background: rgba(232,160,32,0.07); }
.canal__card--static { cursor: default; }
.canal__card--static:hover { background: transparent; }

.canal__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.canal__icon--navy { background: rgba(255,255,255,0.08); }
.canal__icon--gold  { background: rgba(232,160,32,0.2); }
.canal__icon--whatsapp { background: rgba(37,211,102,0.15); }
.canal__icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--gold);
}
.canal__icon--whatsapp svg { stroke: none; fill: #25D366; width: 22px; height: 22px; }

.canal__info { flex: 1; min-width: 0; }
.canal__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.2rem;
}
.canal__value {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.canal__arrow {
  width: 16px;
  height: 16px;
  stroke: rgba(255,255,255,0.3);
  flex-shrink: 0;
}

/* ---- FORMULARIO + INFO ---- */
.contacto-main {
  padding: 6rem 2rem 7rem;
  background: var(--gray-100);
}
.contacto-main__container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
}

/* INFO LATERAL */
.ctc-info p {
  color: #555;
  font-size: 0.97rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}
.ctc-info__items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.ctc-info__item {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.ctc-info__icon {
  width: 46px;
  height: 46px;
  background: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}
.ctc-info__icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--gold);
}
.ctc-info__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 0.2rem;
}
.ctc-info__value {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
}
.ctc-info__social p {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 0.85rem;
}
.ctc-info__social-icons {
  display: flex;
  gap: 0.75rem;
}
.ctc-info__social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}
.ctc-info__social-icons a:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
}
.ctc-info__social-icons svg {
  width: 16px;
  height: 16px;
}

/* FORMULARIO */
.ctc-form {
  background: var(--white);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.ctc-form__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 2rem;
  letter-spacing: 0.03em;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form__group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.form__group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.04em;
}
.form__group input,
.form__group select,
.form__group textarea {
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--navy);
  background: var(--white);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}
.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(232,160,32,0.12);
}
.form__group.error input,
.form__group.error select,
.form__group.error textarea {
  border-color: #e53e3e;
}
.form__error {
  font-size: 0.75rem;
  color: #e53e3e;
  display: none;
}
.form__group.error .form__error { display: block; }

.form__check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.form__check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
}
.form__check label {
  font-size: 0.82rem;
  color: #666;
  line-height: 1.5;
  cursor: pointer;
}
.form__check a {
  color: var(--gold);
  text-decoration: underline;
}
.form__check.error label { color: #e53e3e; }

.ctc-form__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.btn-icon {
  width: 18px;
  height: 18px;
}

/* ÉXITO */
.ctc-form__success {
  position: absolute;
  inset: 0;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  gap: 1rem;
}
.ctc-form__success.visible {
  opacity: 1;
  pointer-events: all;
}
.success__icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  box-shadow: 0 8px 24px rgba(232,160,32,0.35);
}
.success__icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--white);
}
.ctc-form__success h4 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy);
  letter-spacing: 0.03em;
}
.ctc-form__success p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.7;
  max-width: 380px;
}

/* ---- MAPA ---- */
.mapa {
  background: var(--gray-100);
  padding: 5rem 2rem;
}
.mapa__container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: start;
}
.mapa__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.mapa__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--navy);
  color: var(--white);
  padding: 0.7rem 1.4rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.mapa__cta:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
}
.mapa__embed {
  height: 420px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(3,30,61,0.12);
  border: 1px solid rgba(3,30,61,0.08);
}
.mapa__embed iframe { display: block; }
@media (max-width: 768px) {
  .mapa { padding: 3.5rem 1.5rem; }
  .mapa__container { grid-template-columns: 1fr; }
  .mapa__embed { height: 300px; }
}

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 1024px) {
  .canales__container { grid-template-columns: 1fr 1fr; }
  .canal__card:nth-child(2) { border-right: none; }
  .canal__card:nth-child(3) { border-right: 1px solid rgba(255,255,255,0.08); }
  .canal__card:nth-child(4) { border-right: none; }
  .contacto-main__container { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 640px) {
  .canales__container { grid-template-columns: 1fr; }
  .canal__card { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .canal__card:last-child { border-bottom: none; }
  .form__row { grid-template-columns: 1fr; }
  .ctc-form { padding: 2rem 1.5rem; }
}
