﻿/* ========================================================
   Estilos especÃ­ficos para la pÃ¡gina Nosotros.html
   ======================================================== */

/* Padding de secciones */
.section-pb {
    padding: 40px 0;
}

/* ========================================================
   SECCIÃ“N 1: HERO CON IMAGEN DE FONDO
   ======================================================== */
/* ========================================================
   SECCIÃ“N 1: HEADER BANNER (Bred Crumb Style)
   ======================================================== */
.nosotros-banner-bg {
    /* Combinar el gradiente azul (estilo "forma azul") con la imagen de fondo */
    background: linear-gradient(135deg, rgba(0, 192, 211, 0.90) 0%, rgba(0, 157, 174, 0.80) 100%),
        url('../images/Contenidos/Nosotros_Banner_Group.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Asegurar que la forma y bordes de .bred_crumb se mantengan */
}

/* Ajustes opcionales para el texto dentro del bred_crumb en esta pÃ¡gina */
.nosotros-banner-bg .bred_text h1 {
    /*text-transform: uppercase;*/
    font-weight: 700;
    font-size: 48px;
}

.nosotros-banner-bg .bred_text p {
    font-size: 18px;
    line-height: 1.6;
}

.nosotros-banner-bg .bred_text .btn {
    padding: 15px 40px;
    font-size: 16px;
}

/* ========================================================
   SECCIÃ“N 2: Â¿QUIÃ‰NES SOMOS?
   ======================================================== */
.nosotros-quienes-somos {
    /*background-color: #ffffff;*/
}

/* Tarjetas de QuiÃ©nes Somos */
.quienes-somos-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 192, 211, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 30px;
    height: 100%;
}

.quienes-somos-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 192, 211, 0.2);
}

.quienes-somos-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 192, 211, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 30px;
    height: 100%;
    /* Flexbox para alinear contenido verticalmente */
    display: flex;
    flex-direction: column;
}

.quienes-somos-card .card-body {
    flex-grow: 1;
    /* Ocupa el espacio restante */
    display: flex;
    /* Habilitar flex en el row interno */
    align-items: center;
    /* Centrar verticalmente texto e imagen */
    padding: 0;
    /* Evitar doble padding si bootstrap lo pone */
}

/* Header de la tarjeta */
.quienes-somos-card .card-header {
    text-align: left;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--light-purple);
    /* Asegurar altura igual para alineaciÃ³n del cuerpo */
    min-height: 155px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ImÃ¡genes dentro de la tarjeta */
.quienes-somos-card img {
    height: 180px !important;
    width: 100% !important;
    object-fit: cover !important;
    /* Cortar para llenar el espacio y que sean iguales */
    border-radius: 12px;
    /* Asegurar bordes redondeados consistentes */
}

/* Badge "Nuestra esencia" */
.quienes-somos-card .badge-subtitle {
    display: inline-block;
    background: linear-gradient(135deg, var(--purple) 0%, var(--dark-purple) 100%);
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.quienes-somos-card .card-header h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-purple);
    margin: 0;
    margin-bottom: 8px;
}

/* SubtÃ­tulo de la tarjeta */
.quienes-somos-card .card-subtitle {
    font-size: 16px;
    font-weight: 600;
    color: var(--purple);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Body de la tarjeta */
.quienes-somos-card .card-body {
    padding: 0;
}

.quienes-somos-card .card-body p {
    font-size: 16px;
    line-height: 1.8;
    /*color: #666;*/
    margin: 0;
}

.quienes-somos-card .card-body img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 192, 211, 0.15);
    transition: transform 0.3s ease;
}

.quienes-somos-card:hover .card-body img {
    transform: scale(1.05);
}

/* ========================================================
   SECCIÃ“N 3: VALORES + CARRUSEL
   ======================================================== */
.nosotros-valores-section {
    background-color: var(--light-purple);
}

.valores-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Responsive para valores-container */
@media screen and (max-width: 991px) {
    .valores-container {
        gap: 25px;
        /* Aumentar espaciado en tablets */
    }

    /* Agregar espacio entre las dos columnas de valores */
    .nosotros-valores-section .row .col-lg-4:first-child {
        margin-bottom: 25px;
    }
}

