/* ========================================
   CONSTRUCIV - Ingeniería Civil y Construcción
   Estilos CSS Puros
   ======================================== */

/* ---------- CSS Variables ---------- */
:root {
  --primary: #1e3a5f;
  --primary-light: #2d4a6f;
  --primary-dark: #152a47;
  --accent: #e67e22;
  --accent-light: #f39c12;
  --accent-dark: #d35400;
  --text-dark: #1a2530;
  --text-medium: #4a5568;
  --text-light: #718096;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
  --shadow-xl: 0 20px 40px rgba(0,0,0,0.2);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --transition: all 0.3s ease;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Typography ---------- */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
  text-wrap: balance;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-medium);
  max-width: 600px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--primary);
  color: white;
}

.btn-secondary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-white {
  background: white;
  color: var(--primary);
}

.btn-white:hover {
  background: var(--bg-light);
  transform: translateY(-2px);
}

/* ---------- Header & Navigation ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}

.header.transparent {
  background: transparent;
}

.header.scrolled {
  background: white;
  box-shadow: var(--shadow-md);
  padding: 12px 0;
}

/* Estado inicial (header transparente) */
.header.transparent .logo {
  filter: brightness(0) saturate(100%) invert(1);
}

/* Cuando haces scroll */
.header.scrolled .logo {
  filter: none;
}

/* =========================
   SOLO HOME
========================= */

/* Ocultar logo arriba */
.home-header.transparent .logo {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
}

/* Mostrar logo al hacer scroll */
.home-header.scrolled .logo {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Transici��n suave */
.home-header .logo {
  transition: all 0.3s ease;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg {
  width: 24px;
  height: 24px;
  color: white;
}

.logo-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.header.transparent .logo-text {
  color: white;
}

.header.scrolled .logo-text {
  color: var(--primary);
}

.nav-desktop {
  display: none;
}

.nav-desktop ul {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-desktop a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-medium);
  position: relative;
}

.header.transparent .nav-desktop a {
  color: rgba(255,255,255,0.9);
}

.header.scrolled .nav-desktop a {
  color: var(--text-medium);
}

.nav-desktop a:hover {
  color: var(--accent);
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

.nav-desktop a:hover::after {
  width: 100%;
}

.header-cta {
  display: none;
}

.mobile-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.header.transparent .mobile-toggle span {
  background: white;
}

.header.scrolled .mobile-toggle span {
  background: var(--primary);
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 320px;
  height: 100vh;
  background: white;
  box-shadow: var(--shadow-xl);
  z-index: 1001;
  transition: right 0.3s ease;
  padding: 80px 24px 24px;
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-medium);
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav a {
  display: block;
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark);
  border-radius: var(--radius-md);
}

.mobile-nav a:hover {
  background: var(--bg-light);
  color: var(--accent);
}

.mobile-nav .btn {
  width: 100%;
  margin-top: 16px;
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* ---------- Hero Section ---------- */
/* ---------- Hero Section ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* OVERLAY NUEVO */

.hero-overlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(7, 22, 45, 0.93) 15%,
      rgba(7, 22, 45, 0.78) 50%,
      rgba(7, 22, 45, 0.60) 100%
    );

  z-index: 2;
}

/* CONTENEDOR PRINCIPAL */

.hero-content {
  position: relative;
  z-index: 3;

  width: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 80px;

  padding: 140px 0 100px;
}

/* LADO IZQUIERDO */

.hero-left {
  flex: 1;
  max-width: 420px;
}

/* LADO DERECHO */

.hero-right {
  flex: 1;
  max-width: 700px;
}

/* LABEL */

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  background: rgba(230, 125, 34, 0.15);

  padding: 12px 22px;

  border-radius: 50px;

  font-size: 0.9rem;

  font-weight: 600;

  color: #f28c28;

  margin-bottom: 35px;

  backdrop-filter: blur(10px);

  border: 1px solid rgba(242,140,40,0.25);
}

/* LOGO */

.hero-logo img {
  width: 100%;
  max-width: 520px;

  filter:
    brightness(0) invert(1)
    drop-shadow(0 10px 30px rgba(0,0,0,0.45));

  margin-bottom: 30px;
}

