/* ==========================================================================
   Variables root
   ========================================================================== */
:root {
    /* Variables de animación */
    --animate-duration: 1s;
    --animate-delay: 1s;
    --animate-repeat: 1;

    /* Paleta de colores J3Pharma */
    --j3-purple: #8B7AB8;
    --j3-purple-dark: #6B5B98;
    --j3-purple-light: #A99CC8;
    --j3-white: #FFFFFF;
    --j3-gray-light: #F5F5F5;
    --j3-gray: #666666;
    --j3-gray-dark: #333333;

    /* Variables semánticas */
    --bs-primary: var(--j3-purple);
    --bs-secondary: var(--j3-gray);
    --bs-success: #198754;
    --bs-info: var(--j3-purple-light);
    --bs-warning: #ffc107;
    --bs-danger: #dc3545;
    --bs-light: var(--j3-gray-light);
    --bs-dark: var(--j3-gray-dark);

    /* Variables RGB */
    --j3-purple-rgb: 139, 122, 184;
    --j3-white-rgb: 255, 255, 255;
    --j3-gray-rgb: 102, 102, 102;
    
    /* Variables de escala de grises */
    --bs-gray-100: #f8f9fa;
    --bs-gray-200: #e9ecef;
    --bs-gray-300: #dee2e6;
    --bs-gray-400: #ced4da;
    --bs-gray-500: #adb5bd;
    --bs-gray-600: #6c757d;
    --bs-gray-700: #495057;
    --bs-gray-800: #343a40;
    --bs-gray-900: #212529;

    /* Variables de tipografía */
    --bs-font-montserrat: 'Montserrat', sans-serif;
    --bs-font-sans-serif: 'Montserrat', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
    
    /* Variables del body */
    --bs-body-font-family: var(--bs-font-montserrat);
    --bs-body-font-size: 1rem;
    --bs-body-font-weight: 400;
    --bs-body-line-height: 1.5;
    --bs-body-color: var(--j3-gray-dark);
    --bs-body-bg: var(--j3-white);
}

/* ==========================================================================
   Estilos generales
   ========================================================================== */
