/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 2.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, color 0.3s;
}

.whatsapp-float:hover {
    background: #128c7e;
    color: #fff;
    text-decoration: none;
}

/* Pie de página personalizado */
.custom-footer {
    width: 100%;
    background: rgba(44, 53, 60, 0.95);
    color: #fff;
    padding: 30px 0 15px 0;
    text-align: center;
    font-size: 1rem;
    position: relative;
    z-index: 1001;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    margin-top: 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.footer-section {
    min-width: 200px;
    margin-bottom: 10px;
}

.custom-footer a {
    color: #9CC;
    margin: 0 5px;
    text-decoration: none;
    transition: color 0.3s;
}

.custom-footer a:hover {
    color: #fff;
}

.custom-footer i {
    margin-right: 6px;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .footer-section {
        min-width: unset;
    }
}

/*

TemplateMo 550 Diagoona

https://templatemo.com/tm-550-diagoona

*/

body {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 17px;
    font-weight: 300;
    overflow-x: hidden;
    color: white;
    background-color: #2C353C;
    margin: 0;
    padding: 0;
}

a {
    transition: all 0.3s ease;
    text-decoration: none;
}

ul {
    padding: 0;
}

a:hover {
    text-decoration: none;
}

button:focus {
    outline: none;
}

p {
    line-height: 2.5;
}

.tm-logo {
    margin-right: 20px;
}

.tm-slogan {
    font-size: 0.8rem;
}

.tm-logo-nav {
    height: 60px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    margin-right: 16px;
}

/* Navigation */
.navbar-toggler {
    padding: 8px 15px;
    border: 0;
    border-radius: 0;
    transform: skewX(-15deg);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
}

.navbar-toggler i {
    transform: skewX(15deg);
}

.navbar-expand-lg {
    padding-left: 0;
    padding-right: 0;
}

.navbar-expand-lg .navbar-nav .nav-link {
    padding: 0;
}

.navbar-expand-lg .navbar-nav .tm-nav-link {
    font-size: 1.3rem;
    font-weight: 400;
    color: white;
    padding-bottom: 30px;
}

.nav-item {
    margin-right: 60px;
}

.nav-item:last-child {
    margin-right: 0;
}

.nav-item.active .tm-nav-link,
.nav-item:hover .tm-nav-link {
    color: #9CC;
}

/* Page Background */
.tm-bg {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    z-index: -1000;
    pointer-events: none;
}

.tm-bg-left,
.tm-bg-right {
    position: relative;
    width: 50%;
    height: 100%;
}

.tm-bg-right {
    background-color: rgba(0, 0, 0, 0.5);
}

.tm-bg-left {
    border-right: 230px solid rgba(0, 0, 0, 0.5);
    border-top: 100vh solid transparent;
}

.tm-bg-controls-wrapper {
    display: inline-block;
    margin-left: -150px;
}

.tm-bg-control {
    display: inline-block;
    width: 14px;
    height: 14px;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 6px;
    cursor: pointer;
}

.tm-bg-control.active,
.tm-bg-control:hover {
    background-color: white;
}

.tm-container {
    width: 100%;
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1;
}

.tm-row {
    display: flex;
}

.tm-col-left {
    width: 50%;
    height: 100%;
    padding-left: 40px;
    padding-right: 40px;
}

.tm-col-right {
    width: 50%;
    height: 100%;
    padding-left: 70px;
    padding-right: 70px;
}

.tm-content {
    max-width: 660px;
    margin-top: 50px;
    padding-right: 20px;
}

.tm-about {
    max-width: 525px;
}

::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 10px;
}

::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background-color: rgba(255, 255, 255, .8);
    box-shadow: 0 0 1px rgba(255, 255, 255, .8);
}

.tm-content-title {
    font-size: 1.5rem;
}

hr {
    border-top: 1px solid white;
}

.btn {
    padding: 10px 25px;
    border-radius: 0;
}

.btn-big {
    padding: 9px 40px;
    font-size: 1.2rem;
    ;
}

.btn-primary {
    background-color: white;
    color: black;
    border: 0;
}

.btn-primary:hover {
    background-color: #9CC;
    color: black;
}

.tm-site-footer {
    padding: 40px 0 20px;
    max-width: 660px;
    font-size: 0.95rem;
}

.tm-col-footer {
    padding-left: 0;
}

.tm-text-link {
    color: white;
}

.tm-text-link:hover,
.tm-text-link:focus {
    color: #9CC;
}

/* Service */
.tm-service-text {
    max-width: 365px;
}

