/* ========================================
   STYLESERVICES.CSS COMPLETO - ALTIVAWEB
   CSS para todas las páginas de servicios
   Compatible con Bootstrap
   ======================================== */

/* ==========================
   RESET BÁSICO
========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-image: url('../img/fondoo.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
  margin: 0;
  font-family: "Poppins", sans-serif;
  color: #2d2f33;
  line-height: 1.7;
  padding-top: 80px;
}

/* ==========================
   HERO SECTION MEJORADO
========================== */
.hero-service {
  background: linear-gradient(135deg, rgba(248, 249, 250, 0.95) 0%, rgba(233, 236, 239, 0.95) 100%);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
}

.hero-service::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 193, 7, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-20px, 20px); }
}

.hero-service .container {
  position: relative;
  z-index: 1;
}

/* ==========================
   BADGES Y ETIQUETAS
========================== */
.badge {
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.badge:hover {
  transform: scale(1.05);
}

/* ==========================
   CARDS CON EFECTOS
========================== */
.card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(220, 223, 227, 0.5);
  backdrop-filter: blur(10px);
  overflow: hidden;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #FFC107, #FFB300);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 1);
  border-color: #FFC107;
}

.card h3,
.card h4 {
  color: #2d2f33;
  font-weight: 700;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.card:hover h3,
.card:hover h4 {
  color: #FFC107;
}

.card p {
  color: #6c757d;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================
   FEATURE ICONS
========================== */
.feature-icon {
  width: 70px;
  height: 70px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.4s ease;
  position: relative;
}

.feature-icon::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: inherit;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.4s ease;
}

.card:hover .feature-icon {
  transform: scale(1.15) rotate(10deg);
}

.card:hover .feature-icon::after {
  opacity: 0.3;
  transform: scale(1.3);
}

/* ==========================
   HOVER LIFT EFFECT
========================== */
.hover-lift {
  transition: all 0.3s ease;
  cursor: pointer;
}

.hover-lift:hover {
  transform: translateY(-10px);
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* ==========================
   BUTTONS MEJORADOS
========================== */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: none;
  cursor: pointer;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  z-index: -1;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-warning {
  background: linear-gradient(135deg, #FFC107 0%, #FFB300 100%);
  color: #000;
}

.btn-warning:hover {
  background: linear-gradient(135deg, #FFB300 0%, #FFA000 100%);
  color: #000;
}

.btn-primary {
  background: linear-gradient(135deg, #5b6b79 0%, #4a5563 100%);
  color: #fff;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4a5563 0%, #3a4551 100%);
}

.btn-outline-secondary {
  border: 2px solid #6c757d;
  color: #6c757d;
  background: transparent;
}

.btn-outline-secondary:hover {
  background: #6c757d;
  color: #fff;
  border-color: #6c757d;
}

.btn-light {
  background: #fff;
  color: #2d2f33;
}

.btn-light:hover {
  background: #f8f9fa;
}

.btn-outline-light {
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
}

.btn-outline-light:hover {
  background: #fff;
  color: #2d2f33;
}

/* ==========================
   STEP NUMBERS (PROCESO)
========================== */
.step-number {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.4s ease;
  position: relative;
  font-weight: 700;
}

.step-number::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: inherit;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.4s ease;
}

.step-number:hover {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.step-number:hover::after {
  opacity: 0.3;
  transform: scale(1.4);
}

/* Línea conectora entre pasos (solo en desktop) */
@media (min-width: 768px) {
  .step-number::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, currentColor 50%, transparent);
    opacity: 0.2;
    z-index: -1;
  }

  .col-md-4:last-child .step-number::before {
    display: none;
  }
}

/* ==========================
   MAIN CONTENT
========================== */
main {
  padding: 100px 20px;
  max-width: 900px;
  margin: auto;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

main h2 {
  font-size: 2rem;
  color: #2d2f33;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

main h3 {
  font-size: 1.5rem;
  color: #444;
  margin-bottom: 1rem;
  font-weight: 600;
}

main p {
  color: #6c757d;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.8;
}

main ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 2rem;
}

main ul li {
  background: rgba(241, 243, 246, 0.8);
  margin-bottom: 12px;
  padding: 15px 20px;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 50px;
}

main ul li::before {
  content: '\f26b';
  font-family: 'bootstrap-icons';
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #FFC107;
  font-size: 1.3rem;
  font-weight: bold;
}

main ul li:hover {
  background: #e4e7eb;
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ==========================
   IMÁGENES
========================== */
img {
  transition: all 0.4s ease;
  border-radius: 1rem;
}

img:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ==========================
   BACKGROUNDS CON GRADIENTE
========================== */
.bg-gradient {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.bg-warning.bg-gradient {
  background: linear-gradient(135deg, #FFC107 0%, #FFB300 100%) !important;
}

/* ==========================
   SECCIONES
========================== */
section {
  scroll-margin-top: 100px;
  position: relative;
}

.bg-light {
  background: rgba(248, 249, 250, 0.8) !important;
  backdrop-filter: blur(10px);
}

.bg-white {
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(10px);
}

/* ==========================
   ANIMACIONES
========================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Aplicar animaciones con AOS */
[data-aos="fade-up"] {
  animation: fadeInUp 0.8s ease;
}

[data-aos="fade-left"] {
  animation: fadeInLeft 0.8s ease;
}

[data-aos="fade-right"] {
  animation: fadeInRight 0.8s ease;
}

/* ==========================
   ICONOS BOOTSTRAP
========================== */
.bi {
  transition: all 0.3s ease;
  vertical-align: middle;
}

.card:hover .bi,
.btn:hover .bi {
  transform: scale(1.15);
}

/* ==========================
   SHADOWS PERSONALIZADAS
========================== */
.shadow-sm {
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15) !important;
}

.shadow-lg {
  box-shadow: 0 1.5rem 3.5rem rgba(0, 0, 0, 0.2) !important;
}

/* ==========================
   TYPOGRAPHY
========================== */
h1, h2, h3, h4, h5, h6 {
  color: #2d2f33;
  font-weight: 700;
}

.display-4 {
  font-weight: 800;
}

.display-5 {
  font-weight: 700;
}

.display-6 {
  font-weight: 700;
}

.lead {
  font-weight: 400;
  line-height: 1.8;
}

strong {
  font-weight: 700;
  color: #FFC107;
}

.text-muted {
  color: #6c757d !important;
}

/* ==========================
   DIVIDERS
========================== */
.divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, #dee2e6, transparent);
  margin: 3rem 0;
}

hr {
  opacity: 0.1;
}

/* ==========================
   FOOTER
========================== */
footer {
  background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
  color: #bbb;
  text-align: center;
  padding: 2rem 5%;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #FFC107, transparent);
}

footer a {
  color: #FFC107;
  text-decoration: none;
  transition: all 0.3s ease;
}

footer a:hover {
  color: #FFB300;
  text-decoration: underline;
}

/* ==========================
   RESPONSIVE
========================== */
@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }

  .hero-service {
    padding: 3rem 0;
  }

  .display-4 {
    font-size: 2rem;
  }

  .display-5 {
    font-size: 1.75rem;
  }

  .display-6 {
    font-size: 1.5rem;
  }

  .lead {
    font-size: 1rem;
  }

  .btn-lg {
    padding: 0.625rem 1.5rem;
    font-size: 1rem;
  }

  .step-number {
    width: 60px !important;
    height: 60px !important;
    font-size: 1.5rem !important;
  }

  .feature-icon {
    width: 60px;
    height: 60px;
  }

  .card {
    padding: 1.5rem;
  }

  main {
    padding: 60px 15px;
    border-radius: 0;
  }

  main ul li {
    padding-left: 45px;
  }

  main ul li::before {
    left: 12px;
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
  }

  .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
  }
}

/* ==========================
   ACCESIBILIDAD
========================== */
.btn:focus,
a:focus,
button:focus {
  outline: 3px solid #FFC107;
  outline-offset: 3px;
}

/* ==========================
   UTILITIES ADICIONALES
========================== */
.position-relative {
  position: relative;
}

.overflow-hidden {
  overflow: hidden;
}

.rounded-3 {
  border-radius: 0.75rem !important;
}

.rounded-4 {
  border-radius: 1rem !important;
}

/* ==========================
   LOADING STATE (opcional)
========================== */
.btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  right: 1rem;
  margin-top: -8px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================
   PRINT STYLES
========================== */
@media print {
  body {
    background: white;
    padding-top: 0;
  }

  .btn,
  .badge,
  footer,
  header {
    display: none !important;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}