body {
    margin: 0;
    font-family: var(--bs-body-font-family);
    font-size: var(--bs-body-font-size);
    font-weight: var(--bs-body-font-weight);
    line-height: var(--bs-body-line-height);
    color: var(--bs-body-color);
    text-align: var(--bs-body-text-align);
    background-color: var(--bs-body-bg);
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

/* Estilos para el navbar */
.nav-extended.white {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-wrapper {
    height: auto !important;
    padding: 10px 0;
}

nav .nav-wrapper {
    position: relative;
}

.brand-logo {
    position: relative !important;
    margin: 0 !important;
    padding: 10px 0;
    height: 80px;
    left: 0 !important;
    transform: none !important;
}

.brand-logo img {
    height: 60px;
    width: auto;
    vertical-align: middle;
}

/* Estilos para el menú de navegación */
.nav-extended .nav-wrapper ul#nav-mobile {
    display: flex;
    align-items: center;
    height: 80px;
    margin-right: 15px;
}

.nav-extended .nav-wrapper ul li {
    height: 80px;
    display: flex;
    align-items: center;
}

.nav-extended .nav-wrapper ul li a {
    color: var(--j3-gray-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0 15px;
    height: auto;
    line-height: normal;
}

.nav-extended .nav-wrapper ul li a:hover {
    color: var(--j3-purple);
    background-color: transparent;
}

/* Estilos para los iconos y banderas */
.nav-extended .nav-wrapper ul li a.language-flag {
    padding: 0;
    width: 24px;
    height: 24px;
    display: block;
    position: relative;
    margin: 0 8px;
    border-radius: 50%;
    overflow: hidden;
}

.nav-extended .nav-wrapper ul li a.language-flag img {
    width: 100%;
    height: 100%; 
}

/* Ajuste para el hover de las banderas */
.nav-extended .nav-wrapper ul li a.language-flag:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.nav-extended .nav-wrapper ul li a.language-flag i.material-icons {
    height: 24px;
    line-height: 24px;
}

/* Estilos para el ícono de LinkedIn */
.nav-extended .nav-wrapper ul li a.linkedin-icon {
    padding: 0 15px;
    font-size: 24px;
    color: #0077b5; /* Color oficial de LinkedIn */
    transition: color 0.3s ease;
}

.nav-extended .nav-wrapper ul li a.linkedin-icon:hover {
    color: #005582;
}

.nav-extended .nav-wrapper ul li a.linkedin-icon i {
    vertical-align: middle;
}

/* Ajustes responsivos para el navbar */
@media screen and (max-width: 1200px) {
    .container {
        width: 95%;
        margin: 0 auto;
    }
}

@media screen and (max-width: 992px) {
    .nav-wrapper {
        padding: 5px 15px;
    }

    .brand-logo {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    .brand-logo img {
        height: 45px;
    }

    .nav-extended .nav-wrapper ul#nav-mobile {
        height: 60px;
    }
}

@media screen and (max-width: 768px) {
    .brand-logo img {
        height: 40px;
    }
}

/* Ajustes para móvil */
@media only screen and (max-width: 600px) {
    .sidenav li a.language-flag img {
        height: 16px;
        margin-right: 10px;
    }
}

/* Estilos para las secciones */
.section {
    /* padding: 4rem 0; */
    padding: 0;
}

.section.hero {
    background-color: var(--j3-white);
    position: relative;
}

/* Estilos para las cards */
.card {
    height: 100%;
    transition: transform var(--animate-duration);
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.card:hover {
    transform: translateY(-5px);
}

.card .card-content {
    color: var(--j3-gray);
}

.card .card-title {
    color: var(--j3-purple);
    font-weight: 600;
}

/* Estilos para el formulario */
.input-field input:focus + label,
.input-field textarea:focus + label {
    color: var(--j3-purple) !important;
}

.input-field input:focus,
.input-field textarea:focus {
    border-bottom: 1px solid var(--j3-purple) !important;
    box-shadow: 0 1px 0 0 var(--j3-purple) !important;
}

/* Estilos para botones */
.btn, .btn-large {
    background-color: var(--j3-purple);
    color: var(--j3-white);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover, .btn-large:hover {
    background-color: var(--j3-purple-dark);
}

/* Estilos para el footer */
.page-footer {
    background-color: var(--j3-purple) !important;
    padding: 20px 0;
    margin: 0;
}

.footer-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 0;
}

.footer-logo {
    height: 100px;
    margin: 0;
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.footer-info a,
.footer-info .contact-item {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: 0;
    font-size: 0.9rem;
    text-align: right;
    gap: 10px;
}

.footer-info a i,
.footer-info .contact-item i {
    margin: 0;
    color: white;
}

@media screen and (max-width: 992px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .footer-info {
        align-items: center;
    }

    .footer-info a,
    .footer-info .contact-item {
        justify-content: center;
    }
}

@media screen and (max-width: 768px) {
    .footer-logo {
        height: 80px;
    }

    .footer-info {
        gap: 10px;
    }

    .footer-info a,
    .footer-info .contact-item {
        font-size: 0.85rem;
    }
}

/* Títulos y textos */
h1, h2, h3, h4, h5, h6 {
    color: var(--j3-purple);
    font-weight: 600;
}

.flow-text {
    color: var(--j3-gray);
}

/* Estilos para iconos */
.material-icons {
    color: var(--j3-purple);
}

/* Estilos responsivos */
@media screen and (max-width: 600px) {
    h1 {
        font-size: calc(var(--bs-body-font-size) * 2.5);
    }
    
    .section {
        /* padding: 2rem 0; */
    }
}

/* Estilos adicionales para asegurar Montserrat en elementos específicos */
h1, h2, h3, h4, h5, h6,
.brand-logo,
.btn,
.btn-large,
.card-title {
    font-family: var(--bs-font-montserrat);
}

/* Estilos para el slider */
.slider {
    max-height: 500px !important;
    height: 500px !important;
    overflow: hidden !important;
    width: 100% !important;
}

.slider .slides {
    height: 500px !important;
    background-color: var(--j3-purple);
    overflow: hidden !important;
}

.slider .slides li {
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.5s ease-in-out;
    height: 500px !important;
    overflow: hidden !important;
    width: 100% !important;
}

.slider .slides li.active {
    opacity: 1;
    transform: translateX(0);
}

.slider .slides li img {
    height: 500px;
    width: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.slider .slides li .caption {
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    padding: 0 10%;
    box-sizing: border-box;
}

.slider .slides li .caption-content {
    padding: 30px;
    display: inline-block;
    text-align: right;
    max-width: 100%;
}

.slider .slides li .caption-content .logo-j3p {
    width: 400px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 30px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
    display: block;
    margin-left: auto;
}

.slider .slides li .caption-content h2 {
    font-size: 3.5rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.slider .slides li .caption-content h5 {
    font-size: 1.2rem;
    margin: 0;
    opacity: 0.9;
}

/* Ajustes específicos para el primer slide */
.slider .slides li:first-child .caption-content {
    background: none;
    padding: 0;
}

.slider .slides li:first-child .caption-content h2 {
    font-size: 3rem;
    line-height: 1.2;
}

/* Ajustes responsivos para el slider */
@media screen and (max-width: 992px) {
    .slider,
    .slider .slides,
    .slider .slides li {
        height: 450px !important;
    }

    .slider .slides li img {
        height: 450px;
    }
}

@media screen and (max-width: 768px) {
    .slider,
    .slider .slides,
    .slider .slides li {
        height: 350px !important;
    }

    .slider .slides li img {
        height: 350px;
    }
}

@media screen and (max-width: 576px) {
    .slider,
    .slider .slides,
    .slider .slides li {
        height: 300px !important;
    }

    .slider .slides li img {
        height: 300px;
    }

    .slider .slides li .caption {
        padding: 0 5%;
    }
}

/* Estilos para el logo en el slider */
.slider .slides li .caption .logo-j3p {
    width: 250px;
    height: auto;
    object-fit: contain !important;
    margin-bottom: -75px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
    display: inline-block;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

@media screen and (max-width: 600px) {
    .slider .slides li .caption .logo-j3p {
        width: 150px;
    }
}

/* Color personalizado J3Pharma */
.j3-purple-text {
    color: var(--j3-purple-dark) !important;
}

/* Estilos para el slider */
.slider .slides li .caption-content {
    padding: 30px;
    display: inline-block;
    max-width: 600px;
    text-align: left;
}

.slider .slides li .caption-content h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin: 0 0 10px 0;
}

@media screen and (max-width: 600px) {
    .slider .slides li .caption {
        padding: 0 20px;
    }

    .slider .slides li .caption h5 {
        font-size: 1.5rem;
    }

    .slider .slides li .caption .logo-j3p {
        width: 150px;
    }
}

/* Estilos para las cards de Misión y Visión */
#mision-vision {
    background-color: var(--j3-white);
    padding: 60px 0;
    margin: 0;
}

#mision-vision .card {
    border-radius: 0;
    box-shadow: none;
    background-color: transparent;
    height: 100%;
    transition: transform 0.3s ease;
}

#mision-vision .card:hover {
    transform: none;
    box-shadow: none;
}

#mision-vision .card .card-content {
    padding: 20px;
    text-align: center;
}

#mision-vision .mision-vision-icon {
    margin-bottom: 20px;
}

#mision-vision .card .card-title {
    color: var(--j3-purple);
    font-size: 2rem;
    font-weight: 600;
    margin: 20px 0;
}

