@media (max-width: 700px) {
    .logos_expertos.raul-peq img {
        height: 38px !important;
        max-height: 38px !important;
    }
}
@media (max-width: 700px) {
    .tarjeta_experto:first-child .logos_expertos {
        row-gap: 2px !important;
    }
}
@media (max-width: 700px) {
    .logos_expertos {
        row-gap: 6px !important;
    }
}
.logos_expertos.jose-grande {
    border-top: solid 1px rgb(124,155,51);
    padding-top: 10px;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    width: 100%;
}
.logos_expertos.jose-grande img {
    max-height: 40px !important;
    height: 40px !important;
    padding-top: 0 !important;
}
.logos_expertos.raul-peq img {
    max-height: 38px !important;
    height: 38px !important;
}
.logos_expertos.luis-grande {
    border-top: solid 1px rgb(124,155,51);
    padding-top: 10px;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    width: 100%;
}
.logos_expertos.luis-grande img {
    max-height: 82px !important;
    height: 82px !important;
    padding-top: 20px !important;
}
#calculadora-merma .tabla-calculadora td:nth-child(2) input,
#calculadora-impacto .tabla-impacto td:nth-child(2) input {
    font-weight: normal !important;
}
#calculadora-merma .tabla-calculadora td:nth-child(3) input,
#calculadora-merma .tabla-calculadora td:nth-child(4) input {
    color: #3a92aa !important;
}
#calculadora-merma .tabla-calculadora td:nth-child(3),
#calculadora-merma .tabla-calculadora td:nth-child(4) {
    color: #3a92aa !important;
}
*{
    padding: 0;
    margin: 0;
}
html {
    scroll-behavior: smooth;
}
body{
    font-family: "Montserrat", sans-serif;
}

a{
    text-decoration: none;
    color: inherit;
}

.header-nav{
    display: none;
}
/* Ocultar menú en mobile por defecto */
.navegacion-principal {
    position: fixed;
    top: 0;
    right: -100%; /* fuera de pantalla */
    width: 70%;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0,0,0,0.2);
    transition: right 0.4s ease; /* animación suave */
    z-index: 999;
    padding-top: 80px;
}
/* Ocultar por defecto */
.girar-celular-indicador {
    display: none;
    width: 100%;
    text-align: center;
    font-size: 1em;
    color: #3a92aa;
    margin-top: 12px;
    margin-bottom: 0;
    padding-bottom: 10px;
}

/* Mostrar en móviles para ambas tablas */
@media (max-width: 700px) {
    #indicador-merma,
    #indicador-impacto {
        display: block;
        margin-top: 12px;
        margin-bottom: 0;
        padding-bottom: 10px;
    }
}

/* Mostrar solo en tablets para la primera tabla */
@media (min-width: 701px) and (max-width: 1024px) {
    #indicador-merma {
        display: block;
        margin-top: 12px;
        margin-bottom: 0;
        padding-bottom: 10px;
    }
    #indicador-impacto {
        display: none;
    }
}

.navegacion-principal ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.navegacion-principal li {
    margin: 20px 0;
}

.navegacion-principal a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
    transition: color 0.3s;
}

.navegacion-principal a:hover {
    color: rgb(206,94,94);
}

.navegacion-principal.active {
    right: 0;
}

.menu-toggle {
    display: none;
    font-size: 32px;
    cursor: pointer;
    z-index: 1000;
}

.dropdown {
    position: relative;
}

.dropdown .submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0; /* cerrado */
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
    background: #f9f9f9;
    border-radius: 5px;
}

.dropdown .submenu li {
    padding: 10px;
    text-align: center;
}

.dropdown .submenu a {
    display: block;
    color: #333;
    font-size: 16px;
    text-decoration: none;
    transition: color 0.3s;
}

.dropdown .submenu a:hover {
    color: rgb(206,94,94);
}

/* Mostrar submenu activo */
.dropdown.active .submenu {
    max-height: 200px; /* espacio suficiente */
    opacity: 1;
}