@media screen and (max-width: 767px) {
    .valores-container {
        gap: 30px;
        /* Aumentar espaciado en mÃ³viles */
    }

    /* Agregar espacio entre las dos columnas de valores */
    .nosotros-valores-section .row .col-lg-4:first-child {
        margin-bottom: 30px;
    }

    /* Solo dar margin-top a la primera tarjeta si es necesario */
    .valores-container .valor-card-horizontal:first-child {
        margin-top: 0;
    }
}

.valor-card-horizontal {
    display: flex;
    align-items: center;
    background: #ffffff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 192, 211, 0.1);
    transition: all 0.3s ease;
    gap: 20px;
    margin: 0;
    /* Asegurar que no haya margen adicional */
}

.valor-card-horizontal:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 30px rgba(0, 192, 211, 0.2);
}

.valor-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--purple) 0%, var(--dark-purple) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #ffffff;
}

.valor-content h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-purple);
    margin-bottom: 8px;
}

.valor-content p {
    font-size: 15px;
    /*color: #666;*/
    line-height: 1.6;
    margin: 0;
}

/* Carrusel de imÃ¡genes del equipo */
.nosotros-carousel-container {
    position: sticky;
    top: 100px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nosotros-carousel-container .owl-carousel {
    height: auto;
}

.nosotros-carousel-container .owl-stage-outer {
    height: 100%;
}

.carousel-image {
    background: #ffffff;
    padding: 0;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 192, 211, 0.2);
    overflow: hidden;
    height: 320px;
    /* Ensure fixed height matching computed */
}

.carousel-image img {
    width: 100% !important;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    /* Show more of the top (faces) */
    border-radius: 0;
    display: block;
}

/* Controles del carrusel */
#nosotros_equipo_slider .owl-nav {
    display: none;
}

/* Responsive para botones del carrusel de equipo */
@media (max-width: 991px) {
    #nosotros_equipo_slider .owl-nav {
        display: block;
    }

    #nosotros_equipo_slider .owl-nav button {
        width: 42px !important;
        height: 42px !important;
        font-size: 17px !important;
        background: rgba(0, 192, 211, 0.9) !important;
        color: #fff !important;
        border-radius: 50% !important;
    }

    #nosotros_equipo_slider .owl-nav .owl-prev {
        left: 10px !important;
        position: absolute !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 100 !important;
    }

    #nosotros_equipo_slider .owl-nav .owl-next {
        right: 10px !important;
        position: absolute !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 100 !important;
    }
}

@media (max-width: 767px) {
    #nosotros_equipo_slider .owl-nav button {
        width: 40px !important;
        height: 40px !important;
        font-size: 16px !important;
    }

    #nosotros_equipo_slider .owl-nav .owl-prev {
        left: 8px !important;
        position: absolute !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 100 !important;
    }

    #nosotros_equipo_slider .owl-nav .owl-next {
        right: 8px !important;
        position: absolute !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 100 !important;
    }
}

@media (max-width: 575px) {
    #nosotros_equipo_slider .owl-nav button {
        width: 38px !important;
        height: 38px !important;
        font-size: 15px !important;
    }

    #nosotros_equipo_slider .owl-nav .owl-prev {
        left: 5px !important;
        position: absolute !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 100 !important;
    }

    #nosotros_equipo_slider .owl-nav .owl-next {
        right: 5px !important;
        position: absolute !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 100 !important;
    }
}

@media (max-width: 400px) {
    #nosotros_equipo_slider .owl-nav button {
        width: 35px !important;
        height: 35px !important;
        font-size: 14px !important;
    }

    #nosotros_equipo_slider .owl-nav .owl-prev {
        left: 3px !important;
        position: absolute !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 100 !important;
    }

    #nosotros_equipo_slider .owl-nav .owl-next {
        right: 3px !important;
        position: absolute !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 100 !important;
    }
}

#nosotros_equipo_slider .owl-dots {
    margin-top: 20px;
    text-align: center;
}

#nosotros_equipo_slider .owl-dots button {
    width: 12px;
    height: 12px;
    background: var(--purple);
    border-radius: 50%;
    margin: 0 5px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

#nosotros_equipo_slider .owl-dots button.active {
    opacity: 1;
    transform: scale(1.3);
}

