* {
  font-family: 'Poppins', sans-serif;
}

.empresa-section {
    background: #f2f8ed;
    padding: 130px 0 0;
    display: flex;
    justify-content: center;
    height: 100vh;
}

.empresa-box {
    width: 90%;
    background: #fff;
    border-radius: 30px;
    padding: 50px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    max-height: calc(100vh - 150px);
}
.empresa-info{
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    height: 100%;
}

.empresa-info h3 {
    font-size: 32px;
    font-weight: 400;
    margin: 0;
}

.empresa-info h1 {
    font-size: 60px;
    font-weight: 700;
    color: #990000;
    margin-top: -10px;
    margin-left: 15%;
}

.empresa-info p {
    font-size: 1.5rem;
    line-height: 1.4;
    margin-top: 10%
}

.carrusel {
  width: 100%;
    position: relative;
  max-width: 100%;
  overflow: hidden; 
  display: flex;
  align-items: center;
}

.empresa-swiper {
    width: calc(100% - 60px);
    max-width: 100%;
    overflow: hidden;
    border-radius: 20px;
}
.swiper-pagination{
    position: absolute;
    bottom: -20px;
}
.empresa-swiper .swiper-slide {
  width: 100%;
  max-width: 100%;
}

.empresa-swiper img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;     
  display: block;
}
.swiper-button-prev{
    width: 25px !important;
    position: absolute !important;
    left: 0 !important;
    font-weight: bold !important;
    color: #9B122E !important;
}
.swiper-button-next{
    width: 25px !important;
    position: absolute !important;
    right: 0 !important;
    font-weight: bold !important;
    color: #9B122E !important;
}
.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 20px !important;
    text-shadow:
    0 0 0 #9B122E,
    2px 0 #9B122E,
    1px 0 #9B122E;
}
.swiper-horizontal>.swiper-pagination-bullets, .swiper-pagination-bullets.swiper-pagination-horizontal, 
.swiper-pagination-custom, .swiper-pagination-fraction{
    bottom: -5px !important;
}

.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet, 
.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{
    margin-top: 10px !important;
    width: 20px !important;
    height: 20px !important;
}
.swiper-pagination-bullet-active{
    background: #9B122E !important;
    width: 25px !important;
    height: 25px !important;
}
.dif-section {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 60px 0px;
    background: #f2f8ed;
}

.dif-box-left {
    background: #fff;
    border-radius: 0px 20px 20px 0;
    padding: 40px;
    border: 4px solid #9B122E;
    width: 55%;
}

.dif-box-left h3 {
    font-size: 26px;
    font-weight: 400;
    margin: 0;

}

.dif-box-left h1 {
    font-size: 52px;
    font-weight: 700;
    color: #990000;
    margin: 5px 0 25px;
}

.dif-box-left p {
    font-size: 20px;
    line-height: 1.45;
    color: #444;
}

.dif-box-right {
    background: #fff;
    border-radius: 20px 0 0 20px;
    padding: 40px;
    border: 4px solid #9B122E;
    display: flex;
    flex-direction: column;
    gap: 35px;
    width: 45%;
}
.dif-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.dif-item img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}
.dif-item h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 5px;
    color: #990000;
}

.dif-item p {
    font-size: 17px;
    line-height: 1.4;
    color: #444;
}

/* =============================================
   OFI SECTION — mejorada
   ============================================= */

.ofi-section {
    width: 100%;
    padding: 60px 0 70px;
    background: #f2f8ed;
    display: flex;
    justify-content: center;
}

.ofi-box {
    position: relative;
    width: min(90%, 1200px);
    background: #fff;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 24px rgba(155, 18, 46, 0.06);
    width: 80%;
}

/* Línea decorativa sutil en el borde superior */
.ofi-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #9B122E44, transparent);
    border-radius: 0 0 3px 3px;
}


.ofi-title h3 {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: #888;
    margin: 0;
    text-transform: uppercase;
}

.ofi-title h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #990000;
    margin: 2px 0 0 12%;
    line-height: 1;
}

/* ---- Panel izquierdo (desktop) ---- */
.ofi-left {
    width: 42%;
    max-width: 460px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 70px 20px 70px 00px;
    p {
        text-align: justify;
    }
}

.ofi-main-text {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.65;
    margin: 0;
}

