/* ======== ESTILOS GENERALES ======== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #ffffff;
  margin: 0;
  padding: 0;
  color: #1a1a1a;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ======== HEADER MEJORADO ======== */
header {
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
  color: #1a1a1a;
  padding: 30px 40px;
  text-align: left;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
  position: relative;
  border-bottom: 1px solid rgba(0, 120, 255, 0.08);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
}

.logo {
  width: 280px;
  height: auto;
  margin-right: 20px;
  filter: drop-shadow(0 4px 12px rgba(0, 120, 255, 0.15));
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.header-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

header h1 {
  font-size: 3em;
  margin: 0;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.5px;
}

.tagline {
  font-size: 1.1em;
  color: #5a6c7d;
  font-weight: 400;
  margin: 0;
}

.header-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.mensaje-promocional {
  font-size: 1.05em;
  margin: 8px 0;
  padding: 16px 20px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(0, 120, 255, 0.12);
  max-width: 650px;
  text-align: left;
  color: #2c3e50;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mensaje-promocional .icon {
  font-size: 1.3em;
  flex-shrink: 0;
}

.mensaje-promocional:hover {
  border-color: rgba(0, 120, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0, 120, 255, 0.08);
  transform: translateY(-2px);
}

.mensajes-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Información de contacto */
.info-contacto {
  background: linear-gradient(135deg, #0078ff 0%, #0056d6 100%);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 120, 255, 0.25);
  padding: 24px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: auto;
  height: auto;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.info-contacto:hover {
  box-shadow: 0 8px 32px rgba(0, 120, 255, 0.35);
  transform: translateY(-4px);
}

.contacto-content {
  width: 100%;
}

.info-contacto h3 {
  color: #ffffff;
  font-size: 1.2em;
  margin-bottom: 12px;
  font-weight: 600;
}

.info-contacto p {
  margin: 6px 0;
  font-size: 0.95em;
  color: #ffffff;
}

.numeros-whatsapp {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}

.numero-link {
  font-size: 1.2em;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.numero-link:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.horario, .ubicacion {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9em;
  margin: 4px 0;
}

/* ======== SECCIÓN SERVICIOS ======== */
.servicios-section {
  padding: 60px 20px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  background: transparent;
  box-sizing: border-box;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.servicios-title {
  font-size: 2.5em;
  color: #1a1a1a;
  margin-bottom: 12px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.servicios-subtitle {
  font-size: 1.15em;
  color: #5a6c7d;
  font-weight: 400;
  margin: 0;
}

/* ======== GRID DE SERVICIOS ======== */
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
  width: 100%;
  box-sizing: border-box;
  align-items: start;
}

/* ======== TARJETA Y SLIDER CENTRALIZADO ======== */
.card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  padding: 0;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  box-sizing: border-box;
  border: 1px solid rgba(0, 120, 255, 0.08);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 120, 255, 0.15);
  border-color: rgba(0, 120, 255, 0.2);
}

.card-text {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 20px 20px 0 0;
  padding: 28px 20px 16px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid rgba(0, 120, 255, 0.08);
  gap: 8px;
}

.card-icon {
  font-size: 2.5em;
  margin-bottom: 8px;
}

.card-text h2 {
  color: #1a1a1a;
  font-size: 1.35em;
  font-weight: 600;
  margin: 0 0 8px 0;
  letter-spacing: -0.3px;
}

.card-text p {
  color: #5a6c7d;
  font-size: 0.95em;
  margin: 0;
  line-height: 1.5;
}

.card h2 {
  color: #1a1a1a;
  margin-bottom: 12px;
  font-size: 1.3em;
  font-weight: 600;
}

.card-image {
  background: #fafbfc;
  border-radius: 0 0 20px 20px;
  padding: 0;
  height: auto;
  min-height: 220px;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  overflow: hidden;
}

.card-image .slider {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  position: relative;
  box-sizing: border-box;
}

.card-image .slider img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fafbfc;
  display: none;
  cursor: pointer;
  transition: transform 0.3s ease;
  box-sizing: border-box;
}

.card-image .slider img.active {
  display: block;
}

.card-image .slider img:hover {
  transform: scale(1.03);
}

/* ======== SLIDER ======== */
.slider {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  background: #fafbfc;
  min-height: 0;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}

.slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  cursor: pointer;
  border-radius: 16px;
  transition: transform 0.3s ease;
}

.slider img.active {
  display: block;
}

.slider img:hover {
  transform: scale(1.03);
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  color: #0078ff;
  padding: 12px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.3s ease, transform 0.3s ease;
  user-select: none;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 120, 255, 0.15);
}

