/* ===== ESTILOS PRINCIPALES - ESTRUCTURAS J&E ===== */

/* ===== VARIABLES CSS ===== */
:root {
    --primary-color: #044484;
    --secondary-color: #1c548c;
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
    --text-color: #333;
    --text-muted: #6c757d;
    --border-radius: 15px;
    --box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

/* ===== ESTILOS GENERALES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}
p{
    color:#ffffff;
}

/* ===== NAVEGACIÓN ===== */
.navbar {
    transition: var(--transition);
    backdrop-filter: blur(10px);
    background: #ffffff !important;
}

.navbar.scrolled {
    background: #ffff !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-toggler {
    border-color: #736c6c;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(115, 108, 108, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
    position: relative;
    color: #736c6c;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link.active::after {
    width: 80%;
}

/* Estilos para las banderas */
.dropdown-item .fas.fa-flag {
    margin-right: 8px;
    display: inline-block;
    width: 20px;
    text-align: center;
}

/* Estilos para las imágenes de banderas en dropdown */
.flag-img {
    width: 20px;
    height: 15px;
    margin-right: 8px;
    vertical-align: middle;
    border-radius: 2px;
    object-fit: cover;
}

/* Estilos para las banderas en la parte superior */
.language-flags {
    z-index: 1050;
}

.flag-img-top {
    width: 25px;
    height: 18px;
    border-radius: 3px;
    object-fit: cover;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.flag-img-top:hover {
    transform: scale(1.15);
}

/* Ajuste para los elementos del dropdown */
.dropdown-item {
    display: flex;
    align-items: center;
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-slide {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-size: cover !important;
    background-position: center !important;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.hero-slide .container {
    position: relative;
    z-index: 2;
}

.hero-slide h1 {
    font-weight: 800;
    line-height: 1.2;
}

.hero-slide .text-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== SECCIONES ===== */
section {
    padding: 5rem 0 0;
}

.section-title {
    position: relative;
    margin-bottom: 3rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* ===== TARJETAS DE SERVICIOS ===== */
.service-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: none;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: white;
}

.service-card h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.service-card ul li {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

/* ===== PROCESO DE MONTAJE ===== */
.process-steps {
    margin-top: 2rem;
}

.process-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.process-step:hover {
    transform: translateX(10px);
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.step-content h5 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--text-muted);
    margin: 0;
}

.montaje-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* ===== ESTADÍSTICAS ===== */
.stats-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.stats-card:hover {
    transform: translateY(-5px);
}

.stats-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.8rem;
    color: white;
}

.stats-card h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stats-card p {
    color: var(--text-muted);
    font-weight: 500;
}

/* ===== PORTAFOLIO ===== */
.portfolio-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.portfolio-card:hover {
    transform: translateY(-10px);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    flex: 1;
    min-height: 180px;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    padding: 0.5rem;
    box-sizing: border-box;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-content {
    text-align: center;
    padding: 1rem 1.2rem;
    flex-shrink: 0;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.portfolio-content h5 {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    line-height: 1.3;
}

.portfolio-content p {
    margin-bottom: 1rem;
    opacity: 0.9;
    font-size: 0.75rem;
    line-height: 1.2;
    flex-grow: 1;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    max-width: 100%;
    white-space: normal;
    text-overflow: ellipsis;
}

.portfolio-content .btn {
    width: 100%;
    max-width: 140px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 auto;
    display: block;
}

/* ===== PORTFOLIO SWIPER ===== */
.portfolio-slider-container {
    position: relative;
    padding: 0 60px;
    margin-bottom: 60px;
}

.portfolioSwiper {
    position: relative;
    padding-bottom: 50px;
}

.portfolioSwiper .swiper-slide {
    height: 350px;
    display: flex;
    align-items: stretch;
}

.portfolioSwiper .portfolio-card {
    height: 320px;
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* Swiper Navigation Buttons */
.portfolioSwiper .swiper-button-next,
.portfolioSwiper .swiper-button-prev {
    width: 50px;
    height: 50px;
    background: rgba(102, 126, 234, 0.9);
    border-radius: 50%;
    border: 2px solid white;
    color: white;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.portfolioSwiper .swiper-button-next:hover,
.portfolioSwiper .swiper-button-prev:hover {
    background: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.portfolioSwiper .swiper-button-next::after,
.portfolioSwiper .swiper-button-prev::after {
    font-size: 16px;
    font-weight: 900;
}

.portfolioSwiper .swiper-button-prev {
    left: 0;
}

.portfolioSwiper .swiper-button-next {
    right: 0;
}

/* Swiper Pagination */
.portfolioSwiper .swiper-pagination {
    bottom: 0;
    position: relative;
    margin-top: 30px;
}

.portfolioSwiper .swiper-pagination-bullet {
    width: 20px;
    height: 3px;
    border-radius: 2px;
    background: rgba(102, 126, 234, 0.4);
    margin: 0 4px;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.portfolioSwiper .swiper-pagination-bullet-active {
    background: var(--primary-color);
    width: 30px;
    opacity: 1;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.portfolioSwiper .swiper-pagination-bullet:hover {
    background: rgba(102, 126, 234, 0.8);
    width: 25px;
    opacity: 1;
}

/* Responsive adjustments for portfolio swiper */
@media (max-width: 768px) {
    .portfolio-slider-container {
        padding: 0 50px;
    }
    
    .portfolioSwiper .swiper-slide {
        height: 320px;
    }
    
    .portfolio-image {
        min-height: 160px;
    }
    
    .portfolio-content {
        padding: 1rem;
        min-height: 120px;
    }
    
    .portfolio-content h5 {
        font-size: 1rem;
    }
    
    .portfolio-content p {
        font-size: 0.8rem;
        line-height: 1.3;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
    
    .portfolio-content .btn {
        max-width: 120px;
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .portfolioSwiper .swiper-button-next,
    .portfolioSwiper .swiper-button-prev {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .portfolioSwiper .swiper-button-next::after,
    .portfolioSwiper .swiper-button-prev::after {
        font-size: 14px;
    }
    
    .portfolioSwiper .swiper-pagination-bullet {
        width: 16px;
        height: 2px;
    }
    
    .portfolioSwiper .swiper-pagination-bullet-active {
        width: 24px;
    }
    
    .portfolioSwiper .swiper-pagination-bullet:hover {
        width: 20px;
    }
}

@media (max-width: 576px) {
    .portfolio-slider-container {
        padding: 0 40px;
    }
    
    .portfolioSwiper .swiper-slide {
        height: 280px;
    }
    
    .portfolio-image {
        min-height: 140px;
    }
    
    .portfolio-content {
        padding: 0.8rem;
        min-height: 100px;
    }
    
    .portfolio-content h5 {
        font-size: 0.95rem;
        margin-bottom: 0.6rem;
    }
    
    .portfolio-content p {
        font-size: 0.75rem;
        margin-bottom: 0.8rem;
        line-height: 1.3;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
    
    .portfolio-content .btn {
        max-width: 110px;
        font-size: 0.75rem;
        padding: 0.35rem 0.7rem;
    }
    
    .portfolioSwiper .swiper-button-next,
    .portfolioSwiper .swiper-button-prev {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
    
    .portfolioSwiper .swiper-button-next::after,
    .portfolioSwiper .swiper-button-prev::after {
        font-size: 12px;
    }
    
    .portfolioSwiper .swiper-pagination-bullet {
        width: 12px;
        height: 2px;
    }
    
    .portfolioSwiper .swiper-pagination-bullet-active {
        width: 18px;
    }
    
    .portfolioSwiper .swiper-pagination-bullet:hover {
        width: 15px;
    }
}

/* ===== CONTACTO ===== */
.contact-info {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-details h6 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--text-muted);
    margin: 0;
}

.contact-form {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
}

.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* ===== FOOTER ===== */
footer {
    background: var(--dark-color) !important;
}

.social-links {
    margin-top: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: white;
    text-decoration: none;
    margin-right: 0.5rem;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* ===== BOTONES ===== */
.btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
}

.btn-outline-light:hover {
    background: white;
    color: var(--dark-color);
    transform: translateY(-2px);
}

/* ===== CARRUSEL ===== */
.carousel-indicators {
    bottom: 10px;
    z-index: 15;
}

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    margin: 0 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    touch-action: manipulation;
}

.carousel-indicators button.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    border: 2px solid rgba(255,255,255,0.5);
    top: 50%;
    transform: translateY(-50%);
    margin: 0 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    touch-action: manipulation;
    z-index: 15;
    opacity: 0.8;
}

.carousel-control-prev:hover,
.carousel-control-next:hover,
.carousel-control-prev:focus,
.carousel-control-next:focus {
    background: rgba(255,255,255,0.5);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 16px;
    height: 16px;
}

/* Mejoras de accesibilidad táctil para carrusel */
.carousel-control-prev,
.carousel-control-next {
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.carousel-indicators button {
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    min-width: 10px;
    min-height: 10px;
    padding: 0;
}

/* Área de toque más grande para indicadores en móviles */
@media (max-width: 768px) {
    .carousel-indicators button {
        position: relative;
    }
    
    .carousel-indicators button::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 10px;
        height: 10px;
        background: transparent;
    }
}

/* ===== ANIMACIONES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

/* ===== CONTADORES ===== */
.counter {
    transition: all 0.3s ease;
}

/* ===== UTILIDADES ===== */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: var(--box-shadow);
}

.rounded-custom {
    border-radius: var(--border-radius);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .navbar-nav {
        text-align: center;
        padding: 1rem 0;
    }
    
    .hero-slide h1 {
        font-size: 2.5rem;
    }
    
    .hero-slide .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .process-step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        margin: 0 auto 1rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin: 0 auto 1rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .service-card,
    .stats-card,
    .contact-info,
    .contact-form {
        margin-bottom: 2rem;
    }
    
    /* Mejoras para carrusel en móviles */
    .carousel-control-prev,
    .carousel-control-next {
        width: 35px;
        height: 35px;
        margin: 0 10px;
        background: rgba(255,255,255,0.4);
        border: 2px solid rgba(255,255,255,0.6);
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 14px;
        height: 14px;
    }
    
    .carousel-indicators {
        bottom: 15px;
    }
    
    .carousel-indicators button {
        width: 8px;
        height: 8px;
        margin: 0 3px;
    }
}

@media (max-width: 576px) {
    .hero-slide h1 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 2.5rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    /* Carrusel en pantallas muy pequeñas */
    .carousel-control-prev,
    .carousel-control-next {
        width: 30px;
        height: 30px;
        margin: 0 8px;
        background: rgba(255,255,255,0.5);
        border: 1px solid rgba(255,255,255,0.7);
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 12px;
        height: 12px;
    }
    
    .carousel-indicators {
        bottom: 10px;
    }
    
    .carousel-indicators button {
        width: 6px;
        height: 6px;
        margin: 0 2px;
    }
}

/* ===== SCROLL SUAVE ===== */
html {
    scroll-behavior: smooth;
}

/* ===== LOADING ===== */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading.hidden {
    display: none;
}

/* ===== NOTIFICACIONES ===== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    z-index: 10000;
    transform: translateX(100%);
    transition: var(--transition);
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: #28a745;
}

.notification.error {
    background: #dc3545;
}

.notification.info {
    background: var(--primary-color);
}

/* ===== MEJORAS DE ACCESIBILIDAD ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== FOCUS VISIBLE ===== */
.btn:focus-visible,
.form-control:focus-visible,
.nav-link:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .carousel-control-prev,
    .carousel-control-next,
    .carousel-indicators,
    footer {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .hero-slide {
        min-height: auto;
        padding: 2rem 0;
    }
}