#mision-vision .card p {
    color: var(--j3-gray);
    font-size: 1rem;
    line-height: 1.6;
    margin: 20px 0;
    text-align: center;
}

#mision-vision .card .card-action {
    border: none;
    padding: 20px 0;
    text-align: center;
}

#mision-vision .j3-purple-btn {
    background-color: var(--j3-purple-light) !important;
    border-radius: 25px;
    text-transform: uppercase;
    font-weight: 500;
    padding: 0 30px;
    height: 36px;
    line-height: 36px;
}

#mision-vision .j3-purple-btn:hover {
    background-color: var(--j3-purple) !important;
}

@media screen and (max-width: 992px) {
    #mision-vision {
        padding: 40px 0;
    }

    #mision-vision .card {
        height: auto;
        margin-bottom: 30px;
    }
}

@media screen and (max-width: 768px) {
    #mision-vision .card .card-title {
        font-size: 1.8rem;
    }

    #mision-vision .card p {
        font-size: 0.9rem;
    }
}

/* Estilos para la sección de valores */
#valores {
    background-color: var(--bs-gray-100);
    padding: 60px 0;
    position: relative;
    margin: 0;
}

#valores h2 {
    color: var(--j3-purple);
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.valores-descripcion {
    color: var(--j3-gray);
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 60px;
    line-height: 1.6;
}

.valores-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.valor-item {
    flex: 0 1 180px;
}

.valor-content {
    padding: 20px 10px;
}

.valor-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
}

.valor-content h4 {
    color: var(--j3-purple);
    font-size: 1.2rem;
    margin: 10px 0;
    font-weight: 500;
}

