/* ==========================================================================
   SERVICIOS LANDING PAGE - FIGMA EXACT DESIGN IMPLEMENTATION
   ========================================================================== */

/* CSS Variables */
:root {
  --color-primary-600: #093855;
  --color-primary-500: #0b4a6b;
  --color-primary-400: #397396;
  --color-primary-300: #6a97b9;
  --color-secondary: #eb6929;
  --color-neutral-50: #fafafa;
  --color-neutral-100: #f5f5f5;
  --color-neutral-200: #e5e5e5;
  --color-neutral-300: #d4d4d4;
  --color-neutral-900: #171717;
  --color-white: #ffffff;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-servicios-main {
  position: relative;
  min-height: 720px;
  background: linear-gradient(135deg, #093855 0%, #1b4d6a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(30, 58, 138, 0.95) 0%,
    rgba(59, 130, 246, 0.85) 100%
  );
  mix-blend-mode: multiply;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 80px 40px;
}

.hero-title {
  font-family: "Adobe Caslon Pro", serif;
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0 0 24px 0;
}

.hero-subtitle {
  font-family: "Adrianna", sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 40px 0;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border-radius: 8px;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  min-height: 48px;
}

.btn-primary {
  background: linear-gradient(90deg, #ff6b35 0%, #f7931e 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(90deg, #e5602f 0%, #e0851b 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* ==========================================================================
   SERVICES OVERVIEW SECTION
   ========================================================================== */

.servicios-overview {
  padding: 80px 0 40px;
  background: #fafafa;
}

.section-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 60px;
}

.section-title {
  font-family: "Adobe Caslon Pro", serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  color: #093855;
  margin: 0 0 24px 0;
}

.section-subtitle {
  font-family: "Adrianna", sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  color: #666666;
  margin: 0;
}

/* ==========================================================================
   SERVICES GRID SECTION
   ========================================================================== */

.servicios-grid-section {
  padding: 40px 0 80px;
  background: #fafafa;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(248, 249, 250, 0.95) 100%
  );
  border: 1px solid rgba(9, 56, 85, 0.08);
  border-radius: 20px;
  padding: 48px 36px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.12);
  border-color: rgba(235, 105, 41, 0.4);
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    rgba(255, 107, 53, 0.05) 100%
  );
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-title {
  font-family: "Inter", sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  color: #093855;
  margin: 0 0 16px 0;
}

.service-description {
  font-family: "Adrianna", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #666666;
  margin: 0 0 24px 0;
}

.service-features {
  margin-bottom: 32px;
  flex-grow: 1;
}

.service-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-features li {
  font-family: "Adrianna", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: #666666;
  padding: 8px 0;
  position: relative;
  padding-left: 24px;
}

.service-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #eb6929;
  font-weight: 600;
}

.service-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  background: transparent;
  border: 2px solid #eb6929;
  border-radius: 24px;
  color: #eb6929;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: auto;
}

.service-btn:hover {
  background: #eb6929;
  color: #ffffff;
  transform: translateY(-2px);
}

/* ==========================================================================
   SERVICE DETAIL SECTIONS
   ========================================================================== */

.service-detail-section {
  padding: 80px 0;
  background: #ffffff;
}

.service-detail-content {
  max-width: 1000px;
  margin: 0 auto;
}

.service-detail-header {
  text-align: center;
  margin-bottom: 60px;
}

.service-detail-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
}

.service-detail-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-detail-header h2 {
  font-family: "Adobe Caslon Pro", serif;
  font-size: 40px;
  font-weight: 700;
  color: #093855;
  margin: 0 0 24px 0;
}

.service-detail-header p {
  font-family: "Adrianna", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: #666666;
  margin: 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.service-process {
  margin-bottom: 60px;
}

.service-process h3 {
  font-family: "Inter", sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: #093855;
  margin: 0 0 24px 0;
}

.service-process p {
  font-family: "Adrianna", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: #666666;
  margin: 0 0 16px 0;
}

.alternatives-section {
  background: #f8f9fa;
  padding: 32px;
  border-radius: 12px;
  margin-top: 40px;
}

.alternatives-section h4 {
  font-family: "Inter", sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #093855;
  margin: 0 0 16px 0;
}

.info-box {
  background: #ffffff;
  border: 1px solid rgba(9, 56, 85, 0.1);
  border-radius: 12px;
  padding: 32px;
}

.info-box h4 {
  font-family: "Inter", sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #093855;
  margin: 0 0 20px 0;
}

.info-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-box li {
  font-family: "Adrianna", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: #666666;
  padding: 8px 0;
  border-bottom: 1px solid #e5e5e5;
}

.info-box li:last-child {
  border-bottom: none;
}

/* ==========================================================================
   RUTA INERCIA SECTION
   ========================================================================== */

.ruta-inercia-section {
  padding: 120px 0;

  position: relative;
  overflow: hidden;
}

.ruta-inercia-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -25%;
  width: 100%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 107, 53, 0.1) 0%,
    transparent 70%
  );
  animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.ruta-header {
  text-align: center;
  margin-bottom: 80px;
}

.ruta-header .section-title {
  color: #ffffff;
  margin-bottom: 24px;
}

.ruta-header .section-subtitle {
  color: rgba(255, 255, 255, 0.9);
}

