/* Variables Globales */
:root {
    --primary-color: #0d4c75;
    --secundary-color: #F2C53D;
    --terciary-color: #638BBF;
    --dark: #0D0D0D;
    --ligth: #F2F2F2;

    --font-heading: 'Changa', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

body {
    overflow-x: hidden;
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
}

/* -----------------------------------
   ESTRUCTURA DEL HEADER (ESCRITORIO)
------------------------------------ */
.borybor-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding-top: 3rem;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
}

.logo-container {
    padding-left: 7rem;
    z-index: 102;
}

.logo-image {
    max-width: 500px;
    height: auto;
}

@keyframes slideMenuDesktop {
    0% {
        transform: translateX(100vw);
        /* Empieza totalmente fuera de la pantalla a la derecha */

    }

    100% {
        transform: translateX(0);
        /* Termina en su posición original */
    }
}

.nav-container {
    display: flex;
    background-image: url("../img/fondo-menu.png");
    background-repeat: no-repeat;
    background-size: cover;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 7% 100%);
    width: 65%;
}

.inner-nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 15px 40px 15px 100px !important;
}

.main-navigation {
    margin-right: 50px;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4rem;
    margin-left: 3rem;
}

.nav-links a {
    color: var(--ligth);
    text-decoration: none;
    font-family: 'Montserrat';
    font-weight: 600;
    font-size: 18px;
    transition: color 0.3s ease;
}


.header-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.social-links {
    display: flex;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0;
}

.social-links a {
    color: var(--ligth);
    font-size: 20px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: block;
}

.social-links a:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-size: 35px;
    cursor: pointer;
    padding-right: 30px;
    z-index: 102;
}

.offcanvas-header {
    display: none;
}

.animate__animated.animate__slideInRight {
    --animate-duration: 1.5s;
}

/* -----------------------------------
   SECCIÓN HERO DE PRUEBA
------------------------------------ */
.hero-demo {
    background-size: cover;
    background-position: center;
    background-image: linear-gradient(rgba(0, 0, 0, 75%), rgba(0, 0, 0, 0.5)), url('../img/img-header.png');
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 13rem;
}

.services-hero {
    background-size: cover;
    background-position: center;
    background-image: linear-gradient(rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.56)), var(--bg-img-hero);
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 15rem;
}