@media screen and (max-width: 992px) {
    .valores-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media screen and (max-width: 768px) {
    .valores-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .valor-item {
        flex: 0 1 calc(50% - 15px);
    }

    .valor-content h4 {
        font-size: 1rem;
    }
}

/* Estilos para el divisor */
.divider {
    width: 200px;
    height: 20px;
    background-color: var(--j3-purple-light);
    border: none;
    border-radius: 7px;
    margin: 0 auto;
    margin-top: -20px !important;
    position: relative;
    z-index: 2;
    transform: translateY(7.5px);
}

.divider-2 {
    width: 200px;
    height: 20px;
    background-color: var(--j3-purple-dark);
    border: none;
    border-radius: 7px;
    margin: 0 auto;
    margin-top: -20px !important;
    position: relative;
    z-index: 2;
    transform: translateY(7.5px);
}

/* Ajuste del espaciado y fondo de las secciones */
#valores + .divider {
    margin-bottom: 0;
}

.divider + #valores {
    margin-top: 0;
    padding-top: 60px;
}

#mision-vision {
    background-color: var(--j3-white);
    padding: 60px 0;
    margin: 0;
}

#servicios {
    background-color: var(--j3-purple-light);
    padding: 60px 0;
    margin: 0;
}

#servicios h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 40px;
    font-weight: 600;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 0;
}

/* Estilos para las tarjetas de servicios con efecto flip */
.servicio-card {
    position: relative;
    width: 100%;
    height: 250px;
    perspective: 1000px;
    cursor: pointer;
    transition: height 0.6s ease;
}

.servicio-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    transform-origin: center;
}

.servicio-card:hover {
    height: auto;
    min-height: 350px;
}

.servicio-card:hover .servicio-card-inner {
    transform: rotateY(180deg);
}

.servicio-card-front,
.servicio-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 10px;
    overflow: hidden;
}

.servicio-card-front {
    background-color: var(--j3-purple);
    transform: rotateY(0deg);
}

.servicio-card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.servicio-card-back {
    background-color: white;
    transform: rotateY(180deg);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    height: auto;
    min-height: 100%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.servicio-card:hover .servicio-card-back {
    position: relative;
    height: auto;
}

.servicio-card-back h3 {
    color: var(--j3-purple);
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 600;
    width: 100%;
}

.servicio-card-back p {
    color: var(--j3-gray);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    width: 100%;
}

.servicio-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

.servicio-content h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Ajustes responsivos para las tarjetas de servicios */
@media screen and (max-width: 992px) {
    .servicio-card {
        height: 220px;
    }

    .servicio-card:hover {
        min-height: 300px;
    }

    .servicio-card-back {
        padding: 20px;
    }

    .servicio-card-back h3 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    .servicio-card-back p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

@media screen and (max-width: 768px) {
    .servicio-card {
        height: 200px;
    }

    .servicio-card:hover {
        min-height: 280px;
    }

    .servicio-card-back h3 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }

    .servicio-card-back p {
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 576px) {
    .servicio-card {
        height: 180px;
    }

    .servicio-card:hover {
        min-height: 250px;
    }

    .servicio-card-back {
        padding: 15px;
    }

    .servicio-card-back h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .servicio-card-back p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}

/* Estilos para la sección Quiénes Somos */
#quienes-somos {
    position: relative;
    padding: 80px 0;
    color: white;
    background-image: url('../assets/images/quienessomos.jpg');    
    background-size: cover;
}

#quienes-somos::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

#quienes-somos .container {
    position: relative;
    z-index: 2;
}

.quienes-texto h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 30px;
    font-weight: 600;
}

.quienes-texto .descripcion {
    font-size: 1rem;
    line-height: 1.6;
}

.quienes-texto p {
    margin-bottom: 20px;
}

.estadisticas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    padding: 20px;
}

.estadistica-item {
    text-align: center;
}

.estadistica-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.estadistica-item .numero {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--j3-purple-light);
    line-height: 1;
    margin-bottom: 10px;
}

.estadistica-item .subtitulo {
    font-size: 1rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media screen and (max-width: 992px) {
    #quienes-somos {
        padding: 50px 0;
    }

    .estadisticas-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media screen and (max-width: 768px) {
    .estadisticas-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .estadistica-item .numero {
        font-size: 2.5rem;
    }
}

/* Estilos para la sección de equipo */
#equipo {
    padding: 80px 0;
    background-color: var(--j3-white);
}