.tm-service-img {
    margin-right: 25px;
}

.tm-service-img-r {
    margin-left: 25px;
}

/* Contact */
.form-control,
textarea {
    color: white;
    background-color: transparent;
    background-clip: padding-box;
    border: none;
    border-bottom: 1px solid #999A9B;
    border-radius: 0;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    padding: 10px 0;
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
}

.form-control:focus {
    color: white;
    background-color: transparent;
    box-shadow: none;
    border-color: #9CC;
    outline: none;
}

.mb-85 {
    margin-bottom: 85px;
}

.tm-contact-main {
    max-width: 690px;
}

.tm-contact {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.form-control::-webkit-input-placeholder {
    color: white;
}

/* Edge */
.form-control:-ms-input-placeholder {
    color: white;
}

/* Internet Explorer 10-11 */
.form-control::placeholder {
    color: white;
}

/* Estilos para autocompletado - mantener fondo transparente */
.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus,
.form-control:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px transparent inset !important;
    -webkit-text-fill-color: white !important;
    background-color: transparent !important;
    background-clip: padding-box !important;
    transition: background-color 5000s ease-in-out 0s;
}

textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
textarea:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px transparent inset !important;
    -webkit-text-fill-color: white !important;
    background-color: transparent !important;
    background-clip: padding-box !important;
    transition: background-color 5000s ease-in-out 0s;
}

@media (max-width: 1200px) {
    .nav-item {
        margin-right: 30px;
    }

    .tm-page-right {
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media (max-width: 992px) {
    .tm-nav {
        position: absolute;
        background: rgba(0, 0, 0, 0.8);
        color: white;
        top: 44px;
        right: 4px;
    }

    .navbar-expand-lg .navbar-nav .tm-nav-link {
        color: white;
        font-size: 1.1rem;
        padding: 13px 20px;
    }

    .nav-item {
        margin-right: 0;
    }

    .nav-item.active .tm-nav-link,
    .nav-item:hover .tm-nav-link {
        color: #9CC;
    }

    .tm-content {
        margin-top: 20px;
    }

    .tm-site-footer {
        padding-top: 40px;
    }

    .tm-col-left {
        width: 40%;
    }

    .tm-col-right {
        width: 60%;
        padding-left: 100px;
        padding-right: 30px;
    }

    .tm-col-footer {
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    .tm-container {
        min-height: 100vh;
        overflow-x: hidden;
    }

    .tm-row {
        flex-direction: column;
    }

    .tm-col-left,
    .tm-col-right {
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }

    .tm-bg-left,
    .tm-bg-right {
        width: 100%;
    }

    #tm-main-nav {
        position: fixed;
        top: 50px;
        right: 20px;
        padding-bottom: 0;
        z-index: 1000;
    }

    .tm-bg {
        flex-direction: column;
        position: fixed;
        width: 100vw;
        height: 100vh;
    }

    .tm-bg-left {
        height: 200px;
        border-bottom: 50px solid rgba(0, 0, 0, 0.5);
        border-right: 0;
        border-top: 0;
    }

    .tm-bg-right {
        height: calc(100vh - 250px);
    }

    .tm-bg-controls-wrapper {
        margin-left: 0;
        margin-top: 30px;
    }

    .tm-content {
        max-height: none;
        margin-top: 20px;
        padding-right: 0;
    }

    .tm-col-right {
        padding-top: 20px;
    }

    .tm-col-footer {
        padding-left: 10px;
        padding-right: 10px;
    }

    .tm-logo-nav {
        height: 40px;
        max-width: 80px;
        margin-right: 8px;
    }

    .custom-footer {
        margin-top: 20px;
    }
}

@media (max-width: 460px) {
    .tm-logo {
        margin-right: 15px;
        height: 120px !important;
    }

    .tm-sitename {
        font-size: 1.5rem;
    }

    .tm-slogon {
        font-size: 0.7rem;
    }

    .tm-site-header {
        flex-direction: column;
        text-align: center;
    }

    .tm-site-header .media-body {
        margin-top: 10px;
    }
}

@media (max-width: 450px),
(min-width: 768px) and (max-width: 830px),
(min-width: 992px) and (max-width: 1040px) {
    .tm-service-media {
        flex-direction: column;
    }

    .tm-service-media-img-l {
        flex-direction: column-reverse;
    }

    .tm-service-text {
        margin-top: 20px;
    }

    .tm-service-img {
        margin-right: 0;
    }

    .tm-service-img-r {
        margin-left: 0;
    }
}

.guardian-logo-img {
    max-height: 850px;
    min-height: 120px;
    width: auto;
    display: block;
    margin: 60px auto 0 auto;
    transition: max-height 0.3s, margin 0.3s;
}

@media (max-width: 991px) {
    .guardian-logo-img {
        max-height: 450px;
        min-height: 90px;
        margin-top: 30px;
    }
}

@media (max-width: 767px) {
    .guardian-logo-img {
        max-height: 300px;
        min-height: 100px;
        margin-top: 15px;
        margin-bottom: 20px;
    }
    
    .guardian-section {
        padding: 1rem 0.5rem;
        margin-top: 10px;
    }

    .gallery-img img {
        height: 110px;
    }

    .tm-content-title {
        font-size: 1.3rem;
        text-align: center;
    }

    .spec-list {
        font-size: 1rem;
    }

    .btn-success.btn-lg {
        font-size: 0.9rem;
        padding: 8px 16px;
        margin: 5px;
        display: block;
        width: 100%;
        max-width: 280px;
        margin: 10px auto;
    }
}


.spec-list {
    list-style: none;
    font-size: 1.2rem;
    padding-left: 0;
}

.spec-list li {
    margin-bottom: 0.5em;
    position: relative;
    padding-left: 1.5em;
    color: white;
}

.spec-list li:before {
    content: '\f058';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #f70b1a;
    position: absolute;
    left: 0;
    top: 2px;
}

.spec-list strong {
    color: #f70b1a;
}

.gallery-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0 !important;
    margin: 0 !important;
}

.gallery-row>[class^="col-"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
}

.gallery-img {
    overflow: hidden;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
    cursor: pointer;
    margin: 0 !important;
    width: 100%;
    height: 100%;
    aspect-ratio: 1/1;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
}

.gallery-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    display: block;
}