/* Ícono de flecha */
.dropdown-toggle i {
    font-size: 14px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.dropdown.active .dropdown-toggle i {
    transform: rotate(180deg); /* girar flecha */
}

.slide-in{
    opacity: 0;
    transform: translateX(-24px);
    animation: slideIn 600ms ease-out forwards;
  }

  @keyframes slideIn{
    to{
      opacity: 1;
      transform: translateX(0);
    }
  }

  /* Respeto a usuarios con reducción de movimiento */
  @media (prefers-reduced-motion: reduce){
    .slide-in{ animation: none; opacity:1; transform:none; }
  }

  /* PARA TEXTO QUE APARECE AL HACER SCROLL */
  .reveal{
    opacity: 0;
    transform: translateX(-24px);
    transition: transform .3s ease-out, opacity .3s ease-out;
  }
  .reveal.is-visible{
    opacity: 1;
    transform: translateX(0);
  }
  @media (prefers-reduced-motion: reduce){
    .reveal, .reveal.is-visible{ transition:none; opacity:1; transform:none; }
  }

@font-face{
    font-family: 'Regulator Nova';
    src: url('/assets/fonts/REGULATOR\ NOVA\ BOLD.OTF') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face{
    font-family: 'Regulator Nova';
    src: url('/assets/fonts/REGULATOR\ NOVA\ BOLD\ ITALIC.OTF') format('opentype');
    font-weight: bold;
    font-style: italic;
}

@font-face{
    font-family: 'Regulator Nova';
    src: url('/assets/fonts/REGULATOR\ NOVA\ DEMI\ BOLD.OTF') format('opentype');
    font-weight:demi-bold;
    font-style: normal;
}

@font-face{
    font-family: 'Regulator Nova';
    src: url('/assets/fonts/REGULATOR\ NOVA\ DEMI\ BOLD\ ITALIC.OTF') format('opentype');
    font-weight: demi-bold;
    font-style: italic;
}

@font-face{
    font-family: 'Regulator Nova';
    src: url('/assets/fonts/REGULATOR\ NOVA\ EXTRA\ LIGHT.OTF') format('opentype');
    font-weight: extra-light;
    font-style: normal;
}

@font-face{
    font-family: 'Regulator Nova';
    src: url('/assets/fonts/REGULATOR\ NOVA\ EXTRA\ LIGHT\ ITALIC.OTF') format('opentype');
    font-weight: extra-light;
    font-style: italic;
}

@font-face{
    font-family: 'Regulator Nova';
    src: url('/assets/fonts/REGULATOR\ NOVA\ HEAVY.OTF') format('opentype');
    font-weight: heavy;
    font-style: normal;
}

@font-face{
    font-family: 'Regulator Nova';
    src: url('/assets/fonts/REGULATOR\ NOVA\ HEAVY\ ITALIC.OTF') format('opentype');
    font-weight: heavy;
    font-style: italic;
}

@font-face{
    font-family: 'Regulator Nova';
    src: url('/assets/fonts/REGULATOR\ NOVA\ LIGHT.OTF') format('opentype');
    font-weight: light;
    font-style: normal;
}

@font-face{
    font-family: 'Regulator Nova';
    src: url('/assets/fonts/REGULATOR\ NOVA\ LIGHT\ ITALIC.OTF') format('opentype');
    font-weight: light;
    font-style: italic;
}

@font-face{
    font-family: 'Regulator Nova';
    src: url('/assets/fonts/REGULATOR\ NOVA\ MEDIUM.OTF') format('opentype');
    font-weight: medium;
    font-style: normal;
}

@font-face{
    font-family: 'Regulator Nova';
    src: url('/assets/fonts/REGULATOR\ NOVA\ MEDIUM\ ITALIC.OTF') format('opentype');
    font-weight: medium;
    font-style: italic;
}

@font-face{
    font-family: 'Regulator Nova';
    src: url('/assets/fonts/REGULATOR\ NOVA\ THIN.OTF') format('opentype');
    font-weight: thin;
    font-style: normal;
}

@font-face{
    font-family: 'Regulator Nova';
    src: url('/assets/fonts/REGULATOR\ NOVA\ THIN\ ITALIC.OTF') format('opentype');
    font-weight: thin;
    font-style: italic;
}

/* HEADER */

header{
    width: 90%;
    padding-inline: 5%;
    height: 150px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu_principal {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
    align-items: center;
}
.menu_principal > a > li {
    position: relative;
    padding: 10px 10px;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 13px!important;
    font-weight: 600;
    color:rgb(58,146,170);
    transition: background 0.2s, color 0.2s;
}
.menu_principal  a  li:hover {
    background: #f2f2f2;
    color: rgb(58,146,170);
    border-radius: 6px 6px 0 0;
}

#telefono_header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.phone {
    display: flex;
    align-items: center;
    /* No usar justify-content aquí, el padre ya alinea */
}

.icon_phone{
    background-color: rgb(124,155,51);
    padding: 5px;
    height: 40px;
    width: 55px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 35px;
    z-index: 1;
}

.icon_phone img{
    width: 22px;
    height: auto
}
    
.phone span{
    height: 40px;
    display: flex;
    align-items: center;
    font-size: 13px;
    padding: 5px;
    background-color: rgb(58,146,170);
    color: white;
    border-bottom-right-radius: 35px;
    border-top-right-radius: 35px;
    font-weight: bold;
    padding-left: 35px;
    padding-right: 20px;
    translate: -20px;
    }

/* HERO */
.hero{
    width: 100%;
    align-items: center;
    display: flex;
    height: 80vh;
    background-image: url('/assets/img/estacion-de-servicio-portada-agespro.webp');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.content_hero{
    padding-inline: 10%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: white;
}

.content_hero h1{
    font-size: 47px;
    font-weight: bold;
    width: 40%;
    line-height: 1.2;
    font-family: 'Regulator Nova', sans-serif;
    font-style: italic;
}

.content_hero h3{
    font-size: 31px;
    font-weight: 500;
    width: 40%;
    line-height: 1.2;
    font-family: 'helvetica', sans-serif;
    font-style: italic;
}

.call_to_action{
    width: 80%;
    padding-inline: 10%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    background-image: url(/assets/img/ahorro.webp);
    background-size: cover;
    background-position: 30px;
    height: 100vh;
}

.call_to_action h1{
   font-size: 35px;
    font-weight: bold;
    color: rgb(58,146,170);
    font-family: 'Regulator Nova', sans-serif;
    font-style: italic;
    width: 57%;
}

.call_to_action ul{
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.call_to_action li{
    font-size: 22px;
    font-weight: 500;
    color: rgb(58,146,170);
    font-family: 'helvetica', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* .call_to_action li i{
    font-size: 30px;
    color: rgb(206,94,94);
} */

.call_to_action button{
    background-color: rgb(124,155,51);
    color: white;
    font-size: 22px;
    width: fit-content;
    padding: 10px 30px;
    border: none;
    border-radius: 26px;
    font-style: italic;
}

.call_to_action button:hover{
    transform: scale(0.95);
    cursor: pointer;
    transition: 0.3s;
}

.call_to_action img{
    width: 18px;
}

#btn_calculadora{
    background-color: rgb(58,146,170);
}
#btn_calculadora a{
    text-decoration: none;
    color: white;
}

.tarjetas{
    width: 80%;
    padding-inline: 10%;
    display: flex;
    justify-content: space-between;
    gap: 100px;
    margin-top: 60px;
    margin-bottom: 60px;
}

#tarjeta_1, #btn_tarjeta_2{
    background-color: rgb(124,155,51);
}

#tarjeta_2, #btn_tarjeta_1{
    background-color: rgb(58,146,170);
}
.tarjeta{
    padding-block: 60px;
    padding-inline: 40px;
    border-radius: 15px;
    width: 35%;
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.tarjeta h2{
    font-size: 40px;
    font-weight: bold;
    color: white;
    font-family: 'Regulator Nova', sans-serif;
    text-align: center;
}

.tarjeta p{
    color: white;
    font-size: 25px;
    text-align: justify;
    font-weight: 300;
}

.tarjeta button{
    color: white;
    font-size: 1.5625rem; /* 25px = 1.5625rem */
    width: fit-content;
    padding: 0.625rem 1.875rem; /* 10px 30px */
    border: none;
    border-radius: 1.625rem; /* 26px */
    font-style: italic;
    align-self: center;
    cursor: pointer;
}

.tarjeta button:hover{
    transform: scale(0.95);
    transition: 0.3s;
}

.somos_agespro_1{
    display: flex;
    flex-direction: column;
    gap: 1.875rem; /* 30px */
    background-image: url(/assets/img/quienes-somos.webp);
    background-position: left;
    background-size: cover;
    height: 100vh;
    padding-inline: 10%;
    justify-content: center;
}
.somos_agespro_1 h2{
    font-size: 2.8125rem; /* 45px */
    color: white;
    font-family: 'Regulator Nova', sans-serif;
    font-weight: 600;
}

.somos_agespro_1 p{
    color: white;
    font-size: 1.2rem; /* 25px */
    width: 60%;
    font-weight: 300;
    text-align: justify;
    text-shadow: 0.125rem 0.125rem 0.25rem rgba(0, 0, 0, 0.25); /* 2px 2px 4px */
}

.botonera_quienes_somos{
    display: flex;
    gap: 1.25rem; /* 20px */
}

#quienes_somos_btn1{
    background-color: rgb(124,155,51);
    color: white;
    font-size: 25px;
    width: fit-content;
    padding: 10px 30px;
    border: none;
    border-radius: 26px;
    font-style: italic;
}

#quienes_somos_btn1:hover{
    transform: scale(0.95);
    cursor: pointer;
    transition: 0.3s;
}

#quienes_somos_btn2{
    background-color: rgba(58, 146, 170, 0);
    color: white;
    font-size: 25px;
    width: fit-content;
    padding: 10px 30px;
    border: solid 2px white;
    border-radius: 26px;
    font-style: italic;
}

#quienes_somos_btn2:hover{
    transform: scale(0.95);
    cursor: pointer;
    transition: 0.3s;
}

.nuestros_expertos{
    width: 80%;
    padding-inline: 10%;
    display: flex;
    gap: 20px;
    height: 100vh;
    /* padding-block: 80px; */
    background-image: url(/assets/img/nuestros-expertos.webp);
    background-position: center;
    background-size: cover;
    align-items: center;
}

