html {
  scroll-behavior: smooth;
}

/* Estado inicial de las secciones */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

/* Estado cuando la sección es visible */
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

:root {
  --primary-color: #ea671b;      /* Naranja principal */
  --secondary-color: #2a9fdc;    /* Azul acento */
  --accent-color: #333333;       /* Gris oscuro */
  --text-color: #333333;         /* Texto principal */
  --light-text: #666666;         /* Texto secundario */
  --background: #ffffff;         /* Fondo principal */
  --section-bg: #f8f9fa;         /* Fondo de secciones alternas */
  --border-color: #e0e0e0;       /* Bordes */
  --card-bg: #ffffff;            /* Fondo de tarjetas */
  --highlight-bg: rgba(234, 103, 27, 0.05); /* Resaltado suave */
}

body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  color: var(--text-color);
  background-color: var(--background);
  line-height: 1.6;
}

header {
  background-color: var(--background);
  box-shadow: 0 2px 15px rgba(42, 159, 220, 0.1);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--primary-color);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 75px;
  margin-right: 0px;
}

.logo span {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  text-decoration: none;
  color: var(--accent-color);
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
  padding: 5px 0;
}

nav ul li a:hover {
  color: var(--primary-color);
}

nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -2px;
  left: 0;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: width 0.3s ease;
  border-radius: 2px;
}

nav ul li a:hover::after {
  width: 100%;
}

.hero {
  background: linear-gradient(135deg, rgba(42, 159, 220, 0.9), rgba(234, 103, 27, 0.8)), url('img/maquinado-hero.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 100px 20px;
  text-align: center;
  position: relative;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 30px;
  opacity: 0.95;
}

.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color), #f5853f);
  color: white;
  padding: 12px 30px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 12px rgba(234, 103, 27, 0.3);
}

.btn:hover {
  background: linear-gradient(135deg, var(--secondary-color), #4ab4f8);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(42, 159, 220, 0.4);
}

.section {
  padding: 80px 20px;
}

.section-bg {
  background-color: var(--section-bg);
  border-top: 1px solid rgba(234, 103, 27, 0.1);
  border-bottom: 1px solid rgba(234, 103, 27, 0.1);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  width: 70px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.section-title p {
  color: var(--light-text);
  max-width: 700px;
  margin: 0 auto;
}

.content-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 40px;
}

.content-row.reverse {
  flex-direction: row-reverse;
}

.content-img, .content-text {
  flex: 1;
  min-width: 300px;
  padding: 20px;
}

.content-img img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 5px 20px rgba(42, 159, 220, 0.15);
  border: 1px solid rgba(234, 103, 27, 0.1);
}

.content-text h3 {
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-bottom: 20px;
  border-left: 4px solid var(--primary-color);
  padding-left: 15px;
}

.content-text p {
  color: var(--text-color);
  margin-bottom: 20px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--card-bg);
  border: 2px solid rgba(42, 159, 220, 0.1);
  border-radius: 8px;
  padding: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(234, 103, 27, 0.15);
  border-color: rgba(234, 103, 27, 0.2);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.service-card:hover h3 {
  color: var(--secondary-color);
}

.service-card p {
  color: var(--light-text);
}

.mission-vision {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.mv-card {
  padding: 30px;
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(42, 159, 220, 0.1);
  border: 1px solid rgba(234, 103, 27, 0.1);
  transition: transform 0.3s ease;
}

.mv-card:hover {
  transform: translateY(-3px);
}

.mv-card h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 1.3rem;
  position: relative;
  padding-bottom: 10px;
}

.mv-card h3::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  bottom: 0;
  left: 0;
  border-radius: 2px;
}

