/* ==========================================================================
   Trayecto Tecnológico — Service Pages Styles
   Extends index.css with service-page-specific layouts and components.
   ========================================================================== */

/* ==========================================================================
   SERVICE HERO (smaller than main hero, with breadcrumb)
   ========================================================================== */
.service-hero {
  position: relative;
  padding-top: 120px;
  padding-bottom: 60px;
  min-height: auto;
  overflow: hidden;
}

.service-hero .brushed-metal {
  position: absolute;
  inset: 0;
}

.service-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-family: 'JetBrains Mono', monospace;
  color: #6b7280;
  margin-bottom: 1.5rem;
}

.service-hero .breadcrumb a {
  color: #9ca3b0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.service-hero .breadcrumb a:hover {
  color: #00F0FF;
}

.service-hero .breadcrumb .separator {
  color: #4b5563;
  user-select: none;
}

.service-hero .breadcrumb .current {
  color: #00F0FF;
  font-weight: 600;
}

/* ==========================================================================
   SERVICE DESCRIPTION SECTION
   ========================================================================== */
.service-description {
  padding: 80px 0;
  position: relative;
}

.service-description .glass-card {
  padding: 48px;
}

.service-description h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.service-description p {
  color: #9ca3b0;
  line-height: 1.8;
  font-size: 1.05rem;
  max-width: 800px;
}

/* ==========================================================================
   FEATURES GRID — Service Feature Cards
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
  padding: 80px 0;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: rgba(26, 31, 38, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover {
  border-color: rgba(0, 240, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 240, 255, 0.1);
}

.feature-card .feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-card .feature-icon.cyan {
  background: rgba(0, 240, 255, 0.1);
}

.feature-card .feature-icon.cyan .material-symbols-outlined {
  color: #00F0FF;
  font-size: 28px;
}

.feature-card .feature-icon.orange {
  background: rgba(255, 107, 0, 0.1);
}

.feature-card .feature-icon.orange .material-symbols-outlined {
  color: #FF6B00;
  font-size: 28px;
}

.feature-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #f0f2f5;
}

.feature-card p {
  color: #9ca3b0;
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Feature card with gradient accent border */
.feature-card.accent-cyan {
  border-top: 2px solid rgba(0, 240, 255, 0.3);
}

.feature-card.accent-orange {
  border-top: 2px solid rgba(255, 107, 0, 0.3);
}

/* ==========================================================================
   PROCESS SECTION — Step Connectors
   ========================================================================== */
.process-section {
  padding: 80px 0;
  background: rgba(26, 31, 38, 0.3);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
  position: relative;
}

@media (min-width: 768px) {
  .process-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.process-step {
  position: relative;
  text-align: center;
  padding: 32px 24px;
}

.process-step .step-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  position: relative;
  z-index: 2;
}

.process-step .step-number.cyan {
  background: rgba(0, 240, 255, 0.12);
  color: #00F0FF;
  border: 2px solid rgba(0, 240, 255, 0.25);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
}

.process-step .step-number.orange {
  background: rgba(255, 107, 0, 0.12);
  color: #FF6B00;
  border: 2px solid rgba(255, 107, 0, 0.25);
  box-shadow: 0 0 20px rgba(255, 107, 0, 0.15);
}

.process-step h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #f0f2f5;
}

.process-step p {
  color: #9ca3b0;
  line-height: 1.7;
  font-size: 0.95rem;
  max-width: 300px;
  margin: 0 auto;
}

/* Step connector lines between steps on desktop */
@media (min-width: 768px) {
  .process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 48px;
    left: 65%;
    width: 70%;
    height: 2px;
    background: linear-gradient(90deg, rgba(0, 240, 255, 0.4), rgba(255, 107, 0, 0.4));
    z-index: 1;
    pointer-events: none;
  }
  
  /* Arrow head on connector */
  .process-step:not(:last-child)::before {
    content: '';
    position: absolute;
    top: 42px;
    left: calc(65% + 70% - 8px);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 12px solid rgba(255, 107, 0, 0.5);
    z-index: 1;
    pointer-events: none;
  }
}

/* ==========================================================================
   QUOTE FORM SECTION
   ========================================================================== */