.perfil-card {
    padding: 30px;
    margin-bottom: 30px;
}

.perfil-imagen {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
}

.perfil-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.perfil-nombre {
    color: var(--j3-purple);
    font-size: 1.8rem;
    margin: 0 0 5px;
    font-weight: 600;
}

.perfil-cargo {
    color: var(--j3-gray);
    font-size: 1.2rem;
    margin: 0 0 20px;
    font-weight: 500;
}

.perfil-descripcion {
    color: var(--j3-gray);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
}

.linkedin-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 30px;
    background-color: var(--j3-purple-light);
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.linkedin-btn i {
    margin-left: 10px;
}

.linkedin-btn:hover {
    background-color: var(--j3-purple);
}

@media screen and (max-width: 992px) {
    #equipo {
        padding: 60px 0;
    }

    .perfil-imagen {
        width: 180px;
        height: 180px;
    }

    .perfil-nombre {
        font-size: 1.6rem;
    }

    .perfil-cargo {
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 768px) {
    #equipo {
        padding: 40px 0;
    }

    .perfil-imagen {
        width: 150px;
        height: 150px;
    }

    .perfil-nombre {
        font-size: 1.4rem;
    }

    .perfil-cargo {
        font-size: 1rem;
    }

    .perfil-descripcion {
        font-size: 0.9rem;
    }
}

/* Estilos para la sección de clientes */
#clientes {
    padding: 60px 0 80px 0;
    background-color: var(--j3-gray-light);
}

#clientes h2 {
    color: var(--j3-purple);
    margin-bottom: 40px;
    text-align: center;
    font-size: 2.5rem;
}

.carousel {
    height: 200px;
    perspective: 1000px;
}

.carousel .carousel-item {
    width: 300px;
    opacity: 1;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.carousel .carousel-item img {
    width: auto !important;
    max-width: 80%;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
    display: block;
    margin: 0 auto;
}

.carousel .carousel-item:hover img {
    filter: grayscale(0%);
}

@media screen and (max-width: 992px) {
    .carousel {
        height: 180px;
    }

    .carousel .carousel-item {
        width: 250px;
    }

    #clientes h2 {
        font-size: 2.2rem;
    }
}

@media screen and (max-width: 768px) {
    .carousel {
        height: 150px;
    }

    .carousel .carousel-item {
        width: 200px;
    }
}

@media screen and (max-width: 576px) {
    #clientes {
        padding: 40px 0;
    }

    .carousel {
        height: 120px;
    }

    .carousel .carousel-item {
        width: 180px;
    }

    #clientes h2 {
        font-size: 1.8rem;
    }
}

#contacto {
    padding: 60px 0;
    background-color: var(--j3-white);
}

#contacto h2 {
    color: var(--j3-purple);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
}

#contacto .row {
    margin-bottom: 0;
}

#contacto .contact-form {
    padding-right: 30px;
}

#contacto .form-group {
    margin-bottom: 20px;
}

#contacto .input-field {
    margin-top: 0;
    position: relative;
}

#contacto .input-field label {
    color: var(--j3-gray);
    font-size: 1rem;
    left: 12px;
    top: 12px;
    background-color: transparent;
    padding: 0 5px;
    transition: all 0.3s ease;
}

#contacto .input-field label.active {
    transform: translateY(-20px) scale(0.8);
    color: var(--j3-purple);
    background-color: white;
}

#contacto input[type="text"],
#contacto input[type="email"],
#contacto textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f8f8f8;
    margin-bottom: 0;
}

#contacto input[type="text"]:focus,
#contacto input[type="email"]:focus,
#contacto textarea:focus {
    border-color: var(--j3-purple);
    box-shadow: 0 0 0 1px var(--j3-purple);
    background-color: white;
    outline: none;
}

#contacto textarea {
    min-height: 120px;
    resize: vertical;
}

#contacto button[type="submit"] {
    background-color: var(--j3-purple);
    color: white;
    padding: 1px 40px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

#contacto button[type="submit"]:hover {
    background-color: var(--j3-purple-dark);
}

#contacto .g-recaptcha {
    margin: 20px 0;
}

@media screen and (max-width: 992px) {
    #contacto {
        padding: 40px 0;
    }

    .contact-form {
        padding: 0 15px;
    }
}

@media screen and (max-width: 768px) {
    #contacto h2 {
        font-size: 2rem;
    }

    .form-group {
        margin-bottom: 15px;
    }
}

