/* ═══════════════════════════════════════════
   IT SUPPORT PAGE STYLES
   Specific to pages/itSupport.html
   Primary color: #008fb5 (--it-blue)
   Background: img/background.jpg
   ═══════════════════════════════════════════ */

/* ── IT Support Hero 2-col (reorganizado, video como index) ── */
.it-hero {
  position: relative;
  background: var(--light);
  padding: 3.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}



.it-hero-container {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.it-hero-copy {
  text-align: left;
  opacity: 0;
  animation: fade-from-left 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.1s forwards;
}

.it-hero-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--it-blue);
  background: rgba(0, 143, 181, 0.1);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.it-hero-title {
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--dark);
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
}

.it-hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.it-hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.it-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  text-decoration: none;
  cursor: pointer;
}

.it-hero-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.it-hero-btn:hover {
  transform: translateY(-2px);
}

.it-hero-btn-support {
  background: var(--it-blue);
  color: var(--white);
  border-color: var(--it-blue);
  box-shadow: 0 4px 16px rgba(0, 143, 181, 0.35);
}

.it-hero-btn-support:hover {
  box-shadow: 0 6px 20px rgba(0, 143, 181, 0.5);
}

.it-hero-btn-secondary {
  background: var(--white);
  color: #ff2424;
  border-color: #ff2424;
  box-shadow: 0 4px 16px rgba(255, 36, 36, 0.18), 0 2px 8px rgba(255, 36, 36, 0.12);
}

.it-hero-btn-secondary:hover {
  background: #ff2424;
  color: var(--white);
  border-color: #ff2424;
  box-shadow: 0 6px 20px rgba(255, 36, 36, 0.35), 0 4px 12px rgba(255, 36, 36, 0.22);
}

.it-hero-visual {
  opacity: 0;
  animation: fade-from-right 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.25s forwards;
}

.it-hero-visual video {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  background: #000;
  display: block;
  overflow: hidden;
}

#our-services {
  scroll-margin-top: 84px;
}

/* ── Our Services header — rediseño coherente con index ── */
.it-services-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2.75rem;
}

.it-services-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
  margin-bottom: 0.65rem;
}

.it-services-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── IT Mini Cards Grid ── */
.it-mini-cards {
  padding: 5rem 2rem;
  background: var(--light);
}

/* Reveal evita conflicto con animación de carga */
.it-mini-card.reveal,
.it-form-section.reveal {
  animation: none !important;
}

.it-mini-cards-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 2.5rem;
}

.it-mini-cards-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.it-mini-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-left: 4px solid var(--it-blue);
  padding: 1.5rem 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07), 0 3px 10px rgba(0, 143, 181, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.it-mini-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.1), 0 6px 18px rgba(0, 143, 181, 0.12), 0 2px 6px rgba(0, 0, 0, 0.05);
}

.it-mini-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.it-mini-card-header svg {
  width: 28px;
  height: 28px;
  color: var(--it-blue);
  flex-shrink: 0;
}

.it-mini-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.it-mini-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* ── IT Support Form ── */
.it-form-section {
  padding: 4rem 2rem;
  background: var(--white);
}

.it-form-container {
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
  min-width: 0;
}

.it-form-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--it-blue);
  margin-bottom: 2.5rem;
}

.it-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Iframe responsive del booking: 100% de ancho, altura dinámica vía JS
   (la altura fija es solo fallback si el postMessage no llega). */
iframe.booking-frame {
  width: 100%;
  max-width: 900px;
  height: 600px;
  border: 0;
  display: block;
  margin: 0 auto;
  overflow: hidden;
}

iframe.booking-frame::-webkit-scrollbar {
  display: none;
}

@media (max-width: 768px) {
  iframe.booking-frame {
    /* Fallback móvil: contenido apilado (calendario + form).
       El JS lo sobrescribe con la altura exacta. */
    height: 1180px;
  }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .it-hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .it-hero-copy {
    text-align: center;
  }

  .it-hero-buttons {
    justify-content: center;
  }

  .it-hero-title {
    font-size: 1.9rem;
  }

  .it-hero-visual video {
    max-width: 520px;
    margin: 0 auto;
    display: block;
  }
}

@media (max-width: 768px) {
  .it-hero-title {
    font-size: 1.65rem;
  }

  .it-hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .it-hero-btn {
    width: 100%;
    max-width: 320px;
  }

  .it-mini-cards {
    padding: 3rem 1rem;
  }

  .it-mini-cards-container {
    flex-direction: column;
  }

  .it-form-section {
    padding: 3rem 1rem;
  }

  .it-form-title {
    font-size: 1.5rem;
  }

  .it-form-row {
    flex-direction: column;
    gap: 1.25rem;
  }

  .it-form-two-col {
    flex-direction: column;
    gap: 1.25rem;
  }

  .it-form-two-col > * {
    flex: 1 !important;
  }

  .it-consent {
    flex-direction: column;
    gap: 0.5rem;
  }

  .it-form-submit {
    width: 100%;
    text-align: center;
  }
}