.nuestros_expertos_col1{
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: rgb(58,146,170);
}
.nuestros_expertos_col1 h2{
    font-size: 45px;
    font-family: 'Regulator Nova', sans-serif;
    font-weight: "light";
}
.nuestros_expertos_col1 p{
    font-size: 38px;
    font-weight: 300;
    width: 70%;
    font-style: italic;
    line-height: 42px;
}
.nuestros_expertos_col1 button{
    background-color: rgba(124, 155, 51, 0);
    color: rgb(58,146,170);
    font-size: 25px;
    width: fit-content;
    padding: 10px 30px;
    border-radius: 26px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-width: 2px;
    border-color: rgb(58,146,170);
    border-style: solid;
    cursor: pointer;
    font-style: italic;
}
.nuestros_expertos_col1 button:hover{
    transform: scale(0.95);
    cursor: pointer;
    transition: 0.3s;
}
.nuestros_expertos_col1 a{
    text-decoration: none;
}
.nuestros_expertos_col2{
    display: flex;
    gap: 20px;
}
.nuestros_expertos_col2 button:hover{
    transform: scale(0.95);
    cursor: pointer;
    transition: 0.3s;
}
.gerentes{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.gerentes img{
    width: 250px;
    height: auto;
}
.gerentes h3{
    font-size: 25px;
    font-style: italic;
    font-weight: normal;
    color: rgb(58,146,170);
    text-align: center;
}
.gerentes p{
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    color: rgb(124,155,51)
}
.gerentes button{
    background-color: rgb(58,146,170);
    color: white;
    font-size: 20px;
    width: fit-content;
    padding: 10px 30px;
    border-radius: 26px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-width: 0;
    cursor: pointer;
}
.nuestros_servicios {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-inline: 10%;
    height: auto;
}
.contenedor_tarjetas_de_servicio{
    display: flex;
    gap: 2%;
    margin-top: 40px;
    padding-bottom: 90px;
    padding-top: 100px;
    height: max-content;
    overflow: hidden;
}
.tarjeta_servicio.visible {
    opacity: 1;
    transform: translateX(0);
}
.contenedor_carrusel{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%!important;
    /* padding-inline: 10%; */
    background-color: rgb(58, 146, 170);
}
.contenedor_introduccion_nuestros_servicios{
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    height: 100vh;
}
.carrusel{
    display: flex;
    gap: 20px;
    align-items: center;
    height: max-content;
    padding-bottom: 40px;
}
.titulo_nuestros_servicios h2{
    font-size: 45px;
    color: rgb(58,146,170);
    font-family: 'Regulator Nova', sans-serif;
    font-weight: "light";
    text-align: center;
}
.descripcion_nuestros_servicios{
    font-size: 20px;
    color: rgb(58,146,170);
    text-align: center;
    font-weight: 500;
    margin-top: 20px;
    width: 80%;
    padding-block: 20px;
}
.flecha_abajo{
    display: flex;
    justify-content: center;
    font-size: 28px;
    color: rgb(124,155,51);
}

/* Animación bounce para la flecha_abajo */
@keyframes bounce-flecha {
  0%, 100% { transform: translateY(0); }
  20% { transform: translateY(-12px); }
  40% { transform: translateY(0); }
  60% { transform: translateY(-8px); }
  80% { transform: translateY(0); }
}
.flecha_abajo.bounce {
  animation: bounce-flecha 1.2s infinite;
}

.tarjeta_servicio{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
    padding-top: 0px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: white;
    justify-content: space-between;
    width: 300px;
}
.tarjeta_servicio.activo {
    transform: scale(1.1); /* 👈 mayor escala al centro */
    opacity: 1;
    z-index: 2; /* que quede encima de las otras */
}
/* .tarjeta_servicio:hover{
    transform: scale(1.2);
    transition: 0.3s;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
} */
.contenedor_icono{
    background-color: rgb(229, 245, 247);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(-50px);
}
.tarjeta_servicio i{
    color: rgb(58,146,170);
    font-size: 40px;
}
.tarjeta_servicio h2{
    text-align: center;
    font-family: 'Regulator Nova', sans-serif;
    color: rgb(58,146,170);
    margin-top: -40px;
}
.tarjeta_servicio p{
    text-align: center;
    font-size: 18px;
    font-weight: 300;
    color: rgb(80, 80, 80);
}
.botonera_servicio{
    display: flex;
    gap: 20px;
    margin-top: 10px;
}
.btn_servicio_1{
    background-color: rgb(58,146,170);
    color: white;
    font-size: 18px;
    width: fit-content;
    padding: 10px 20px;
    border: none;
    border-radius: 26px;
    font-style: italic;
    cursor: pointer;
}
.btn_servicio_2{
    background-color: rgba(58,146,170,0);
    color: rgb(58,146,170);
    font-size: 18px;
    width: fit-content;
    padding: 10px 20px;
    border: solid 2px rgb(58,146,170);
    border-radius: 26px;
    font-style: italic;
    cursor: pointer;
}
.contacto{
    width: 80%;
    padding-inline: 10%;
    display: flex;
    align-items: center;
    height: 100vh;
    background-image: url(/assets/img/fondo-formulario-contacto.webp);
    background-position: center;
    background-size: cover;
    justify-content: center;
}
.contenedor_formulario{
    background-color: rgb(58,146,170);
    padding: 40px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 450px;
}
.form_col2{
    display: flex;
    gap: 20px;
}
.form_col2 input{
    padding: 10px;
    border-radius: 8px;
    border: none;
    font-size: 18px;
    width: 100%;
}
.contenedor_formulario form input{
    padding: 10px;
    border-radius: 8px;
    border: none;
    font-size: 18px;
}
.contenedor_formulario form textarea{
    height: 100px!important;
}
.contenedor_formulario form{
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.form_flex{
    display: flex;
    gap: 20px;
}
.form_flex div{
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}
#departamentos{
    padding: 10px;
    border-radius: 8px;
    border: none;
    font-size: 18px;
}
#mensaje{
    padding: 10px;
    border-radius: 8px;
    border: none;
    font-size: 18px;
    resize: none;
    height: 150px;
}
#btn_enviar{
    background-color: rgb(124,155,51);
    color: white;
    font-size: 25px;
    width: fit-content;
    padding: 10px 30px;
    border: none;
    border-radius: 26px;
    font-style: italic;
    cursor: pointer;
}
.contenedor_btn_enviar{
    display: flex;
    justify-content: center;
}
#btn_enviar:hover{
    transform: scale(0.95);
    cursor: pointer;
    transition: 0.3s;
}
footer{
    width: 100%;
    height: auto;
    background-color: rgb(57, 57, 57);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 18px;
}
.footer_principal{
    width: 80%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 100px;
    padding-top: 80px;
}
#logo_footer,
.logo_principal img {
    width: 280px;
    height: auto;
    margin-bottom: 20px;
}
.descripcion_footer{
    font-size: 20px;
    font-weight: 300;
    width: 250px;
    font-style: italic;
}
.footer_principal ul{
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer_principal ul a{
    text-decoration: none;
    color: white;
}
.info_contacto li{
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer_inferior{
    width: 100%;
    display: flex;
    justify-content: center;
}
.social_media{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-block: 15px;
    padding-inline: 20px;
    background-color: rgb(124,155,51);
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
}
.social_media a{
    color: white;
    font-size: 26px;
    text-decoration: none;
    margin: 0 10px;
}
.social_media a:hover{
    transform: scale(0.95);
    transition: 0.3s;
}
.social_media p{
    font-size: 20px;
    font-weight: 500;
    font-style: italic;
}
.btn_nav_servicios{
    height: max-content;
    background-color: rgba(240, 248, 255, 0);
    border: none;
}
.btn_nav_servicios i{
    color: white;
    font-size: 40px;
    cursor: pointer;
}
#btn_nav_1:hover, #btn_nav_2:hover{
    transform: scale(0.95);
    transition: 0.3s;
}
#btn_nav_1{
    margin-right: 10px;
}
#btn_nav_2{
    margin-left: 10px;
}
/* Ejemplo de clase para agrandar el item activo */
.tarjeta_servicio.activo {
    transform: scale(1.08);
    z-index: 2;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
/* Solo muestra las tarjetas con la clase visible */
.tarjeta_servicio {
  display: none;
  transition: transform 0.5s;
}
.tarjeta_servicio.visible {
  display: flex;
  opacity: 1;
}
.contenedor_tarjetas_de_servicio {
  display: flex;
  gap: 1rem;
  overflow: hidden;
  justify-content: center;
  align-items: stretch;
}
.contenedor_introduccion{
    display: flex;
    /* grid-template-columns: 1fr 2fr; */
    gap: 5%;
    padding-top: 30px;
    padding-bottom: 15px;
    align-items: center;
}
.frase_introduccion{
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.frase_parte1{
    font-size: 25px;
    color: rgb(107, 107, 107);
    font-style: italic;
}
.frase_parte2{
    color: rgb(124,155,51);
    font-size: 38px;
    font-weight: 300;
    font-style: italic;
    line-height: 42px;
}
.parrafo_introduccion{
    font-size: 1.2rem;
    color: rgb(80, 80, 80);
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-weight: 300;
    text-align: justify;
}
/* ESTILOS DE PÁGINA SOMOS AGESPRO */
.header_interno{
    height: 300px;
    background-image: url(/assets/img/somos-agespro-fondo-encabezado.webp);
    /* background-position:0px 0px; */
    background-size: cover;
    display: flex;
    align-items: center;
    padding-inline: 10%;
    justify-content: center;
}
#header_expertos, #header_servicios{
    background-image: url(/assets/img/background-header-interno.webp);
}
#header_bpm_scrum{
    background-image: url(/assets/img/bpm-scrum-2.webp)!important;
    background-position: center!important;
    height: 600px!important;
    background-repeat: no-repeat;
    background-position:0px -100px;
    position: relative;
    z-index: 0;
}
#header_expertos h1, #header_servicios h1{
    color: rgb(58,146,170);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}