footer {
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  color: white;
  padding: 60px 0 20px;
  border-top: 5px solid var(--primary-color);
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-col h3 {
  color: white;
  margin-bottom: 25px;
  font-size: 1.2rem;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  bottom: 0;
  left: 0;
  border-radius: 2px;
}

.footer-col p, .footer-col a {
  color: #cccccc;
  margin-bottom: 15px;
  display: block;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-col a:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  color: white;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-links a:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(234, 103, 27, 0.3);
}

.copyright {
  text-align: center;
  padding-top: 30px;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #aaaaaa;
  font-size: 0.9rem;
}

/* CARRUSEL DE FOTOS */
.portfolio-section {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid rgba(234, 103, 27, 0.1);
}

.carousel-container {
  position: relative;
  max-width: 1200px;
  margin: 40px auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(42, 159, 220, 0.15);
  background: linear-gradient(135deg, var(--section-bg), #ffffff);
  padding: 20px;
}

.carousel-wrapper {
  display: flex;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  width: 300%; /* 3 slides */
}

.carousel-slide {
  flex: 0 0 33.333%;
  display: flex;
  gap: 30px;
  padding: 20px;
  box-sizing: border-box;
}

.carousel-item {
  flex: 1;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  background: white;
}

.carousel-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(234, 103, 27, 0.2);
}

.carousel-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.carousel-item:hover img {
  transform: scale(1.05);
}

.carousel-caption {
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.carousel-item:hover .carousel-caption {
  transform: translateY(0);
}

.carousel-caption h4 {
  margin: 0 0 8px 0;
  font-size: 1.1rem;
  color: white;
  font-weight: 600;
}

.carousel-caption p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-top: 30px;
}

.carousel-prev,
.carousel-next {
  background: linear-gradient(135deg, var(--primary-color), #f5853f);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(234, 103, 27, 0.3);
}

.carousel-prev:hover,
.carousel-next:hover {
  background: linear-gradient(135deg, var(--secondary-color), #4ab4f8);
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(42, 159, 220, 0.4);
}

.carousel-prev:active,
.carousel-next:active {
  transform: scale(0.95);
}

.carousel-dots {
  display: flex;
  gap: 15px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(42, 159, 220, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background-color: var(--primary-color);
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(234, 103, 27, 0.5);
}

.dot:hover {
  background-color: var(--secondary-color);
  transform: scale(1.2);
}

.carousel-timer {
  width: 100%;
  height: 4px;
  background-color: rgba(234, 103, 27, 0.1);
  margin-top: 20px;
  border-radius: 2px;
  overflow: hidden;
}

.timer-bar {
  height: 100%;
  width: 33.333%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
  animation: timerAnimation 5s linear infinite;
}

@keyframes timerAnimation {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(300%);
  }
}

/* Responsive para carrusel */
@media (max-width: 992px) {
  .carousel-slide {
    gap: 20px;
    padding: 15px;
  }
  
  .carousel-item img {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .portfolio-section {
    margin-top: 60px;
  }
  
  .carousel-slide {
    flex-direction: column;
    gap: 15px;
  }
  
  .carousel-item {
    flex: none;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .carousel-item img {
    height: 220px;
  }
  
  .carousel-controls {
    gap: 20px;
  }
  
  .carousel-prev,
  .carousel-next {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .carousel-container {
    padding: 10px;
  }
  
  .carousel-item img {
    height: 180px;
  }
  
  .carousel-caption {
    padding: 15px;
  }
  
  .carousel-caption h4 {
    font-size: 1rem;
  }
  
  .carousel-caption p {
    font-size: 0.8rem;
  }
}

/* MODAL PARA IMÁGENES DEL CARRUSEL */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: var(--background);
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    animation: slideUp 0.4s ease;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--primary-color);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    display: flex;
    height: 100%;
}

.modal-image {
    flex: 1;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-height: 400px;
}

.modal-image img {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.modal-image img:hover {
    transform: scale(1.02);
}

.modal-info {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    max-height: 80vh;
}

.modal-info h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.8rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
}

.modal-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.detail-group {
    background: var(--section-bg);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.detail-group h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-group p {
    color: var(--text-color);
    margin: 0;
    line-height: 1.5;
}

.detail-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-group li {
    padding: 5px 0;
    color: var(--text-color);
    position: relative;
    padding-left: 20px;
}

.detail-group li:before {
    content: "✓";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.modal-description {
    background: linear-gradient(135deg, var(--section-bg), #ffffff);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid rgba(234, 103, 27, 0.1);
}

.modal-description h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-description p {
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
}

/* Indicador visual para imágenes clickeables */
.carousel-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-item:hover {
    box-shadow: 0 15px 30px rgba(234, 103, 27, 0.3) !important;
}

.carousel-item img {
    transition: transform 0.3s ease;
}

.carousel-item:hover img {
    transform: scale(1.05);
}

/* Responsive para modal */
@media (max-width: 900px) {
    .modal-body {
        flex-direction: column;
    }
    
    .modal-image {
        min-height: 300px;
        max-height: 40vh;
    }
    
    .modal-image img {
        max-height: 35vh;
    }
    
    .modal-info {
        max-height: 50vh;
    }
}

@media (max-width: 600px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-details {
        grid-template-columns: 1fr;
    }
    
    .modal-info h2 {
        font-size: 1.5rem;
    }
    
    .modal-close {
        top: 10px;
        right: 15px;
        font-size: 1.8rem;
    }
}

/* Animación de carga para imágenes */
.modal-image {
    position: relative;
}

.modal-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

.modal-image.loading::before {
    display: block;
}

.modal-image.loading img {
    opacity: 0.3;
}



@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Estilos para el logo como enlace */
.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
}

.logo-link:hover {
  transform: scale(1.05);
}

.logo-link:active {
  transform: scale(0.95);
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    padding: 20px;
  }

  nav ul {
    margin-top: 20px;
  }

  nav ul li {
    margin: 0 10px;
  }

  .hero {
    padding: 60px 20px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .section {
    padding: 60px 20px;
  }
}





/* Estilo para cuando se navega a una sección */
:target {
  scroll-margin-top: 100px;
  animation: highlight 1.5s ease;
}

@keyframes highlight {
  0% {
    background-color: rgba(234, 103, 27, 0.1);
  }
  100% {
    background-color: transparent;
  }
}

/* Efectos adicionales de color */
.service-card:hover .service-card h3 {
  color: var(--secondary-color);
}

.mv-card:nth-child(1) {
  border-top: 3px solid var(--primary-color);
}

.mv-card:nth-child(2) {
  border-top: 3px solid var(--secondary-color);
}

/* Mejoras en el hover de botones */
.btn:active {
  transform: translateY(0);
}

/* Gradientes sutiles en secciones */
.section-bg:nth-child(even) {
  background: linear-gradient(to bottom, transparent, rgba(42, 159, 220, 0.02));
}

.section-bg:nth-child(odd) {
  background: linear-gradient(to bottom, transparent, rgba(234, 103, 27, 0.02));
}


/* MODAL PARA SERVICIOS */
.service-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

.service-modal-content {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    border: 3px solid var(--primary-color);
}

.service-modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2.5rem;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 10;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(234, 103, 27, 0.3);
}

.service-modal-close:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(234, 103, 27, 0.5);
}

.service-modal-body {
    padding: 40px;
    max-height: 85vh;
    overflow-y: auto;
}

.service-modal-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(234, 103, 27, 0.2);
}

.service-modal-header h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.service-modal-header p {
    color: var(--secondary-color);
    font-size: 1.1rem;
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto;
}

.service-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.service-modal-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(42, 159, 220, 0.1);
    border: 1px solid rgba(234, 103, 27, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-modal-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.service-modal-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(234, 103, 27, 0.15);
}

.service-modal-section.full-width {
    grid-column: 1 / -1;
}

.section-title h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title .icon {
    font-size: 1.5rem;
}

.machines-list, .applications-list, .specs-list, .process-steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.machine-item, .application-item, .spec-item, .process-step {
    background: var(--section-bg);
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    transition: all 0.3s ease;
}

.machine-item:hover, .application-item:hover, .spec-item:hover, .process-step:hover {
    background: rgba(234, 103, 27, 0.05);
    transform: translateX(5px);
}

.machine-item h4, .application-item h4, .spec-item h4, .process-step h4 {
    color: var(--primary-color);
    margin: 0 0 8px 0;
    font-size: 1rem;
    font-weight: 600;
}

.machine-item p, .application-item p, .spec-item p, .process-step p {
    color: var(--text-color);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.machine-item .model {
    display: inline-block;
    background: rgba(42, 159, 220, 0.1);
    color: var(--secondary-color);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 5px;
}

.application-item .industry {
    display: inline-block;
    background: rgba(234, 103, 27, 0.1);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 5px;
}

.process-step {
    counter-increment: step-counter;
    padding-left: 50px;
    position: relative;
}

.process-step::before {
    content: counter(step-counter);
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.process-steps {
    counter-reset: step-counter;
}

.service-modal-footer {
    text-align: center;
    padding-top: 30px;
    border-top: 2px solid rgba(234, 103, 27, 0.2);
}

.contact-btn {
    background: linear-gradient(135deg, var(--primary-color), #f5853f);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(234, 103, 27, 0.4);
}

.contact-btn:hover {
    background: linear-gradient(135deg, var(--secondary-color), #4ab4f8);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(42, 159, 220, 0.4);
}

/* Estilos para hacer clickeables las tarjetas de servicio */
.service-card {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.service-card::after {
    content: 'Más info';
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(234, 103, 27, 0.1);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::after {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(234, 103, 27, 0.2) !important;
}

/* Responsive para modal de servicios */
@media (max-width: 768px) {
    .service-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .service-modal-body {
        padding: 25px;
    }
    
    .service-modal-header h2 {
        font-size: 1.8rem;
    }
    
    .service-modal-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-modal-section {
        padding: 20px;
    }
    
    .service-modal-close {
        top: 15px;
        right: 20px;
        font-size: 2rem;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .service-modal-body {
        padding: 20px;
    }
    
    .service-modal-header h2 {
        font-size: 1.5rem;
    }
    
    .section-title h3 {
        font-size: 1.1rem;
    }
    
    .process-step {
        padding-left: 40px;
    }
    
    .process-step::before {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }
}

@keyframes modalPulse {
    0% { transform: scale(0.95); opacity: 0; }
    70% { transform: scale(1.02); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.service-modal-content {
    animation: modalPulse 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}














/* --- SECCIÓN CORRECTA DE MEDIA QUERIES --- */

@media (max-width: 768px) {
  /* Ajuste del Header y Logo */
  .header-container {
    flex-direction: column;
    padding: 15px;
  }

  .logo img {
    height: 50px;
  }

  /* Menú de Navegación en vertical */
  nav ul {
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 15px;
    gap: 10px;
  }

  nav ul li {
    margin: 0;
  }

  /* Ajuste de Hero */
  .hero h1 {
    font-size: 1.8rem;
    padding: 0 10px;
  }

  .hero p {
    font-size: 1rem;
  }

  /* Columnas se apilan */
  .content-row, 
  .content-row.reverse {
    flex-direction: column !important;
  }

  .content-img, 
  .content-text {
    width: 100%;
    padding: 10px;
  }
  
  /* Tarjetas de servicios a una columna */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Carrusel en tablets/móviles grandes */
  .carousel-item img {
    height: 200px;
  }
}

@media (max-width: 600px) {
  /* Modales responsivos */
  .modal-content {
    width: 95%;
    margin: 10px auto;
  }
    
  .modal-body {
    flex-direction: column;
  }

  .modal-image img {
    max-height: 250px;
  }

  .modal-info h2 {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  /* Ajustes finos para teléfonos pequeños */
  .carousel-item img {
    height: 180px; 
  }
  
  .carousel-caption {
    transform: translateY(0);
    background: rgba(0, 0, 0, 0.6);
  }
  
  .carousel-controls {
    gap: 10px;
  }
}