/* Responsive: dots más cerca de las tarjetas en móviles */
@media screen and (max-width: 767px) {
    #nosotros_equipo_slider .owl-dots {
        margin-top: 10px !important;
        /* Reducir distancia en móviles */
    }
}

/* ========================================================
   SECCIÃ“N 4: COMPROMISOS
   ======================================================== */
.nosotros-compromisos-section {
    /*background-color: #ffffff;*/
    padding: 40px 0 100px 0;
    /* Increased bottom padding to prevent cards from touching the footer */
}

.compromisos-grid {
    display: grid;
    gap: 30px;
}

/* TÃ­tulo de la secciÃ³n estilo cÃ¡psula */
.nosotros-compromisos-section .section_title h2 span {
    color: #00c0d3;
    display: inline-block;
    font-weight: 700;
    padding-top: 10px;
}

.nosotros-compromisos-section .section_title p {
    display: block;
    margin-top: 20px;
    color: #009eb0;
    font-size: 18px;
    font-weight: 400;
}

/* Tarjeta base */
.compromiso-card {
    background: #ffffff;
    padding: 25px 15px 1px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    text-align: center;
    border: 1px solid #e1e1e1;
    position: relative;
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 190px;
    height: 100%;
}

.compromiso-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 192, 211, 0.2);
    border-color: #00c0d3;
}

/* Icono flotante con forma de NUBE */
.compromiso-icon {
    width: 80px;
    height: 50px;
    background: #fff;
    border-radius: 50px;
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
    /* Sombra suave para la nube */
    z-index: 5;
}

.compromiso-icon::before {
    content: '';
    position: absolute;
    top: -25px;
    left: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.02);
}

.compromiso-icon::after {
    content: '';
    position: absolute;
    top: -15px;
    right: 10px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 2px -2px 5px rgba(0, 0, 0, 0.02);
}

.compromiso-icon i {
    font-size: 32px;
    color: #009dae;
    position: relative;
    z-index: 10;
    margin-top: -10px;
    /* Centrar visualmente */
}

/* TÃ­tulo estilo cÃ¡psula dentro de la tarjeta */
.compromiso-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: #009dae;
    margin-top: 10px;
    /* Reduced from 15px */
    margin-bottom: 10px;
    /* Reduced from 15px */
    /* Reduced from 25px */
    border-radius: 50px;
    padding: 8px 10px;
    /* Reduced side padding slightly */
    display: inline-block;
    background: #fff;
}

.compromiso-card p {
    font-size: 15px;
    color: #009eb0;
    line-height: 1.6;
    margin: 0;
    padding: 0 10px;
}

/* ========================================================
   RESPONSIVE - TABLET Y MÃ“VIL
   ======================================================== */
@media screen and (max-width: 991px) {

    /* Hero - Banner */
    .nosotros-banner-bg .bred_text h1 {
        font-size: 36px;
    }

    .nosotros-banner-bg .bred_text p {
        font-size: 16px;
        padding: 0 20px;
    }

    .nosotros-banner-bg .bred_text .btn {
        padding: 12px 35px;
        font-size: 15px;
    }

    /* Hero */
    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    /* En tablet y mÃ³vil, centrar el botÃ³n */
    .nosotros-hero-section .text-right {
        text-align: center;
    }

    .nosotros-hero-section .row:last-child {
        margin-top: 20px;
    }

    /* SecciÃ³n Valores - DiseÃ±o de 3 columnas */
    .nosotros-valores-section .row {
        display: flex;
        flex-wrap: wrap;
    }

    /* En tablet, las 2 columnas de valores se mantienen, carrusel abajo */
    .nosotros-carousel-container {
        position: relative;
        top: 0;
        margin-top: 30px;
        order: 3;
    }

    .carousel-image img {
        height: 250px;
    }

    /* Valores horizontales */
    .valor-card-horizontal {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        margin: 0;
        /* Asegurar espaciado uniforme */
    }

    .valor-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .valor-card-horizontal:hover {
        transform: translateY(-5px);
    }
}

