/* Solución completa para overflow horizontal */
html, body {
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

/* Asegurar que todos los elementos respeten el ancho */
img, video, iframe, .carousel, .carousel-inner, .carousel-item {
    max-width: 100%;
    height: auto;
}

/* Para elementos específicos de tu sitio */
.hero-section, .areas-section, .mission-vision-section, .objective-section {
    max-width: 100%;
    overflow: hidden;
}

/* Estilos generales del navbar */
.navbar {
    padding-top: 2rem;
    padding-bottom: 2rem;
    min-height: 120px;
    background-color: #343a40 !important;
}

/* Estilos consistentes para menú activo en desktop y móvil */

/* Menú Desktop */
.navbar-nav .nav-item.active .nav-link {
    color: #ff2727 !important;
    font-weight: 600;
    position: relative;
}

.navbar-nav .nav-item.active .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ff2727;
    border-radius: 2px;
}

/* Sidebar Móvil */
.offcanvas-body .nav-item.active .nav-link {
    color: #ff2727 !important;
    font-weight: 600;
    background-color: rgba(220, 53, 69, 0.1);
    border-left: 3px solid #ff2727;
}

/* Efecto hover consistente */
.navbar-nav .nav-link:hover,
.offcanvas-body .nav-link:hover {
    color: #cccccc !important;
}

.navbar-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.navbar-brand img {
    height: 120px;
    width: auto;
}

.nav-link {
    font-size: 1.1rem;
    padding: 0.5rem 1rem !important;
    color: #ffffff !important;
}

.nav-link:hover {
    color: #cccccc !important;
}

.navbar-toggler {
    border-color: rgba(255,255,255,0.5);
}

.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%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Sidebar Styles */
.offcanvas {
    max-width: 300px;
}

.offcanvas-header {
    border-bottom: 1px solid #dee2e6;
    padding: 1.5rem;
    background-color: #343a40;
}

.offcanvas-title {
    color: #ffffff;
}

.offcanvas-body {
    background-color: #495057;
}

.offcanvas-body .navbar-nav {
    flex-direction: column;
}

.offcanvas-body .nav-item {
    width: 100%;
}

.offcanvas-body .nav-link {
    padding: 1rem 1.5rem !important;
    border-bottom: 1px solid #6c757d; /* Línea delimitadora activada */
    font-size: 1.1rem;
    color: #ffffff !important;
}

.offcanvas-body .nav-link:hover {
    background-color: #343a40;
    color: #cccccc !important;
}

.btn-close {
    filter: invert(1);
}

/* Carousel Styles - CORREGIDO */
.carousel-container {
    position: relative;
}

.carousel-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 35px;
    background-color: #ff2727;
    z-index: 10;
}

.carousel {
    height: 100%; /* Altura fija para todas las imágenes */
    overflow: hidden;
    position: relative;
}

.carousel-item {
    height: 600px; /* Altura fija para todas las imágenes */
    overflow: hidden;
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    transform: translateZ(0);
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 5px;
    padding: 20px;
    bottom: 60px; /* Ajustado para que no quede sobre la línea roja */
}

/* Sección de Oferta */
.offer-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.offer-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 400px;
}

.offer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.card-image {
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.1) 0%,
        rgba(0,0,0,0.7) 70%,
        rgba(0,0,0,0.9) 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.card-content {
    color: white;
    text-align: left;
    width: 100%;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.card-text {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.9);
}

.btn-card {
    background: linear-gradient(45deg, #dc3545, #ff2727);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-card:hover {
    background: linear-gradient(45deg, #c82333, #dc3545);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

/* Sección Quiénes Somos */
.about-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ff2727, #dc3545);
}

.about-content {
    padding: 2rem 0;
}

.about-text {
    text-align: justify;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-text strong {
    color: #dc3545;
    font-weight: 700;
}

/* Efectos decorativos */
.about-content::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #ff2727, #dc3545);
    margin: 2rem auto 0;
    border-radius: 2px;
}

/* Sección Por Qué Elegirnos */
.why-choose-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.why-choose-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #dc3545, #ff2727);
}

.why-choose-content {
    padding: 2rem 1rem 2rem 0;
}

.why-choose-text {
    line-height: 1.8;
}

.why-choose-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.why-choose-text strong {
    color: #dc3545;
    font-weight: 700;
}

.why-choose-cta {
    margin-top: 2rem;
}

.why-choose-cta .btn {
    background: linear-gradient(45deg, #dc3545, #ff2727);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.why-choose-cta .btn:hover {
    background: linear-gradient(45deg, #c82333, #dc3545);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
}

.why-choose-image {
    padding: 1rem;
    position: relative;
}

.why-choose-image::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: 10px;
    bottom: 10px;
    background: linear-gradient(45deg, #dc3545, #ff2727);
    border-radius: 15px;
    z-index: 1;
    opacity: 0.1;
}

.why-choose-image img {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
    border-radius: 10px;
}

.why-choose-image img:hover {
    transform: scale(1.02);
}

/* Sección Marcas */
.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid #f8f9fa;
}

.brand-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: #e9ecef;
}

.brand-logo img {
    max-height: 60px;
    width: auto;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.brand-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}
/* Sección Ubicaciones */
.location-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
}

