/* ============================================================
   ABARCA IA — contacto.css
   Page-specific styles (inherits design system from inicio_home.css)
   ============================================================ */

/* ============================================================
   HERO — CONTACTO
   ============================================================ */

.hero-contacto {
  position: relative;
  background: linear-gradient(135deg, #B3E5FC 0%, #CE93D8 50%, #FFF59D 100%);
  padding: 72px 24px;
  text-align: center;
  overflow: hidden;
}

.hero-contacto-orb {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 500px; height: 500px;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    rgba(79,195,247,.3), rgba(244,143,177,.3), rgba(255,241,118,.3));
  filter: blur(80px);
  animation: orb-spin 24s linear infinite;
  pointer-events: none;
}

.hero-contacto-content {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.hero-contacto-content h1 {
  font-size: 48px; font-weight: 400;
  line-height: 1.1; letter-spacing: -.5px;
  color: var(--color-dark);
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(16px);
  animation: fade-up .5s var(--ease-out) .05s forwards;
}

.hero-contacto-content p {
  font-size: 15px;
  color: #444441;
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(16px);
  animation: fade-up .5s var(--ease-out) .18s forwards;
}

/* ============================================================
   TARJETAS DE CONTACTO
   ============================================================ */

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.contacto-cards {
  padding: 56px 24px 40px;
  background: var(--color-surface);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 880px;
  margin: 0 auto;
}

.contact-card {
  background: var(--color-background-secondary);
  border-radius: var(--border-radius-lg);
  padding: 26px;
  text-align: center;
  display: block;
  color: inherit;
  transition: transform .2s var(--ease-spring), box-shadow .2s ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-color);
}

.card-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon--blue  { background: linear-gradient(135deg, #B3E5FC, #CE93D8); }
.card-icon--pink  { background: linear-gradient(135deg, #F8BBD0, #FFCC80); }
.card-icon--amber { background: linear-gradient(135deg, #FFCC80, #FFF59D); }

.card-label {
  font-size: 11px; font-weight: 500;
  color: var(--color-muted);
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}

.card-value {
  font-size: 14px; font-weight: 500;
  color: var(--color-dark);
  margin-bottom: 4px;
}

.card-hint {
  font-size: 11px;
  color: #5F5E5A;
}

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

.contacto-form-section {
  padding: 0 24px 56px;
  background: var(--color-surface);
}

.form-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 0.5px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.form-card h2 {
  font-size: 20px; font-weight: 400;
  color: var(--color-dark);
  margin-bottom: 6px;
}

.form-sub {
  font-size: 12px;
  color: var(--color-muted);
  margin-bottom: 22px;
}

.contacto-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-field label {
  font-size: 11px;
  color: #5F5E5A;
}

.c-input {
  width: 100%;
  padding: 10px 12px;
  border: 0.5px solid var(--color-border);
  border-radius: var(--border-radius-md);
  font-size: 13px;
  font-family: var(--font);
  color: var(--color-dark);
  background: var(--color-surface);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.c-input::placeholder { color: var(--color-muted-light); }

.c-input:focus {
  border-color: var(--color-sky);
  box-shadow: 0 0 0 3px rgba(79,195,247,.12);
}

.c-select { cursor: pointer; }

.c-textarea {
  resize: none;
  line-height: 1.5;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-check input[type="checkbox"] {
  width: 14px; height: 14px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--color-sky);
  cursor: pointer;
}

.form-check label {
  font-size: 11px;
  color: #5F5E5A;
  cursor: pointer;
}

.form-check a:hover { text-decoration: underline; text-underline-offset: 2px; }

.btn-enviar {
  width: 100%;
  padding: 12px;
  background: var(--color-dark);
  color: var(--color-surface);
  border: none;
  border-radius: var(--border-radius-md);
  font-size: 14px; font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: background .2s ease, transform .2s var(--ease-spring), box-shadow .2s ease;
}

.btn-enviar:hover:not([disabled]) {
  background: var(--color-dark-deep);
  transform: scale(1.01);
  box-shadow: var(--shadow-md);
}

.btn-enviar[disabled] {
  cursor: default;
  opacity: .85;
}

/* ============================================================
   CTA DEMO
   ============================================================ */

.contacto-cta {
  padding: 44px 24px;
  background: var(--color-background-secondary);
  text-align: center;
  border-top: 0.5px solid var(--color-border);
}

.cta-contacto-label {
  font-size: 12px;
  color: var(--color-muted);
  margin-bottom: 14px;
}

.btn-cta-demo {
  display: inline-block;
  background: linear-gradient(135deg, #4FC3F7, #B39DDB, #F48FB1, #FFB74D);
  background-size: 200% auto;
  color: var(--color-surface);
  padding: 12px 28px;
  border-radius: var(--border-radius-md);
  font-weight: 500;
  font-size: 13px;
  transition: transform .2s var(--ease-spring), box-shadow .2s ease, background-position .4s ease, filter .2s ease;
}

.btn-cta-demo:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 32px rgba(79,195,247,.35);
  background-position: right center;
  filter: brightness(1.06);
}

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

@media (max-width: 768px) {
  .hero-contacto-content h1 { font-size: 36px; }

  .cards-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

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

@media (max-width: 480px) {
  .hero-contacto { padding: 48px 16px; }
  .hero-contacto-content h1 { font-size: 28px; }

  .contacto-cards,
  .contacto-form-section { padding-left: 16px; padding-right: 16px; }

  .form-card { padding: 22px 16px; }

  .contacto-cta { padding: 32px 16px; }
}