/* TITULO */

.hero-title {
  font-size: clamp(2rem, 4vw, 2.8rem);

  color: white;

  line-height: 1.2;

  font-weight: 800;

  letter-spacing: -1px;

  text-transform: uppercase;

  max-width: 560px;
}

.hero-title span {
  color: var(--accent);
}

/* DESCRIPCION */

.hero-description {
  font-size: 1.15rem;

  color: #f28c28;

  margin-bottom: 35px;

  line-height: 1.8;

  font-weight: 500;

  max-width: 520px;
}

/* BOTONES */

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
}

.btn {
  transition: 0.3s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

/* INDICADORES */

.hero-indicators {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  gap: 12px;

  z-index: 3;
}

.hero-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;

  background: rgba(255,255,255,0.4);

  cursor: pointer;

  transition: var(--transition);
}

.hero-indicator.active {
  background: var(--accent);

  transform: scale(1.2);
}

/* RESPONSIVE */

@media (max-width: 992px) {

.hero-content {
  position: relative;
  z-index: 3;

  width: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 100px;

  padding: 140px 0 100px;
}

  .hero-left,
  .hero-right {
    max-width: 100%;
    
  }

  .hero-left {
  flex: 1.1;
}

.hero-right {
  flex: 0.9;
  display: flex;
  justify-content: center;
}

  .hero-logo img {
    max-width: 280px;
  }

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

}

/* ---------- Services Section ---------- */
.services {
  padding: 100px 0;
  background: white;
}

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

.services-header .section-subtitle {
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Single Column Layout for Services */
.services-single-column {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.service-card-horizontal {
  display: grid;
  grid-template-columns: 400px 1fr;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.service-card-horizontal:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.service-card-horizontal .service-card-slider {
  height: 280px;
}

.service-card-horizontal .service-card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
}

.service-card-horizontal .service-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
}

.service-card-horizontal .service-icon svg {
  width: 26px;
  height: 26px;
}

.service-card-horizontal .service-card-content h3 {
  font-size: 1.375rem;
  margin-bottom: 12px;
  color: var(--primary-dark);
}

.service-card-horizontal .service-card-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-medium);
  margin-bottom: 20px;
}

.service-card-horizontal .btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 12px 24px;
  font-size: 0.9375rem;
}

.service-card-horizontal .btn-accent svg {
  transition: transform 0.3s ease;
}

.service-card-horizontal .btn-accent:hover svg {
  transform: translateX(4px);
}

/* Responsive for horizontal cards */
@media (max-width: 900px) {
  .service-card-horizontal {
    grid-template-columns: 1fr;
  }
  
  .service-card-horizontal .service-card-slider {
    height: 220px;
  }
  
  .service-card-horizontal .service-card-content {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .services-single-column {
    gap: 24px;
  }
  
  .service-card-horizontal .service-card-slider {
    height: 200px;
  }
  
  .service-card-horizontal .service-card-content {
    padding: 20px;
  }
  
  .service-card-horizontal .service-card-content h3 {
    font-size: 1.125rem;
  }
  
  .service-card-horizontal .service-card-content p {
    font-size: 0.9375rem;
  }
}

.service-card {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid transparent;
}

.service-card:hover {
  background: white;
  border-color: var(--border-color);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Service Card Image Slider */
.service-card-slider {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.service-card-slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}

.service-card-slide {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
}

.service-card-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.service-card-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  padding: 0;
}

.service-card-dot.active {
  background: white;
  transform: scale(1.2);
}

.service-card-dot:hover {
  background: rgba(255,255,255,0.8);
}

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

.service-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  transform: scale(1.05);
}

.service-icon svg {
  width: 28px;
  height: 28px;
  color: white;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-medium);
  font-size: 0.9375rem;
  margin-bottom: 16px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
}

.service-link:hover {
  gap: 10px;
}

/* ---------- Process Section ---------- */
.process {
  padding: 100px 0;
  background: var(--bg-light);
}

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