.arrow:hover {
  background: #ffffff;
  color: #0056d6;
  transform: translateY(-50%) scale(1.1);
}

.arrow.left { 
  left: 12px; 
}

.arrow.right { 
  right: 12px; 
}

.slider:hover .arrow {
  opacity: 1;
}

/* ======== MODAL ======== */
.modal {
  display: none;
  position: fixed;
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;
  background: rgba(255, 255, 255, 0.98);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(20px);
}

.modal img {
  max-width: 90%;
  max-height: 90%;
  transition: transform 0.2s ease;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 120, 255, 0.1);
}

.modal .close {
  cursor: pointer;
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 40px;
  color: #1a1a1a;
  transition: color 0.3s ease, transform 0.3s ease;
  font-weight: 300;
}

.modal .close:hover {
  color: #0078ff;
  transform: rotate(90deg);
}

/* ======== WHATSAPP FLOTANTE ======== */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.whatsapp-btn-float {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #1ebe57 100%);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
  transition: all 0.3s ease;
  position: relative;
}

.whatsapp-btn-float img {
  width: 36px;
  height: 36px;
}

.whatsapp-btn-float:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn-float::before {
  content: attr(data-tooltip);
  position: absolute;
  right: 75px;
  background: #1a1a1a;
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 10px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s ease;
  font-size: 13px;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  font-weight: 500;
}

.whatsapp-btn-float:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* ======== FOOTER ======== */
footer {
  margin-top: 80px;
  padding: 40px 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
  color: #1a1a1a;
  text-align: center;
  font-size: 0.95em;
  border-top: 1px solid rgba(0, 120, 255, 0.08);
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.04);
}

.footer-info {
  margin-bottom: 20px;
}

.footer-info h3 {
  color: #1a1a1a;
  font-weight: 600;
  margin-bottom: 10px;
}

.footer-info p {
  color: #2c3e50;
  margin: 6px 0;
}

.footer-creditos {
  color: #5a6c7d;
  font-size: 0.9em;
}

.footer-creditos p {
  margin: 4px 0;
}

/* ======== RESPONSIVO ======== */
@media (max-width: 768px) {
  header {
    padding: 20px 20px;
  }
  
  .header-top {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    align-items: center;
  }

  .header-text {
    align-items: center;
  }
  
  .logo {
    margin-right: 0;
    margin-bottom: 5px;
    width: 140px;
  }
  
  header h1 {
    font-size: 2em;
  }

  .tagline {
    font-size: 1em;
  }
  
  .header-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .mensaje-promocional {
    font-size: 0.95em;
    max-width: 100%;
    flex-direction: column;
    text-align: center;
  }

  .mensaje-promocional .icon {
    font-size: 1.5em;
  }
  
  .info-contacto {
    max-width: 100%;
    margin-top: 15px;
  }
  
  .servicios-section {
    padding: 40px 15px;
  }

  .servicios-title {
    font-size: 2em;
  }

  .servicios-subtitle {
    font-size: 1em;
  }
  
  .servicios-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .whatsapp-float {
    right: 16px;
    bottom: 16px;
  }
  
  .whatsapp-btn-float {
    width: 56px;
    height: 56px;
  }

  .whatsapp-btn-float img {
    width: 32px;
    height: 32px;
  }
  
  .slider {
    height: 180px;
  }

  footer {
    padding: 30px 15px;
    margin-top: 60px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .ventajas-section {
    padding: 50px 15px;
  }

  .ventajas-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ======== ANIMACIONES ======== */
.card {
  animation: fadeInUp 0.7s ease-out;
}

.card:nth-child(1) { animation-delay: 0s; }
.card:nth-child(2) { animation-delay: 0.15s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.45s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ======== FONDO BLANCO SOLO PARA MARCAS ======== */
.slider.marcas {
  background: #ffffff !important;
  border: 1px solid rgba(0, 120, 255, 0.08);
}

.slider.marcas img {
  background: #ffffff !important;
}

/* ======== SECCIÓN TRABAJOS REALIZADOS ======== */
.trabajos-section {
  padding: 80px 20px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  background: transparent;
  box-sizing: border-box;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-size: 2.5em;
  color: #1a1a1a;
  margin-bottom: 15px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 1.15em;
  color: #5a6c7d;
  font-weight: 400;
  margin: 0;
}

.trabajos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  width: 100%;
  box-sizing: border-box;
}

.trabajo-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 120, 255, 0.08);
}