/* Ajustes generales para dispositivos móviles */
@media screen and (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    
    .section {
        /* padding: 40px 0; */
    }

    /* Ajustes del navbar */
    .nav-extended .nav-wrapper {
        padding: 5px 15px;
    }

    .brand-logo {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    .brand-logo img {
        height: 45px;
    }

    /* Ajustes del slider */
    .slider {
        height: 450px !important;
    }

    .slider .slides {
        height: 450px !important;
    }

    .slider .slides li .caption {
        width: 100%;
        left: 0 !important;
        right: 0 !important;
        padding: 0 20px;
    }

    .slider .slides li .caption-content {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
        text-align: center;
    }

    .slider .slides li .caption-content h2 {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .slider .slides li .caption-content .logo-j3p {
        width: 250px;
        margin-bottom: -55px;
    }

    /* Ajustes de Misión y Visión */
    #mision-vision .card {
        height: auto;
        margin-bottom: 30px;
    }

    /* Ajustes de Valores */
    .valores-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    /* Ajustes de Servicios */
    .servicios-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .carousel {
        height: 150px !important;
        padding: 20px 0;
    }

    .carousel .carousel-item {
        width: 180px !important;
        height: 90px !important;
        margin-right: 20px;
    }
}

/* Ajustes específicos para tablets */
@media screen and (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }

    .section {
        /* padding: 30px 0; */
    }

    /* Ajustes del slider */
    .slider {
        height: 350px !important;
    }

    .slider .slides {
        height: 350px !important;
    }

    .slider .slides li .caption-content h2 {
        font-size: 1.8rem;
    }

    .slider .slides li .caption-content .logo-j3p {
        width: 200px;
    }

    /* Ajustes de Valores */
    .valores-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .valor-content h4 {
        font-size: 1rem;
    }

    /* Ajustes de Servicios */
    .servicios-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .servicio-card {
        height: 220px;
    }

    /* Ajustes del Carousel */
    .carousel {
        height: 120px !important;
    }

    .carousel .carousel-item {
        width: 150px !important;
        height: 75px !important;
        margin-right: 15px;
    }
}

/* Ajustes específicos para móviles */
@media screen and (max-width: 576px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.3rem; }

    .section {
        /* padding: 25px 0; */
    }

    /* Ajustes del navbar */
    .brand-logo img {
        height: 35px;
    }

    /* Ajustes del slider */
    .slider {
        height: 300px !important;
    }

    .slider .slides {
        height: 300px !important;
    }

    .slider .slides li .caption-content h2 {
        font-size: 1.5rem;
    }

    .slider .slides li .caption-content .logo-j3p {
        width: 150px;
    }

    /* Ajustes de Valores */
    .valores-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Ajustes de Servicios */
    .servicios-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .servicio-card {
        height: 200px;
    }

    .servicio-card-back h3 {
        font-size: 1.2rem;
    }

    .servicio-card-back p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    /* Ajustes del Carousel */
    .carousel {
        height: 100px !important;
    }

    .carousel .carousel-item {
        width: 120px !important;
        height: 60px !important;
        margin-right: 10px;
    }

    /* Ajustes del Footer */
    .footer-content {
        padding: 20px 0;
    }

    .footer-logo {
        height: 60px;
    }

    .footer-info {
        text-align: center;
    }

    .footer-info a,
    .footer-info .contact-item {
        font-size: 0.85rem;
        justify-content: center;
    }
}

/* Ajustes para dispositivos muy pequeños */
@media screen and (max-width: 360px) {
    .slider .slides li .caption-content h2 {
        font-size: 1.3rem;
    }

    .slider .slides li .caption-content .logo-j3p {
        width: 120px;
    }

    .carousel .carousel-item {
        width: 100px !important;
        height: 50px !important;
    }
}

/* ==========================================================================
   Sección Quiénes Somos
   ========================================================================== */
#quienes-somos {
    position: relative;
    padding: 80px 0;
    color: white;
    background-image: url('../assets/images/quienessomos.jpg');    
    background-size: cover;
}

#quienes-somos::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

#quienes-somos .container {
    position: relative;
    z-index: 2;
}

.quienes-texto h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 30px;
    font-weight: 600;
}

.quienes-texto .descripcion {
    font-size: 1rem;
    line-height: 1.6;
}

.quienes-texto p {
    margin-bottom: 20px;
}

.estadisticas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    padding: 20px;
}