.process-header .section-subtitle {
  margin: 0 auto;
}

.process-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.process-timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--primary));
}

.process-step {
  position: relative;
  padding-left: 60px;
  padding-bottom: 48px;
}

.process-step:last-child {
  padding-bottom: 0;
}

.process-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 42px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 0 0 4px var(--bg-light);
}

.process-content {
  background: white;
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.process-content h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.process-content p {
  color: var(--text-medium);
  font-size: 0.9375rem;
}

/* ---------- Team Section ---------- */
.team {
  padding: 100px 0;
  background: white;
}

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

.team-header .section-subtitle {
  margin: 0 auto;
}

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

.team-card {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.team-image {
  height: 280px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-avatar {
  width: 120px;
  height: 120px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-avatar svg {
  width: 60px;
  height: 60px;
  color: white;
}

.team-info {
  padding: 24px;
  text-align: center;
}

.team-info h3 {
  font-size: 1.125rem;
  margin-bottom: 4px;
}

.team-info span {
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 500;
}

.team-info p {
  font-size: 0.875rem;
  color: var(--text-medium);
  margin-top: 12px;
}

/* ---------- Clients Slider ---------- */
.clients {
  padding: 80px 0;
  background: var(--bg-light);
  overflow: hidden;
}

.clients-header {
  text-align: center;
  margin-bottom: 48px;
}

.clients-slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.clients-slider {
  display: flex;
  width: max-content;
  gap: 48px;
  animation: none;
}

/*.clients-slider {
  display: flex;
  gap: 48px;
  animation: slide 30s linear infinite;
}*/

.clients-slider:hover {
  animation-play-state: paused;
}

/*@keyframes slide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}*/

@keyframes slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

.client-logo {
  flex-shrink: 0;
  width: 160px;
  height: 80px;
  background: white;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.client-logo:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.client-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: var(--transition);
}

.client-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* ---------- CTA Section ---------- */
.cta {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}

.cta-background {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.cta-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30,58,95,0.92) 0%, rgba(30,58,95,0.85) 100%);
  z-index: 2;
}

.cta-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content .section-label {
  color: var(--accent);
}

.cta-content .section-title {
  color: white;
  margin-bottom: 20px;
}

.cta-content p {
  color: rgba(255,255,255,0.85);
  font-size: 1.125rem;
  margin-bottom: 32px;
}

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

.cta-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  margin-top: 48px;
}

.cta-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.9);
  font-size: 0.9375rem;
}

.cta-feature svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

/* ---------- CTA Cards Section (Services Page) ---------- */
.cta-cards-section {
  background: var(--primary-dark);
  padding: 60px 0;
}

.cta-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cta-image-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/5;
  display: block;
  text-decoration: none;
}

.cta-card-image {
  position: absolute;
  inset: 0;
}

.cta-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.cta-image-card:hover .cta-card-image img {
  transform: scale(1.05);
}

.cta-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.1) 100%);
  z-index: 1;
}

.cta-card-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  z-index: 2;
}

.cta-card-text h3 {
  color: white;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.cta-services-card {
  background: #e8eef3;
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.cta-services-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cta-services-icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
  flex: 1;
}

.cta-service-icon {
  width: 100%;
  aspect-ratio: 1;
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  cursor: pointer;
}

.cta-service-icon:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.cta-service-icon svg {
  width: 32px;
  height: 32px;
  color: var(--primary-dark);
}

.cta-whatsapp-icon svg {
  color: #25D366;
}

.cta-services-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-dark);
  color: var(--primary-dark);
}

.btn-outline:hover {
  background: var(--primary-dark);
  color: white;
}

/* CTA Cards Responsive */
@media (max-width: 1024px) {
  .cta-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cta-services-card {
    grid-column: span 2;
  }
  
  .cta-services-icons {
    grid-template-columns: repeat(6, 1fr);
  }
  
  .cta-services-buttons {
    flex-direction: row;
  }
  
  .cta-services-buttons .btn {
    flex: 1;
  }
}