@media (max-width: 991px) {
    .gallery-row>.col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 767px) {
    .gallery-row>.col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .gallery-img {
        aspect-ratio: 1/1;
    }
}

.detalle-producto-section {
    background: transparent;
    padding: 2.5rem 0 2rem 0;
}

.detalle-caja {
    background: linear-gradient(120deg, #000000d0 10%, #ffe4b3d3 100%);
    border-radius: 18px;
    box-shadow: none;
    margin-bottom: 2.2rem;
    padding: 2rem 1.5rem;
    display: flex;
    align-items: center;
    transition: box-shadow 0.3s;
    border: none;
    opacity: 0;
}
.detalle-caja.visible {
    opacity: 1;
}

.detalle-caja:hover {
    box-shadow: none;
}
.detalle-caja2{
    background: linear-gradient(120deg,  #ffe4b3d3 10%, #000000d0 100%);
    border-radius: 18px;
    box-shadow: none;
    margin-bottom: 2.2rem;
    padding: 2rem 1.5rem;
    display: flex;
    align-items: center;
    transition: box-shadow 0.3s;
    border: none;
    opacity: 0;
}

.detalle-caja-2.visible {
    opacity: 1;
}

.detalle-caja-2:hover {
    box-shadow: none;
}

.detalle-texto {
    background: linear-gradient(120deg, #0000006c 10%, #ffe4b370 100%);;
    
        
    padding: 2rem 1.5rem;
    margin: 0.5rem 0;
}

.detalle-caja:hover .detalle-texto {
    box-shadow: 0 6px 32px #99051033;
}

.detalle-titulo {
    color: #f70b1a;
    font-weight: bold;
    margin-bottom: 1rem;    
    letter-spacing: 1px;
}

.detalle-titulo-derecha {
    color: #f70b1a;
    font-weight: bold;
    margin-bottom: 1rem;    
    letter-spacing: 1px;
    text-align: right;
}


.detalle-texto-izquierdo p,
.detalle-texto-izquierdo ul,
.detalle-texto-izquierdo li {
    color: white;
    font-size: 1.08em;
    text-align: left;
    
}

.detalle-texto ul {
    padding-left: 1.2em;
    margin-bottom: 0;
}

.detalle-texto-derecho p,
.detalle-texto-derecho ul,
.detalle-texto-derecho li {
    color: white;
    font-size: 1.08em;
    text-align: right;
}
   

.detalle-img {
    max-width: 530px;
    margin: 0.7rem 0;
    background: transparent;
}

.detalle-img-col {
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 991px) {
    .detalle-caja {
        flex-direction: column !important;
        text-align: center;
        padding: 1.2rem 0.5rem;
    }
    .detalle-caja-2 {
        flex-direction: column !important;
        text-align: center;
        padding: 1.2rem 0.5rem;
    }

    .detalle-texto {
        padding: 1.2rem 0.5rem;
    }

    .detalle-img {
        max-width: 220px;
        margin: 1rem auto 0.5rem auto;
    }
}

@media (max-width: 767px) {
    .detalle-caja {
        padding: 0.7rem 0.2rem;
    }
    .detalle-caja-2 {
        padding: 0.7rem 0.2rem;
    }

    .detalle-texto {
        padding: 0.7rem 0.2rem;
    }

    .detalle-img {
        max-width: 98%;
    }
}

.sectores-title {
    color: #f70b1a;
    font-weight: bold;
    margin-bottom: 1.2rem;
    
}

/* Modal para zoom de imagen */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
}

.gallery-modal.active {
    display: flex;
}

.gallery-modal-img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 8px 40px #000a;
    border: 4px solid #D69700;
    background: #fff;
    animation: zoomInModal 0.35s;
}

.gallery-modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    z-index: 10001;
    text-shadow: 0 2px 8px #000;
}