.noticia-hero h1 {
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-content p {
    color: var(--secundary-color);
    font-size: 1.2rem;
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto;
}

.btn-header {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

a.btn.btn-primary {
    background-color: var(--primary-color);
    font-family: var(--font-body);
    font-weight: 600;
    padding: 0.8rem 3rem;
    font-size: 18px;
    border: none;
}

/* -----------------------------------
   SECCIÓN SOBRE NOSOTROS (ABOUT)
------------------------------------ */
.about-section {
    padding: 6rem 0;
    overflow: hidden;
}

.about-content-card {
    background-color: var(--primary-color);
    border-bottom-right-radius: 15px;
    border-top-right-radius: 15px;
    padding: 4rem 4rem;
    color: var(--ligth);
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    box-shadow: 0 15px 35px rgba(13, 76, 117, 0.2);
}

.about-subtitle {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
    text-transform: capitalize;
}

.about-title {
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--ligth);
}

.text-highlight {
    color: var(--secundary-color);
}

.about-description {
    font-family: var(--font-body);
    font-size: 22px;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.btn-secundary {
    background-color: var(--secundary-color);
    color: var(--primary-color);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.8rem 2.5rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

a.btn-secundary {
    position: relative;
    padding: 10px 24px;
    overflow: hidden;
    transition: color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

a.btn-secundary:before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: #ffdc73;
    transition: height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
}

a.btn-secundary:hover {
    color: var(--primary-color);
}

a.btn-secundary:hover:before {
    height: 100%;
}

a.btn-secundary:active {
    transform: scale(0.97);
}


.btn-download {
    background-color: transparent;
    color: var(--secundary-color);
    border: 2px solid var(--secundary-color);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

a.btn-download {
    position: relative;
    padding: 10px 24px;
    overflow: hidden;
    transition: color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

a.btn-download:before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--secundary-color);
    transition: height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
}

a.btn-download:hover {
    color: var(--primary-color);
}

a.btn-download:hover:before {
    height: 100%;
}

a.btn-download:active {
    transform: scale(0.97);
}

/* Contenedor del Video */
.about-video-container {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    height: 100%;
    min-height: 450px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.about-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* -----------------------------------
   EFECTOS HOVER DE LINKS GENERALES
------------------------------------ */
.nav-links a {
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    transform: translateY(-3px);
}

.nav-links a::before {
    content: "";
    position: absolute;
    z-index: -1;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--secundary-color);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s ease;
}

.nav-links a:hover::before {
    transform: scaleY(1);
}

a.btn-primary {
    position: relative;
    background: transparent;
    padding: 10px 24px;
    overflow: hidden;
    transition: color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

a.btn-primary:before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: #1871ab;
    transition: height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
}

a.btn-primary:hover {
    color: var(--ligth);
}

a.btn-primary:hover:before {
    height: 100%;
}

a.btn-primary:active {
    transform: scale(0.97);
}


/* -----------------------------------
   RESPONSIVE DESIGN (Pantallas Medianas - Laptops menores a 1400px)
------------------------------------ */
@media (max-width: 1399px) {
    .logo-container {
        padding-left: 3rem;
    }

    .logo-image {
        max-width: 350px;
    }

    .nav-container {
        width: 75%;
    }

    .inner-nav-content {
        padding: 20px 30px 20px 70px;
    }

    .nav-links {
        gap: 2rem;
        margin-left: 0;
    }

    .nav-links a {
        font-size: 15px;
    }

    .main-navigation {
        margin-right: 20px;
    }
}

/* -----------------------------------
   RESPONSIVE DESIGN (Escritorio Normal - Sobre Nosotros)
------------------------------------ */
@media (min-width: 992px) {
    .nav-container {
        animation: slideMenuDesktop 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    }

    .about-content-card {
        margin-right: -150px;
        margin-top: 3rem;
        margin-bottom: 3rem;
    }

    .about-video-container {
        height: 550px;
    }

    .columna-about {
        padding-left: 0;
    }

    .columna-video {
        padding-right: 4rem;
    }
}

/* -----------------------------------
   RESPONSIVE DESIGN (Tablets y Laptops pequeñas)
------------------------------------ */
@media (max-width: 1199px) and (min-width: 992px) {
    .about-content-card {
        margin-right: -50px;
        padding: 3rem 2rem;
    }
}

/* -----------------------------------
   RESPONSIVE DESIGN (Móviles y Tablets menores a 991px)
------------------------------------ */
@media (max-width: 991px) {
    .borybor-header {
        background-color: transparent;
        padding-top: 20px;
        box-shadow: none;
        position: absolute;
    }

    .logo-container {
        padding-left: 20px;
    }

    .logo-image {
        max-width: 200px;
    }

    .mobile-menu-btn {
        display: block;
        color: var(--ligth);
    }

    .nav-container.offcanvas-lg {
        background-color: var(--primary-color);
        clip-path: none;
        width: 85%;
        max-width: 350px;
        border-left: none;
    }

    .offcanvas-header {
        display: flex;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 20px 30px;
    }

    .inner-nav-content {
        flex-direction: column;
        justify-content: flex-start;
        padding: 30px !important;
    }

    .main-navigation {
        margin-right: 0;
        margin-bottom: 40px;
        width: 100%;
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
        margin-left: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .header-actions {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        width: 100%;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        padding-top: 30px;
    }

    .social-links {
        flex-direction: row;
        gap: 25px;
    }

    .btn-primary {
        padding: 0.8rem 2rem;
        font-size: 16px;
    }

    .about-content-card {
        margin-bottom: 2rem;
        padding: 3rem 2rem;
    }

    .about-title {
        font-size: 1.8rem;
    }

    .about-video-container {
        height: 350px;
    }
}

/* -----------------------------------
   RESPONSIVE DESIGN (Móviles Pequeños - max 767px)
------------------------------------ */
@media (max-width: 767px) {
    .services-hero {
        padding-top: 10rem;
        height: 40vh;
    }

    .hero-demo {
        padding-top: 6rem;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 1rem;
        padding: 0 15px;
    }

    .btn-header {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 0 20px;
    }

    a.btn.btn-primary {
        width: 70%;
    }

    .about-section {
        padding: 4rem 0;
    }

    .about-content-card {
        border-radius: 15px;
        padding: 2.5rem 1.5rem;
    }
}


/* -----------------------------------
   SECCIÓN NUESTROS SERVICIOS
------------------------------------ */
.services-section {
    padding: 0rem 0 6rem 0;
    background-color: #ffffff;
}

.section-title-wrapper {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    color: var(--primary-color);
    font-size: 2.2rem;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    margin: 0;
}

.section-title-serv {
    color: var(--ligth);
    font-size: 2.2rem;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    margin: 0;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: #2A7B9B;
    background: linear-gradient(90deg, rgba(42, 123, 155, 0) 1%, rgba(242, 197, 61, 1) 50%, rgba(237, 221, 83, 0) 100%);
}

.section-title-serv::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: #2A7B9B;
    background: linear-gradient(90deg, rgba(42, 123, 155, 0) 1%, rgba(242, 197, 61, 1) 50%, rgba(237, 221, 83, 0) 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.service-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 4rem 3rem;
    text-decoration: none;
    min-height: 200px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(13, 76, 117, 0.8), rgba(0, 0, 0, 0.7)), var(--bg-img);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    z-index: 2;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 30px;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    line-height: 106%;
    margin: 0;
    position: relative;
    transition: color 0.3s ease;
}

.service-card h3::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    margin-top: 12px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.service-card:hover h3 {
    color: var(--ligth);
}

.service-card:hover h3::after {
    width: 80px;
    background-color: var(--secundary-color);
}

.card-white {
    background-color: #ffffff;
}

.card-light {
    background-color: var(--ligth);
}

/* -----------------------------------
   RESPONSIVE - NUESTROS SERVICIOS
------------------------------------ */

@media (max-width: 991px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-card {
        padding: 3rem 2rem;
        min-height: 200px;
    }
}

@media (max-width: 767px) {
    .section-title-wrapper {
        margin-bottom: 0;
    }

    .services-section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 3rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-card {
        padding: 1.5rem 1rem;
        min-height: 160px;
        align-items: center;
        text-align: center;
    }

    .service-card h3 {
        font-size: 1rem;
    }

    .service-card h3::after {
        margin-left: auto;
        margin-right: auto;
        margin-top: 8px;
    }
}

/* -----------------------------------
   SECCIÓN CERTIFICACIONES E INTERACCIÓN
------------------------------------ */
.certifications-section {
    padding: 5rem 0 6rem 0;
    background-color: #ffffff;
}

.interactive-cards-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
}

.interactive-card {
    position: relative;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: var(--bg-img);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    transition: background-color 0.4s ease;
    z-index: 1;
}

.interactive-card:hover .card-overlay {
    background-color: rgba(0, 0, 0, 0.8);
}

.card-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 2.5rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-content h3 {
    color: var(--ligth);
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
    transition: transform 0.4s ease;
}

.hidden-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.4s ease, margin-top 0.4s ease;
}

.hidden-content p {
    color: #e0e0e0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.interactive-card:hover .hidden-content {
    max-height: 250px;
    opacity: 1;
    margin-top: 1.5rem;
}

.logos-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    padding: 2rem 0;
}