#header_2{
    height: 600px!important;
    background-repeat: no-repeat;
    background-position:0px -100px;
    position: relative;
    z-index: 0;
}
#titulo_2{
    transform: translateY(0%);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    text-align: center;
    max-width: 800px;
    padding-bottom: 30px;
}
.header_interno h1{
    font-size: 50px;
    font-family: 'Regulator Nova', sans-serif;
    color: white;
}
.sector1{
    display: flex;
    flex-direction: column;
    color: rgb(107, 107, 107);
    padding-inline: 10%;
    font-size: 20px;
    font-weight: 300;
    text-align: justify;
    padding-top: 0px;
    gap: 30px;
}
.sector2{
    display: flex;
    flex-direction: column;
    gap:20px;
    color: rgb(124,155,51);
    padding-inline: 10%;
    font-size: 20px;
    font-weight: 300;
    text-align: justify;
    padding-top: 40px;
    padding-bottom: 60px;
}
.sector2 ul{
    padding-left: 40px;
}
.boton_chat {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    cursor: pointer;
}
.boton_chat img {
    width: 160px; /* Ajusta el tamaño según tu diseño */
    display: block;
}

/* Calculadora de Merma */
.calculadora {
  max-width: 100%;
  margin: 40px auto;
  padding: 10px;
}
.tarjeta{
    width: 100%;
}
.calculadora h2 {
  color: rgb(206,94,94);
  font-size: 24px;
  text-align: center;
}
.calculadora p {
  color: rgb(58,146,170);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

.tabla-wrapper {
  overflow-x: auto; /* permite scroll en móviles */
}
.tabla-calculadora {
/* Color verde en la 3ra y 4ta columna de la primera tabla, excepto encabezados */

#calculadora-merma .tabla-calculadora td:nth-child(3),
#calculadora-merma .tabla-calculadora td:nth-child(4) {
    color: rgb(58,146,170) !important;
}
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  font-size: 18px;
}
.tabla-calculadora th, .tabla-calculadora td {
  border: 1px solid #e0e0e0;
  padding: 10px 8px;
  text-align: center;
  min-width: 140px;
  max-width: 180px;
  width: 140px;
}
.tabla-calculadora th {
  background: rgb(58,146,170);
  color: white;
  font-weight: bold;
}
.tabla-calculadora input[type="number"] {
  width: 90px;
  padding: 5px;
  border-radius: 6px;
  border: 1px solid #bdbdbd;
  font-size: 16px;
  text-align: right;
}
.tabla-calculadora tfoot td {
  background: #f8f8f8;
  font-size: 20px;
}
.tabla-calculadora .perd-mes,
.tabla-calculadora .perd-anio,
.tabla-calculadora #perdida-total-anual {
  text-align: right;
}
@media (max-width: 700px) {
    .tabla-calculadora th, .tabla-calculadora td {
        padding: 6px 2px;
    }
                .tabla-calculadora td:last-child,
                .tabla-calculadora td:nth-last-child(2) {
                    padding-right: 16px !important;
                }
        .tabla-impacto th:last-child,
                .tabla-impacto td:last-child,
                .tabla-impacto td:nth-last-child(2) {
                    padding-right: 16px !important;
                }
    .tabla-calculadora input[type="number"] {
        width: 60px;
    }
}

/* Calculadora Impacto Precio */
.tabla-impacto th {
  background: rgb(58,146,170);
  color: white;
}
.tabla-impacto th#th-utilidad-anual,
.tabla-impacto td.utilidad-anio,
#total-impacto-anual {
  background: rgb(58,146,170);
  color: white;
  transition: background 0.3s, color 0.3s;
  text-align: right;
}
.tabla-impacto.negativo th#th-utilidad-anual,
.tabla-impacto.negativo td.utilidad-anio,
.tabla-impacto.negativo #total-impacto-anual {
  background: rgb(206,94,94);
  color: white;
}
#titulo-impacto.negativo {
  color: rgb(206,94,94);
}

