/* ===========================
   CONTACTO PAGE
=========================== */

/* ---- HERO ---- */
.ct-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0f172a 100%);
  padding: 140px 24px 80px; position: relative; overflow: hidden;
}
.ct-hero-bg-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block; z-index: 0;
}
.ct-hero-bg {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(0,0,0,.70) 0%, rgba(0,0,0,.40) 50%, rgba(0,0,0,.10) 100%);
}
.ct-hero-content { position: relative; z-index: 2; max-width: 700px; }
.ct-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary); color: #0a1628;
  padding: 8px 18px; border-radius: 100px;
  font-size: .82rem; font-weight: 700; margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(245,158,11,.35);
}
.ct-hero-content h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 900;
  color: var(--white); line-height: 1.15; margin-bottom: 16px;
}
.ct-hero-content p { color: rgba(255,255,255,.65); font-size: 1rem; line-height: 1.75; margin-bottom: 28px; }

.ct-hero-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.ct-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.75); padding: 8px 16px; border-radius: 100px;
  font-size: .82rem; font-weight: 500; backdrop-filter: blur(8px);
}
.ct-chip i { color: var(--primary); }

/* ---- INFO CARDS ---- */
.ct-info { padding: 60px 0; background: var(--light); }
.ct-info-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.ct-info-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 28px 24px; border: 1.5px solid #e2e8f0;
  display: flex; flex-direction: column; gap: 10px;
  transition: var(--transition);
  opacity: 0; transform: translateY(20px);
}
.ct-info-card.visible { opacity: 1; transform: translateY(0); }
.ct-info-card:hover { border-color: var(--primary); box-shadow: 0 8px 28px rgba(245,158,11,.1); transform: translateY(-4px); }
.ct-info-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
  background: #fef3c7; color: #d97706;
}
.ct-info-card h3 { font-size: 1rem; font-weight: 800; color: var(--dark); }
.ct-info-card > p { font-size: .82rem; color: var(--mid); line-height: 1.6; flex: 1; }
.ct-info-detail { display: flex; flex-direction: column; gap: 6px; }
.ct-info-detail a {
  display: flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 600; color: var(--dark-3);
  text-decoration: none; transition: color .2s;
}
.ct-info-detail a:hover { color: var(--primary); }
.ct-info-detail i { color: var(--primary); width: 14px; }
.ct-info-badge {
  display: inline-block; padding: 4px 12px; border-radius: 100px;
  font-size: .72rem; font-weight: 700;
  background: #fef3c7; color: #d97706; align-self: flex-start;
}

/* ---- MAIN (formulario + sidebar) ---- */
.ct-main { padding: 80px 0; background: var(--white); }
.ct-main-grid {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start;
}

/* Formulario */
.ct-form-wrap {
  opacity: 0; transform: translateY(24px); transition: all .5s ease;
}
.ct-form-wrap.visible { opacity: 1; transform: translateY(0); }
.ct-form-header { margin-bottom: 32px; }
.ct-form-header h2 { font-size: 1.8rem; font-weight: 900; margin: 8px 0 10px; }
.ct-form-header p { font-size: .9rem; color: var(--mid); }

.ct-form { display: flex; flex-direction: column; gap: 18px; }
.ct-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ct-field { display: flex; flex-direction: column; gap: 6px; }
.ct-field label {
  font-size: .8rem; font-weight: 700; color: var(--dark-3);
  display: flex; align-items: center; gap: 4px;
}
.ct-field label span { color: var(--primary); }

