/* =============================
   VARIABLES Y RESETEO
============================= */
:root {
  --primary-color: #1e3c72;
  --secondary-color: #2a5298;
  --accent-color: #ff6b35;
  --light-gray: #f8f9fa;
  --dark-gray: #333;
  --text-muted: #666;
  --white: #fff;
  --success-color: #28a745;
  --error-color: #dc3545;
  --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--dark-gray);
  background-color: var(--white);
}

/* UTILIDADES */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a,
button {
  transition: all 0.3s ease;
}

a:focus,
button:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* =============================
   HEADER / NAV
============================= */
.header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-color);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-color);
}

/* CTA */
.cta-button {
  background: var(--accent-color);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background: #e55a2b;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.cta-outline {
  background: transparent;
  border: 2px solid var(--white);
}

.cta-button.big {
  font-size: 1.2rem;
  padding: 1rem 2rem;
}

/* Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* =============================
   HERO SERVICIOS
============================= */
.hero-servicios {
  background: linear-gradient(rgba(30, 60, 114, 0.8), rgba(42, 82, 152, 0.8)), 
              url('assets/servicios-hero.jpg') no-repeat center/cover;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 0 2rem;
  margin-top: 80px;
}

.hero-servicios .hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
}

.hero-servicios .hero-content .subtitle {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease 0.3s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =============================
   SERVICIOS PRINCIPALES
============================= */
.servicios-principales {
  padding: 5rem 0;
  background: var(--white);
}

.section-title {
  font-size: 2.5rem;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.servicio-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
}

.servicio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.servicio-card.destacado {
  border-color: var(--accent-color);
  background: linear-gradient(135deg, #fff 0%, #fff8f5 100%);
}

.servicio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.icon-circle {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--white);
}

.icon-circle.urgencia {
  background: linear-gradient(135deg, var(--error-color), #c82333);
}

.badge-popular {
  background: var(--accent-color);
  color: var(--white);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
}

.badge-urgencia {
  background: var(--error-color);
  color: var(--white);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
}

.servicio-card h3 {
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.servicio-desc {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.caracteristicas {
  list-style: none;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.caracteristicas li {
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--dark-gray);
}

.caracteristicas i {
  color: var(--success-color);
  font-size: 0.9rem;
}

.btn-servicio {
  background: var(--primary-color);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  margin-top: auto;
}

.btn-servicio:hover {
  background: #0d2043;
  transform: translateY(-2px);
}

/* =============================
   PROCESO DE TRABAJO
============================= */
.proceso-trabajo {
  padding: 5rem 0;
  background: var(--light-gray);
}

.proceso-timeline {
  max-width: 1000px;
  margin: 3rem auto 0;
  position: relative;
}

.proceso-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary-color);
  transform: translateX(-50%);
}

.paso-item {
  display: flex;
  align-items: center;
  margin-bottom: 3rem;
  position: relative;
}

.paso-item:nth-child(even) {
  flex-direction: row-reverse;
}

.paso-numero {
  width: 60px;
  height: 60px;
  background: var(--accent-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  position: relative;
  z-index: 2;
  margin: 0 2rem;
  flex-shrink: 0;
}

.paso-content {
  flex: 1;
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  max-width: 400px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.paso-content h3 {
  color: var(--primary-color);
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.paso-content p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* =============================
   MARCAS Y CERTIFICACIONES
============================= */
.marcas-certificaciones {
  padding: 4rem 0;
  background: var(--white);
}

.marcas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  align-items: center;
  margin-top: 3rem;
}

.marca-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--light-gray);
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.marca-item:hover {
  transform: translateY(-3px);
}

.marca-item img {
  max-width: 120px;
  max-height: 60px;
  width: auto;
  height: auto;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.marca-item:hover img {
  filter: grayscale(0%);
}

/* =============================
   GARANTÍAS
============================= */
.garantias {
  padding: 4rem 0;
  background: var(--light-gray);
}

.garantias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.garantia-item {
  text-align: center;
  padding: 2rem 1rem;
}

.garantia-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
  transition: transform 0.3s ease;
}

.garantia-item:hover .garantia-icon {
  transform: scale(1.1);
}

.garantia-item h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.garantia-item p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* =============================
   CTA SERVICIOS
============================= */
.cta-servicios {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  text-align: center;
}

.cta-servicios h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.cta-servicios p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* =============================
   FOOTER
============================= */
.footer {
  background: var(--primary-color);
  color: var(--white);
  font-size: 1.2rem;
  padding: 2rem 1rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.footer-col p {
  line-height: 1.6;
}

.footer-logo {
  max-width: 160px;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid #333;
  text-align: center;
  padding-top: 1rem;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #aaa;
}

/* =============================
   ANIMACIONES
============================= */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Clases para animaciones */
.animate-left {
  animation: slideInLeft 0.8s ease forwards;
}

.animate-right {
  animation: slideInRight 0.8s ease forwards;
}

.animate-scale {
  animation: fadeInScale 0.6s ease forwards;
}

/* =============================
   RESPONSIVE
============================= */
@media (max-width: 1024px) {
  .proceso-timeline::before {
    left: 2rem;
  }
  
  .paso-item {
    flex-direction: row !important;
    margin-left: 2rem;
  }
  
  .paso-numero {
    margin: 0 2rem 0 0;
    position: absolute;
    left: -4rem;
  }
  
  .paso-content {
    max-width: none;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--primary-color);
    flex-direction: column;
    padding: 1rem 0;
  }

  .nav-links.active {
    display: flex;
  }

  .hero-servicios .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-servicios .hero-content .subtitle {
    font-size: 1.1rem;
  }

  .servicios-grid {
    grid-template-columns: 1fr;
  }

  .marcas-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-button.big {
    width: 100%;
    max-width: 300px;
  }

  .proceso-timeline::before {
    display: none;
  }
  
  .paso-item {
    margin-left: 0;
    flex-direction: column;
    text-align: center;
  }
  
  .paso-numero {
    position: static;
    margin: 0 0 1rem 0;
  }
}

@media (max-width: 480px) {
  .nav {
    padding: 0 1rem;
  }

  .container {
    padding: 0 1rem;
  }

  .hero-servicios .hero-content h1 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .servicio-card {
    padding: 2rem 1.5rem;
  }

  .cta-servicios h2 {
    font-size: 1.8rem;
  }

  .marcas-grid {
    grid-template-columns: 1fr;
  }
}