.subtitulo_tarjeta{
    font-size: 20px;
    line-height: 30px!important;
    display: flex;
    text-align: center!important;
    font-weight: 800!important;
}
/* LISTADO DE SERVICIOS INTERNO */
.contenedor_servicioList{
    display: flex;
    flex-direction: column;
    gap: 140px;
    padding-inline: 10%;
    margin-top: 10%;
    margin-bottom: 10%;
}
.contenedor_icono{
    margin-top: -20px;
}
.contenedor_icono i{
    font-size: 40px;
    color: rgb(58,146,170);
}
.servicio_item{
    border-radius: 15px;
    border-style: solid;
    border-width: 2px;
    border-color: rgb(58,146,170);
    padding: 20px;
    padding-inline: 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.contenedor_info{
    margin-top: -20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.contenedor_info h2{
    font-family: 'Regulator Nova', sans-serif;
    color: rgb(58,146,170);
}
.contenedor_info h3{
    font-size: 22px;
    color: rgb(58,146,170);
    font-weight: 600;
}
.contenedor_info p{
    font-size: 18px;
    font-weight: 300;
    color: rgb(80, 80, 80);
    text-align: justify;
}
.contenedor_info b{
    font-weight: 500;
    color: rgb(124,155,51);
}
.servicio_item a{
    text-decoration: none;
    align-self: flex-end;
}
.btn_item_servicio{
    width: max-content;
    height: 50px;
    margin-bottom: -50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    align-self: flex-end;
    margin-top: 40px;
    font-size: 16px;
    padding-inline: 23px;
    color: white;
    background-color: rgb(124,155,51);
    border-radius: 50px;
    border-width: 2px;
    border-style: solid;
    border-color: rgb(58,146,170);
}

.btn_item_servicio:hover{
    transform: scale(0.95);
    cursor: pointer;
    transition: 0.3s;
}

/* ACORDEÓN */
.acordeon_metodologias {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 10px;
}
.titulo_acordeon {
  text-align: center;
  color: rgb(58,146,170);
  font-size: 2rem;
  margin-bottom: 20px;
  font-family: 'Regulator Nova', sans-serif;
}
.acordeon {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(58,146,170,0.08);
  overflow: hidden;
}
.acordeon_item {
  border-bottom: 1px solid #e0e0e0;
}
.acordeon_item:last-child {
  border-bottom: none;
}
.acordeon_titulo {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  padding: 24px 20px 18px 20px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  color: rgb(58,146,170);
  font-family: 'Regulator Nova', sans-serif;
  transition: background 0.2s;
}
.acordeon_item.activo .acordeon_titulo {
  background: rgb(124,155,51,0.08);
  color: rgb(58,146,170);
}
.icono_acordeon {
  font-size: 1.5rem;
  margin-right: 8px;
}
.acordeon_subtitulo {
  font-size: 1rem;
  font-style: italic;
  color: rgb(124,155,51);
  margin-left: 10px;
  font-weight: 600;
}
.acordeon_titulo i {
  margin-left: auto;
  transition: transform 0.3s;
}
.acordeon_item.activo .acordeon_titulo i {
  transform: rotate(180deg);
}
.acordeon_contenido {
  display: none;
  padding: 0 32px 24px 56px;
  color: rgb(107, 107, 107);
  font-size: 1.08rem;
  animation: fadeIn 0.3s;
  padding-block: 30px;
  gap: 20px;
}
.acordeon_item.activo .acordeon_contenido {
  display: flex;
  flex-direction: column;
}
.acordeon_contenido ul {
  margin: 12px 0 0 0;
  padding-left: 20px;
}
.acordeon_contenido li {
  margin-bottom: 6px;
  line-height: 1.5;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* OCULTANDO CAMPO DEL FORMULARIO */
#especifique_mype {
  display: none;
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
}
#especifique_mype.visible {
  display: block;
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
}

.bpmscrum{
    display: flex;
    background-image: url(/assets/img/fondo-combinacion-perfecta-3.webp);
    background-size: cover;
    height: 100vh;
    background-attachment: fixed;
    background-position: top;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0px;
    padding: 0px 10% 0px 10%;
}
.bpmscrum p{
    color: rgb(124,155,51);
    font-size: 1.8rem;
    text-align: center;
    font-weight: 400;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Estilos para la sección bpmscrum */
/* .bpmscrum {
    max-width: 900px;
    margin: 60px auto 40px auto;
    padding: 40px 10% 32px 10%;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(58,146,170,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
} */

.bpmscrum h2 {
    color: rgb(124,155,51);
    font-size: 4rem;
    font-family: 'Regulator Nova', sans-serif;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    text-shadow: 2px 2px 8px rgba(255, 255, 255, 0.6);
}
.bpmscrum h3{
    color: rgb(58,146,170);
    font-size: 2.5rem;
    font-family: 'Regulator Nova', sans-serif;
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.bpmscrum h2 span {
    font-style: italic;
    font-weight: bold;
}

/* .bpmscrum p {
    color: #444;
    font-size: 1.18rem;
    text-align: center;
    font-weight: 300;
    margin-bottom: 0;
    line-height: 1.6;
} */

.bpmscrum .botonera_quienes_somos {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

.bpmscrum .botonera_quienes_somos button {
    background: rgb(124,155,51);
    color: #fff;
    font-size: 1.5rem;
    font-family: 'Regulator Nova', sans-serif;
    border: none;
    border-radius: 26px;
    padding: 12px 38px;
    cursor: pointer;
    font-style: italic;
    font-weight: bold;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(58,146,170,0.08);
}

.bpmscrum .botonera_quienes_somos button:hover {
    background: rgb(58,146,170);
    transform: scale(0.97);
}

@media (max-width: 700px) {
    .bpmscrum {
        padding: 24px 4% 20px 4%;
    }
    .bpmscrum h2 {
        font-size: 1.3rem;
    }
    .bpmscrum p {
        font-size: 1rem;
    }
}

/* NUESTROS EXPERTOS */

.expertos{
    width: 90%;
    padding-inline: 5%;
    display: flex;
    flex-direction: column;
    padding-block: 60px;
    gap: 40px;
}
.item_expertos{
    display: flex;
    border-color: rgb(58,146,170);
    border-width: 3px;
    border-style: solid;
    border-radius: 15px;
    padding-block: 20px;
    padding-inline: 20px;
    gap: 40px;
    align-items: center;
    height: max-content;
}
.col1 img{
    max-width: 320px;
    border-radius: 15px;
}
.col2{
    display: flex;
    flex-direction: column;
    gap: 15px;
    color: rgb(107, 107, 107);
    font-size: 0.9em;
}
.logos_expertos img{
    max-height: 30px;
    filter: grayscale(100%);
    transition: filter 0.4s ease;
    padding-top: 20px;
}
.logos_expertos.grande img {
    max-height: 42px !important;
    height: 42px !important;
    padding-top: 10px;
}
#logos_expertos_jose img{
    max-height: 40px;
}
#logos_expertos_luis img{
    max-height: 60px;
}
.logos_expertos img:hover{
    filter: grayscale(0%); 
}
.logos_expertos{
    border-top: solid 1px rgb(124,155,51);
    width: 100%;
    display: flex;
    gap: 30px!important;
    padding-top: 10px;
    justify-content: center;
    margin-top: 10px;
}
.logos_expertos.jose-grande {
    border-top: solid 1px rgb(124,155,51);
    padding-top: 10px;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    width: 100%;
}
.logos_expertos.jose-grande img {
    max-height: 38px !important;
    padding-top: 20px !important;
}
.logos_expertos.grande {
    padding-top: 0 !important;
    margin-top: 10px;
}
.presentacion{
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: justify;
}
.presentacion p{
    display: flex;
    padding-right: 30px;
}
.estudios ul{
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.estudios ul li{
    display: flex;
    gap: 10px;
}
.estudios ul li i{
    color: rgb(58,146,170);
}
.titular{
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.titular h2{
    font-family:'Regulator Nova', sans-serif;
    color: rgb(58,146,170);
}
.titular p{
    font-size: 20px;
    font-weight: 400;
    color: rgb(124,155,51);
}

/* Efecto de aparición suave */
.anim-bpmscrum {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s, transform 1s;
    will-change: opacity, transform;
}
.anim-bpmscrum.visible {
    opacity: 1;
    transform: translateY(0);
}

/* SOMOS AGRESPRO */

.somos_agespro {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(58,146,170,0.08)!important;
    max-width: 500px!important;
    margin: 60px auto 0px auto;
    padding: 48px 10% 40px 10%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: justify;
    justify-content: center!important;
    transform: translateY(-250px);
}

.frase_destacada {
    font-family: 'Regulator Nova', sans-serif;
    font-size: 2rem!important;
    color: rgb(58,146,170)!important;
    font-weight: bold!important;
    margin: 56px 0 32px 0;
    line-height: 1.1!important;
    letter-spacing: 0.5px;
    text-align: left!important;
    max-width: 600px!important;
}
.contenido_somos ul{
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.contenido_somos b{
    color: rgb(124,155,51);
}
.contenido_somos li{
    list-style: none;
}
.contenido_somos li i{
    color: rgb(58,146,170);
    margin-right: 5px;
}
.contenido_somos p {
    color: rgb(80, 80, 80);
    font-size: 1.25rem;
    font-weight: 300!important;
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 1200px;
}

@media (max-width: 900px) {
    .somos_agespro {
        padding: 24px 4% 20px 4%;
    }
    .frase_destacada {
        font-size: 2rem;
        margin: 32px 0 20px 0;
    }
    .contenido_somos p {
        font-size: 1.05rem;
    }
}

.progreso_horizontal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 8px;
    background: #e6f0ec;
    z-index: 9999;
    box-shadow: 0 2px 8px #3a92aa22;
}

.progreso_horizontal_fg {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #7c9b33 0%, #3a92aa 100%);
    border-radius: 0 8px 8px 0;
    transition: width 0.2s cubic-bezier(.4,2,.6,1);
}

.contenedor_somos_agespro{
    background-image: url(/assets/img/fondo-combinacion-perfecta-2.webp);
    background-size: cover;
    background-repeat: no-repeat;
    padding-bottom: 80px;
    margin-bottom: -180px;
}


/* SECCIÓN DE VIDEO */

.seccion_gestion_precios {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 24px rgba(58,146,170,0.08);
    width: 80%;
    padding-inline: 10%;
    height: 100vh;
    background-color: rgb(248, 247, 247);
    background-image: url(/assets/img/fondo-2.webp);
    background-position: center;
    background-size: cover;
    gap: 40px;
}

.columna_texto {
    /* flex: 1 1 340px; */
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;

}

.columna_texto h2 {
    font-family: 'Regulator Nova', sans-serif;
    font-size: 35px;
    color:rgb(58, 146, 170);
    font-weight: 900;
    /* margin-bottom: 18px; */
    line-height: 1.1;
    max-width: 600px;
}

.columna_texto p {
    color: rgb(124, 155, 51);
    font-size: 20px;
    font-family: 'Regulator Nova', sans-serif;
    font-weight: 600;
    line-height: 1.5;
    max-width: 600px;
}

.columna_video {
    /* flex: 1 1 340px; */
    display: flex;
    justify-content: center;
    align-items: center;
}

.video_caratula_contenedor {
    position: relative;
    width: 570px;
    max-width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(58,146,170,0.12);
}

.caratula_video {
    width: 100%;
    display: block;
    border-radius: 16px;
}

.btn_play_video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4.5rem;
    color: #fff;
    text-shadow: 0 2px 16px #3a92aa;
    opacity: 0.92;
    transition: opacity 0.2s;
    z-index: 2;
}
.btn_play_video:hover {
    transform: scale(0.98) translate(-50%, -50%);
}

.modal_video {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}
.modal_video_fondo {
    position: absolute;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.7);
    z-index: 1;
}
.modal_video_contenido {
    position: relative;
    z-index: 2;
    background: #000;
    border-radius: 16px;
    padding: 0;
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal_video_contenido video {
    width: 640px;
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 16px;
    background: #000;
}
.cerrar_modal_video {
    position: absolute;
    top: 8px;
    right: 16px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 3;
    line-height: 1;
}

@media (max-width: 900px) {
    .seccion_gestion_precios {
        flex-direction: column;
        gap: 24px;
        padding: 24px 2% 24px 2%;
    }
    .columna_texto h2 {
        font-size: 1.5rem;
    }
    .video_caratula_contenedor {
        width: 100%;
        min-width: 0;
    }
    .modal_video_contenido video {
        width: 100vw;
        max-width: 98vw;
        max-height: 40vh;
    }
}


/* POPUP */
.popup_inicio {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Regulator Nova', sans-serif;
}
.popup_fondo {
    position: absolute;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(58,146,170,0.25);
    backdrop-filter: blur(2px);
    z-index: 1;
}
.popup_contenido {
    position: relative;
    z-index: 2;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(58,146,170,0.18);
    padding: 48px 32px 32px 32px;
    max-width: 380px;
    text-align: center;
    animation: popupIn 0.5s cubic-bezier(.4,2,.6,1);
}
@keyframes popupIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.popup_contenido h2 {
    color: #7c9b33;
    font-size: 2.1rem;
    font-weight: 900;
    margin-bottom: 18px;
    font-family: 'Regulator Nova', sans-serif;
}
.popup_contenido h3 {
    color: #3a92aa;
    font-size: 1.15rem;
    margin-bottom: 32px;
    font-weight: 500;
    font-family: "Helvetica", sans-serif;
}
.popup_botones {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
}
.btn_popup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 14px 24px;
    border-radius: 8px;
    border: none;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px #3a92aa22;
    cursor: pointer;
}
.btn_popup.verde {
    background: linear-gradient(90deg, #7c9b33 0%, #3a92aa 100%);
    color: #fff;
}
.btn_popup.verde:hover {
    background: linear-gradient(90deg, #3a92aa 0%, #7c9b33 100%);
    color: #fff;
}
.btn_popup.azul {
    background: #fff;
    color: #3a92aa;
    border: 2px solid #3a92aa;
}
.btn_popup.azul:hover {
    background: #3a92aa;
    color: #fff;
}
.popup_cerrar {
    position: absolute;
    top: 12px; right: 18px;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: #7c9b33;
    cursor: pointer;
    z-index: 3;
    transition: color 0.2s;
}
.popup_cerrar:hover {
    color: #3a92aa;
}
@media (max-width: 600px) {
    .popup_contenido {
        max-width: 92vw;
        padding: 32px 8vw 24px 8vw;
    }
    .btn_popup {
        font-size: 1rem;
        padding: 12px 10px;
    }
}

/* Efecto de aparición sencilla para frase_quienes_somos */
.frase_quienes_somos {
    font-family: 'Regulator Nova', sans-serif;
    font-style: italic;
    font-size: 1.2rem;
    color: white;
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 1.1;
    text-align: right;
    margin-top: 0;
    overflow: visible;
    display: flex;
    width: 60%;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s, transform 0.8s;
    justify-content: right!important;
}
.frase_quienes_somos h3{
    width: 400px;
}
.frase_quienes_somos.visible {
    opacity: 1;
    transform: translateY(0);
}
@media (max-width: 900px) {
    .frase_quienes_somos {
        font-size: 1.2rem;
        width: 90%;
    }
}

#estudios_jose{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding-right: 30px;
}
#estudios_jose div{
    gap: 10px;
}

#item_expertos_jose{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

#logos_expertos_jose{
    padding-top: 0px!important;
}

.servicio_item ul{
    list-style: none;
    color: rgb(107, 107, 107);
    font-size: 1.15rem;
    line-height: 40px;
}

.servicio_item ul li{
    display: flex;
    line-height: normal;
    gap: 10px;
    padding-bottom: 10px;
}

.servicio_item ul li i{
    color: rgb(58,146,170);
    font-size: 20px;
}

/* Ajuste visual para inputs de texto en calculadoras */
.input-glns, .input-ventas {
    width: 100px;
    font-size: 16px;
    text-align: right;
    border: 1px solid #bdbdbd;
    border-radius: 6px;
    padding: 5px;
    color: #3a92aa;
    font-weight: bold;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.input-glns:focus, .input-ventas:focus {
    border-color: rgb(58,146,170);
    outline: none;
}

.botonera_call_to_action{
    display: flex;
    justify-content: left;
    gap: 20px;
    margin-top: 20px;
}
.botonera_call_to_action button{
    width: 300px;
}

/* ====== SUBMENÚ HEADER ====== */
.menu_principal .submenu-parent {
  position: relative;
  display: inline-block;
  font-size: 13px;
  color: rgb(58,146,170);
  font-weight: 600;
}
.menu_principal .submenu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 180px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(154, 154, 154, 0.037);
  border-radius: 0 0 8px 8px;
  z-index: 100;
  padding: 0;
  margin: 0;
}
.menu_principal .submenu li {
  list-style: none;
  padding: 12px 18px;
  cursor: pointer;
  transition: background 0.2s;
}
.menu_principal .submenu li:hover {
  background: #f2f2f2fc;
  color: rgb(58,146,170);
  border-radius: 0 0 8px 8px;
  font-weight: 600;
}
.menu_principal .submenu-parent:hover > .submenu {
  display: block;
}
@media (max-width: 900px) {
  .menu_principal {
    flex-direction: column;
    gap: 0;
  }
  .menu_principal .submenu-parent {
    width: 100%;
  }
  .menu_principal .submenu {
    position: static;
    min-width: 100%;
    box-shadow: none;
    border-radius: 0 0 8px 8px;
  }
  .menu_principal .submenu li {
    padding: 14px 24px;
  }
}

.tabla-impacto .ganancia-mes {
  text-align: right !important;
}



/* adaptamos a tablets */
@media (min-width: 601px) and (max-width: 1024px) {
    html, body{
        overflow-x: hidden;
    }

    header{
        display: none;
    }


     .header-nav {
        display: flex;
        justify-content: space-between;
        padding: 10px 30px;
        width: 95%;
        /* position: fixed; */
        top: 0;
        left: 0;
        background-color: white;
        box-shadow: 0 2px 8px rgb(58, 146, 170, 0.1);
        z-index: 1000;
    }

    .menu-toggle {
        display: block;
    }

    .header-nav .logo img {
        width: 280px;
    }

    .telefono_header {
        display: none;
    }

    .navegacion-principal ul {
        text-align: left;
    }

    .navegacion-principal {
        display: block;
    }

    #telefono_header {
        justify-content: start;
    }

    .navegacion-principal.active {
        padding-left: 30px;
    }

    .navegacion-principal li a {
        color: rgb(58, 146, 170);
        font-size: 14px;
    }

    .dropdown.active .submenu {
        display: block !important;
    }

    .dropdown .submenu li {
        padding: 0 15px;
        text-align: left;
    }

    .dropdown .submenu a {
        color: rgb(58, 146, 170);
    }

    .dropdown .submenu {
        background-color: rgb(250, 250, 250);
    }

    .navegacion-principal a:hover {
        color: rgb(124, 155, 51) !important;
    }


    .call_to_action{
        width: auto;
    }


    .somos_agespro_1{
        background-position: top;
        width: auto;
    }

    .seccion_gestion_precios{
        width: 80%;
        padding-inline: 10%;
    }

    .nuestros_expertos{
        width: auto;
        flex-direction: column;
        padding-top: 50px;
        padding-bottom: 50px;
    }
    .nuestros_expertos_col1{
        align-items: center;
    }
    .nuestros_expertos_col1 p{
        text-align: center;
        width: 100%;
    }
    .gerentes img{
        width: 100%;
        object-fit: cover;
        height: auto;
    }


    .footer_inferior{
        padding-top: 50px;
    }
}



