/* ═══════════════════════════════════════════════════
   CONTACTO.CSS
   ═══════════════════════════════════════════════════ */

.nav-current { color: var(--orange) !important; }

/* ── Hero ── */
.contacto-hero {
  background: var(--bg-card);
  border-bottom: 3px solid var(--orange);
  padding: 56px 0 40px;
  position: relative;
  overflow: hidden;
}
.contacto-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    90deg, transparent, transparent 80px,
    rgba(240,90,0,0.03) 80px, rgba(240,90,0,0.03) 81px
  );
}
.contacto-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
}
.contacto-hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: 0.06em;
  color: var(--text-main);
  line-height: 0.9;
  margin: 10px 0 12px;
}
.contacto-hero-sub {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .contacto-hero-inner { text-align: center; }
  .contacto-hero-title { text-align: center; }
  .contacto-hero-sub   { text-align: center; display: block; }
}

/* ── Body ── */
.contacto-body {
  padding: 56px 0 80px;
  background: var(--bg);
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

/* ── Formulario ── */
.contacto-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-sub);
}

.form-input {
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  font-family: 'Barlow', sans-serif;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  box-sizing: border-box;
  border-radius: 2px;
  appearance: none;
  -webkit-appearance: none;
}
.form-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(240,90,0,0.08);
}
.form-input::placeholder { color: var(--text-muted); }
.form-input.error { border-color: #e55; }

.form-select-wrap {
  position: relative;
}
.form-select-wrap svg {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}
.form-select { padding-right: 36px; cursor: pointer; }
.form-select option { background: var(--bg-card); color: var(--text-main); }

.form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.form-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-error {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: #e55;
  min-height: 14px;
}

.form-chars {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

/* ── Botón submit ── */
.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  background: var(--orange);
  border: none;
  padding: 16px 36px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  align-self: flex-start;
  border-radius: 2px;
}
.form-submit svg { width: 18px; height: 18px; transition: transform 0.2s; }
.form-submit:hover { background: #d94e00; transform: translateY(-2px); }
.form-submit:hover svg { transform: translateX(3px); }
.form-submit:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ── Estado del envío ── */
.form-status {
  padding: 14px 18px;
  border-radius: 2px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.form-status.success {
  background: rgba(74,222,128,0.1);
  border: 1px solid #4ade80;
  color: #16a34a;
}
.form-status.error {
  background: rgba(239,68,68,0.08);
  border: 1px solid #ef4444;
  color: #dc2626;
}

/* ── Aside info ── */
.contacto-aside {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 84px;
}

.contacto-info-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--orange);
  transition: transform 0.15s, box-shadow 0.15s;
}
.contacto-info-card:hover {
  transform: translateX(3px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.contacto-info-icon {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  flex-shrink: 0;
}
.contacto-info-icon svg { width: 22px; height: 22px; }

.contacto-info-label {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.contacto-info-value {
  font-family: 'Barlow', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.15s;
  word-break: break-all;
}
.contacto-info-value:hover { color: var(--orange); }

.contacto-tiempo {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 18px;
  background: rgba(240,90,0,0.06);
  border: 1px solid rgba(240,90,0,0.15);
  border-radius: 2px;
  margin-top: 4px;
}
.contacto-tiempo svg {
  width: 18px; height: 18px;
  color: var(--orange);
  flex-shrink: 0;
  margin-top: 1px;
}
.contacto-tiempo p {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--text-sub);
  line-height: 1.45;
  text-transform: uppercase;
}
.contacto-tiempo strong { color: var(--orange); font-weight: 700; }

/* ── Footer ── */
.page-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 22px 0;
}
.page-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.page-footer-back {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  text-decoration: none;
  transition: opacity 0.2s;
}
.page-footer-back:hover { opacity: 0.75; }
.page-footer-copy {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .contacto-grid { grid-template-columns: 1fr; gap: 36px; }
  .contacto-aside { position: static; order: -1; }
  .contacto-info-card { padding: 14px 16px; }
  .contacto-hero-inner { padding: 0 20px; }
}
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .contacto-hero { padding: 40px 0 28px; }
  .form-submit { width: 100%; justify-content: center; }
}
/* ══════════════════════════════════════════════════════════
   AUTH MODAL — modo claro, diseño Radix-style
   ══════════════════════════════════════════════════════════ */
.auth-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.80);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.auth-overlay.open {
  display: flex;
  animation: authOverlayIn 0.2s ease;
}
@keyframes authOverlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.auth-dialog {
  position: relative;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  width: 100%;
  max-width: 400px;
  padding: 28px 28px 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18), 0 4px 16px rgba(0,0,0,0.08);
  animation: authDialogIn 0.22s cubic-bezier(0.22,1,0.36,1);
  overflow: hidden;
}
@keyframes authDialogIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Botón cerrar */
.auth-dialog-close {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  outline: none;
}
.auth-dialog-close:hover { background: #f3f4f6; color: #111; }
.auth-dialog-close:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* Header */
.auth-dialog-header { margin-bottom: 22px; }
.auth-dialog-title {
  font-family: 'Barlow', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.auth-dialog-desc {
  font-family: 'Barlow', sans-serif;
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

/* Panels: transición slide */
.auth-panels {
  position: relative;
  overflow: hidden;
}

.auth-panel {
  width: 100%;
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.22,1,0.36,1);
}

.auth-panel--hidden {
  display: none;
  opacity: 0;
  transform: translateX(32px);
}
.auth-panel--exit {
  opacity: 0;
  transform: translateX(-32px);
  pointer-events: none;
}
.auth-panel--enter {
  animation: panelEnter 0.28s cubic-bezier(0.22,1,0.36,1) forwards;
}
@keyframes panelEnter {
  from { opacity: 0; transform: translateX(32px); }
  to   { opacity: 1; transform: translateX(0); }
}
.auth-panel--enter-back {
  animation: panelEnterBack 0.28s cubic-bezier(0.22,1,0.36,1) forwards;
}
@keyframes panelEnterBack {
  from { opacity: 0; transform: translateX(-32px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Campos */
.auth-field {
  margin-bottom: 14px;
}
.auth-field label {
  display: block;
  font-family: 'Barlow', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}
.auth-field input {
  width: 100%;
  padding: 10px 13px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  color: #111;
  font-family: 'Barlow', sans-serif;
  font-size: 0.92rem;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.auth-field input::placeholder { color: #9ca3af; }
.auth-field input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(240,90,0,0.12);
}

/* Error */
.auth-error {
  font-family: 'Barlow', sans-serif;
  font-size: 0.78rem;
  color: #dc2626;
  margin: -6px 0 10px;
  min-height: 18px;
}

/* Botón principal */
.auth-submit {
  width: 100%;
  padding: 11px;
  background: var(--orange);
  color: #fff;
  font-family: 'Barlow', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 4px;
  transition: background 0.15s, transform 0.1s;
}
.auth-submit:hover  { background: #d94e00; }
.auth-submit:active { transform: scale(0.98); }

/* ── Auth switch row (¿no tenés cuenta?) ── */
.auth-switch-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
}
.auth-switch-text {
  font-family: 'Barlow', sans-serif;
  font-size: 0.82rem;
  color: #6b7280;
}
.auth-switch-btn {
  font-family: 'Barlow', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--orange);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth-switch-btn:hover { color: #d94e00; }

/* ── Modal de perfil — modo claro ── */
.perfil-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.80);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.perfil-modal.open {
  display: flex;
  animation: authOverlayIn 0.2s ease;
}

.perfil-box {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  width: 100%;
  max-width: 480px;
  max-height: 82vh;
  overflow-y: auto;
  padding: 28px 28px 24px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18), 0 4px 16px rgba(0,0,0,0.08);
  animation: authDialogIn 0.22s cubic-bezier(0.22,1,0.36,1);
}

.perfil-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.perfil-title {
  font-family: 'Barlow', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #111;
}

#perfilInfo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 0 24px;
  border-bottom: 1px solid #f3f4f6;
  margin-bottom: 20px;
}

.perfil-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.perfil-nombre {
  font-family: 'Barlow', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.01em;
}

.perfil-email {
  font-family: 'Barlow', sans-serif;
  font-size: 0.8rem;
  color: #6b7280;
}

.perfil-section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

.historial-empty {
  font-family: 'Barlow', sans-serif;
  font-size: 0.82rem;
  color: #9ca3af;
  text-align: center;
  padding: 20px 0;
}

.historial-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
  flex-wrap: wrap;
}
.historial-item:last-child { border-bottom: none; }

.historial-item-info { flex: 1; min-width: 160px; }
.historial-item-prod {
  font-family: 'Barlow', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 2px;
}
.historial-item-meta {
  font-family: 'Barlow', sans-serif;
  font-size: 0.74rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.historial-status {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(240,90,0,0.10);
  color: var(--orange);
}
.historial-item-total {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: #111;
}

.perfil-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #f3f4f6;
}

.perfil-btn {
  flex: 1;
  padding: 10px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: transparent;
  color: #374151;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.perfil-btn:hover { background: #f9fafb; }
.perfil-btn--danger { color: #dc2626; border-color: rgba(220,38,38,0.25); }
.perfil-btn--danger:hover { background: rgba(220,38,38,0.06); border-color: #dc2626; }
/* ══════════════════════════════════════════════════════════════
   MOBILE-FIRST ADDITIONS
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .auth-overlay { padding: 16px; }
  .auth-dialog { padding: 22px 18px 20px; border-radius: 12px; }
  .auth-dialog-title { font-size: 1.05rem; }
}

@media (max-width: 640px) {
  .contacto-hero { padding: 36px 0 24px; }
  .contacto-hero-inner { padding: 0 16px; }
  .contacto-hero-title { font-size: clamp(2.4rem, 10vw, 4rem); }
  .contacto-body { padding: 36px 0 56px; }
  .contacto-grid { grid-template-columns: 1fr; gap: 28px; }
  .contacto-aside { position: static; order: -1; }
  .contacto-info-card { padding: 14px 16px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-group { margin-bottom: 14px; }
  .form-input, .form-select { min-height: 48px; font-size: 16px; }
  .form-textarea { font-size: 16px; }
  .form-submit { width: 100%; justify-content: center; min-height: 50px; }

  /* Auth modal contacto: más compacto */
  .auth-overlay { padding: 16px; align-items: center; }
  .auth-dialog {
    border-radius: 14px;
    max-height: 88vh;
    overflow-y: auto;
    padding: 20px 16px 24px;
  }
}

@media (max-width: 400px) {
  .contacto-hero-inner { padding: 0 12px; }
  .contacto-body .container { padding: 0 12px; }
  .auth-dialog { padding: 18px 14px 20px; }
  .auth-panel input { font-size: 16px; }
}

/* Footer: sin línea bajo los títulos de columna (igual que la tienda) */
.footer-col-title {
  border-bottom: none;
  padding-bottom: 0;
}

/* Footer mobile: marca a lo ancho + columnas de links en 2 (como desktop, adaptado).
   Usa !important para ganarle al grid inline del desktop y a las reglas de mobile.css. */
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 32px 24px !important; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 430px) {
  .footer-grid { grid-template-columns: 1fr !important; }
}
