/* ===================================================
   contacto.css — Sección Contacto + Footer
   Coach Sebastián Zamperoni — Caja simétrica rediseñada
=================================================== */
/*----titulo----*/
.contact-line { 
    display: block;
    
}
/* ---- Sección contacto ---- */
.contacto {
  background: var(--color-bg-alt);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--sp-xl) var(--sp-md);
}

/* Caja exterior: marco marcado con esquinas decorativas */
.contacto__layout {
  width: 100%;
  max-width: 760px; /* Acotamos el ancho para que el formulario no quede gigante o estirado en monitores grandes */
  margin-inline: auto;
  /* Marco exterior grueso naranja (azul en tu caso) */
  border: 2px solid var(--color-orange);
  border-radius: var(--r-md);
  /* Sombra naranja para "glow" industrial */
  box-shadow:
    0 0 0 1px rgba(255,87,34,0.12),
    0 0 40px rgba(255,87,34,0.08),
    0 24px 64px rgba(0,0,0,0.6);
  /* Cambiamos a una sola columna real */
  display: grid;
  grid-template-columns: 1fr; 
  gap: 0;
  overflow: hidden;
  position: relative;
}

/* Esquinas decorativas (pseudo-elementos sobre el wrapper) */
.contacto__layout::before,
.contacto__layout::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--color-orange);
  z-index: 2;
}

.contacto__layout::before { top: -1px; left: -1px; clip-path: polygon(0 0, 100% 0, 0 100%); }
.contacto__layout::after  { bottom: -1px; right: -1px; clip-path: polygon(100% 0, 100% 100%, 0 100%); }

/* ---- Panel izquierdo: info ---- */
.contacto__info {
  /* Fondo ligeramente más oscuro para contraste */
  background: var(--color-surface);
  padding: 3.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  /* Línea divisoria naranja entre los dos paneles */
  border-right: 2px solid var(--color-orange);
  position: relative;
}

/* Línea de acento vertical izquierda dentro del panel */
.contacto__info::before {
  content: '';
  position: absolute;
  top: 3.5rem;
  left: 0;
  width: 4px;
  height: calc(100% - 7rem);
  background: linear-gradient(180deg, transparent, var(--color-orange) 30%, var(--color-orange) 70%, transparent);
  opacity: 0.5;
}

.contacto__info .section-title {
  font-size: clamp(1.6rem, 2.8vw, 2.8rem);
  margin-bottom: 0.75rem;
  line-height: 1;
}

.contacto__desc {
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.7;
}

/* Bloque superior del panel izquierdo */
.contacto__info-top { display: flex; flex-direction: column; gap: 0.5rem; }

/* Datos de contacto */
.contacto__data {
  display: flex;
  flex-direction: column;
  gap: 0;
  /* Borde superior e inferior como separadores */
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.contacto__data li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--color-border);
  transition: background var(--t);
}

.contacto__data li:last-child { border-bottom: none; }

.contacto__data li:hover { background: rgba(255,87,34,0.04); margin-inline: -3rem; padding-inline: 3rem; }

.contacto__data i {
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  background: var(--color-orange-dim);
  border: 1px solid rgba(255,87,34,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--color-orange);
  flex-shrink: 0;
}

.contacto__data div {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.contacto__data strong {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.contacto__data span {
  font-size: 0.9rem;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

/* Redes sociales */
.contacto__redes { display: flex; gap: 0.6rem; }

.social-btn {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--color-muted);
  transition: all var(--t);
}

.social-btn:hover {
  border-color: var(--color-orange);
  color: var(--color-orange);
  background: var(--color-orange-dim);
}

/* Columna derecha: formulario real */
.contacto__form-wrap {
  padding: var(--sp-lg);
  background: var(--color-surface-2);
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  /* Al ser una sola columna en el layout, le quitamos cualquier propiedad de borde izquierdo divisorio previo */
  border-left: none; 
}

.form__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

/* Fila doble */
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Grupo de campo */
.form__group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}

/* Label */
.form__label {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.form__label span { color: var(--color-orange); }
.form__label i { font-size: 0.8rem; }

/* Inputs */
.form__input {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--r-sm);
  padding: 0.8rem 1rem;
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  outline: none;
  transition: border-color var(--t), box-shadow var(--t);
  width: 100%;
}

.form__input::placeholder { color: rgba(107,101,96,0.6); }

.form__input:focus {
  border-color: var(--color-orange);
  box-shadow: 0 0 0 3px var(--color-orange-dim);
}

/* Select */
.form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b6560' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  cursor: pointer;
}

/* Textarea */
.form__textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.55;
}

/* Fieldset */
.form__fieldset {
  border: none;
  padding: 0;
  margin-bottom: 1.1rem;
}

.form__fieldset .form__label { margin-bottom: 0.8rem; }

/* Radios */
.form__radios {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.form__radio-label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
  font-size: 0.92rem;
  color: var(--color-muted);
  transition: color var(--t);
}

.form__radio-label:hover { color: var(--color-text); }

/* Radio oculto */
.form__radio-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}