@keyframes zoomInModal {
    from {
        transform: scale(0.7);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.btn-success.btn-lg {
    background: linear-gradient(90deg, #990510 60%, #D69700 100%);
    border: none;
    color: #fff;
    font-weight: bold;
    box-shadow: 0 2px 8px #02027D33;
}

.btn-success.btn-lg:hover {
    background: linear-gradient(90deg, #D69700 60%, #990510 100%);
    color: #fff;
    box-shadow: 0 4px 16px #99051044;
}

.guardian-section {
    
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
    padding: 2.5rem 2rem 2rem 2rem;
    margin-bottom: 2rem;
    color: white;
}

.guardian-section h2,
.guardian-section h4 {
    color: #f70b1a;
    font-weight: bold;
    letter-spacing: 1px;
    
}

.guardian-section p,
.guardian-section ul,
.guardian-section li {
    color: white;
}


.sectores-aplicacion-section {
    background: transparent;
    padding: 3rem 0 2.5rem 0;
    margin-bottom: 0;
}

.sectores-aplicacion-wrapper {
   background: linear-gradient(120deg,  #ffe4b3d3 10%, #000000d0 100%);
    border-radius: 18px;
    max-width: 1100px;
    /* reduce el ancho máximo para centrar mejor */
    margin: 0 auto;
    padding: 2.5rem 2rem 1.2rem 2rem;
}


/* Estilos de secciones */
.section-quienes {
    background: linear-gradient(120deg, #000000d0 10%, #ffe4b3d3 100%);
    color: white;
    padding: 80px 20px;    
    box-shadow: none;
    display: flex;
    align-items: center;    
    max-width: 100%;
    margin: 2%;
    border-radius: 18px;
    gap: 20px;
}

.section-quienes .container {
    flex: 1;
}

.section-quienes .image-content {
    flex: 1;
    text-align: center;
}

@media (max-width: 768px) {
    .section-quienes {
        flex-direction: column;
        padding: 40px 15px;
        margin: 1%;
    }
    
    .section-quienes .image-content {
        order: 2;
        margin-top: 20px;
    }
    
    .section-quienes .container {
        order: 1;
    }

    .section-verde {
        padding: 40px 15px;
        margin: 1%;
    }

    .section-equipo {
        padding: 40px 15px;
        margin: 1%;
    }

    .section-equipo .col-md-5 {
        margin-bottom: 30px;
    }

    .section-equipo img,
    .section-equipo .rounded-circle {
        width: 120px;
        height: 120px;
    }

    .detalle-titulo {
        font-size: 1.5rem;
        text-align: center;
    }
}

.section-equipo {
    background: linear-gradient(120deg, #000000d0 10%, #ffe4b3d3 100%);
    color: white;
    padding: 80px 20px;
    margin: 2%;
    border-radius: 18px;
}

.section-equipo .image-content {
    flex: 1;
    text-align: center;
}


.section-equipo .image-content img {
    max-width: 100%;
    height: auto;
}

.section-certificaciones {
    background-color: rgba(107, 107, 107, 0.5);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.section-verde {
    background: linear-gradient(120deg,  #ffe4b3d3 10%, #000000d0 100%);
    padding: 80px 20px;
    text-align: center;
    margin: 2%;
    border-radius: 18px;
}

.section-verde h2{
   color: #f70b1a
}

.section-equipo img,
.section-equipo .rounded-circle {
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin-bottom: 15px;
}

/* Clase unificada para elementos lead */
.lead {
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.8;
    color: white;
    margin-bottom: 1.5rem;
}