@media (max-width: 768px) {
  .cta-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .cta-services-card {
    grid-column: span 1;
  }
  
  .cta-image-card {
    aspect-ratio: 16/9;
  }
  
  .cta-services-icons {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .cta-services-buttons {
    flex-direction: column;
  }
  
  .cta-card-text h3 {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .cta-cards-section {
    padding: 40px 0;
  }
  
  .cta-services-card {
    padding: 24px;
  }
  
  .cta-service-icon svg {
    width: 24px;
    height: 24px;
  }
}

/* ---------- Services Timeline Slider ---------- */
.services-timeline {
  padding: 60px 0 80px;
  background: var(--bg-light);
  overflow: hidden;
}

.timeline-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Timeline Navigation */
.timeline-nav {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 50px;
  padding: 0 60px;
}

.timeline-line {
  position: absolute;
  top: 50%;
  left: 80px;
  right: 80px;
  height: 3px;
  background: #d1d5db;
  transform: translateY(-50%);
  border-radius: 2px;
}

.timeline-progress {
  position: absolute;
  top: 50%;
  left: 80px;
  height: 3px;
  background: var(--primary);
  transform: translateY(-50%);
  border-radius: 2px;
  width: 0%;
  transition: width 0.4s ease;
}

.timeline-dots {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 900px;
  position: relative;
  z-index: 2;
}

.timeline-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  border: 3px solid #d1d5db;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.timeline-dot span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: #9ca3af;
  transition: color 0.3s ease;
}

.timeline-dot:hover {
  border-color: var(--primary);
  transform: scale(1.1);
}

.timeline-dot:hover span {
  color: var(--primary);
}

.timeline-dot.active {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(228, 117, 45, 0.4);
}

.timeline-dot.active span {
  color: white;
}

.timeline-dot.passed {
  background: var(--primary);
  border-color: var(--primary);
}

.timeline-dot.passed span {
  color: white;
}

/* Timeline Arrows */
.timeline-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.timeline-arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.timeline-arrow:hover svg {
  stroke: white;
}

.timeline-arrow svg {
  width: 24px;
  height: 24px;
  stroke: var(--primary);
  transition: stroke 0.3s ease;
}

.timeline-arrow-left {
  left: 20px;
}

.timeline-arrow-right {
  right: 20px;
}

.timeline-arrow:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  border-color: #d1d5db;
}

.timeline-arrow:disabled svg {
  stroke: #9ca3af;
}

.timeline-arrow:disabled:hover {
  background: white;
  border-color: #d1d5db;
}

.timeline-arrow:disabled:hover svg {
  stroke: #9ca3af;
}

/* Cards Wrapper */
.timeline-cards-wrapper {
  overflow: hidden;
  margin: 0 60px;
}

.timeline-cards {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 10px 0;
}

/* Individual Card */
.timeline-card {
  flex: 0 0 calc(33.333% - 16px);
  min-width: 320px;
  max-width: 400px;
}

.timeline-card-inner {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.timeline-card-inner:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.timeline-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.timeline-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.timeline-card-inner:hover .timeline-card-image img {
  transform: scale(1.05);
}

.timeline-card-number {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  box-shadow: 0 4px 12px rgba(228, 117, 45, 0.4);
}

.timeline-card-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.timeline-card-content h3 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 16px;
  line-height: 1.3;
}

.timeline-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline-tag {
  display: inline-flex;
  padding: 8px 14px;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 0.8125rem;
  color: var(--text-primary);
  line-height: 1.3;
  transition: var(--transition);
}

.timeline-tag:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* Timeline Responsive */
@media (max-width: 1200px) {
  .timeline-card {
    flex: 0 0 calc(50% - 12px);
    min-width: 300px;
  }
  
  .timeline-nav {
    padding: 0 40px;
  }
  
  .timeline-line {
    left: 60px;
    right: 60px;
  }
  
  .timeline-cards-wrapper {
    margin: 0 40px;
  }
}