.ofi-sub-text {
    font-size: 14px;
    font-weight: 400;
    color: #666;
    line-height: 1.75;
    margin: 0;
}

/* Bloque de info de cada oficina */
.oficinas-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 20px;
    border-radius: 0 10px 10px 0;
}

.oficinas-info p:first-child {
    font-weight: 700;
    font-size: 15px;
    color: #6f0d20;
    margin: 0 0 6px;
}

.oficinas-info p {
    font-size: 13.5px;
    color: #444;
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

.oficinas-info p span {
    color: #111;
}

.oficinas-info a {
    color: #9B122E;
    text-decoration: none;
    transition: opacity 0.2s;
}

.oficinas-info a:hover {
    opacity: 0.75;
    text-decoration: underline;
}

.oficinas-image {
    margin-top: 14px;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.oficinas-image img {
    width: 80%;
    height: 185px;
    object-fit: cover;
    display: block;
    border-radius: 14px;
    transition: transform 0.4s ease;
}

.oficinas-image img:hover {
    transform: scale(1.02);
}

/* ---- Swiper oficinas ---- */
.oficinas-swiper {
    width: 100%;
    margin-top: 0;
}

.oficinas-swiper .swiper-wrapper {
    align-items: flex-start;
}

.oficinas-swiper .swiper-slide {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ---- Panel derecho (mapa) ---- */
.ofi-right {
    width: 42%;
    max-width: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.ofi-right img {
    width: 80%;
    height: auto;
    object-fit: contain;
}

.ofi-right svg {
    width: 100%;
    max-width: 380px;
    height: auto;
    display: block;
    overflow: visible;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.08));
}

.ofi-right svg path {
    fill: #c8c8c8;
    transform-origin: center;
    transform-box: fill-box;
    transition:
        transform 280ms cubic-bezier(.4,0,.2,1),
        fill 200ms ease;
    will-change: transform;
    pointer-events: all;
}

.ofi-right svg #PELIM,
.ofi-right svg #PEARE,
.ofi-right svg #PEPUN {
    fill: #9B122E;
    cursor: pointer;
}

.ofi-right svg #PELIM.is-hovered,
.ofi-right svg #PEARE.is-hovered,
.ofi-right svg #PEPUN.is-hovered {
    fill: #6f0d20;
    transform: scale(1.8) translateZ(0);
}

.ofi-right svg path.is-hovered {
    fill: #6f0d20;
    transform: scale(1.6);
    filter: drop-shadow(0 6px 14px rgba(0,0,0,.35));
}

.ofi-right svg path.is-active {
    fill: #9c1530;
    transform: scale(1.8);
    filter: drop-shadow(0 10px 20px rgba(156,21,48,.6));
}

/* ---- Tooltip ---- */
#map-tooltip {
    position: fixed;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    pointer-events: none;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 9999;
}

#map-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Panel izquierdo móvil (ofi-left-2) ---- */
.ofi-left-2 {
    visibility: hidden;
    height: 0;
    overflow: hidden;
    width: 0;
}

/* =============================================
   OFI SECTION — responsive
   ============================================= */

@media (max-width: 900px) {
    .ofi-box {
        gap: 30px;
        padding: 70px 40px 45px;
    }

    .ofi-left {
        width: 48%;
    }

    .ofi-right {
        width: 48%;
    }
}

@media (max-width: 700px) {
    .ofi-section {
        padding: 70px 0 50px;
    }

    .ofi-box {
        padding: 0;
        background: #f2f8ed;
        gap: 0;
        flex-direction: column-reverse;
        box-shadow: none;
        width: 92%;
    }

    .ofi-box::before {
        display: none;
    }

    .ofi-title {
        top: -55px;
        left: 0;
    }

    .ofi-title h3 {
        font-size: 1rem;
    }

    .ofi-title h1 {
        font-size: 2.2rem;
    }

    .ofi-left {
        display: none;
    }

    .ofi-left-2 {
        visibility: visible;
        width: 100%;
        height: 100%;
        padding: 0 4px 20px;
    }

    .ofi-right {
        width: 100%;
        max-width: 100%;
        margin-bottom: 10px;
    }

    /* Info cards en móvil */
    .oficinas-info-2 {
        text-align: center;
        padding: 14px 16px 18px;
        border-radius: 14px;
        margin: 0 8px;
    }

    .oficinas-info-2 p {
        margin: 0 0 6px;
        color: #6f0d20;
        font-weight: 700;
        font-size: 1.2rem;
        text-align: center;
    }

    .oficinas-info-2 a {
        display: block;
        color: #9B122E;
        font-size: 0.88rem;
        text-decoration: none;
        line-height: 1.5;
        margin-top: 2px;
    }

    .oficinas-info-2 a:hover {
        text-decoration: underline;
    }

    .oficinas-image-2 {
        display: flex;
        justify-content: center;
        margin-top: 12px;
    }

    .oficinas-image-2 img {
        width: 75%;
        height: 160px;
        object-fit: cover;
        border-radius: 12px;
    }
}

