html {
    scroll-behavior: smooth;
}

* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: Arial, sans-serif;
            background: #f5f7fa;
            color: #1d2733;
        }

        header {
            height: 110px;
            background: #111111;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 8%;
            border-bottom: 1px solid #C6A15B;
        }

        .logo {
            font-size: 30px;
            font-weight: bold;
            color: #075da8;
            letter-spacing: 2px;
        }
            .logo img {
                width: 250px;
                height: auto;
                display: block;
            }

            .logo {
                background: #ffffff;
                padding: 8px 14px;
                border-radius: 4px;
            }
        nav a {
            text-decoration: none;
            color: #ffffff;
            margin-left: 30px;
            font-weight: 600;
        }

        nav a:hover {
            color: #C6A15B;
        }

        .hero {
            min-height: calc(100vh - 80px);
            display: flex;
            align-items: center;
            padding: 70px 8%;
             justify-content: space-between;
                gap: 40px;
                background:
                linear-gradient(
                    90deg,
                    rgba(0, 0, 0, 0.90) 0%,
                    rgba(0, 0, 0, 0.72) 45%,
                    rgba(0, 0, 0, 0.30) 100%
                ),
                   url("../img/hero-industrial.jpg");
        }

        .hero-content {
           width: 52%;
           flex-shrink: 0;
            max-width: none;
            color: white;
        }
        .hero-image {
             flex: 1;
            display: flex;
            justify-content: center;
            align-items: center;
        }

.hero-image img {
    width: 600px;
    max-width: none;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}
        .hero-small {
            color: #C6A15B;
            font-weight: bold;
            letter-spacing: 3px;
            margin-bottom: 20px;
        }

        h1 {
            font-size: 56px;
            line-height: 1.05;
            margin-bottom: 25px;
        }

        .hero p {
            font-size: 20px;
            line-height: 1.7;
            color: #d9e2ea;
            margin-bottom: 35px;
        }

        .buttons {
            display: flex;
            gap: 15px;
        }

        .btn {
            display: inline-block;
            padding: 16px 28px;
            border-radius: 5px;
            text-decoration: none;
            font-weight: bold;
        }

        .btn-primary {
            background: #C6A15B;
            color: white;
        }

        .btn-secondary {
            border: 2px solid #C6A15B;
            color: #C6A15B;
            background: rgba(0, 0, 0, 0.35);
        }

        @media (max-width: 850px) {
            nav {
                display: none;
            }

            h1 {
                font-size: 42px;
            }

            .hero p {
                font-size: 18px;
            }

            .buttons {
                flex-direction: column;
                align-items: flex-start;
            }
        }/* ================================
            SECCIÓN SERVICIOS
         ================================ */

         .services {
             padding: 100px 8%;
             background:
                 linear-gradient(
                     rgba(245, 247, 250, 0.88),
                     rgba(245, 247, 250, 0.88)
                 ),
                 url("../img/services-bg.png");

             background-size: cover;
             background-position: center;
             background-repeat: no-repeat;
         }

         .section-header {
             max-width: 750px;
             margin-bottom: 55px;
         }

         .section-header span {
             display: block;
             color: #d4a94f;
             font-size: 15px;
             font-weight: 700;
             letter-spacing: 3px;
             margin-bottom: 12px;
         }

         .section-header h2 {
             color: #102a3c;
             font-size: 42px;
             line-height: 1.15;
             margin-bottom: 18px;
         }

         .section-header p {
             color: #586875;
             font-size: 18px;
             line-height: 1.7;
         }

         .services-grid {
             display: grid;
             grid-template-columns: repeat(4, 1fr);
             gap: 24px;
         }

         .service-card {
             background: #ffffff;
             padding: 35px 30px;
             border-radius: 6px;
            border-top: 4px solid #d4a94f;
             box-shadow: 0 8px 25px rgba(16, 42, 60, 0.08);
             transition: transform 0.25s ease,
                         box-shadow 0.25s ease,
                         background 0.25s ease;
         }

         .service-card:hover {
             transform: translateY(-6px);
             background: #111111;
             box-shadow: 0 14px 35px rgba(0, 0, 0, 0.20);
         }
        .service-card:hover h3 {
             color: #ffffff;
        }

        .service-card:hover p {
            color: #d8d8d8;
        }

        .service-card:hover .service-number {
             color: #d4a94f;
        }
         .service-number {
             color: #d4a94f;
             font-size: 14px;
             font-weight: 700;
             margin-bottom: 25px;
         }

         .service-card h3 {
             color: #102a3c;
             font-size: 21px;
             margin-bottom: 15px;
         }

         .service-card p {
             color: #64727d;
             font-size: 15px;
             line-height: 1.65;
         }

         /* TABLET */
         @media (max-width: 1000px) {
             .services-grid {
                 grid-template-columns: repeat(2, 1fr);
             }
         }

         /* TELÉFONO */
         @media (max-width: 600px) {
             .services {
                 padding: 70px 6%;
             }

             .section-header h2 {
                 font-size: 34px;
             }

             .services-grid {
                 grid-template-columns: 1fr;
             }
         }/* =========================================
             SECCIÓN SOLUCIONES
          ========================================= */

          .solutions {
              padding: 100px 8%;
              background: #111111;
          }

          .solutions .section-header {
              max-width: 750px;
              margin-bottom: 55px;
          }

          .solutions .section-label {
              display: block;
              color: #d4a94f;
              font-size: 16px;
              font-weight: 700;
              letter-spacing: 4px;
              margin-bottom: 18px;
          }

          .solutions .section-header h2 {
              color: #ffffff;
              font-size: 48px;
              line-height: 1.15;
              margin-bottom: 22px;
          }

          .solutions .section-header p {
              color: #b8c6d1;
              font-size: 20px;
              line-height: 1.7;
          }

          .solutions-grid {
              display: grid;
              grid-template-columns: repeat(2, 1fr);
              gap: 24px;
          }

          .solution-card {
              display: flex;
              gap: 25px;
              padding: 35px;
               background: #181818;
               border: 1px solid rgba(212, 169, 79, 0.25);
              border-radius: 4px;
              transition: transform 0.3s ease, border-color 0.3s ease;
          }

          .solution-card:hover {
              transform: translateY(-5px);
              border-color: #1597e5;
          }