.ct-input-wrap {
  position: relative; display: flex; align-items: center;
}
.ct-input-wrap > i {
  position: absolute; left: 14px; color: var(--mid); font-size: .85rem; pointer-events: none; z-index: 1;
}
.ct-input-wrap input,
.ct-input-wrap select,
.ct-input-wrap textarea {
  width: 100%; padding: 12px 14px 12px 38px;
  border: 1.5px solid #e2e8f0; border-radius: var(--radius);
  font-family: inherit; font-size: .88rem; color: var(--dark);
  background: var(--white); transition: border-color .2s, box-shadow .2s;
  outline: none; appearance: none;
}
.ct-input-wrap.textarea { align-items: flex-start; }
.ct-input-wrap.textarea > i { top: 14px; }
.ct-input-wrap textarea { resize: vertical; min-height: 110px; }
.ct-input-wrap input:focus,
.ct-input-wrap select:focus,
.ct-input-wrap textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(245,158,11,.12);
}
.ct-input-wrap input::placeholder,
.ct-input-wrap textarea::placeholder { color: #cbd5e1; }

/* Custom select arrow */
.ct-input-wrap select { cursor: pointer; padding-right: 36px; }
.ct-input-wrap select + i { display: none; }
.ct-input-wrap:has(select)::after {
  content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  position: absolute; right: 14px; color: var(--mid); font-size: .7rem; pointer-events: none;
}

/* Checkbox */
.ct-check { flex-direction: row; align-items: flex-start; }
.ct-checkbox {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .8rem; color: var(--mid); cursor: pointer; line-height: 1.5;
}
.ct-checkbox input[type="checkbox"] { display: none; }
.checkmark {
  width: 18px; height: 18px; min-width: 18px; border-radius: 5px;
  border: 2px solid #cbd5e1; background: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: all .2s; margin-top: 1px;
}
.ct-checkbox input:checked + .checkmark {
  background: var(--primary); border-color: var(--primary);
}
.ct-checkbox input:checked + .checkmark::after {
  content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  color: #0a1628; font-size: .62rem;
}
.ct-checkbox a { color: var(--primary); font-weight: 600; }

/* Submit */
.ct-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--primary); color: #0a1628;
  border: none; border-radius: var(--radius); padding: 15px 32px;
  font-size: .95rem; font-weight: 800; cursor: pointer;
  transition: var(--transition); width: 100%; margin-top: 4px;
}
.ct-submit:hover { background: #f59e0bdd; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245,158,11,.35); }

/* Success */
.ct-form-success {
  display: none; text-align: center; padding: 48px 24px;
  background: #f0fdf4; border: 1.5px solid #bbf7d0;
  border-radius: var(--radius-lg);
}
.ct-form-success.show { display: block; }
.ct-success-icon {
  font-size: 3rem; color: #10b981; margin-bottom: 16px;
  animation: successPop .4s cubic-bezier(.175,.885,.32,1.275) both;
}
@keyframes successPop { from { transform: scale(0); opacity: 0; } }
.ct-form-success h3 { font-size: 1.4rem; font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.ct-form-success p { font-size: .88rem; color: var(--mid); line-height: 1.6; }

/* ---- SIDEBAR ---- */
.ct-sidebar { display: flex; flex-direction: column; gap: 20px; }
.ct-sidebar-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1.5px solid #e2e8f0; padding: 24px;
  opacity: 0; transform: translateX(20px); transition: all .5s ease;
}
.ct-sidebar-card.visible { opacity: 1; transform: translateX(0); }

.ct-sb-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.ct-sb-icon {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  background: #fef3c7; color: #d97706;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.ct-sb-header h3 { font-size: .95rem; font-weight: 800; color: var(--dark); }

/* Horarios */
.ct-horarios { display: flex; flex-direction: column; gap: 10px; }
.ct-hora-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; border-radius: 10px; background: var(--light);
  font-size: .82rem;
}
.ct-hora-row span { color: var(--mid); display: flex; align-items: center; gap: 6px; }
.ct-hora-row span i { color: #25d366; }
.ct-hora-row strong { font-weight: 700; color: var(--dark); }
.ct-hora-row strong.closed { color: #ef4444; }
.ct-hora-row strong.open { color: #10b981; }
.ct-hora-row.highlight-row { background: #f0fdf4; border: 1px solid #bbf7d0; }

/* Sedes */
.ct-sedes { display: flex; flex-direction: column; gap: 14px; }
.ct-sede {
  padding: 14px; border-radius: 10px; background: var(--light);
  font-size: .8rem; color: var(--mid); line-height: 1.8;
}
.ct-sede p { margin: 0; }
.ct-sede p strong { color: var(--dark); font-size: .83rem; }
.ct-sede p i { color: var(--primary); width: 14px; }
.ct-sede-tag {
  display: inline-block; padding: 2px 10px; border-radius: 100px;
  font-size: .7rem; font-weight: 700; margin-bottom: 6px;
  background: #e2e8f0; color: var(--dark-3);
}
.ct-sede-tag.principal { background: #fef3c7; color: #d97706; }
.ct-sede-tag.aliado { background: #ede9fe; color: #7c3aed; }

/* Social grid */
.ct-social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ct-social-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 10px; font-size: .8rem; font-weight: 700;
  text-decoration: none; transition: var(--transition);
  border: 1.5px solid #e2e8f0; color: var(--dark);
}
.ct-social-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.ct-social-btn.wa { border-color: #25d366; color: #25d366; }
.ct-social-btn.wa:hover { background: #25d366; color: white; }
.ct-social-btn.fb { border-color: #1877f2; color: #1877f2; }
.ct-social-btn.fb:hover { background: #1877f2; color: white; }
.ct-social-btn.ig { border-color: #e1306c; color: #e1306c; }
.ct-social-btn.ig:hover { background: #e1306c; color: white; }
.ct-social-btn.li { border-color: #0a66c2; color: #0a66c2; }
.ct-social-btn.li:hover { background: #0a66c2; color: white; }

/* ---- UBICACIÓN ---- */
.ct-ubicacion { padding: 80px 0; background: var(--light); }
.ct-ubicacion-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 40px; align-items: start;
}
.ct-map-card {
  background: var(--white); border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
  border: 1.5px solid #e2e8f0; padding: 20px;
  display: flex; flex-direction: column; gap: 14px;
  opacity: 0; transform: translateY(20px); transition: all .5s ease;
}
.ct-map-card.visible { opacity: 1; transform: translateY(0); }
.ct-map-card:nth-child(2) { transition-delay: .1s; }
.ct-map-card iframe { display: block; border-radius: 14px; }

.ct-map-label {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; background: var(--light); border-radius: 12px;
}
.ct-map-label i {
  color: var(--primary); font-size: 1.1rem; flex-shrink: 0;
}
.ct-map-label strong {
  display: block; font-size: .9rem; font-weight: 800; color: var(--dark); line-height: 1.2;
}
.ct-map-label span {
  font-size: .78rem; color: var(--mid);
}

.ct-maps-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; background: var(--dark); color: white;
  border-radius: var(--radius); font-size: .83rem; font-weight: 700;
  text-decoration: none; transition: var(--transition); width: 100%; justify-content: center;
}
.ct-maps-btn:hover { background: #1e293b; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.2); }

/* ---- CTA FINAL ---- */
.ct-cta { padding: 80px 0; background: var(--dark); }
.ct-cta-inner {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid rgba(245,158,11,.2);
  border-radius: 24px; padding: 48px;
  display: flex; align-items: center; gap: 32px;
  flex-wrap: wrap;
}
.ct-cta-icon {
  width: 72px; height: 72px; border-radius: 20px;
  background: var(--primary); color: #0a1628;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(245,158,11,.4);
}
.ct-cta-text { flex: 1; min-width: 220px; }
.ct-cta-text h2 { font-size: 1.6rem; font-weight: 900; color: var(--white); margin-bottom: 6px; }
.ct-cta-text p { font-size: .88rem; color: rgba(255,255,255,.55); }
.ct-cta-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.ct-wa-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; background: #25d366; color: white;
  border-radius: var(--radius); font-size: .9rem; font-weight: 800;
  text-decoration: none; transition: var(--transition);
}
.ct-wa-btn:hover { background: #20c45e; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,211,102,.4); }

/* ---- BREADCRUMB ---- */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: .78rem; color: rgba(255,255,255,.45); margin-bottom: 20px;
}
.breadcrumb a { color: rgba(255,255,255,.55); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb i.fa-chevron-right { font-size: .6rem; opacity: .5; }
.breadcrumb span { color: var(--primary); font-weight: 600; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .ct-info-grid { grid-template-columns: 1fr 1fr; }
  .ct-main-grid { grid-template-columns: 1fr; }
  .ct-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .ct-ubicacion-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ct-info-grid { grid-template-columns: 1fr; }
  .ct-form-row { grid-template-columns: 1fr; }
  .ct-sidebar { grid-template-columns: 1fr; }
  .ct-cta-inner { flex-direction: column; text-align: center; padding: 32px 24px; }
  .ct-cta-btns { justify-content: center; }
  .ct-hero { padding: 100px 20px 56px; }
  .ct-hero-chips { gap: 8px; }
  .ct-chip { font-size: .75rem; padding: 6px 12px; }
}
@media (max-width: 480px) {
  .ct-hero { padding: 88px 16px 44px; }
  .ct-hero-content h1 { font-size: 1.8rem; }
  .ct-hero-content p { font-size: .9rem; }
  .ct-info-section, .ct-main-section, .ct-ubicacion, .ct-cta { padding: 48px 0; }
  .ct-form { padding: 20px 16px; }
  .ct-cta-btns { flex-direction: column; gap: 10px; }
  .ct-cta-btns .btn { width: 100%; justify-content: center; }
}