/* ajustamos a dispositvos móviles */
@media (max-width: 768px) {
    body, html{
        overflow-x: hidden;
    }

    .header-nav{
        display: flex;
        justify-content: space-between;
        padding: 10px 30px;
        width: 90%;
        /* position: fixed; */
        top: 0;
        left: 0;
        background-color: white;
        box-shadow: 0 2px 8px rgb(58,146,170,0.1);
        z-index: 1000;
    }
    .menu-toggle {
        display: block;
    }
    .header-nav .logo img{
        max-width: 280px;
    }
    .telefono_header {
        display: none;
    }
    .navegacion-principal ul{
        text-align: left;
    }
    .navegacion-principal {
        display: block;
    }
    #telefono_header{
        justify-content: start;
    }
    .navegacion-principal.active{
        padding-left: 30px;
    }
    .navegacion-principal li a{
        color: rgb(58,146,170);
        font-size: 14px;
    }
    .dropdown.active .submenu{
        display: block !important;
    }
    .dropdown .submenu li{
        padding: 0 15px;
        text-align: left;
    }
    .dropdown .submenu a{
        color: rgb(58,146,170);
    }
    .dropdown .submenu{
        background-color: rgb(250, 250, 250);
    }
    .navegacion-principal a:hover{
        color: rgb(124, 155, 51)!important;
    }


    header{
        display: none;
    }

    .hero{
        height: 50vh;
    }
    .content_hero h1{
        font-size: 1.4em;
        line-height: 1.2;
    }
    .content_hero h3{
        font-size: 1em;
        line-height: 1.2;
    }

    
    .call_to_action{
        width: auto;
        padding: 0;
        background-position: top;
        padding: 80px 30px;
    }
    .call_to_action h1{
        font-size: 1.8em;
        line-height: 1.2;
        text-align: center;
        width: 100%;
    }
    .call_to_action li{
        font-size: 1.2em;
        line-height: 1.2;
    }
    .botonera_call_to_action{
        flex-direction: column;
    }
    .botonera_call_to_action button{
        font-size: 20px;
        padding: 7px 10px;
        height: 60px;
    }


    .bpmscrum{
        width: auto;
        padding: 10%;
        height: max-content;
        padding-block: 100px;
    }
    .bpmscrum h3{
        font-size: 1.6em;
        line-height: 1.2;
    }

    #btn_bpmscrum{
        font-size: 20px;
        padding: 7px 12px;
    }


    .somos_agespro_1{
        background-position: top;
        width: auto;
        padding-block: 80px;
    }
    .somos_agespro_1 h2{
        font-size: 2.2em;
        line-height: 1.2;
        text-align: center;
        width: 100%;
    }
    .somos_agespro_1 p{
        width: 100%;
    }
    .botonera_quienes_somos{
        justify-content: right;
    }
    #quienes_somos_btn1{
        font-size: 20px;
        padding: 7px 12px;
    }
    #quienes_somos_btn2{
        font-size: 20px;
        padding: 7px 12px;
    }


    .nuestros_expertos{
        flex-direction: column;
        width: auto;
        padding-bottom: 50px;
        padding-top: 50px;
        height: auto;
    }
    .nuestros_expertos_col1 h2{
        font-size: 40px;
        line-height: 1.2;
        text-align: center;
        width: 100%;
    }
    .nuestros_expertos_col1{
        align-items: center;
    }
    .nuestros_expertos_col1 p{
        font-size: 24px;
        line-height: 1.2;
        text-align: center;
        width: 100%;
    }
    .nuestros_expertos_col2{
        flex-direction: column;
    }
    .gerentes img{
        width: 100%;
        object-fit: cover;
        height: auto;
    }


    .nuestros_servicios{
        flex-direction: column;
        width: auto;
        padding-top: 50px;
        height: auto;
    }
    .contenedor_introduccion_nuestros_servicios{
        height: max-content;
    }
    .contenedor_introduccion{
        flex-direction: column;
        gap: 20px;
    }
    .titulo_nuestros_servicios h2{
        font-size: 40px;
        line-height: 1.2;
        text-align: center;
        width: 100%;
    }
    .frase_parte2{
        font-size: 30px;
        line-height: 1.2;
        width: 100%;
    }
    .tarjeta_servicio {
        flex: 0 0 30%;
        min-width: 80%;
        max-width: 240px;
        opacity: 1;
        transform: none;
        transition: none;
    }
    .tarjeta_servicio h2{
        font-size: 1.2em;
    }
    .tarjeta_servicio p{
        font-size: 1em;
    }
    .btn_servicio_1, .btn_servicio_2{
        font-size: 14px;
        padding: 7px 12px;
    }
    .carrusel{
        gap: 0;
    }
    .contenedor_carrusel{
        width: 100%;
        height: max-content;
    }
    #btn_nav_1{
        margin-right: 4px !important;
        font-size: 5px!important;
    }
    #btn_nav_2{
        margin-left: 4px !important;
        font-size: 5px!important;
    }
    .tarjeta_esperto .col1 img{
        border-radius: 12px !important;
    }

    .seccion_gestion_precios{
        flex-direction: column;
        gap: 35px;
        width: 80%;
        padding-inline: 10%;
        height: max-content;
        padding-block: 80px;
    }
    .columna_texto{
        flex: auto;
        text-align: center;
        padding-inline: 20px;
        padding-right: 30px;
    }
    .columna_video{
        flex: auto;
        padding-inline: 20px;
        padding-right: 30px;
    }
    .contacto{
        height: max-content;
        padding-block: 80px;
        padding-inline: 0px;
        width: 100%;
        justify-content: center!important;
    }

    .logos_expertos{
        column-gap: 25px!important;
    }
    .contenedor_formulario{
        padding: 25px;
        width: 300px;
    }
    .form_col2{
        display: flex;
        flex-direction: column;
        gap:20px;
    }

    .form_col2 input{
        width: 94%;
    }
    .form_flex{
        flex-direction: column;
        gap: 20px;
    }

    .footer_principal{
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .descripcion_footer{
        width: 100%;
    }
    .footer_principal ul{
        text-align: left;
    }
    .footer_inferior{
        padding-top: 30px;
    }

    .boton_chat img {
        width: 120px; /* Ajusta el tamaño según tu diseño */
    }

    .boton_chat{
        right: 10px;
    }

    .contenedor_somos_agespro{
        background-size: cover;
        background-repeat: no-repeat;
        padding-bottom: 0px;
        margin-bottom: -180px;
        padding-inline: 20px;
    }

    #titulo_2{
        font-size: 2.2rem;
    }

    .frase_destacada{
        font-size: 1.5rem!important;
        /* margin: 32px 0 20px 0; */
    }

    .tabla-calculadora{
        /* transform: rotate(90deg); */
        width: 600px;
        height: 200px;
        overflow-x: auto;
    }
    #contenedor-tabla-merma{
       height: max-content;
       display: flex;
        justify-content: center;
        align-items: center;
    }
    #contenedor-tabla-impacto{
        height: max-content;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #contenedor-input-precio-impacto span, input{
        font-size: 20px!important;
    }
    #contenedor-input-precio-impacto{
        padding: 5px 10px !important;
    }
}