.estadistica-item {
    text-align: center;
}

.estadistica-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.estadistica-item .numero {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--j3-purple-light);
    line-height: 1;
    margin-bottom: 10px;
}

.estadistica-item .subtitulo {
    font-size: 1rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   Sección Clientes
   ========================================================================== */
#clientes {
    padding: 60px 0 80px 0;
    background-color: var(--j3-gray-light);
}

#clientes h2 {
    color: var(--j3-purple);
    margin-bottom: 40px;
    text-align: center;
    font-size: 2.5rem;
}

.carousel {
    height: 200px;
    perspective: 1000px;
}

.carousel .carousel-item {
    width: 300px;
    opacity: 1;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.carousel .carousel-item img {
    width: auto !important;
    max-width: 80%;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
    display: block;
    margin: 0 auto;
}

.carousel .carousel-item:hover img {
    filter: grayscale(0%);
}

/* ==========================================================================
   Sección Contacto
   ========================================================================== */
#contacto {
    padding: 60px 0;
    background-color: var(--j3-white);
}

#contacto h2 {
    color: var(--j3-purple);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
}

#contacto .row {
    margin-bottom: 0;
}

#contacto .contact-form {
    padding-right: 30px;
}

#contacto .form-group {
    margin-bottom: 20px;
}

#contacto .input-field {
    margin-top: 0;
    position: relative;
}

#contacto .input-field label {
    color: var(--j3-gray);
    font-size: 1rem;
    left: 12px;
    top: 12px;
    background-color: transparent;
    padding: 0 5px;
    transition: all 0.3s ease;
}

#contacto .input-field label.active {
    transform: translateY(-20px) scale(0.8);
    color: var(--j3-purple);
    background-color: white;
}

#contacto input[type="text"],
#contacto input[type="email"],
#contacto textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f8f8f8;
    margin-bottom: 0;
}

#contacto input[type="text"]:focus,
#contacto input[type="email"]:focus,
#contacto textarea:focus {
    border-color: var(--j3-purple);
    box-shadow: 0 0 0 1px var(--j3-purple);
    background-color: white;
    outline: none;
}

#contacto textarea {
    min-height: 120px;
    resize: vertical;
}

#contacto button[type="submit"] {
    background-color: var(--j3-purple);
    color: white;
    padding: 1px 40px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

#contacto button[type="submit"]:hover {
    background-color: var(--j3-purple-dark);
}

#contacto .g-recaptcha {
    margin: 20px 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.page-footer {
    background-color: var(--j3-purple) !important;
    padding: 20px 0;
    margin: 0;
}

.footer-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 0;
}