.trabajo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 120, 255, 0.15);
  border-color: rgba(0, 120, 255, 0.2);
}

.trabajo-image {
  width: 100%;
  height: auto;
  min-height: 320px;
  aspect-ratio: 16/10;
  background: #fafbfc;
  position: relative;
  overflow: hidden;
}

.trabajo-image .slider {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafbfc;
  position: relative;
}

.trabajo-image .slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.trabajo-image .slider img.active {
  display: block;
}

.trabajo-image .slider img:hover {
  transform: scale(1.03);
}

.trabajo-info {
  padding: 24px;
  text-align: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-top: 1px solid rgba(0, 120, 255, 0.08);
}

.trabajo-info h3 {
  color: #1a1a1a;
  font-size: 1.5em;
  margin: 0 0 10px 0;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.trabajo-info p {
  color: #5a6c7d;
  font-size: 1em;
  margin: 0;
  line-height: 1.6;
}

/* Responsive para trabajos */
@media (max-width: 768px) {
  .trabajos-section {
    padding: 50px 15px;
  }

  .section-title {
    font-size: 2em;
  }

  .section-subtitle {
    font-size: 1em;
  }

  .trabajos-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .trabajo-image {
    min-height: 280px;
  }
}

/* Animación para los trabajos */
.trabajo-card {
  animation: fadeInUp 0.7s ease-out;
}

/* Detalles adicionales para estilo futurista */
.detalle-servicio {
  font-weight: 400;
  color: #5a6c7d;
  font-size: 0.92em;
  line-height: 1.5;
}

/* ======== SECCIÓN VENTAJAS ======== */
.ventajas-section {
  padding: 80px 20px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 24px;
  box-sizing: border-box;
}

.ventajas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  width: 100%;
  box-sizing: border-box;
}

.ventaja-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 120, 255, 0.08);
  transition: all 0.3s ease;
}

.ventaja-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 120, 255, 0.15);
  border-color: rgba(0, 120, 255, 0.2);
}

.ventaja-icon {
  font-size: 3em;
  margin-bottom: 16px;
}

.ventaja-card h3 {
  color: #1a1a1a;
  font-size: 1.3em;
  margin: 0 0 12px 0;
  font-weight: 600;
}

.ventaja-card p {
  color: #5a6c7d;
  font-size: 0.95em;
  margin: 0;
  line-height: 1.6;
}

/* ======== FOOTER MEJORADO ======== */
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(0, 120, 255, 0.08);
}

.footer-section h3 {
  color: #1a1a1a;
  font-size: 1.3em;
  margin-bottom: 12px;
  font-weight: 600;
}

.footer-section h4 {
  color: #0078ff;
  font-size: 1.1em;
  margin-bottom: 10px;
  font-weight: 600;
}

.footer-section p {
  color: #5a6c7d;
  font-size: 0.95em;
  margin: 6px 0;
  line-height: 1.6;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  color: #5a6c7d;
  font-size: 0.9em;
  margin: 4px 0;
}