@media (max-width: 900px) {
  .timeline-dots {
    max-width: 100%;
  }
  
  .timeline-dot {
    width: 38px;
    height: 38px;
  }
  
  .timeline-dot span {
    font-size: 0.875rem;
  }
  
  .timeline-arrow {
    width: 42px;
    height: 42px;
  }
  
  .timeline-arrow svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 768px) {
  .services-timeline {
    padding: 40px 0 60px;
    background: var(--bg-light);
  }
  
  .timeline-container {
    padding: 0 16px;
    position: relative;
  }
  
  .timeline-nav {
    padding: 0 10px;
    margin-bottom: 30px;
  }
  
  .timeline-line {
    left: 30px;
    right: 30px;
    height: 2px;
  }
  
  .timeline-progress {
    left: 30px;
    height: 2px;
  }
  
  .timeline-dot {
    width: 32px;
    height: 32px;
    border-width: 2px;
    background: white;
  }
  
  .timeline-dot span {
    font-size: 0.75rem;
  }
  
  .timeline-arrow {
    width: 44px;
    height: 44px;
    top: 50%;
    transform: translateY(-50%);
    position: absolute;
    border: 2px solid var(--primary);
    background: white;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  }
  
  .timeline-arrow svg {
    stroke: var(--primary);
  }
  
  .timeline-arrow-left {
    left: 20px;
  }
  
  .timeline-arrow-right {
    right: 20px;
  }
  
  .timeline-cards-wrapper {
    margin: 0;
    padding-bottom: 0;
    overflow: hidden;
  }
  
  .timeline-cards {
    display: flex;
    gap: 16px;
    padding: 10px 16px;
    /* overflow-x: auto; */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  
  .timeline-cards::-webkit-scrollbar {
    display: none;
  }
  
  .timeline-card {
    flex: 0 0 85%;
    min-width: 280px;
    max-width: 340px;
    scroll-snap-align: center;
  }
  
  .timeline-card-inner {
    background: white;
  }
}

@media (max-width: 480px) {
  .timeline-nav {
    padding: 0 10px;
  }
  
  .timeline-line {
    left: 20px;
    right: 20px;
  }
  
  .timeline-dot {
    width: 28px;
    height: 28px;
  }
  
  .timeline-dot span {
    font-size: 0.6875rem;
  }
  
  .timeline-card-image {
    height: 180px;
  }
  
  .timeline-card-content {
    padding: 20px;
  }
  
  .timeline-card-content h3 {
    font-size: 1rem;
  }
  
  .timeline-tag {
    padding: 6px 12px;
    font-size: 0.75rem;
  }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--primary-dark);
  color: white;
  padding-top: 80px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9375rem;
  margin-top: 16px;
  margin-bottom: 24px;
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--accent);
}

.footer-social svg {
  width: 20px;
  height: 20px;
  color: white;
}

.footer-img {
  display: flex;
  gap: 10px;
}

.footer-img img {
  width: 50%;
  height: auto;
  object-fit: cover;
}

.footer-links h4 {
  font-size: 1rem;
  color: white;
  margin-bottom: 20px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9375rem;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-contact-item svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-item p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9375rem;
}

.footer-contact-item a {
  color: rgba(255,255,255,0.7);
}

.footer-contact-item a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
}

.footer-certifications {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.footer-cert {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.1);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
}

/* ---------- Internal Pages ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 160px 0 80px;
  text-align: center;
}

.page-hero .section-title {
  color: white;
}

.page-hero .section-subtitle {
  color: rgba(255,255,255,0.8);
  margin: 0 auto;
}

/* Services Page */
.services-page {
  padding: 80px 0;
}

.services-page-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.service-detail-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.service-detail-card .service-card-slider {
  height: 250px;
}

.service-detail-card .service-card-content {
  padding: 32px;
}

.service-detail-card .service-icon {
  width: 72px;
  height: 72px;
}

.service-detail-card h3 {
  font-size: 1.375rem;
  margin-bottom: 16px;
}

.service-detail-card p {
  color: var(--text-medium);
  margin-bottom: 20px;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--text-medium);
}

.service-features svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

/* About Page */
.about-section {
  padding: 80px 0;
}