.solution-icon {
    flex-shrink: 0;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #d4a94f;
    color: #111111;
    font-size: 16px;
    font-weight: 700;
    border: 1px solid #e1bd6c;
}

.solution-content h3 {
    color: #ffffff;
    font-size: 25px;
    margin-bottom: 14px;
}

.solution-content p {
    color: #b8c6d1;
    font-size: 17px;
    line-height: 1.65;
    margin-bottom: 20px;
}

.solution-detail {
    color: #d4a94f;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.4px;
}


          /* RESPONSIVE SOLUCIONES */

          @media (max-width: 850px) {

              .solutions {
                  padding: 70px 6%;
              }

              .solutions-grid {
                  grid-template-columns: 1fr;
              }

              .solutions .section-header h2 {
                  font-size: 38px;
              }

              .solution-card {
                  padding: 28px;
              }
          }/* =====================================
              SECCIÓN PROYECTOS
           ===================================== */

           .projects {
               padding: 100px 8%;

               background:
                   linear-gradient(
                       rgba(255, 255, 255, 0.86),
                       rgba(255, 255, 255, 0.86)
                   ),
                   url("../img/projects-bg.png");

               background-size: 125% auto;
               background-position: left center;
               background-repeat: no-repeat;

               animation: projectsBackgroundMove 12s ease-in-out infinite alternate;
           }

           @keyframes projectsBackgroundMove {
               0% {
                   background-size: 125% auto;
                   background-position: left center;
               }

               100% {
                   background-size: 140% auto;
                   background-position: right center;
               }
           }

           .projects .section-header {
               max-width: 800px;
               margin-bottom: 55px;
           }

           .projects .section-header > span {
               display: block;
               color: #128bd2;
               font-size: 18px;
               font-weight: 700;
               letter-spacing: 4px;
               margin-bottom: 15px;
           }

           .projects .section-header h2 {
               color: #102f43;
               font-size: 46px;
               line-height: 1.15;
               margin-bottom: 20px;
           }

           .projects .section-header p {
               color: #5c6d79;
               font-size: 20px;
               line-height: 1.7;
           }


           /* CONTENEDOR DE PROYECTOS */

          /* =========================================
             CONTENEDOR DE PROYECTOS
             ========================================= */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 24px;
}
          /* TARJETAS */

          .project-card {
              position: relative;
              background: rgba(245, 247, 250, 0.94);
              border: 1px solid rgba(212, 169, 79, 0.28);
              padding: 38px;
              min-height: 330px;
              transition:
                  transform 0.3s ease,
                  box-shadow 0.3s ease,
                  border-color 0.3s ease;
          }

          .project-card:hover {
              transform: translateY(-6px);
              border-color: #d4a94f;
              box-shadow: 0 16px 35px rgba(16, 42, 60, 0.16);
          }

/* ANIMACIÓN DE ENTRADA DE PROYECTOS */