@media screen and (max-width: 767px) {
    .section-pb {
        padding: 50px 0;
    }

    /* Compromisos - Aumentar padding superior */
    .nosotros-compromisos-section {
        padding: 35px 0 20px 0;
    }

    /* Agregar padding superior adicional al span del tÃ­tulo */
    .nosotros-compromisos-section .section_title h2 span {
        padding-top: 15px;
    }

    /* Hero - Banner */
    .nosotros-banner-bg .bred_text h1 {
        font-size: 28px;
        line-height: 1.3;
    }

    .nosotros-banner-bg .bred_text p {
        font-size: 15px;
        padding: 0 15px;
        line-height: 1.5;
    }

    .nosotros-banner-bg .bred_text .btn {
        padding: 10px 30px;
        font-size: 14px;
    }

    /* Hero */
    .nosotros-hero-section {
        min-height: 400px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-button {
        font-size: 16px;
        padding: 12px 30px;
    }

    /* QuiÃ©nes somos - Tablet */
    .quienes-somos-card {
        padding: 25px;
    }

    .quienes-somos-card .card-header {
        min-height: auto;
        /* Eliminar altura fija en tablets */
    }

    .quienes-somos-card .card-header h3 {
        font-size: 24px;
        margin-bottom: 6px;
    }

    .quienes-somos-card .card-subtitle {
        font-size: 14px;
    }

    .quienes-somos-card .card-body p {
        font-size: 15px;
    }

    /* Compromisos */
    .nosotros-compromisos-section .col-lg-4,
    .nosotros-compromisos-section .col-md-6 {
        margin-bottom: 4.5rem !important;
    }

    .compromiso-card {
        padding: 25px 20px;
        margin-top: 55px;
    }

    .compromiso-icon {
        width: 60px;
        height: 60px;
        top: -42px;
    }

    .compromiso-icon::before {
        top: -18px;
    }

    .compromiso-icon::after {
        top: -10px;
    }

    .compromiso-icon i {
        font-size: 28px;
    }

    .compromiso-card h4 {
        font-size: 18px;
    }

    .compromiso-card p {
        font-size: 14px;
    }

    /* Carrusel mÃ³vil */
    .carousel-image img {
        height: 200px;
    }
}

@media screen and (max-width: 575px) {

    /* Reducir padding en mÃ³viles pequeÃ±os */
    .section-pb {
        padding: 30px 0;
    }

    .nosotros-compromisos-section {
        padding: 30px 0 15px 0;
    }

    /* Agregar padding superior adicional al span del tÃ­tulo */
    .nosotros-compromisos-section .section_title h2 span {
        padding-top: 12px;
    }

    /* Valores - Aumentar espaciado entre tarjetas */
    .valores-container {
        gap: 25px;
    }

    /* Agregar espacio entre las dos columnas de valores */
    .nosotros-valores-section .row .col-lg-4:first-child {
        margin-bottom: 25px;
    }

    /* Hero - Banner */
    .nosotros-banner-bg .bred_text h1 {
        font-size: 24px;
        line-height: 1.2;
        padding: 0 10px;
    }

    .nosotros-banner-bg .bred_text p {
        font-size: 14px;
        padding: 0 10px;
        line-height: 1.4;
    }

    .nosotros-banner-bg .bred_text .btn {
        padding: 10px 25px;
        font-size: 13px;
    }

    .hero-title {
        font-size: 28px;
        letter-spacing: 1px;
    }

    .hero-content {
        padding: 40px 15px;
    }

    /* QuiÃ©nes somos - MÃ³vil pequeÃ±o */
    .quienes-somos-card {
        padding: 20px;
    }

    .quienes-somos-card .card-header {
        margin-bottom: 20px;
        padding-bottom: 15px;
        min-height: auto;
        /* Eliminar altura fija en mÃ³viles */
    }

    .quienes-somos-card .card-header h3 {
        font-size: 20px;
        margin-bottom: 6px;
    }

    .quienes-somos-card .card-subtitle {
        font-size: 13px;
    }

    .quienes-somos-card .card-body p {
        font-size: 14px;
    }

    /* Compromisos - ajustar iconos nube */
    .nosotros-compromisos-section .col-lg-4,
    .nosotros-compromisos-section .col-md-6 {
        margin-bottom: 5rem !important;
    }

    .compromiso-card {
        margin-top: 50px;
    }

    .compromiso-icon {
        width: 70px;
        height: 45px;
        top: -40px;
    }

    .compromiso-icon::before {
        width: 35px;
        height: 35px;
        top: -18px;
        left: 8px;
    }

    .compromiso-icon::after {
        width: 30px;
        height: 30px;
        top: -10px;
        right: 8px;
    }

    .compromiso-icon i {
        font-size: 28px;
        margin-top: -6px;
    }
}

@media screen and (max-width: 400px) {

    /* Reducir padding aÃºn mÃ¡s en mÃ³viles muy pequeÃ±os */
    .section-pb {
        padding: 25px 0;
    }

    .nosotros-compromisos-section {
        padding: 25px 0 10px 0;
    }

    /* Agregar padding superior adicional al span del tÃ­tulo */
    .nosotros-compromisos-section .section_title h2 span {
        padding-top: 10px;
    }

    /* Valores - Aumentar espaciado entre tarjetas en mÃ³viles muy pequeÃ±os */
    .valores-container {
        gap: 20px;
    }

    /* Agregar espacio entre las dos columnas de valores */
    .nosotros-valores-section .row .col-lg-4:first-child {
        margin-bottom: 20px;
    }

    /* Hero - Banner */
    .nosotros-banner-bg .bred_text h1 {
        font-size: 20px;
        line-height: 1.2;
        padding: 0 8px;
        word-wrap: break-word;
    }

    .nosotros-banner-bg .bred_text p {
        font-size: 13px;
        padding: 0 8px;
        line-height: 1.3;
    }

    .nosotros-banner-bg .bred_text .btn {
        padding: 8px 20px;
        font-size: 12px;
        display: inline-block;
        margin-top: 10px;
    }

    /* Hero */
    .nosotros-hero-section {
        min-height: 350px;
    }

    .hero-title {
        font-size: 24px;
        letter-spacing: 0.5px;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 25px;
    }

    .hero-button {
        font-size: 14px;
        padding: 10px 25px;
    }

    .hero-content {
        padding: 30px 10px;
    }

    /* QuiÃ©nes somos */
    .quienes-somos-card {
        padding: 15px;
    }

    .quienes-somos-card .card-header {
        margin-bottom: 15px;
        padding-bottom: 12px;
        min-height: auto;
        /* Eliminar altura fija en mÃ³viles muy pequeÃ±os */
    }

    .quienes-somos-card .card-header h3 {
        font-size: 18px;
    }

    .quienes-somos-card .card-subtitle {
        font-size: 12px;
    }

    .quienes-somos-card .card-body p {
        font-size: 13px;
        line-height: 1.6;
    }

    /* Valores */
    .valor-card-horizontal {
        padding: 15px;
        gap: 15px;
        margin: 0;
        /* Asegurar espaciado uniforme en mÃ³viles muy pequeÃ±os */
    }

    .valor-icon {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }

    .valor-content h4 {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .valor-content p {
        font-size: 14px;
    }

    /* Compromisos */
    .nosotros-compromisos-section .col-lg-4,
    .nosotros-compromisos-section .col-md-6 {
        margin-bottom: 4rem !important;
    }

    .compromiso-card {
        padding: 20px 15px;
        margin-top: 45px;
    }

    .compromiso-icon {
        width: 60px;
        height: 38px;
        top: -35px;
    }

    .compromiso-icon::before {
        width: 30px;
        height: 30px;
        top: -14px;
        left: 6px;
    }

    .compromiso-icon::after {
        width: 25px;
        height: 25px;
        top: -8px;
        right: 6px;
    }

    .compromiso-icon i {
        font-size: 24px;
        margin-top: -4px;
    }

    .compromiso-card h4 {
        font-size: 14px;
        margin-top: 12px;
        padding: 6px 8px;
    }

    .compromiso-card p {
        font-size: 13px;
        padding: 0 5px;
    }

    /* Carrusel */
    .carousel-image {
        height: 180px;
    }
}

/* Espaciado extra solo para Desktop en la sección de compromisos */
@media (min-width: 992px) {
    .margin-desktop-xl {
        margin-bottom: 9rem !important;
    }
}

/* FIX: Corregir superposición de tarjetas en escritorio */
@media (min-width: 992px) {
    .margin-desktop-xl {
        margin-bottom: 8rem !important;
    }
}