/* =============================================
   FIN OFI SECTION
   ============================================= */

.acreditaciones {
    width: 100%;
    background-image: linear-gradient(#000000b6, #0707077d), url(../image/home_2024/portada-manos.jpg);
    padding: 4% 10% 4% 10%;
}

.widgets-acre {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1% 0 0% 0;

}
.bloque-acre{
    width: auto;
    display: flex;
    align-items: center;
    background-color: white;
    padding: 2% 2%;
    text-decoration: none;
    color: #1A1A1A;
    border-radius: 5px;
    flex-direction: row;
    transition: .5s;

}
.bloque-acre:hover{
    box-shadow: 0px -5px inset #6f0d20;
    transition: .5s;
}
.img-acre{
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}
.img-acre img{
    width: 70px;
    margin: 0 20px;
}
.img-acre .onac_acre-img{
    width: 155px;
}
.img-acre .ina_acre-img{
    width: 155px;
}
.text-acre h3{
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}
.text-acre p{
    font-size: 16px;
    text-align: center;
}

@media (max-width: 1024px) {
    .acreditaciones{
        padding: 7% 5%;
    }
    .widgets-acre{
        flex-direction: column;
    }
    .bloque-acre{
        width: 100%;
        padding: 5%;
    }
    .bloque-acre {
        flex-direction: column;
    }
     .img-acre img{
        width: 50px;
    }
    .img-acre .ina_acre-img {
        width: 110px;
    }
    .img-acre .onac_acre-img {
        width: 110px;
    }
    .text-acre h3{
        font-size: 16px;
    }
    .text-acre p{
        font-size: 14px;
    }
}
.acre-section {
    width: 100%;
    background: #f2f8ed;
    padding-bottom: 50px;
}

.acre-title {
    font-size: 36px;
    font-weight: 700;
    color: #990000;
    padding: 40px 80px 20px;
    margin: 0;
}

.acre-banner {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.acre-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.acre-subtitle {
    font-size: 32px;
    font-weight: 700;
    color: #990000;
    padding: 40px 80px 10px;
    margin: 0;
}

.acre-list {
    width: 90%;
    margin: 20px auto 0;
    padding: 0 40px;
}


.acre-item {
    border-bottom: 1px solid #ccc;
}

.acre-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.acre-header:hover {
    background-color: #f5f5f5;
    padding-left: 10px;
}

.acre-header span:first-child {
    color: #333;
    flex: 1;
}

.acre-arrow {
    color: #990000;
    font-size: 20px;
    font-weight: 700;
    transition: transform 0.3s ease;
    margin-left: 10px;
}

.acre-item.active .acre-arrow {
    transform: rotate(180deg);
}

.acre-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    width: 100%;
}

.acre-item.active .acre-content {
    max-height: 1000px;
    padding-bottom: 15px;
}

.acre-content ul {
    list-style-type: disc;
    padding-left: 40px;
    margin: 15px 0;
}

.acre-content li {
    color: #333;
    margin-bottom: 10px;
    line-height: 1.6;
}

.acre-content p {
    color: #333;
    margin: 10px 0;
    padding-left: 20px;
    line-height: 1.6;
}

.contact-container{
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 80vh;
    background: #F5F9EF;
}
form{
    width: 100%;
}
label{
    display: block;
    font-size: 18px;
    font-weight: 600;
    margin: 20px 0 5px;
}
form input{
    box-shadow: inset 0px 3px 3px rgba(91, 90, 90, 0.501);
}

input[type="text"],
input[type="email"]{
    width: 100%;
    padding: 10px;
    background: #efefef;
    border: 2px solid #900020;
    border-radius: 5px;
    font-size: 16px;
}

.check{
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
    input{
        box-shadow: none;
    }
}


.check a{
    color: #900020;
    font-weight: 700;
    text-decoration: underline;
}
form input::placeholder{
    color: transparent;
}

.btn-enviar{
    background: #9B122E;
    border: none;
    width: 200px;
    height: 50px;
    border-radius: 10px;
    color: white;
    font-size: 1.5rem;
    transition: background 0.5s ease-out;
}
.btn-enviar:hover{
    background: black;
}
.content-btn-enviar{
    margin-top: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
}
.left-box{
    background: url('../assets/img/home-3.jpg') center/cover no-repeat;
    color: white;
    padding: 40px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.left-box h1{
    font-size: 70px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}

.left-box p{
    font-size: 28px;
    font-weight: 500;
    line-height: 1.4;
    background: rgba(0, 0, 0, 0.277);
    padding: 25px;
    border-radius: 10px;
}
.terminos{
    margin: 0;
}
.right-box{
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 30px 60px;
    display: flex;
    flex-direction: column;
    align-items: end;
    background: white;
}
@media (max-width : 950px){
    .contact-container .left-box{
        display: none;
    }
    .contact-container .right-box .content-bot{
        display: none;
    }
    .contact-container{
        display: flex;
        justify-content: center;
        min-height: 50vh;
        
    }
    .right-box{
        width: 85%;
        max-width: 90vw;
        height: auto;
        border-radius: 20px;
        background: white;
        box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
        padding: 20px 50px;
    }
    form label{
        opacity: 0;
        visibility: hidden;
    }
    form .terminos{
        opacity: 1;
        visibility: visible;
    }
    form input::placeholder{
        color: #626262;
    }
}

@media (max-width:600px){ 
    .contact-container{
        padding-top: 40px;
    }
    .right-box{
        width: 90%;
        padding: 0 30px 30px 30px;
    }
}

@media (max-width: 900px) {
    .empresa-section {
        padding: 80px 0 0;
        height: auto;
    }

    .empresa-box {
        width: 95%;
        padding: 30px 20px;
        grid-template-columns: 1fr;
        gap: 30px;
        max-height: none;
    }

    .empresa-info h3 {
        font-size: 20px;
        text-align: center;
    }

    .empresa-info h1 {
        font-size: 36px;
        margin-left: 0;
        text-align: center;
    }

    .empresa-info p {
        font-size: 1rem;
        text-align: center;
        margin-top: 20px;
    }

    .carrusel {
        width: 100%;
    }

    .empresa-swiper {
        width: 100%;
        border-radius: 10px;
    }

    .swiper-button-prev,
    .swiper-button-next {
        display: none;
    }

    .dif-section {
        flex-direction: column;
        padding: 40px 0;
        gap: 20px;
    }

    .dif-box-left {
        width: 90%;
        border-radius: 20px;
        padding: 30px 20px;
        margin: 0 auto;
    }

    .dif-box-left h3 {
        font-size: 18px;
        text-align: center;
    }

    .dif-box-left h1 {
        font-size: 32px;
        text-align: center;
    }

    .dif-box-left p {
        font-size: 16px;
        text-align: center;
    }

    .dif-box-right {
        width: 90%;
        border-radius: 20px;
        padding: 30px 20px;
        gap: 25px;
        margin: 0 auto;
    }

    .dif-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .dif-item img {
        width: 40px;
        height: 40px;
    }

    .dif-item h2 {
        font-size: 18px;
    }

    .dif-item p {
        font-size: 15px;
    }
}

@media (max-width:600px){
    .dif-box-left,
    .dif-box-right{
        background: #F5F9EF;
        border: none;
    }
    .dif-box-left{
        padding: 30px 0px 0 0px;
    }
    .dif-box-left h1,
    .dif-box-left h3{
        text-align: start;
    }
    .dif-box-right{
        padding: 0 20px;
    }
    .dif-box-left p{
        display: none;
    }
    .dif-item{
        flex-direction: row;
    }
    .dif-item h2{
        text-align: start;
    }
    .dif-item p{
        text-align: justify;
    }
}

@media (max-width:600px){
    .acre-title,
    .acre-subtitle{
        padding: 20px;
    }
}