/* Scroll horizontal en tablas de calculadoras en móviles */
@media (max-width: 600px) {
  #contenedor-tabla-merma,
  #contenedor-tabla-impacto {
    overflow-x: auto !important;
    width: 100%;
    display: block;
    height: auto;
    -webkit-overflow-scrolling: touch;
  }
  .tabla-calculadora {
    min-width: 700px;
    width: 700px;
    display: table;
    table-layout: fixed;
  }
  .tabla-calculadora th,
  .tabla-calculadora td {
    min-width: 140px;
    max-width: 180px;
    width: 140px;
    word-break: break-word;
    white-space: normal;
  }

  /* Indicador visual de scroll lateral en tablas */
  #contenedor-tabla-merma::after,
  #contenedor-tabla-impacto::after {
    content: 'Desliza a la izquierda para ver toda la tabla →';
    display: block;
    text-align: right;
    font-size: 0.95em;
    color: rgb(58,146,170);
    background: rgba(255,255,255,0.85);
    padding: 6px 12px 2px 0;
    position: relative;
    z-index: 2;
    margin-top: 2px;
    font-style: italic;
  }
}

@media (min-width: 601px) and (max-width: 1024px) {
  .footer_inferior {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    position: relative;
    bottom: 0;
    width: 100%;
  }
  body, html {
    min-height: 100vh;
  }
  .pie_de_pagina {
    /* Unificar tamaño de fuente de la segunda calculadora en móviles */
    #calculadora-impacto h2,
    #calculadora-impacto .tabla-impacto th,
    #calculadora-impacto .tabla-impacto td {
        font-size: 1.14rem !important;
    }
    #calculadora-impacto input[type="text"],
    #calculadora-impacto input[type="number"] {
        font-size: 1.14rem !important;
    }
    position: relative;
    width: 100%;
  }
}