/* Custom radio */
.form__radio-custom {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  background: var(--color-bg);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t);
  position: relative;
}

.form__radio-custom::after {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-orange);
  opacity: 0;
  transition: opacity var(--t);
}

.form__radio-label input[type="radio"]:checked ~ .form__radio-custom {
  border-color: var(--color-orange);
}

.form__radio-label input[type="radio"]:checked ~ .form__radio-custom::after {
  opacity: 1;
}

.form__radio-label input[type="radio"]:checked ~ span {
  color: var(--color-text);
}

/* Checkboxes */
.form__checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.form__check-label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
  font-size: 0.92rem;
  color: var(--color-muted);
  transition: color var(--t);
}

.form__check-label:hover { color: var(--color-text); }

.form__check-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}

.form__check-custom {
  width: 18px; height: 18px;
  border-radius: 3px;
  border: 2px solid var(--color-border);
  background: var(--color-bg);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t);
  font-size: 0.65rem;
  color: transparent;
}

.form__check-label input[type="checkbox"]:checked ~ .form__check-custom {
  background: var(--color-orange);
  border-color: var(--color-orange);
  color: #fff;
}

.form__check-label input[type="checkbox"]:checked ~ span {
  color: var(--color-text);
}

/* Acciones */
.form__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* ====================================================
   FOOTER
==================================================== */
.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr auto;
  gap: 3rem;
  padding: var(--sp-lg) var(--sp-md);
  max-width: 1240px;
  margin-inline: auto;
}

/* Marca */
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer__brand p {
  font-size: 0.88rem;
  color: var(--color-muted);
  line-height: 1.7;
  letter-spacing: 0.03em;
}

.footer__redes {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.footer__redes a {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  color: var(--color-muted);
  transition: all var(--t);
}

.footer__redes a:hover {
  border-color: var(--color-orange);
  color: var(--color-orange);
  background: var(--color-orange-dim);
}

/* Columnas de links */
.footer__col h4 {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-orange);
  margin-bottom: 1.25rem;
}

.footer__col ul { display: flex; flex-direction: column; gap: 0.65rem; }

.footer__col a {
  font-size: 0.88rem;
  color: var(--color-muted);
  transition: color var(--t);
  letter-spacing: 0.02em;
}

.footer__col a:hover { color: var(--color-white); }

/* CTA footer */
.footer__cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.footer__cta-text {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* Línea inferior */
.footer__bottom {
  border-top: 1px solid var(--color-border);
  padding: 1.25rem var(--sp-md);
  max-width: 1240px;
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer__bottom p {
  font-size: 0.76rem;
  color: var(--color-muted);
  letter-spacing: 0.03em;
}

/* ====================================================
   RESPONSIVE — contacto.css / footer
==================================================== */
@media (max-width: 1024px) {
  /* Caja pasa a columna única */
  .contacto__layout {
    grid-template-columns: 1fr;
    border-radius: var(--r-md);
  }

  .contacto__info {
    border-right: none;
    border-bottom: 2px solid var(--color-orange);
    padding: 2.5rem 2rem;
  }

  .contacto__info::before { display: none; }

  .contacto__form-wrap { padding: 2.5rem 2rem; }

  .contacto { min-height: auto; }

  .footer__inner { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer__brand { grid-column: span 2; }
  .footer__cta   { grid-column: span 2; flex-direction: row; align-items: center; }
}

@media (max-width: 768px) {
  .form__row    { grid-template-columns: 1fr; }
  .form__checks { grid-template-columns: 1fr; }

  .contacto__info      { padding: 2rem 1.5rem; }
  .contacto__form-wrap { padding: 2rem 1.5rem; }
  .contacto { padding: var(--sp-lg) var(--sp-sm); }

  /* Hover de items en la lista sin desbordar */
  .contacto__data li:hover {
    margin-inline: -1.5rem;
    padding-inline: 1.5rem;
  }

  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer__brand { grid-column: span 1; }
  .footer__cta   { grid-column: span 1; }
  .footer__bottom { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  .contacto__layout { border-radius: var(--r-sm); }
  .contacto__info, .contacto__form-wrap { padding: 1.75rem 1.25rem; }
}

/* Footer TrainingPeaks note */
.footer__tp-note {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-blue-lt);
  margin-top: 0.25rem;
}

/* Radios en fila horizontal (formulario simplificado) */
.form__radios--row {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

/* ---- Botón flotante WhatsApp ---- */
.whatsapp-float {
  position: fixed;
  bottom: 5rem;
  right: 1.75rem;
  z-index: 999;

  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  font-size: 1.75rem;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.65);
}

/* Pulso animado de fondo */
.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  animation: waPulse 2.2s ease-out infinite;
  z-index: -1;
}

@keyframes waPulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  70%  { transform: scale(1.5); opacity: 0;   }
  100% { transform: scale(1.5); opacity: 0;   }
}

/* Responsive — un poco más chico en mobile */
@media (max-width: 480px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    bottom: 1.25rem;
    right: 1.25rem;
  }
}