.quote-section {
  padding: 80px 0;
}

.quote-section .glass-card {
  padding: 48px;
  max-width: 640px;
  margin: 0 auto;
}

.quote-section .quote-form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.quote-section .quote-form-header h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.quote-section .quote-form-header p {
  color: #9ca3b0;
  font-size: 1rem;
}

.quote-section .form-group {
  margin-bottom: 1.25rem;
}

.quote-section label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #f0f2f5;
}

.quote-section input,
.quote-section textarea {
  width: 100%;
  background: rgba(15, 20, 25, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  color: #f0f2f5;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.quote-section input:focus,
.quote-section textarea:focus {
  outline: none;
  border-color: rgba(0, 240, 255, 0.5);
  box-shadow: 0 0 0 1px rgba(0, 240, 255, 0.2);
}

.quote-section input::placeholder,
.quote-section textarea::placeholder {
  color: rgba(107, 114, 128, 0.5);
}

.quote-section textarea {
  resize: vertical;
  min-height: 100px;
}

.quote-section .error-msg {
  font-size: 0.75rem;
  color: rgba(239, 68, 68, 0.9);
  margin-top: 0.25rem;
  display: none;
}

.quote-section .form-group.has-error input,
.quote-section .form-group.has-error textarea {
  border-color: rgba(239, 68, 68, 0.5) !important;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.2) !important;
}

.quote-section .form-group.has-error .error-msg {
  display: block;
}

.quote-section .success-card {
  position: absolute;
  inset: 0;
  background: rgba(30, 36, 44, 0.98);
  backdrop-filter: blur(16px);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.5s ease;
  z-index: 10;
  transform: scale(0.95);
}

.quote-section .success-card.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.quote-section .success-card .success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.quote-section .success-card .success-icon .material-symbols-outlined {
  font-size: 40px;
  color: #00F0FF;
}

.quote-section .success-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.quote-section .success-card p {
  color: #9ca3b0;
  margin-bottom: 2rem;
  max-width: 320px;
}

/* ==========================================================================
   SERVICE CTA BANNER
   ========================================================================== */
.service-cta-banner {
  padding: 60px 0 80px;
  text-align: center;
}

.service-cta-banner h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.service-cta-banner p {
  color: #9ca3b0;
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   BACK HOME LINK
   ========================================================================== */
.back-home-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #9ca3b0;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s ease;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
}

.back-home-link:hover {
  color: #00F0FF;
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */
@media (max-width: 767px) {
  .service-hero {
    padding-top: 100px;
    padding-bottom: 40px;
  }

  .service-hero h1 {
    font-size: 2rem !important;
  }

  .service-description {
    padding: 48px 0;
  }

  .service-description .glass-card {
    padding: 28px;
  }

  .service-description h2 {
    font-size: 1.5rem;
  }

  .features-grid {
    padding: 48px 0;
  }

  .feature-card {
    padding: 24px;
  }

  .process-section {
    padding: 48px 0;
  }

  .process-step {
    padding: 24px 16px;
  }

  .quote-section {
    padding: 48px 0;
  }

  .quote-section .glass-card {
    padding: 28px;
  }

  .quote-section .quote-form-header h2 {
    font-size: 1.35rem;
  }

  .service-cta-banner {
    padding: 40px 0 60px;
  }

  .service-cta-banner h2 {
    font-size: 1.5rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   ACCENT COLORS FOR INDIVIDUAL SERVICE PAGES
   Applied via data attribute or body class
   ========================================================================== */
body.service-desarrollo-web .feature-card.accent-cyan,
body.service-automatizacion .feature-card.accent-orange,
body.service-consultoria .feature-card.accent-cyan,
body.service-soporte-tecnico .feature-card.accent-orange,
body.service-infraestructura .feature-card.accent-cyan,
body.service-ciberseguridad .feature-card.accent-orange {
  /* Already styled above, these are for specificity */
}

/* ==========================================================================
   SECTION DIVIDERS (consistent with index.css)
   ========================================================================== */
.service-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0, 240, 255, 0.1), transparent);
}

.service-divider.orange {
  background: linear-gradient(to right, transparent, rgba(255, 107, 0, 0.1), transparent);
}