/* Asegurar que el texto debajo del título 'Libro de reclamaciones' mantenga la alineación a la izquierda en la versión móvil. */
@media (max-width: 600px) {
  .libro-reclamaciones-descripcion {
    text-align: left !important;
  }
}

.datos_empresa {
  text-align: left !important;
}
@media (max-width: 600px) {
  .datos_empresa {
    text-align: left !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 12px;
    width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    font-size: 0.98em;
  }
  .datos_empresa span,
  .datos_empresa .direccion_empresa span {
    display: block;
    width: 100%;
    font-size: 0.98em;
    word-break: break-word;
    white-space: normal;
    overflow-wrap: break-word;
  }
}

/* Reducir tamaño de texto en los campos del formulario de inicio */
#formulario_inicio input[type="text"],
#formulario_inicio input[type="email"],
#formulario_inicio input[type="tel"],
#formulario_inicio select {
  font-size: 0.95em !important;
}
@media (max-width: 900px) {
  #formulario_inicio input[type="text"],
  #formulario_inicio input[type="email"],
  #formulario_inicio input[type="tel"],
  #formulario_inicio select {
    font-size: 0.9em !important;
  }
}
@media (max-width: 600px) {
  #formulario_inicio input[type="text"],
  #formulario_inicio input[type="email"],
  #formulario_inicio input[type="tel"],
  #formulario_inicio select {
    font-size: 0.2em !important;
  }
  #formulario_inicio input[type="text"]::placeholder,
  #formulario_inicio input[type="email"]::placeholder,
  #formulario_inicio input[type="tel"]::placeholder,
  #formulario_inicio select::placeholder {
    font-size: 0.75em !important;
  }
  #formulario_inicio {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
}

@media (max-width: 900px) {
  .expertos-fijo .tarjeta_experto {
    flex-direction: column !important;
    gap: 20px !important;
    padding: 20px 10px !important;
    align-items: flex-start !important;
  }
  .expertos-fijo .tarjeta_experto .col1 {
    width: 100% !important;
    max-width: 320px !important;
    min-width: 0 !important;
    margin: 0 auto 0 auto !important;
    display: flex !important;
    justify-content: center !important;
  }
  .expertos-fijo .tarjeta_experto .col1 img {
    width: 100% !important;
    height: auto !important;
    max-width: 320px !important;
    aspect-ratio: 1/1 !important;
    object-fit: contain !important;
    object-position: top center !important;
    border-radius: 12px !important;
    display: block !important;
  }
  .expertos-fijo .tarjeta_experto .col2 {
    width: 100% !important;
    text-align: left !important;
  }
  .expertos-fijo .tarjeta_experto .estudios ul {
    text-align: left !important;
    padding-left: 0 !important;
    margin-bottom: 10px !important;
  }
  .expertos-fijo .tarjeta_experto .estudios li {
    text-align: left !important;
    font-size: 0.95em !important;
    margin-bottom: 6px !important;
    list-style: none !important;
    display: flex !important;
    align-items: center !important;
  }
}

.expertos-fijo {
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
  padding-top: 40px;
}
.expertos-fijo .tarjeta_experto .logos_expertos {
  display: flex;
  flex-wrap: wrap;
  gap: 17px;
  margin-top: 10px;
}
.expertos-fijo .tarjeta_experto .logos_expertos img {
  height: 48px !important;
  max-width: 120px;
  margin-right: 0;
  margin-bottom: 8px;
  object-fit: contain;
}