.location-info {
    padding: 1rem 0 0;
}
/* Footer */
footer {
    border-top: 4px solid #dc3545;
}

.social-links a {
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 50%;
    text-decoration: none !important;
}

.social-links a:hover {
    color: #dc3545 !important;
    transform: translateY(-2px);
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Logo animado */
.loading-logo {
    width: 150px;
    height: 150px;
    animation: pulse 1.5s ease-in-out infinite;
}

.loading-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Spinner alternativo */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #dc3545;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

/* Animaciones */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

/* Efecto de carga para transiciones entre páginas */
.page-transition {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.page-loaded {
    opacity: 1;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 60vh;
    min-height: 500px;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                url('../img/hero/hero-background.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 0; /* Pegado al header */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-whatsapp-btn {
    background: #25D366;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.hero-whatsapp-btn:hover {
    background: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    color: white;
}

/* Variantes de filtro para diferentes páginas */
.hero-blue {
    background: linear-gradient(rgba(30, 58, 138, 0.7), rgba(30, 58, 138, 0.7)), 
                url('../img/hero/hero-background.webp') center/cover no-repeat;
}

.hero-about {
    background: linear-gradient(rgba(55, 65, 81, 0.7), rgba(55, 65, 81, 0.7)), 
                url('../img/hero/hero-background.webp') center/cover no-repeat;
}
.hero-services {
    background: linear-gradient(rgba(55, 65, 81, 0.7), rgba(55, 65, 81, 0.7)), 
                url('../img/hero/hero-background-services.webp') center/cover no-repeat;
}
.hero-galery {
    background: linear-gradient(rgba(55, 65, 81, 0.7), rgba(55, 65, 81, 0.7)), 
                url('../img/hero/hero-background-galery.webp') center/cover no-repeat;
}
.hero-contact {
    background: linear-gradient(rgba(55, 65, 81, 0.7), rgba(55, 65, 81, 0.7)), 
                url('../img/hero/hero-background-contact.webp') center/cover no-repeat;
}
.hero-privacy {
    background: linear-gradient(rgba(55, 65, 81, 0.7), rgba(55, 65, 81, 0.7)), 
                url('../img/hero/hero-background-privacy.webp') center/cover no-repeat;
}


.hero-dark {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), 
                url('../img/hero/hero-background.webp') center/cover no-repeat;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        height: 50vh;
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-whatsapp-btn {
        padding: 0.8rem 2rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 40vh;
        min-height: 300px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
}

/* Portafolio de Proyectos */
.portfolio-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-info {
    text-align: center;
    color: white;
}

.project-info h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.project-info p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.btn-view {
    background: rgba(255,255,255,0.9);
    color: #343a40;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-view:hover {
    background: white;
    transform: scale(1.05);
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #343a40;
    margin-bottom: 0.5rem;
}

.project-category {
    background: #6c757d;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Modal de Proyecto */
.project-modal .modal-content {
    border-radius: 15px;
    border: none;
}

.project-gallery {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.project-gallery img {
    width: 100px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.project-gallery img:hover {
    transform: scale(1.1);
}

.project-details h6 {
    color: #343a40;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.project-details ul {
    padding-left: 1rem;
}

.project-details li {
    margin-bottom: 0.25rem;
    color: #6c757d;
}

/* Sección Áreas de Trabajo - Versión Circular */
.areas-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.area-card-circular {
    background: white;
    border-radius: 20px;
    padding: 3rem 2rem 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    position: relative;
    margin-top: 80px; /* Espacio para la imagen circular */
}

.area-card-circular:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.area-image-circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    position: absolute;
    top: -80px; /* Mitad arriba del card */
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: all 0.4s ease;
}

.area-card-circular:hover .area-image-circle {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.area-image-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.area-card-circular:hover .area-image-circle img {
    transform: scale(1.2);
}

.circle-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    transition: all 0.4s ease;
}

.area-card-circular:hover .circle-overlay {
  background: rgba(0, 0, 0, 0.05);}

.area-content-circular {
    margin-top: 60px; /* Espacio para la imagen */
}

.area-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #343a40;
    margin-bottom: 1rem;
    position: relative;
}

.area-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #dc3545, #ff2727);
    border-radius: 2px;
}

.area-text {
    color: #6c757d;
    line-height: 1.7;
    margin: 0;
}

/* Sección de Contacto */
.contact-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.contact-form-card, .contact-info-card {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    height: 100%;
}

.form-title, .info-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #343a40;
    position: relative;
}

.form-title::after, .info-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #dc3545, #ff2727);
    border-radius: 2px;
}

.info-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.form-subtitle {
    color: #6c757d;
    line-height: 1.6;
}

/* Formulario */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: #343a40;
    margin-bottom: 0.5rem;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-text {
    font-size: 0.85rem;
}

/* Información de Contacto */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #dc3545, #ff2727);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    color: white;
    font-size: 1.2rem;
}