.about-section:nth-child(even) {
  background: var(--bg-light);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.about-image {
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
      width: 100% !important;
    height: 500px!important;
}

.about-image img{
  border-radius: 15px;
}

.about-image svg {
  width: 80px;
  height: 80px;
  color: white;
  opacity: 0.5;
}

.about-content h2 {
  margin-bottom: 20px;
}

.about-content p {
  color: var(--text-medium);
  margin-bottom: 16px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.stat-item {
  text-align: center;
  padding: 24px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 4px;
}

.stat-item p {
  font-size: 0.875rem;
  color: var(--text-medium);
  margin: 0;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 32px;
}

.value-card {
  background: white;
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.value-card h4 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.value-card svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.value-card p {
  color: var(--text-medium);
  font-size: 0.9375rem;
  margin: 0;
}

/* Contact Page */
.contact-section {
  padding: 80px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-card {
  background: white;
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 16px;
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.contact-card h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.contact-card p, .contact-card a {
  color: var(--text-medium);
  font-size: 0.9375rem;
}

.contact-card a:hover {
  color: var(--accent);
}

.contact-form-container {
  background: white;
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.contact-form h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.contact-form > p {
  color: var(--text-medium);
  margin-bottom: 32px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dark);
}

.form-group label span {
  color: var(--accent);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--bg-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: white;
  box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form .btn {
  width: 100%;
  margin-top: 8px;
}

.map-container {
  margin-top: 48px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 300px;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-placeholder {
  text-align: center;
  color: var(--text-medium);
}

.map-placeholder svg {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
}

/* ---------- Responsive Styles ---------- */

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {

  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 40px;
    padding: 140px 20px 80px;
  }

  .hero-left,
  .hero-right {
    width: 100%;
    max-width: 100%;
  }

  .hero-right {
    order: 2;
  }

  .hero-left {
    order: 1;
  }

  .hero-title {
    max-width: 100%;
    font-size: 2.2rem;
    line-height: 1.15;
  }

  .hero-description {
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.6;
  }

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

  .hero-logo img {
    max-width: 260px;
    margin: 0 auto 30px;
  }

}


@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

   .whatsapp-button {
      width: 50px;
      height: 50px;
    }

    .whatsapp-text {
      font-size: 12px;
      padding: 8px 12px;
    }

}

@media (min-width: 640px) {
  .services-grid {
    display: grid;
    grid-template-columns: repeat(1fr);
    gap: 24px;
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .services-page-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .nav-desktop {
    display: block;
  }
  
  .header-cta {
    display: block;
  }
  
  .mobile-toggle {
    display: none;
  }
  
  .hero-content {
    padding: 180px 0 120px;
  }
  
  .process-timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .process-step {
    width: 50%;
    padding-left: 0;
    padding-right: 40px;
  }
  
  .process-step:nth-child(even) {
    margin-left: 50%;
    padding-left: 40px;
    padding-right: 0;
  }
  
  .process-number {
    left: auto;
    right: -21px;
  }
  
  .process-step:nth-child(even) .process-number {
    right: auto;
    left: -21px;
  }
  
  .footer-main {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-image {
    height: 400px;
  }
  
  .contact-grid {
    grid-template-columns: 1fr 1.5fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-main {
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  }
  
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
  
  .services-page-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Utilities ---------- */
.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 1rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.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;
}


  /* CONTENEDOR */
  .whatsapp-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    z-index: 999;
  }

  /* TEXTO */
  .whatsapp-text {
    background: #25D366;
    color: #fff;
    padding: 10px 14px;
    border-radius: 20px;
    margin-right: 10px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
  }

  .whatsapp-text.show {
    opacity: 1;
    transform: translateX(0);
  }

  /* BOTÓN */
  .whatsapp-button {
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    cursor: pointer;
    animation: pulse 2s infinite;
    transition: transform 0.3s ease;
  }

  .whatsapp-button:hover {
    transform: scale(1.1);
  }

  /* ANIMACIÓN */
  @keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(37,211,102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102, 0); }
  }

  /* SVG */
  .whatsapp-button svg {
    width: 30px;
    height: 30px;
    fill: white;
  }

  