.brand-logo {
    max-width: 140px;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.7);
    transition: all 0.3s ease;
}

.brand-logo:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

/* -----------------------------------
   RESPONSIVE - CERTIFICACIONES
------------------------------------ */

@media (max-width: 991px) {
    .interactive-card {
        min-height: 350px;
    }

    .card-content {
        padding: 0 1.5rem;
    }

    .card-content h3 {
        font-size: 1.4rem;
    }

    .logos-row {
        gap: 2.5rem;
    }

    .brand-logo {
        max-width: 100px;
    }
}

@media (max-width: 767px) {
    .interactive-cards-wrapper {
        grid-template-columns: 1fr;
    }

    .interactive-card {
        min-height: 300px;
    }

    .card-content h3 {
        font-size: 1.5rem;
    }
}


/* -----------------------------------
   SECCIÓN ÚLTIMAS NOTICIAS
------------------------------------ */
.news-section {
    padding: 6rem 0;
    background-color: #ffffff;
}

/* Encabezado: Título y Botón alineados a los extremos */
.news-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3.5rem;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.news-header-wrapper .section-title {
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Ajuste sutil a la línea del título en esta sección */
.news-header-wrapper .section-title::after {
    bottom: -16px;
    /* Lo bajamos para que coincida con el borde del contenedor */
    left: 0;
    transform: none;
    width: 100%;
}

/* Botón de Noticias */
.btn-news {
    background-color: var(--primary-color);
    color: var(--ligth);
    font-family: var(--font-body);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-news i {
    font-size: 1.2rem;
}

.btn-news:hover {
    background-color: #093859;
    color: var(--ligth);
    transform: translateY(-2px);
}

/* Cuadrícula de tarjetas de noticias */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.news-card {
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image {
    transform: scale(1.05);
}

.news-meta {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--terciary-color);
    /* Azul claro/grisáceo */
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-title {
    margin-bottom: 1rem;
}

.news-title a {
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: var(--secundary-color);
}

.news-excerpt {
    font-family: var(--font-body);
    color: #555555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}


/* -----------------------------------
   SECCIÓN CONTACTO Y UBICACIÓN
------------------------------------ */
.contact-section {
    position: relative;
    padding: 6rem 0;
    background-image: var(--bg-contact);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 76, 117, 0.7);
    z-index: 1;
}

.contact-panels-wrapper {
    position: relative;
    z-index: 2;
}

.contact-card-panel,
.location-card-panel {
    background-color: rgba(13, 76, 117, 0.95);
    border-radius: 12px;
    padding: 3rem;
    height: 100%;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    color: var(--ligth);
    position: relative;
    overflow: hidden;
}

.contact-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background-image: url('../img/Logo-borybor-blanco.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
}

.contact-panel-title {
    position: relative;
    z-index: 1;
    font-size: 2.2rem;
    font-family: var(--font-heading);
    margin-bottom: 2rem;
    color: var(--ligth);
}

.contact-quick-info {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.info-block {
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-block i {
    font-size: 1.8rem;
    color: var(--ligth);
}

.info-block span {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 3px;
}

.info-block p,
.info-block a {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ligth);
    text-decoration: none;
}

.contact-form-subtitle {
    position: relative;
    z-index: 1;
    font-size: 1.3rem;
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
}

.borybor-contact-form {
    position: relative;
    z-index: 1;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 6px;
    background-color: var(--ligth);
    color: var(--dark);
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid var(--secundary-color);
}

.form-submit-wrapper {
    text-align: center;
    margin-bottom: 2rem;
}

.btn-submit {
    background-color: var(--secundary-color);
    color: var(--primary-color);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.8rem 4rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background-color: #dcb336;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(242, 197, 61, 0.3);
}

.contact-social-icons {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.contact-social-icons a {
    color: var(--ligth);
    font-size: 1.4rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.contact-social-icons a:hover {
    color: var(--secundary-color);
    transform: translateY(-3px);
}

.location-card-panel {
    display: flex;
    flex-direction: column;
}

.location-header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.location-title {
    font-size: 2rem;
    font-family: var(--font-heading);
    margin: 0;
    color: var(--ligth);
}

.location-address {
    font-size: 1.1rem;
    font-weight: 600;
}

.map-container {
    flex-grow: 1;
    width: 100%;
    min-height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}


/* -----------------------------------
   RESPONSIVE DESIGN 
------------------------------------ */

/* Tablets Medianas y Laptops Pequeñas */
@media (max-width: 1199px) {

    .contact-card-panel,
    .location-card-panel {
        padding: 2rem;
    }
}

@media (max-width: 991px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-quick-info {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .form-row-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .map-container {
        min-height: 350px;
    }
}

/* Celulares */
@media (max-width: 767px) {
    .news-section {
        padding: 4rem 0;
    }

    .news-header-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .contact-section {
        padding: 4rem 0;
    }

    .contact-card-panel,
    .location-card-panel {
        padding: 1.5rem;
    }

    .contact-panel-title {
        font-size: 1.8rem;
    }

    .location-title {
        font-size: 1.8rem;
    }

    .location-address {
        font-size: 1rem;
    }

    .btn-submit {
        width: 100%;
    }
}


/* -----------------------------------
   FOOTER BORYBOR
------------------------------------ */
.borybor-footer {
    background-color: var(--primary-color);
    color: var(--ligth);
    padding-top: 5rem;
    position: relative;
}

.footer-content {
    padding-bottom: 4rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.footer-logo {
    max-width: 300px;
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
    padding-left: 1rem;
}

.footer-socials a {
    color: var(--ligth);
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-socials a:hover {
    color: var(--secundary-color);
    transform: translateY(-3px);
}

.footer-title {
    color: var(--ligth);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: var(--ligth);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-links a:hover {
    color: var(--secundary-color);
    padding-left: 5px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--ligth);
    margin-top: 2px;
}

.contact-item span {
    font-weight: 700;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 3px;
}

.contact-item p,
.contact-item a {
    margin: 0;
    color: var(--ligth);
    text-decoration: none;
    font-size: 0.95rem;
}

.contact-item a {
    text-decoration: underline;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--secundary-color);
}

.footer-contact .btn-secundary {
    padding: 0.8rem 2.5rem;
    width: max-content;
}

.footer-bottom {
    position: relative;
    padding: 1.5rem 0;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.15);
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secundary-color) 50%, var(--primary-color) 100%);
}

.footer-bottom p {
    margin: 0;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: #cccccc;
    font-weight: 500;
}


/* -----------------------------------
   RESPONSIVE FOOTER
------------------------------------ */

@media (max-width: 991px) {

    .footer-links,
    .footer-brand {
        margin-bottom: 3.5rem;
    }
}

@media (max-width: 767px) {
    .borybor-footer {
        padding-top: 4rem;
    }

    .footer-content {
        padding: 0 2rem 3rem;
    }

    .footer-logo {
        margin-bottom: 1.5rem;
    }

    .services-two-columns {
        grid-template-columns: 1fr;
    }

    .footer-bottom p {
        font-size: 0.8rem;
        padding: 0 15px;
        line-height: 1.5;
    }
}

/* -----------------------------------
   SECCIÓN EXCELENCIA
------------------------------------ */
.excellence-section {
    padding: 6rem 0;
    background-color: #ffffff;
}

.excellence-img-wrapper {
    border-radius: 12px;
    overflow: hidden;
    /* Le añadimos una sombra muy sutil para que la imagen resalte un poco del fondo blanco */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.excellence-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Pequeño efecto interactivo al pasar el mouse sobre la imagen */
.excellence-img-wrapper:hover .excellence-img {
    transform: scale(1.03);
}

.excellence-content {
    padding-left: 3rem;
    /* Separación amplia entre la imagen y el texto en escritorio */
}

.excellence-title {
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 35px;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.excellence-text {
    font-family: var(--font-body);
    font-size: 20px;
    color: #444444;
    /* Un gris oscuro en lugar de negro puro para suavizar la lectura */
    line-height: 1.6;
    margin: 0;
}

/* -----------------------------------
   RESPONSIVE - EXCELENCIA
------------------------------------ */

/* Tablets Medianas y Laptops Pequeñas */
@media (max-width: 1199px) {
    .excellence-content {
        padding-left: 1.5rem;
    }
}

/* Tablets en vertical (apilamiento de columnas) */
@media (max-width: 991px) {
    .excellence-content {
        padding-left: 0;
        margin-top: 2.5rem;
        /* Separación cuando el texto baja por debajo de la imagen */
    }

    .excellence-title {
        font-size: 1.8rem;
    }
}

/* Celulares */
@media (max-width: 767px) {
    .excellence-section {
        padding: 4rem 0;
        /* Menos espacio vacío en celulares */
    }

    .excellence-title {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    .excellence-text {
        font-size: 1rem;
    }
}

/* -----------------------------------
   SECCIÓN DETALLES DE SERVICIOS
------------------------------------ */
.services-detailed-section {
    padding: 6rem 0;
    background-color: var(--ligth);
}

.services-card-layout {
    display: flex;
    flex-direction: row;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    min-height: 600px;
}

.services-menu-col {
    width: 320px;
    background-color: var(--primary-color);
    color: var(--ligth);
    flex-shrink: 0;
}

.services-menu-header {
    padding: 2.5rem 2rem 1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.services-menu-main-title {
    font-family: var(--font-body);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

.services-menu-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 2rem;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--secundary-color) 0%, rgba(255, 255, 255, 0) 100%);
}

.services-menu-list {
    list-style: none;
    padding: 1.5rem 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.services-menu-item {
    padding: 1.2rem 2rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 4px solid transparent;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.services-menu-item i {
    font-size: 1.2rem;
    color: var(--secundary-color);
}

.services-menu-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.services-menu-item.active {
    background-color: #3b6078;
    border-left: 4px solid var(--secundary-color);
}

.services-menu-item.active i {
    color: var(--ligth);
}

.services-content-col {
    flex-grow: 1;
    padding: 3rem 4rem;
    position: relative;
}

.service-panel {
    display: none;
    animation: fadeInPanel 0.4s ease forwards;
}

.service-panel.active {
    display: block;
}

@keyframes fadeInPanel {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.panel-title {
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.panel-desc {
    font-family: var(--font-body);
    color: #444444;
    font-size: 1rem;
    line-height: 1.6;
}

.panel-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.panel-list-title {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 2rem 0 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.panel-features-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: #555555;
    line-height: 1.5;
}

.panel-features-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

.panel-action {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
}

.btn-panel-contact {
    background-color: var(--primary-color);
    color: var(--ligth);
    font-family: var(--font-body);
    font-weight: 600;
    padding: 0.8rem 3rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-panel-contact:hover {
    background-color: #093859;
    color: var(--ligth);
    transform: translateY(-2px);
}

/* -----------------------------------
   RESPONSIVE - DETALLES SERVICIOS
------------------------------------ */
@media (max-width: 1199px) {
    .services-content-col {
        padding: 3rem 2.5rem;
    }

    .panel-grid-2 {
        gap: 1.5rem;
    }
}

@media (max-width: 991px) {

    .services-card-layout {
        flex-direction: column;
    }

    .services-menu-col {
        width: 100%;
    }

    .services-menu-list {
        flex-direction: row;
        overflow-x: auto;
        padding: 0;
        white-space: nowrap;
        scrollbar-width: none;
    }

    .services-menu-list::-webkit-scrollbar {
        display: none;
    }

    .services-menu-item {
        border-left: none;
        border-bottom: 4px solid transparent;
        padding: 1rem 1.5rem;
    }

    .services-menu-item.active {
        border-left: none;
        border-bottom: 4px solid var(--secundary-color);
    }
}

@media (max-width: 767px) {
    .services-content-col {
        padding: 2rem 1.5rem;
    }

    .panel-grid-2 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .panel-action {
        justify-content: center;
    }

    .btn-panel-contact {
        width: 100%;
        text-align: center;
    }
}

/* -----------------------------------
   INSIGNIAS DE EXPERIENCIA EN HERO
------------------------------------ */
.hero-badges-wrapper {
    max-width: 40rem;
    margin-top: 3.5rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-experience {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ligth);
    background-color: rgba(0, 0, 0, 0.4);
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.hero-experience:hover {
    background-color: rgba(0, 0, 0, 0.6);
    transform: translateY(-3px);
}

.hero-experience i {
    color: var(--secundary-color);
    margin-right: 10px;
    font-size: 1.2rem;
}

/* -----------------------------------
   AJUSTE RESPONSIVE PARA LAS INSIGNIAS
------------------------------------ */
@media (max-width: 991px) {
    .hero-badges-wrapper {
        gap: 1rem;
    }

    .hero-experience {
        font-size: 1rem;
        padding: 0.5rem 1.4rem;
    }
}

@media (max-width: 767px) {
    .hero-badges-wrapper {
        margin-top: 2.5rem;
        align-items: center;
    }

    .hero-experience {
        justify-content: center;
        font-size: 0.95rem;
    }
}

/* -----------------------------------
   PÁGINAS INTERNAS (Encabezado)
------------------------------------ */
.page-header-section {
    background-color: var(--primary-color);
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 15rem 0 5rem 0;
    color: var(--ligth);
    position: relative;
}


.page-header-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secundary-color) 50%, var(--primary-color) 100%);
}

.page-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-family: var(--font-body);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    color: #d1e3f0;
}

/* -----------------------------------
   PÁGINA DE NOTICIAS (Swiper Slider)
------------------------------------ */
.news-main-section {
    padding: 5rem 0;
    background-color: #ffffff;
}

.featured-swiper {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    min-height: 450px;
    background-color: var(--dark);
}

.slide-inner {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 80%);
}

.slide-content {
    position: relative;
    z-index: 2;
    padding: 3rem 4rem;
    width: 100%;
}

.slide-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--ligth);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.badge-featured {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--primary-color);
    color: var(--ligth);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--secundary-color) !important;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* Modificadores de paginación (Puntitos) */
.swiper-pagination-bullet {
    background: #ffffff !important;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: var(--secundary-color) !important;
    opacity: 1;
}

/* -----------------------------------
   FLECHAS MODERNAS (Glassmorphism)
------------------------------------ */
.custom-nav-btn {
    width: 50px !important;
    height: 50px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50% !important;
    color: #ffffff !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.custom-nav-btn::after {
    display: none !important;
}

.custom-nav-btn i {
    font-size: 1.4rem;
    font-weight: 900;
    text-shadow: none;
    margin-top: 2px;
}

.custom-nav-btn:hover {
    background: var(--secundary-color) !important;
    color: var(--primary-color) !important;
    border-color: var(--secundary-color);
    transform: scale(1.15);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 991px) {
    .featured-swiper {
        min-height: 400px;
    }

    .slide-content {
        padding: 2rem 2.5rem;
    }

    .slide-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 767px) {
    .page-header-section {
        padding: 8rem 0 4rem 0;
    }

    .page-title {
        font-size: 2.2rem;
    }

    .slide-content {
        padding: 1.5rem;
    }

    .slide-title {
        font-size: 1.4rem;
    }

    .custom-nav-btn {
        display: none !important;
    }
}


/* -----------------------------------
   ESTILOS DEL MODAL DE NOTICIAS
------------------------------------ */

/* Botón cerrar personalizado sobre la imagen */
.btn-close-modal-custom {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1060;
    background-color: white;
    padding: 10px;
    border-radius: 50%;
    opacity: 0.8;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-close-modal-custom:hover {
    opacity: 1;
}

.news-modal-img-container {
    height: 400px;
    position: relative;
    overflow: hidden;
}

.news-modal-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.news-modal-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
}

.badge-category-modal {
    background-color: var(--secundary-color);
    color: var(--primary-color);
    font-weight: 700;
    padding: 8px 15px;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.news-date-modal {
    color: #888;
    font-size: 0.9rem;
    font-weight: 500;
}

.news-modal-title {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
}

.news-modal-text {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

/* Ajustes Responsive para el Modal */
@media (max-width: 991px) {
    .news-modal-img-container {
        height: 250px;
    }

    .news-modal-title {
        font-size: 1.6rem;
    }
}

/* -----------------------------------
   SECCIÓN FRASE / NOSOTROS
------------------------------------ */
.quote-section {
    padding: 8rem 0;
    background-color: #ffffff;
    overflow: hidden;
}

.quote-text {
    font-family: var(--font-body);
    font-size: 3.5rem;
    font-weight: 5 s00;
    line-height: 1.25;
    color: var(--dark);
    margin: 0;
}

.quote-images-wrapper {
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-img {
    position: absolute;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.6s ease;
}

.img-back {
    top: 0;
    left: 0;
    width: 60%;
    height: 75%;
    z-index: 1;
    animation: modernSlideUpLeft 1.2s cubic-bezier(0.25, 1, 0.5, 1) both;
}

.img-front {
    bottom: 0;
    right: 0;
    width: 70%;
    height: 80%;
    z-index: 2;
    animation: modernSlideUpRight 1.2s cubic-bezier(0.25, 1, 0.5, 1) 0.3s both;
}

.quote-images-wrapper:hover .img-back {
    transform: translate(-10px, -10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.quote-images-wrapper:hover .img-front {
    transform: translate(10px, 10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}

@keyframes modernSlideUpLeft {
    0% {
        opacity: 0;
        transform: translate(-40px, 60px);
    }

    100% {
        opacity: 1;
        transform: translate(0, 0);
    }
}

@keyframes modernSlideUpRight {
    0% {
        opacity: 0;
        transform: translate(40px, 60px);
    }

    100% {
        opacity: 1;
        transform: translate(0, 0);
    }
}

/* -----------------------------------
   RESPONSIVE DESIGN (Frase Nosotros)
------------------------------------ */

@media (max-width: 1199px) {
    .quote-text {
        font-size: 2.8rem;
    }

    .quote-images-wrapper {
        min-height: 400px;
    }
}

@media (max-width: 991px) {
    .quote-section {
        padding: 5rem 0;
    }

    .quote-text {
        font-size: 2.4rem;
        text-align: center;
    }

    .quote-images-wrapper {
        min-height: 380px;
        margin-top: 3rem;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 767px) {
    .quote-text {
        font-size: 1.8rem;
    }

    .quote-images-wrapper {
        min-height: 300px;
    }

    .img-back {
        width: 70%;
        height: 70%;
    }

    .img-front {
        width: 80%;
        height: 75%;
    }
}

.quote-mark-icon {
    position: absolute;
    top: -45px;
    left: -25px;
    font-size: 7rem;
    color: var(--secundary-color);
    opacity: 0.3;
    z-index: 0;
    line-height: 1;
    animation: fadeInQuote 1.5s ease forwards;
}

.quote-text {
    position: relative;
    z-index: 1;
}

@keyframes fadeInQuote {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 0.3;
        transform: scale(1);
    }
}

@media (max-width: 991px) {
    .quote-mark-icon {
        left: 50%;
        transform: translateX(-50%);
        top: -35px;
        font-size: 6rem;
        animation: fadeInQuoteMobile 1.5s ease forwards;
    }
}

@keyframes fadeInQuoteMobile {
    from {
        opacity: 0;
        transform: translateX(-50%) scale(0.8);
    }

    to {
        opacity: 0.3;
        transform: translateX(-50%) scale(1);
    }
}

@media (max-width: 767px) {
    .quote-mark-icon {
        top: -25px;
        font-size: 5rem;
    }
}

/* -----------------------------------
   SECCIÓN EQUIPO Y VALORES
------------------------------------ */
.team-values-section {
    padding: 6rem 0;
    background-color: #f9fbfd;
    /* Un fondo gris/azulado muuuuy tenue para que resalten las tarjetas blancas */
}

/* Espaciado para la fila del equipo */
.team-row {
    margin-bottom: 2rem;
}

/* --- TARJETAS DEL EQUIPO DIRECTIVO --- */
.team-card {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    height: 100%;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(13, 76, 117, 0.15);
    /* Sombra con tinte azulado */
}

/* Cabecera azul dentro de la tarjeta */
.team-card-header {
    background-color: var(--primary-color);
    height: 120px;
    border-radius: 15px 15px 0 0;
    position: relative;
    overflow: hidden;
}

/* Efecto sutil de marca de agua en la cabecera */
.team-card-header::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

/* Contenedor de la foto flotante */
.team-img-wrapper {
    position: relative;
    width: 200px;
    height: auto;
    margin: -75px auto 1.5rem;
    /* El margen negativo la sube para que pise el fondo azul */
    border-radius: 50%;
    border: 6px solid #ffffff;
    /* Borde blanco grueso para separarla del fondo */
    background-color: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    z-index: 2;
    overflow: hidden;
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}


.team-content {
    padding: 0 2.5rem 3rem;
}

.team-name {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.team-position {
    display: block;
    font-family: var(--font-body);
    color: var(--secundary-color);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.team-desc {
    font-family: var(--font-body);
    color: #555555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}


/* --- TARJETAS DE VALORES --- */
.values-row {
    padding-top: 2rem;
}

.value-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 3.5rem 2.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: rgba(13, 76, 117, 0.1);
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background-color: var(--primary-color);
    color: var(--ligth);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    transition: all 0.4s ease;
}

/* El icono gira levemente y cambia a amarillo al hacer hover en la tarjeta */
.value-card:hover .value-icon {
    background-color: var(--secundary-color);
    color: var(--primary-color);
    transform: rotateY(180deg);
}

.value-title {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 1.2rem;
}

/* Línea pequeña debajo del título del valor */
.value-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: var(--secundary-color);
    transition: width 0.3s ease;
}

/* Al hacer hover, la línea amarilla del título se alarga */
.value-card:hover .value-title::after {
    width: 80px;
}

.value-text {
    font-family: var(--font-body);
    color: #666666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}


/* -----------------------------------
   RESPONSIVE DESIGN 
------------------------------------ */
@media (max-width: 991px) {
    .team-content {
        padding: 0 1.5rem 2.5rem;
    }

    .value-card {
        padding: 2.5rem 1.5rem;
    }
}

@media (max-width: 767px) {
    .team-values-section {
        padding: 4rem 0;
    }

    .team-card {
        margin-bottom: 1rem;
    }

    .team-img-wrapper {
        width: 120px;
        height: 120px;
        margin-top: -60px;
    }

    .team-name {
        font-size: 1.5rem;
    }
}

/* -----------------------------------
   ESTADO SCROLLED (MENU FIJO Y GLASSMORPHISM)
------------------------------------ */

.borybor-header,
.borybor-header .logo-image,
.nav-container,
.inner-nav-content {
    transition: all 0.4s ease-in-out;
}

.borybor-header.scrolled {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding-top: 10px;
    padding-bottom: 10px;
    background-color: rgba(13, 76, 117, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    animation: slideDownHeader 0.5s ease;
}

.borybor-header.scrolled .nav-container {
    background-image: none !important;
    background-color: transparent !important;
    clip-path: none !important;
    width: auto;
}

.borybor-header.scrolled .inner-nav-content {
    padding-right: 7rem !important;
}

.borybor-header.scrolled .logo-image {
    max-width: 220px;
}

@keyframes slideDownHeader {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

@media (max-width: 991px) {
    .borybor-header.scrolled {
        padding-top: 10px;
        padding-bottom: 10px;
        background-color: rgba(13, 76, 117, 0.96);
    }

    .borybor-header.scrolled .logo-image {
        max-width: 150px;
    }

    .borybor-header.scrolled .nav-container.offcanvas-lg {
        background-color: var(--primary-color) !important;
        width: 85% !important;
        max-width: 350px !important;
        height: 100vh !important;
        top: 0 !important;
        bottom: auto !important;
    }
}