.contact-content h5 {
    color: #343a40;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-text {
    color: #6c757d;
    margin: 0;
}

.contact-text a {
    color: #dc3545;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-text a:hover {
    color: #ff2727;
}

/* Horarios */
.schedule-item {
    color: #6c757d;
}

.schedule-item strong {
    color: #343a40;
}

/* Botón */
.btn-primary {
    background: linear-gradient(45deg, #dc3545, #ff2727);
    border: none;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #c82333, #dc3545);
    transform: translateY(-2px);
}

/* reCAPTCHA */
.g-recaptcha {
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-form-card, .contact-info-card {
        padding: 2rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .contact-form-card, .contact-info-card {
        padding: 1.5rem;
    }
}

/* Responsive para versión circular */
@media (max-width: 768px) {
    .area-card-circular {
        padding: 2.5rem 1.5rem 1.5rem;
        margin-top: 70px;
    }
    
    .area-image-circle {
        width: 140px;
        height: 140px;
        top: -70px;
    }
    
    .area-content-circular {
        margin-top: 50px;
    }
    
    .area-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .area-card-circular {
        padding: 2rem 1rem 1rem;
        margin-top: 60px;
    }
    
    .area-image-circle {
        width: 120px;
        height: 120px;
        top: -60px;
    }
    
    .area-content-circular {
        margin-top: 40px;
    }
    
    .area-title {
        font-size: 1.2rem;
    }
    
    .area-text {
        font-size: 0.9rem;
    }
}

/* Secciones Misión y Visión */
.mission-vision-section {
    position: relative;
}

.mv-image {
    padding: 1rem;
}

.mv-image img {
    transition: transform 0.3s ease;
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.mv-image img:hover {
    transform: scale(1.02);
}

.mv-content {
    padding: 2rem;
}

.mv-text {
    line-height: 1.8;
}

.mv-text p {
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Sección Objetivo General */
.objective-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
}

.objective-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #6c757d, #343a40);
    border-radius: 2px;
}

.objective-content {
    padding: 3rem 2rem;
}

.objective-text {
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

.objective-text p {
    font-size: 1.2rem;
    margin-bottom: 0;
}

/* Efectos decorativos */
.mv-content h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #6c757d;
    margin: 1rem 0;
    border-radius: 2px;
}

.objective-content h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: #6c757d;
    margin: 1.5rem auto;
    border-radius: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .mv-content {
        padding: 1rem 0;
        text-align: center;
    }
    
    .mv-image {
        padding: 1rem 0;
        margin-bottom: 2rem;
    }
    
    .mv-image img {
        height: 300px;
    }
    
    .objective-content {
        padding: 2rem 1rem;
    }
    
    .objective-text p {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .mv-image img {
        height: 250px;
    }
    
    .mv-text p {
        font-size: 1rem;
    }
    
    .objective-text p {
        font-size: 1rem;
    }
    
    .objective-content {
        padding: 1.5rem 1rem;
    }
}

/* Responsive para footer */
@media (max-width: 768px) {
    footer {
        padding: 2rem 0 !important;
    }
    
    .social-links {
        margin-top: 1rem;
    }
    
    .social-links a {
        margin: 0 0.5rem;
    }
}

/* Sección Servicios con Imágenes */
.services-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.service-card-image {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.service-card-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.service-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card-image:hover .service-image img {
    transform: scale(1.1);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0));
    transition: all 0.3s ease;
}

.service-card-image:hover .service-overlay {
    background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0));
}