.workflow-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.workflow-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  min-width: 120px;
}

.workflow-icon {
  width: 90px;
  height: 90px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.08) 100%
  );
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
}

.workflow-icon:hover {
  transform: translateY(-8px) scale(1.1);
  background: linear-gradient(
    135deg,
    rgba(255, 107, 53, 0.3) 0%,
    rgba(247, 147, 30, 0.2) 100%
  );
  border-color: rgba(255, 107, 53, 0.4);
  box-shadow: 0 12px 32px rgba(255, 107, 53, 0.2);
}

.workflow-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.workflow-item span {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
}

.workflow-arrow {
  font-size: 24px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 20px;
}

.process-timeline {
  max-width: 1000px;
  margin: 0 auto;
}

.timeline-stages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}

.timeline-stage {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 32px 24px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.timeline-stage h3 {
  font-family: "Inter", sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 16px 0;
}

.stage-services {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stage-service {
  font-family: "Adrianna", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}

/* ==========================================================================
   PROJECTS SHOWCASE SECTION
   ========================================================================== */

.proyectos-showcase {
  padding: 100px 0;
  background: #fafafa;
}

.proyectos-showcase .section-header {
  margin-bottom: 60px;
}

.highlight {
  color: #eb6929;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto 60px;
}

.project-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.project-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-year {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(9, 56, 85, 0.9);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 12px;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 600;
}

.project-content {
  padding: 24px;
}

.project-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.tag {
  background: rgba(235, 105, 41, 0.1);
  color: #eb6929;
  padding: 4px 8px;
  border-radius: 12px;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.project-card h3 {
  font-family: "Inter", sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #093855;
  margin: 0 0 16px 0;
}

.project-details {
  margin-bottom: 20px;
}

.project-details p {
  font-family: "Adrianna", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #666666;
  margin: 0 0 4px 0;
}

.project-link {
  color: #eb6929;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.project-link:hover {
  text-decoration: underline;
}

.section-footer {
  text-align: center;
}

.btn-secondary {
  background: transparent;
  color: #093855;
  border: 2px solid #093855;
}

.btn-secondary:hover {
  background: #093855;
  color: #ffffff;
}

/* ==========================================================================
   CTA CONTACTO SECTION
   ========================================================================== */

.cta-contacto-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #093855 0%, #1b4d6a 100%);
  position: relative;
  z-index: 1;
}

.cta-contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.cta-contacto-content {
  color: #ffffff;
}

.cta-contacto-title {
  font-family: "Adobe Caslon Pro", serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 24px 0;
}

.cta-contacto-subtitle {
  font-family: "Adrianna", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  margin: 0 0 20px 0;
  opacity: 0.9;
}

.cta-contacto-description {
  font-family: "Adrianna", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
  opacity: 0.8;
}

.cta-contacto-form {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 40px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-field {
  position: relative;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  font-family: "Adrianna", sans-serif;
  font-size: 16px;
  color: #093855;
  box-sizing: border-box;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(9, 56, 85, 0.6);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #eb6929;
  background: #ffffff;
}

.form-submit-btn {
  background: linear-gradient(90deg, #ff6b35 0%, #f7931e 100%);
  color: #ffffff;
  border: none;
  padding: 16px 32px;
  border-radius: 8px;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.form-submit-btn:hover {
  background: linear-gradient(90deg, #e5602f 0%, #e0851b 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* ==========================================================================
   FOOTER COMPATIBILITY
   ========================================================================== */

/* Ensure servicios main content doesn't overlap footer */
.servicios-main-page {
  position: relative;
  z-index: 1;
}

/* Ensure footer appears correctly after content */
#site-footer {
  clear: both;
  position: relative;
  z-index: 2;
}

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

/* Tablet and mobile responsive (max-width: 1024px) */
@media (max-width: 1024px) {
  /* Service content layout - switch to column for mobile/tablet */
  .servicios-content-related-section {
    flex-direction: column !important;
  }
  
  /* Related posts section - full width on mobile/tablet */
  .servicios-related-posts-right {
    width: auto !important;
  }
}

@media (max-width: 1200px) {
  .hero-content {
    max-width: 800px;
    padding: 60px 40px;
  }

  .hero-title {
    font-size: 48px;
  }

  .services-grid {
    gap: 24px;
  }

  .cta-contacto-grid {
    gap: 40px;
  }
}

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

  .hero-subtitle {
    font-size: 18px;
  }

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

  .section-title {
    font-size: 36px;
  }

  .section-subtitle {
    font-size: 18px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-card {
    padding: 32px 24px;
  }

  .workflow-icons {
    flex-direction: column;
    gap: 20px;
  }

  .workflow-arrow {
    display: none;
  }

  .timeline-stages {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cta-contacto-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cta-contacto-form {
    padding: 32px 24px;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: 40px 20px;
  }

  .hero-title {
    font-size: 32px;
  }

  .section-title {
    font-size: 28px;
  }

  .service-card {
    padding: 24px 20px;
  }

  .service-icon {
    width: 64px;
    height: 64px;
  }

  .workflow-icon {
    width: 64px;
    height: 64px;
  }

  .workflow-icon img {
    width: 32px;
    height: 32px;
  }

  .timeline-stage {
    padding: 24px 20px;
  }

  .cta-contacto-title {
    font-size: 32px;
  }
}