.footer-logo {
    height: 100px;
    margin: 0;
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.footer-info a,
.footer-info .contact-item {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: 0;
    font-size: 0.9rem;
    text-align: right;
    gap: 10px;
}

.footer-info a i,
.footer-info .contact-item i {
    margin: 0;
    color: white;
}

/* ==========================================================================
   Divisores
   ========================================================================== */
.divider {
    width: 200px;
    height: 20px;
    background-color: var(--j3-purple-light);
    border: none;
    border-radius: 7px;
    margin: 0 auto;
    margin-top: -20px !important;
    position: relative;
    z-index: 2;
    transform: translateY(7.5px);
}

.divider-2 {
    width: 200px;
    height: 20px;
    background-color: var(--j3-purple-dark);
    border: none;
    border-radius: 7px;
    margin: 0 auto;
    margin-top: -20px !important;
    position: relative;
    z-index: 2;
    transform: translateY(7.5px);
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
/* Pantallas grandes */
@media screen and (min-width: 1400px) {
    .carousel {
        height: 180px !important;
    }

    .carousel .carousel-item {
        width: 250px !important;
        height: 120px !important;
    }
}

/* Laptops y pantallas medianas */
@media screen and (max-width: 1200px) {
    .container {
        width: 95%;
        margin: 0 auto;
    }

    .carousel {
        height: 140px !important;
    }

    .carousel .carousel-item {
        width: 220px !important;
        height: 100px !important;
    }
}

/* Tablets */
@media screen and (max-width: 992px) {
    .nav-wrapper {
        padding: 5px 15px;
    }

    .brand-logo {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    .brand-logo img {
        height: 45px;
    }

    .slider,
    .slider .slides,
    .slider .slides li {
        height: 450px !important;
    }

    .slider .slides li img {
        height: 450px;
    }

    #mision-vision .card {
        height: auto;
        margin-bottom: 30px;
    }

    .valores-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .servicios-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .carousel {
        height: 120px !important;
    }

    .carousel .carousel-item {
        width: 180px !important;
        height: 90px !important;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .footer-info {
        align-items: center;
    }

    .footer-info a,
    .footer-info .contact-item {
        justify-content: center;
    }
}

/* Tablets pequeñas */
@media screen and (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }

    .slider,
    .slider .slides,
    .slider .slides li {
        height: 350px !important;
    }

    .slider .slides li img {
        height: 350px;
    }

    .valores-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .valor-content h4 {
        font-size: 1rem;
    }

    .carousel {
        height: 100px !important;
    }

    .carousel .carousel-item {
        width: 160px !important;
        height: 80px !important;
    }
}

/* Móviles */
@media screen and (max-width: 576px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.3rem; }

    .section {
        /* padding: 25px 0; */
    }

    .slider,
    .slider .slides,
    .slider .slides li {
        height: 300px !important;
    }

    .slider .slides li img {
        height: 300px;
    }

    .slider .slides li .caption {
        padding: 0 5%;
    }

    .valores-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .servicios-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .carousel {
        height: 90px !important;
    }

    .carousel .carousel-item {
        width: 140px !important;
        height: 70px !important;
    }

    .footer-logo {
        height: 60px;
    }

    .footer-info a,
    .footer-info .contact-item {
        font-size: 0.85rem;
    }
}

/* Dispositivos muy pequeños */
@media screen and (max-width: 360px) {
    .slider .slides li .caption-content h2 {
        font-size: 1.3rem;
    }

    .slider .slides li .caption-content .logo-j3p {
        width: 120px;
    }

    .carousel .carousel-item {
        width: 100px !important;
        height: 50px !important;
    }
}

/* ==========================================================================
   Estilos específicos para el texto con la clase 'b' en la vista móvil dentro de la sección del slider
   ========================================================================== */
.slider .slides li .caption-content h2.b {
    font-size: 3.5rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

@media screen and (max-width: 992px) {
    .slider .slides li .caption-content h2.b {
        font-size: 2.8rem;
        white-space: normal;
        text-align: center;
    }
}

@media screen and (max-width: 768px) {
    .slider .slides li .caption-content h2.b {
        font-size: 2.2rem;
        line-height: 1.3;
    }
}

@media screen and (max-width: 576px) {
    .slider .slides li .caption-content h2.b {
        font-size: 1.8rem;
        line-height: 1.4;
        margin: 0 auto;
        max-width: 280px;
    }
}

@media screen and (max-width: 360px) {
    .slider .slides li .caption-content h2.b {
        font-size: 1.5rem;
        max-width: 240px;
    }
}

/* Estilos para el menú móvil */
.sidenav {
    background-color: #fff;
    padding-top: 20px;
}

.sidenav li {
    margin: 5px 0;
}

.sidenav li a {
    color: #424242;
    font-weight: 500;
    padding: 15px 32px;
    height: auto;
    line-height: 1.5;
    transition: all 0.3s ease;
}

.sidenav li a:hover {
    background-color: #f5f5f5;
    color: #9575cd;
    padding-left: 38px;
}

.sidenav li a.linkedin-icon {
    color: #0077b5;
    font-size: 1.2rem;
}

.sidenav li a.language-flag {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidenav li a.language-flag img {
    width: 24px;
    height: auto;
    margin-right: 10px;
}

/* Nuevo estilo para el separador móvil */
.hr-mobile {
    height: 1px;
    background: linear-gradient(to right, transparent, #9575cd, transparent);
    border: none;
    margin: 15px auto;
    width: 85%;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.hr-mobile:hover {
    opacity: 1;
}

/* Estilo especial para el logo en el menú móvil */
.sidenav .brand-logo {
    display: block;
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 15px;
}

.sidenav .brand-logo img {
    height: 40px;
    width: auto;
}

/* Estilos para el banner de historia */
.parallax-container {
    height: 400px;
    position: relative;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

.banner-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Estilos para el botón volver arriba */
#btn-back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    z-index: 999;
    background-color: #9575cd;
    color: white;
    width: 45px;
    height: 45px;
    text-align: center;
    line-height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#btn-back-to-top:hover {
    background-color: #7e57c2;
    transform: translateY(-3px);
}

#btn-back-to-top i {
    line-height: 45px;
} 