.service-card-image:hover .service-icon {
    background: white;
    transform: translate(-50%, -50%) scale(1.1);
}

.service-icon i {
    font-size: 1.5rem;
    color: #343a40;
}

.service-content {
    padding: 1.5rem;
}

.service-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #343a40;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.service-text {
    color: #6c757d;
    line-height: 1.5;
    margin: 0;
    font-size: 0.95rem;
}

/* Responsive para servicios con imágenes */
@media (max-width: 768px) {
    .service-image {
        height: 180px;
    }
    
    .service-content {
        padding: 1.25rem;
    }
    
    .service-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .service-image {
        height: 160px;
    }
    
    .service-content {
        padding: 1rem;
    }
    
    .service-title {
        font-size: 1rem;
    }
    
    .service-text {
        font-size: 0.9rem;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
    }
    
    .service-icon i {
        font-size: 1.2rem;
    }
}

/* Galería con Miniaturas para Imágenes Verticales */
.vertical-carousel {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.main-image-container {
    text-align: center;
    padding: 1rem;
}

.main-image {
    max-height: 500px;
    width: auto;
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    object-fit: contain;
}

.thumbnails-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 500px;
    overflow-y: auto;
    padding: 1rem;
}

.thumbnail {
    cursor: pointer;
    border-radius: 8px;
    padding: 5px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail:hover {
    transform: translateX(5px);
}

.thumbnail.active {
    border-color: #6c757d;
    background-color: #f8f9fa;
    transform: translateX(10px);
}

.thumbnail img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.thumbnail.active img {
    opacity: 1;
}

.thumbnail:hover img {
    opacity: 0.9;
}

/* Scrollbar personalizado para miniaturas */
.thumbnails-container::-webkit-scrollbar {
    width: 6px;
}

.thumbnails-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.thumbnails-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.thumbnails-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Responsive */
@media (max-width: 992px) {
    .vertical-carousel {
        padding: 1.5rem;
    }
    
    .main-image {
        max-height: 400px;
    }
    
    .thumbnails-container {
        flex-direction: row;
        max-height: 120px;
        overflow-x: auto;
        overflow-y: hidden;
    }
    
    .thumbnail {
        min-width: 100px;
    }
    
    .thumbnail:hover {
        transform: translateY(-5px);
    }
    
    .thumbnail.active {
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {
    .vertical-carousel {
        padding: 1rem;
    }
    
    .main-image {
        max-height: 350px;
    }
    
    .thumbnails-container {
        max-height: 100px;
    }
    
    .thumbnail img {
        height: 80px;
    }
}
/* Galería Masonry */
.gallery-masonry {
    column-count: 3;
    column-gap: 1rem;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0.7));
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info h4 {
    color: white;
    margin: 0;
    font-size: 1.1rem;
}

.gallery-info p {
    color: rgba(255,255,255,0.8);
    margin: 0;
    font-size: 0.9rem;
}

/* Filtros */
.gallery-filters {
    margin-bottom: 2rem;
}

.filter-btn {
    background: none;
    border: 2px solid #6c757d;
    color: #6c757d;
    padding: 0.5rem 1.5rem;
    margin: 0 0.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn.active,
.filter-btn:hover {
    background: #6c757d;
    color: white;
}

/* Responsive Masonry */
@media (max-width: 992px) {
    .gallery-masonry {
        column-count: 2;
    }
}

@media (max-width: 576px) {
    .gallery-masonry {
        column-count: 1;
    }
    
    .filter-btn {
        display: block;
        width: 100%;
        margin: 0.25rem 0;
    }
}
/* Responsive para ubicaciones */
@media (max-width: 768px) {
    .location-card {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .map-container iframe {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .location-card {
        padding: 1rem;
    }
    
    .map-container iframe {
        height: 200px;
    }
}

/* Responsive para marcas */
@media (max-width: 768px) {
    .brand-logo {
        height: 80px;
        padding: 0.75rem;
    }
    
    .brand-logo img {
        max-height: 50px;
    }
}

@media (max-width: 576px) {
    .brand-logo {
        height: 70px;
        padding: 0.5rem;
    }
    
    .brand-logo img {
        max-height: 40px;
    }
}

/* Responsive para la sección Por Qué Elegirnos */
@media (max-width: 992px) {
    .why-choose-content {
        padding: 1rem 0;
        text-align: center;
    }
    
    .why-choose-image {
        padding: 2rem 1rem;
    }
    
    .why-choose-image::before {
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }
}

@media (max-width: 768px) {
    .why-choose-section {
        padding: 3rem 0;
    }
    
    .why-choose-text p {
        font-size: 1rem;
    }
    
    .why-choose-cta .btn {
        font-size: 1rem;
        padding: 0.8rem 2rem;
    }
}

@media (max-width: 576px) {
    .why-choose-section {
        padding: 2rem 0;
    }
    
    .why-choose-content h2 {
        font-size: 2rem;
    }
    
    .why-choose-text p {
        font-size: 0.95rem;
    }
}

/* Responsive para la sección Quiénes Somos */
@media (max-width: 768px) {
    .about-section {
        padding: 3rem 0;
    }
    
    .about-content {
        padding: 1rem 0;
    }
    
    .about-text p {
        font-size: 1rem;
        text-align: left;
    }
    
    .about-text {
        line-height: 1.6;
    }
}

@media (max-width: 576px) {
    .about-section {
        padding: 2rem 0;
    }
    
    .about-content h2 {
        font-size: 2rem;
    }
    
    .about-text p {
        font-size: 0.95rem;
    }
}

/* Responsive para cards */
@media (max-width: 768px) {
    .offer-card {
        height: 350px;
        margin-bottom: 1.5rem;
    }
    
    .card-overlay {
        padding: 1.5rem;
    }
    
    .card-title {
        font-size: 1.3rem;
    }
    
    .card-text {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .btn-card {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .offer-card {
        height: 300px;
    }
    
    .card-overlay {
        padding: 1rem;
    }
}

/* Ajustes responsive para móviles - CORREGIDO */
@media (max-width: 768px) {
    .carousel-item {
        height: 300px; /* Altura corregida para móviles */
    }
    
    .carousel-caption {
        padding: 10px;
        bottom: 50px; /* Ajustado para móviles */
    }
    
    .carousel-caption h5 {
        font-size: 1.1rem;
        margin-bottom: 0.2rem;
    }
    
    .carousel-container::after {
        height: 25px; /* Línea más delgada en móviles */
    }
    
    /* Ajustes del navbar en móviles */
    .navbar-brand img {
        height: 80px; /* Logo más pequeño en móviles */
    }
    
    .navbar {
        padding-top: 1rem;
        padding-bottom: 1rem;
        min-height: 90px;
    }
}

/* Ocultar el menú normal en móviles */
@media (max-width: 991.98px) {
    .navbar-collapse {
        display: none !important;
    }
    
    .navbar-brand {
        position: static;
        transform: none;
        text-align: center;
        margin: 0 auto;
    }
}

/* Mostrar el menú normal en desktop */
@media (min-width: 992px) {
    .navbar-toggler {
        display: none;
    }
}

/* Mejoras adicionales para pantallas grandes */
@media (min-width: 1200px) {
    .carousel-item {
        height: 700px; /* Más alto en pantallas grandes */
    }
}

/* Animaciones Scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease-out;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease-out;
}

.fade-in-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease-out;
}

/* Cuando son visibles */
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Delays escalonados */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* Contenedor con scroll interno */
.privacy-container {
    background: white;
    border-radius: 15px;
    padding: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-height: 70vh; /* Altura máxima - ajusta según necesites */
    overflow-y: auto; /* Scroll vertical */
    border: 1px solid #e9ecef;
}

.privacy-content {
    padding: 2.5rem;
}

/* Personalizar la scrollbar */
.privacy-container::-webkit-scrollbar {
    width: 8px;
}

.privacy-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 15px 15px 0;
}

.privacy-container::-webkit-scrollbar-thumb {
    background: #dc3545;
    border-radius: 4px;
}

.privacy-container::-webkit-scrollbar-thumb:hover {
    background: #c82333;
}

/* Para Firefox */
.privacy-container {
    scrollbar-width: thin;
    scrollbar-color: #dc3545 #f1f1f1;
}

/* Estilos para el contenido */
.privacy-content h1 {
    color: #343a40;
    border-bottom: 3px solid #dc3545;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.privacy-content h2 {
    color: #495057;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.privacy-content h3 {
    color: #6c757d;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.privacy-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.privacy-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.privacy-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .privacy-container {
        max-height: 60vh;
        margin: 0 1rem;
    }
    
    .privacy-content {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .privacy-container {
        max-height: 50vh;
    }
    
    .privacy-content {
        padding: 1.5rem;
    }
}