.project-card {
    opacity: 0;
    transform: translateY(45px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.project-card.show {
    opacity: 1;
    transform: translateY(0);
}

.project-card:nth-child(1) {
    transition-delay: 0s;
}

.project-card:nth-child(2) {
    transition-delay: 0.15s;
}

.project-card:nth-child(3) {
    transition-delay: 0.30s;
}

.project-card:nth-child(4) {
    transition-delay: 0.45s;
}
               /* COLORES POR CATEGORÍA DE PROYECTO */

                               /* 01 - AUTOMATIZACIÓN */
                               .project-card:nth-child(1) .project-number {
                                   background: #1296D4;
                               }

                               .project-card:nth-child(1) .project-category {
                                   color: #1296D4;
                               }

                               .project-card:nth-child(1):hover {
                                   border-color: #1296D4;
                               }


                               /* 02 - INSPECCIÓN INDUSTRIAL */
                               .project-card:nth-child(2) .project-number {
                                   background: #D4A94F;
                               }

                               .project-card:nth-child(2) .project-category {
                                   color: #B78B31;
                               }

                               .project-card:nth-child(2):hover {
                                   border-color: #D4A94F;
                               }


                               /* 03 - TRAZABILIDAD */
                               .project-card:nth-child(3) .project-number {
                                   background: #169C8C;
                               }

                               .project-card:nth-child(3) .project-category {
                                   color: #169C8C;
                               }

                               .project-card:nth-child(3):hover {
                                   border-color: #169C8C;
                               }


                               /* 04 - MODERNIZACIÓN INDUSTRIAL */
                               .project-card:nth-child(4) .project-number {
                                   background: #163B57;
                               }

                               .project-card:nth-child(4) .project-category {
                                   color: #163B57;
                               }

                               .project-card:nth-child(4):hover {
                                   border-color: #163B57;
                               }
          @media (max-width: 1000px) {

              .projects-grid {
                  grid-template-columns: 1fr;
              }

              .project-card {
                  min-height: auto;
              }
          }


           /* TARJETAS */

           .project-card {
               position: relative;
               background: #f5f7fa;
               border: 1px solid #dce5eb;
               padding: 28px 32px;
               min-height: 250px;
               transition:
                   transform 0.3s ease,
                   box-shadow 0.3s ease,
                   border-color 0.3s ease;
           }

           .project-card:hover {
               transform: translateY(-7px);
               border-color: #128bd2;
               box-shadow: 0 18px 40px rgba(16, 47, 67, 0.12);
           }


           /* NÚMERO */

           .project-number {
               width: 62px;
               height: 62px;
               background: #128bd2;
               color: white;

               display: flex;
               align-items: center;
               justify-content: center;

               font-size: 18px;
               font-weight: 700;

               margin-bottom: 30px;
           }


           /* TIPO DE PROYECTO */

           .project-type {
               display: block;
               color: #128bd2;
               font-size: 13px;
               font-weight: 700;
               letter-spacing: 2px;
               margin-bottom: 14px;
           }


           /* TÍTULO */

           .project-content h3 {
               color: #102f43;
               font-size: 25px;
               line-height: 1.25;
               margin-bottom: 18px;
           }


           /* DESCRIPCIÓN */

           .project-content p {
               color: #5c6d79;
               font-size: 17px;
               line-height: 1.65;
               margin-bottom: 28px;
           }


           /* ETIQUETAS */

           .project-tags {
               display: flex;
               flex-wrap: wrap;
               gap: 8px;
           }

           .project-tags span {
               background: #e5f3fc;
               color: #087cc0;
               padding: 7px 11px;

               font-size: 13px;
               font-weight: 700;

               border-radius: 3px;
           }
/* COLORES DE ETIQUETAS POR CATEGORÍA */

/* 01 - AUTOMATIZACIÓN */
.project-card:nth-child(1) .project-tags span {
    background: rgba(18, 150, 212, 0.12);
    color: #087CC0;
}

/* 02 - INSPECCIÓN INDUSTRIAL */
.project-card:nth-child(2) .project-tags span {
    background: rgba(212, 169, 79, 0.16);
    color: #9A711F;
}

/* 03 - TRAZABILIDAD */
.project-card:nth-child(3) .project-tags span {
    background: rgba(22, 156, 140, 0.13);
    color: #117D71;
}

/* 04 - MODERNIZACIÓN INDUSTRIAL */
.project-card:nth-child(4) .project-tags span {
    background: rgba(22, 59, 87, 0.11);
    color: #163B57;
}

           /* RESPONSIVE */

           @media (max-width: 1000px) {

               .projects-grid {
                   grid-template-columns: 1fr;
               }

               .project-card {
                   min-height: auto;
               }
           }

           @media (max-width: 600px) {

               .projects {
                   padding: 70px 7%;
               }

               .projects .section-header h2 {
                   font-size: 36px;
               }

               .projects .section-header p {
                   font-size: 17px;
               }

               .project-card {
                   padding: 28px;
               }
           }/* =====================================
               SECCIÓN NOSOTROS
            ===================================== */

            .about {
                padding: 110px 8%;
                background: #0d2d40;
                color: white;
            }

            .about-grid {
                max-width: 1400px;
                margin: 0 auto;

                display: grid;
                grid-template-columns: 0.9fr 1.1fr;
                gap: 100px;
                align-items: start;
            }


            /* COLUMNA IZQUIERDA */

            .about-label {
                display: block;

                color: #28a9f0;
                font-size: 18px;
                font-weight: 700;
                letter-spacing: 4px;

                margin-bottom: 25px;
            }

            .about-left h2 {
                font-size: 48px;
                line-height: 1.15;
                font-weight: 700;

                max-width: 520px;
                margin: 0;
            }

            .about-line {
                width: 90px;
                height: 5px;

                background: linear-gradient(
                    90deg,
                    #159be3 0%,
                    #159be3 55%,
                    #D4A94F 55%,
                    #D4A94F 100%
                );

                margin-top: 35px;
            }


            /* COLUMNA DERECHA */

            .about-right {
                padding-top: 5px;
            }

            .about-right h3 {
                color: #D4A94F;

                font-size: 20px;
                letter-spacing: 4px;

                margin-bottom: 25px;
            }

            .about-right p {
                color: #cbd8df;

                font-size: 17px;
                line-height: 1.75;

                margin-bottom: 20px;
            }

            .about-right .about-main {
                color: white;

                font-size: 22px;
                line-height: 1.6;

                margin-bottom: 25px;
            }


            /* VALORES */

            .about-values {
                display: grid;
                grid-template-columns: repeat(3, 1fr);

                margin-top: 45px;

                border-top: 1px solid rgba(255, 255, 255, 0.18);
                border-bottom: 1px solid rgba(255, 255, 255, 0.18);
            }

            .about-value {
                padding: 25px 20px;
                display: flex;
                flex-direction: column;
                gap: 8px;

                border-right: 1px solid rgba(255, 255, 255, 0.18);
            }

            .about-value:first-child {
                padding-left: 0;
            }

            .about-value:last-child {
                border-right: none;
            }

            .about-value strong {
                color: #28a9f0;

                font-size: 14px;
                letter-spacing: 2px;
            }
            .about-value:nth-child(2) strong {
                color: #D4A94F;
            }
            .about-value:nth-child(3) strong {
                color: #169C8C;
            }.about-value span {
                color: white;

                font-size: 18px;
                font-weight: 700;
            }
/* EFECTO INTERACTIVO - VALORES NOSOTROS */

.about-value {
    position: relative;
    transition:
        background 0.3s ease,
        transform 0.3s ease;
}

.about-value:hover {
    background: rgba(40, 169, 240, 0.08);
    transform: translateY(-5px);
}

.about-value strong {
    transition: transform 0.3s ease;
}

.about-value:hover strong {
    transform: translateX(5px);
}
/* ANIMACIÓN DE ENTRADA - NOSOTROS */

.about-left {
    opacity: 0;
    transform: translateX(-60px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.about-right {
    opacity: 0;
    transform: translateX(60px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.about-left.show,
.about-right.show {
    opacity: 1;
    transform: translateX(0);
}
            /* RESPONSIVE */

            @media (max-width: 900px) {

                .about-grid {
                    grid-template-columns: 1fr;
                    gap: 55px;
                }

                .about-left h2 {
                    font-size: 40px;
                }
            }

            @media (max-width: 600px) {

                .about {
                    padding: 75px 7%;
                }

                .about-left h2 {
                    font-size: 34px;
                }

                .about-right .about-main {
                    font-size: 19px;
                }

                .about-values {
                    grid-template-columns: 1fr;
                }

                .about-value {
                    border-right: none;
                    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
                    padding-left: 0;
                }

                .about-value:last-child {
                    border-bottom: none;
                }
            }/* =========================================
                SECCIÓN CONTACTO
             ========================================= */

            .contact {
                padding: 110px 8%;
                background: #f5f7fa;
                position: relative;
                overflow: hidden;
            }
.contact::before {
    content: "";
    position: absolute;

    inset: 0;

    background-image: url("../img/sidmai-logo-transparent.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 90% auto;

    opacity: 0.12;

    pointer-events: none;
    z-index: 0;
}
             .contact-grid {
                 max-width: 1400px;
                 margin: 0 auto;
                 display: grid;
                 grid-template-columns: 0.9fr 1.1fr;
                 gap: 100px;
                 align-items: start;
             }


             /* COLUMNA IZQUIERDA */

             .contact-label {
                 display: block;
                  color: #D4A94F;
                 font-size: 18px;
                 font-weight: 700;
                 letter-spacing: 5px;
                 margin-bottom: 30px;
             }

             .contact-info h2 {
                 color: #0d2d40;
                 font-size: 52px;
                 line-height: 1.08;
                 margin: 0 0 30px;
                 max-width: 600px;
             }

             .contact-intro {
                 color: #586b78;
                 font-size: 20px;
                 line-height: 1.7;
                 max-width: 600px;
                 margin-bottom: 55px;
             }


             /* DATOS DE CONTACTO */

             .contact-details {
                 border-top: 1px solid #d5dde3;
             }

             .contact-detail {
                 padding: 22px 0;
                 border-bottom: 1px solid #d5dde3;
             }

             .contact-detail span {
                 display: block;
                 color: #138bd2;
                 font-size: 13px;
                 font-weight: 700;
                 letter-spacing: 2px;
                 margin-bottom: 7px;
             }

             .contact-detail strong {
                 color: #0d2d40;
                 font-size: 18px;
             }


             /* FORMULARIO */

             .contact-form-wrapper {
                 background: rgba(255, 255, 255, 0.97);
                 padding: 50px;

                 border: 2px solid #0d2d40;
                 border-top: 5px solid #D4A94F;

                 box-shadow:
                     0 18px 45px rgba(13, 45, 64, 0.18),
                     0 0 0 1px rgba(212, 169, 79, 0.20);

                 position: relative;
                 z-index: 2;
             }

             .contact-form-wrapper h3 {
                 margin: 0 0 35px;
                 color: #0d2d40;
                 font-size: 30px;
             }

             .contact-form {
                 display: flex;
                 flex-direction: column;
                 gap: 24px;
             }

             .form-row {
                 display: grid;
                 grid-template-columns: 1fr 1fr;
                 gap: 22px;
             }

             .form-group {
                 display: flex;
                 flex-direction: column;
                 gap: 9px;
             }

             .form-group label {
                 color: #0d2d40;
                 font-size: 14px;
                 font-weight: 700;
             }

             .form-group input,
             .form-group select,
             .form-group textarea {
                 width: 100%;
                 box-sizing: border-box;
                 padding: 15px 16px;

                 border: 2px solid #0d2d40;
                 background: rgba(255, 255, 255, 0.96);

                 color: #0d2d40;
                 font-family: inherit;
                 font-size: 16px;

                 outline: none;
                 transition: border-color 0.25s ease, box-shadow 0.25s ease;
             }

             .form-group textarea {
                 resize: vertical;
                 min-height: 150px;
             }

             .form-group input:focus,
             .form-group select:focus,
             .form-group textarea:focus {
                 border-color: #D4A94F;
                 background: white;
                 box-shadow: 0 0 0 3px rgba(212, 169, 79, 0.18);
             }


             /* BOTÓN */

             .contact-button {
                 margin-top: 8px;
                 padding: 18px 28px;
                 border: 2px solid #d4a94f;
                 background: #0d2d40;
                 color: #ffffff;
                 font-size: 15px;
                 font-weight: 700;
                 letter-spacing: 1px;
                 cursor: pointer;
                 transition: 0.25s;
             }
             .contact-button:hover {
                 background: #d4a94f;
                 color: #0d2d40;
                 border-color: #d4a94f;
                 box-shadow: 0 6px 18px rgba(212, 169, 79, 0.30);
             }

/* MAYOR CONTRASTE SOBRE MARCA DE AGUA */

.contact-info h2 {
    color: #0d2d40;
    font-weight: 800;
}

.contact-info > p {
    color: #344b5a;
    font-weight: 500;
}

.contact-detail {
    border-color: #b8c5ce;
}

.contact-detail small {
    color: #168fd1;
    font-weight: 800;
}

.contact-detail strong {
    color: #0d2d40;
    font-weight: 800;
}
/* TABLA DE INFORMACIÓN - ESTILO SIDMAI */

.contact-detail {
    border-top: 2px solid #D4A94F;
    padding: 18px 0;
}

.contact-detail:last-child {
    border-bottom: 2px solid #D4A94F;
}

.contact-detail small {
    color: #D4A94F;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.contact-detail strong {
    color: #111111;
    font-weight: 800;
}
      .contact-detail small {
          color: #D4A94F !important;
          font-weight: 800;
          letter-spacing: 1.5px;
      }
             /* RESPONSIVE */

             @media (max-width: 900px) {

                 .contact {
                     padding: 80px 6%;
                 }

                 .contact-grid {
                     grid-template-columns: 1fr;
                     gap: 55px;
                 }

                 .contact-info h2 {
                     font-size: 40px;
                 }

                 .contact-form-wrapper {
                     padding: 35px;
                 }
             }

             @media (max-width: 600px) {

                 .form-row {
                     grid-template-columns: 1fr;
                 }

                 .contact-info h2 {
                     font-size: 34px;
                 }

                 .contact-form-wrapper {
                     padding: 28px 22px;
                 }
             }
             /* =========================================
                AUTOMATIZACIÓN INDUSTRIAL - DETALLE
             ========================================= */
                 AUTOMATIZACIÓN INDUSTRIAL - DETALLE
              ========================================= */

              /* Tarjeta 01 interactiva */
              .service-card-clickable {
                  cursor: pointer;
              }

              .service-more {
                  display: inline-block;
                  margin-top: 22px;
                  color: #D4A94F;
                  font-size: 12px;
                  font-weight: 800;
                  letter-spacing: 1.5px;
                  transition: 0.25s ease;
              }

              .service-card-clickable:hover .service-more {
                  transform: translateX(6px);
              }


              /* Contenedor principal */
              .automation-detail {
                  max-width: 1400px;
                  margin: 80px auto 0;
                  padding-top: 70px;
                  border-top: 1px solid rgba(13, 45, 64, 0.16);
              }


              /* Encabezado */
              .automation-detail-header {
                  max-width: 900px;
                  margin-bottom: 45px;
              }

              .automation-label {
                  display: block;
                  margin-bottom: 18px;
                  color: #D4A94F;
                  font-size: 13px;
                  font-weight: 800;
                  letter-spacing: 3px;
              }

              .automation-detail-header h2 {
                  margin: 0 0 22px;
                  color: #0D2D40;
                  font-size: 48px;
                  line-height: 1.08;
                  font-weight: 800;
              }

              .automation-detail-header p {
                  max-width: 760px;
                  margin: 0;
                  color: #52636E;
                  font-size: 17px;
                  line-height: 1.8;
              }


              /* Bloque principal */
              .automation-hero {
                  display: grid;
                  grid-template-columns: 1.15fr 0.85fr;
                  min-height: 470px;
                  overflow: hidden;
                  background: #0D2D40;
                  box-shadow: 0 22px 55px rgba(13, 45, 64, 0.18);
              }


              /* Imagen */
              .automation-hero-image {
                  position: relative;
                  min-height: 470px;
                  overflow: hidden;
              }

              .automation-hero-image img {
                  width: 100%;
                  height: 100%;
                  object-fit: cover;
                  display: block;
                  transition: transform 0.7s ease;
              }

              .automation-hero:hover .automation-hero-image img {
                  transform: scale(1.035);
              }


              /* Panel de información */
              .automation-hero-content {
                  display: flex;
                  flex-direction: column;
                  justify-content: center;
                  padding: 55px;
                  color: #FFFFFF;
              }

              .automation-hero-content > span {
                  margin-bottom: 18px;
                  color: #D4A94F;
                  font-size: 12px;
                  font-weight: 800;
                  letter-spacing: 3px;
              }

              .automation-hero-content h3 {
                  margin: 0 0 24px;
                  color: #FFFFFF;
                  font-size: 32px;
                  line-height: 1.2;
              }

              .automation-hero-content p {
                  margin: 0;
                  color: rgba(255, 255, 255, 0.76);
                  font-size: 15px;
                  line-height: 1.8;
              }


              /* Flujo de automatización */
              .automation-flow {
                  display: flex;
                  align-items: center;
                  flex-wrap: wrap;
                  gap: 12px;
                  margin-top: 35px;
                  padding-top: 25px;
                  border-top: 1px solid rgba(212, 169, 79, 0.35);
              }

              .automation-flow strong {
                  color: #FFFFFF;
                  font-size: 12px;
                  letter-spacing: 1px;
              }

              .automation-flow b {
                  color: #D4A94F;
                  font-size: 18px;
              }


              /* Responsive */
              @media (max-width: 900px) {

                  .automation-detail {
                      margin-top: 60px;
                      padding-top: 50px;
                  }

                  .automation-detail-header h2 {
                      font-size: 38px;
                  }

                  .automation-hero {
                      grid-template-columns: 1fr;
                  }

                  .automation-hero-image {
                      min-height: 350px;
                  }

                  .automation-hero-content {
                      padding: 40px;
                  }
              }

              @media (max-width: 600px) {

                  .automation-detail-header h2 {
                      font-size: 31px;
                  }

                  .automation-hero-image {
                      min-height: 260px;
                  }

                  .automation-hero-content {
                      padding: 30px 24px;
                  }

                  .automation-hero-content h3 {
                      font-size: 26px;
                  }
              }
                /* =========================================
                  APERTURA / CIERRE DETALLE AUTOMATIZACIÓN
               ========================================= */

               .automation-detail {
                   display: none;
               }

               .automation-detail.active {
                   display: block;
               }
                /* BOTÓN VOLVER A SERVICIOS */
                .automation-back {
                    display: inline-flex;
                    align-items: center;
                    gap: 8px;

                    margin-bottom: 30px;
                    padding: 11px 18px;

                    background: #0d2d40;
                    color: #d4a94f;

                    border: 1px solid #d4a94f;

                    font-family: inherit;
                    font-size: 12px;
                    font-weight: 800;
                    letter-spacing: 1.5px;

                    cursor: pointer;

                    transition:
                        background 0.25s ease,
                        color 0.25s ease,
                        transform 0.25s ease;
                }

                .automation-back:hover {
                    background: #d4a94f;
                    color: #0d2d40;
                    transform: translateX(-4px);
                }
                /* ==================================================
                    DETALLE 02 - PROGRAMACIÓN PLC Y HMI
                 ================================================== */

                 .programming-detail,
                 .technical-detail {
                     display: none;
                     padding: 70px 8% 90px;
                     background: #f5f7fa;
                 }

                .programming-detail.active,
                .technical-detail.active {
                    display: block;
                }

                .programming-detail-header,
                .technical-detail-header {
                    max-width: 1200px;
                    margin: 0 auto 45px;
                }

                .programming-label,
                .technical-label {
                     display: block;
                     margin-bottom: 16px;
                     color: #d4a94f;
                     font-size: 13px;
                     font-weight: 800;
                     letter-spacing: 2px;
                 }

                 .programming-detail-header h2,
                 .technical-detail-header h2 {
                     margin: 0 0 20px;
                     max-width: 750px;
                     color: #0d2d40;
                     font-size: 46px;
                     line-height: 1.08;
                 }

                 .programming-detail-header p,
                 .technical-detail-header p {
                     max-width: 760px;
                     margin: 0;
                     color: #52636d;
                     font-size: 16px;
                     line-height: 1.7;
                 }

                  .programming-back,
                  .technical-back {
                     display: inline-block;
                     margin-bottom: 30px;
                     padding: 11px 18px;

                     background: #0d2d40;
                     color: #d4a94f;
                     border: 1px solid #d4a94f;

                     font-family: inherit;
                     font-size: 12px;
                     font-weight: 800;
                     letter-spacing: 1.5px;

                     cursor: pointer;

                     transition:
                         background 0.25s ease,
                         color 0.25s ease,
                         transform 0.25s ease;
                 }

                 .programming-back:hover,
                 .technical-back:hover {
                     background: #d4a94f;
                     color: #0d2d40;
                    transform: translateX(-4px);
                 }
                /* ==================================================
                   BLOQUES VISUALES - PROGRAMACIÓN PLC Y HMI
                ================================================== */

                .programming-grid {
                    max-width: 1200px;
                    margin: 0 auto;

                    display: grid;
                    grid-template-columns: repeat(3, 1fr);
                    gap: 24px;
                }

                .programming-card {
                    background: #ffffff;
                    border: 1px solid rgba(13, 45, 64, 0.15);
                    overflow: hidden;

                    box-shadow: 0 12px 30px rgba(13, 45, 64, 0.08);

                    transition:
                        transform 0.3s ease,
                        box-shadow 0.3s ease,
                        border-color 0.3s ease;
                }

                .programming-card:hover {
                    transform: translateY(-7px);
                    border-color: #d4a94f;
                    box-shadow: 0 18px 40px rgba(13, 45, 64, 0.16);
                }

                .programming-card-image {
                    width: 100%;
                    height: 240px;
                    overflow: hidden;
                }

                .programming-card-image img {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;

                    transition: transform 0.5s ease;
                }

                .programming-card:hover .programming-card-image img {
                    transform: scale(1.04);
                }

                .programming-card-content {
                    padding: 28px;
                }

                .programming-card-number {
                    display: block;
                    margin-bottom: 12px;

                    color: #d4a94f;
                    font-size: 12px;
                    font-weight: 800;
                    letter-spacing: 2px;
                }

                .programming-card h3 {
                    margin: 0 0 14px;

                    color: #0d2d40;
                    font-size: 23px;
                    line-height: 1.2;
                }

                .programming-card p {
                    margin: 0;

                    color: #52636d;
                    font-size: 14px;
                    line-height: 1.65;
                }
                /* =====================================================
                   AJUSTE DETALLE PROGRAMACIÓN PLC Y HMI
                   ===================================================== */

                .programming-feature {
                    display: grid;
                    grid-template-columns: 420px 1fr;
                    gap: 55px;
                    align-items: center;

                    max-width: 1100px;
                    margin: 55px auto;
                }

                .programming-feature-image {
                    width: 100%;
                }

                .programming-feature-image img {
                    display: block;
                    width: 100%;
                    max-width: 420px;
                    height: 260px;
                    object-fit: cover;
                }

                .programming-feature-content span {
                    display: block;
                    margin-bottom: 10px;

                    color: #d4a94f;
                    font-size: 13px;
                    font-weight: 800;
                    letter-spacing: 2px;
                }

                .programming-feature-content h3 {
                    margin: 0 0 18px;

                    color: #0d2d40;
                    font-size: 28px;
                    line-height: 1.2;
                }

                .programming-feature-content p {
                    margin: 0 0 14px;

                    color: #52636d;
                    font-size: 17px;
                    line-height: 1.7;
                }

                /* BLOQUE INTERCALADO: TEXTO IZQUIERDA / IMAGEN DERECHA */

                .programming-feature-reverse .programming-feature-image {
                    order: 2;
                }

                .programming-feature-reverse .programming-feature-content {
                    order: 1;
                }

                /* AJUSTE PARA CELULAR */

                @media (max-width: 800px) {

                    .programming-feature {
                        grid-template-columns: 1fr;
                        gap: 25px;
                        margin: 40px auto;
                    }

                    .programming-feature-image img {
                        max-width: 100%;
                        height: auto;
                    }

                    .programming-feature-reverse .programming-feature-image,
                    .programming-feature-reverse .programming-feature-content {
                        order: initial;
                    }
                 }

                /* =====================================================
                   DETALLE 03 - SOPORTE TÉCNICO INDUSTRIAL
                ===================================================== */

                .technical-detail {
                    display: none;
                    padding: 70px 8% 90px;
                    background: #f5f7fa;
                }

                .technical-detail.active {
                    display: block;
                }

                .technical-detail-header {
                    max-width: 1200px;
                    margin: 0 auto 45px;
                }

                .technical-feature {
                    display: grid;
                    grid-template-columns: 420px 1fr;
                    gap: 55px;
                    align-items: center;

                    max-width: 1100px;
                    margin: 55px auto;
                }

                .technical-feature-image {
                    width: 100%;
                }

               height: auto;
               object-fit: contain;

                .technical-feature-content span {
                    display: block;
                    margin-bottom: 12px;

                    color: #d4a94f;
                    font-size: 12px;
                    font-weight: 800;
                    letter-spacing: 2px;
                }

                .technical-feature-content h3 {
                    margin: 0 0 14px;

                    color: #0d2d40;
                    font-size: 23px;
                    line-height: 1.2;
                }

                .technical-feature-content p {
                    margin: 0 0 14px;

                    color: #52636d;
                    font-size: 16px;
                    line-height: 1.65;
                }

                /* Alternar imagen / texto */

                .technical-feature-reverse .technical-feature-image {
                    order: 2;
                }

                .technical-feature-reverse .technical-feature-content {
                    order: 1;
                }

                /* AJUSTE PARA CELULAR */

                @media (max-width: 800px) {

                    .technical-feature {
                        grid-template-columns: 1fr;
                        gap: 25px;
                        margin: 40px auto;
                    }

                    .technical-feature-image img {
                        max-width: 100%;
                        height: auto;
                    }

                    .technical-feature-reverse .technical-feature-image,
                    .technical-feature-reverse .technical-feature-content {
                        order: initial;
                    }
                }
                /* CORRECCIÓN FINAL IMÁGENES SERVICIO TÉCNICO */
                 .technical-feature-image img {
                     display: block;
                     width: 100%;
                     max-width: 420px;
                     height: 260px;
                     object-fit: contain;
                     object-position: center;
                     margin: 0 auto;
                 }