/* ----------------------------------------------------------------
	Custom CSS

	Add all your Custom Styled CSS here for New Styles or
	Overwriting Default Theme Styles for Better Handling Updates
-----------------------------------------------------------------*/

:root {
    --primary-color: #DB8800;
    --primary-rgb: 219, 136, 0;
    --dark-overlay: rgba(0, 0, 0, 0.6);
}

.text-shadow {
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

@media (min-width: 992px) {

    #top-bar.transparent-topbar {
        z-index: 399;
        border-bottom: 0;
        margin-top: 15px;
    }

    #top-bar.transparent-topbar {
        background: transparent !important;
    }

    #top-bar + #header.transparent-header.floating-header {
        margin-top: 15px;
    }

}

.dark .top-links li > a,
.dark #top-social li a { color: #FFF; }

.dark .top-links li:hover { background-color: rgba(255,255,255,0.15); }

.dark #top-social li { border-left: 0; }

.is-expanded-menu #header.transparent-header.floating-header:not(.sticky-header) .container {
    border-radius: 10px;
}

#header-wrap #logo img {
    padding: 10px;
}


.video-overlay-2, .video-placeholder {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 5;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
}

.slider-content {
    max-width: 600px;
}

.slider-content h2 {
    line-height: 1.2;
}

.btn-primary {
    background-color: #DB8800;
    border-color: #DB8800;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #DB8800;
    border-color: #DB8800;
}

.text-primary {
    color: #DB8800 !important;
}

.slider-caption h3, .slider-caption .h3 {
    font-size: 3.5rem;
    letter-spacing: 0;
    text-transform: none;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 0;
}

/* Mejoras para encabezados de sección */
.section-header {
    position: relative;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #212529;
}

.section-header .before-heading {
    background-color: rgba(219, 136, 0, 0.1);
    color: #DB8800;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
}

/* Banner para Quiénes Somos */
.page-title {
    position: relative;
}

.page-title h1 {
    font-size: 48px;
    font-weight: 600;
    line-height: 1.2;
    border-left: 4px solid #DB8800;
    padding-left: 20px;
    margin-bottom: 20px;
}

.z-10 {
    position: relative;
    z-index: 10;
}

/* Proceso de trabajo con iconos mejorados */
.process-box {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.process-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.process-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background-color: rgba(219, 136, 0, 0.1);
    border-radius: 50%;
    margin-bottom: 20px;
}

.process-icon i {
    font-size: 28px;
    color: #DB8800;
}

.process-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.process-text {
    color: #666;
    line-height: 1.6;
}

/* Fortalezas con efecto de hover */
.feature-box-hover {
    padding: 30px;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    height: 100%;
}

.feature-box-hover:hover {
    background-color: #DB8800;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-box-hover:hover .fbox-icon i {
    color: #fff;
}

.feature-box-hover:hover .fbox-content h3,
.feature-box-hover:hover .fbox-content p {
    color: #fff;
}

.feature-box-hover .fbox-icon {
    margin-bottom: 20px;
}

.feature-box-hover .fbox-icon i {
    color: #DB8800;
    font-size: 36px;
    transition: all 0.3s ease;
}

/* Para la sección de nuestra historia */
.history-badge {
    display: inline-block;
    background-color: rgba(219, 136, 0, 0.1);
    color: #DB8800;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
}

.history-title {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #212529;
}

.history-description {
    color: #555;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 30px;
}

.stats-item {
    margin-bottom: 25px;
}

.stats-number {
    font-size: 32px;
    font-weight: 700;
    color: #DB8800;
    margin-bottom: 5px;
}

.stats-label {
    font-size: 16px;
    color: #666;
}

/* Estilos generales */
.bg-primary-subtle {
    background-color: rgba(219, 136, 0, 0.1) !important;
}

.text-primary {
    color: #DB8800 !important;
}

.badge {
    font-weight: 500;
}

.section {
    padding: 5rem 0;
}

.bg-light {
    background-color: rgba(219, 136, 0, 0.03) !important;
}

/* Estilos para las tarjetas de fortalezas */
.card {
    transition: all 0.3s ease;
    border: none;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.bg-primary {
    background-color: #DB8800 !important;
}

.rounded-pill {
    border-radius: 50rem !important;
}

.rounded-4 {
    border-radius: 0.75rem !important;
}

.fs-4 {
    font-size: 1.5rem !important;
}


/* Estilos para la sección de servicios */
.btn-outline-primary {
    color: #DB8800;
    border-color: #DB8800;
}

.btn-outline-primary:hover {
    background-color: #DB8800;
    color: #fff;
}

.btn-outline-light:hover {
    color: #DB8800;
}

/* Mejoras para los tabs */
.tabs-responsive .tab-nav li {
    margin-bottom: 10px;
}

.tabs-responsive .tab-nav li a {
    background-color: #f8f9fa;
    color: #495057;
    border-radius: 50px;
    padding: 10px 20px;
    font-weight: 500;
    border: none;
    transition: all 0.3s ease;
}

.tabs-responsive .tab-nav li.ui-tabs-active a,
.tabs-responsive .tab-nav li a:hover {
    background-color: #DB8800;
    color: #fff;
}

.tab-container .tab-content {
    padding: 30px 0;
}

/* Efectos de hover para cards */
.card {
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Estilos para iconos en servicios */
.service-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(219, 136, 0, 0.1);
    color: #DB8800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 24px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.card:hover .service-icon {
    background-color: #DB8800;
    color: #fff;
}

/* CTA con mejor aspecto */
.bg-primary {
    background-color: #DB8800 !important;
}

.bg-primary a.btn-light:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.rounded-4 {
    border-radius: 1rem !important;
}

/* Estilos para la página de valores */
.valores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.valor-card {
    background-color: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.valor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(219, 136, 0, 0.15);
}

.valor-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #DB8800;
    z-index: -1;
    transform: translateY(100%);
    transition: all 0.4s ease;
}

.valor-card:hover:before {
    transform: translateY(0);
}

.valor-card:hover .valor-title,
.valor-card:hover .valor-text {
    color: #fff;
}

.valor-card:hover .valor-icon {
    background-color: #fff;
    color: #DB8800;
}

.valor-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 30px;
    transition: all 0.3s ease;
}

.valor-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.valor-text {
    color: #666;
    margin-bottom: 0;
    transition: all 0.3s ease;
}

/* Estilos para el timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    left: 50px;
    width: 4px;
    height: 100%;
    background-color: rgba(219, 136, 0, 0.1);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-left: 120px;
    margin-bottom: 50px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-point {
    position: absolute;
    top: 0;
    left: 35px;
    width: 35px;
    height: 35px;
    background-color: #DB8800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(219, 136, 0, 0.3);
}

.timeline-content {
    background-color: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.timeline-content h4 {
    margin-bottom: 10px;
    color: #DB8800;
    font-weight: 600;
}

.timeline-content p {
    margin-bottom: 0;
    color: #666;
}

/* Estilos para las tarjetas de principios */
.principle-card {
    background-color: #fff;
    border-radius: 15px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid #f0f0f0;
}

.principle-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(219, 136, 0, 0.15);
    border-color: transparent;
}

.principle-number {
    font-size: 60px;
    font-weight: 700;
    color: rgba(219, 136, 0, 0.1);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.principle-card:hover .principle-number {
    color: rgba(219, 136, 0, 0.2);
}

.principle-card h4 {
    margin-bottom: 15px;
    color: #DB8800;
    font-weight: 600;
    position: relative;
}

.principle-card p {
    color: #666;
    margin-bottom: 0;
}

/* Animaciones para elementos */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
    transition-duration: 0.6s;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

/* Mejoras para badges y botones */
.badge {
    font-weight: 500;
}

.btn-outline-light:hover {
    color: #DB8800;
}

/* Estilos adicionales para móviles */
@media (max-width: 767.98px) {
    .valores-grid {
        grid-template-columns: 1fr;
    }

    .timeline:before {
        left: 30px;
    }

    .timeline-item {
        padding-left: 80px;
    }

    .timeline-point {
        left: 15px;
    }
}

/* Estilos para la página de contacto */
.contact-info-wrapper {
    padding: 20px;
}

.contact-info-card {
    display: flex;
    align-items: flex-start;
    padding: 25px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(219, 136, 0, 0.1);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(219, 136, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 20px;
    color: #DB8800;
}

.contact-text h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.contact-text p {
    color: #666;
    margin-bottom: 0;
    font-size: 14px;
}

.contact-form-wrapper {
    background-color: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.form-control, .form-select {
    border-radius: 8px;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    font-size: 14px;
}

.form-control:focus, .form-select:focus {
    border-color: #DB8800;
    box-shadow: 0 0 0 0.2rem rgba(219, 136, 0, 0.25);
}

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

label {
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.button {
    background-color: #DB8800;
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.button:hover {
    background-color: #DB8800;
}

/* Estilos mejorados para los acordeones de preguntas frecuentes */
.accordion-item {
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.accordion-button {
    padding: 1.25rem 1.5rem;
    font-size: 1rem;
    color: #333;
    background-color: #fff;
    border: none;
    position: relative;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    color: #DB8800;
    background-color: rgba(219, 136, 0, 0.05);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-button::after {
    width: 1.25rem;
    height: 1.25rem;
    background-size: 1.25rem;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
    transform: rotate(-180deg);
}

.accordion-body {
    padding: 1.25rem 1.5rem;
    line-height: 1.6;
    color: #555;
    background-color: #fff;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.faq-wrapper {
    background-color: #f8f9fa;
}

@media (max-width: 992px) {
    .faq-wrapper {
        padding: 30px !important;
    }
}

/* Añadiendo un estilo personalizado al contenedor */
#faqAccordion {
    max-width: 100%;
}

/* Corrección para los iconos con doble sombra */
.process-icon-container {
    width: 80px;
    height: 80px;
    background-color: #f5f8ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(219, 136, 0, 0.1);
}

.process-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-icon i {
    font-size: 28px;
    color: #DB8800;
}

/* Estilo para los números */
.process-number {
    position: absolute;
    top: -15px;
    width: 30px;
    height: 30px;
    background-color: #DB8800;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

/* Asegurar que las tarjetas tengan la misma altura */
.process-card {
    height: 100%;
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.process-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.process-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.process-text {
    color: #666;
    line-height: 1.6;
    flex-grow: 1;
}

/* Estilo para los SERVICIOS */

.services-hero {
    background: linear-gradient(var(--dark-overlay), var(--dark-overlay)), 
                url('../imagenes/1.jpg') center/cover;
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    color: white;
}

.services-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}

.services-hero .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    background: linear-gradient(45deg, #fff, #f8f9fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-column {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.service-column:hover::before {
    left: 100%;
}

.service-column:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.service-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.service-item:last-child {
    border-bottom: none;
}

.service-item:hover {
    padding-left: 1rem;
    background: rgba(var(--primary-rgb), 0.2);
    border-radius: 10px;
    border-bottom-color: transparent;
}

.service-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), #FF9500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.3);
}

.service-icon i {
    font-size: 1.2rem;
    color: white;
}

.service-item:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.5);
}

.service-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: white;
    transition: all 0.3s ease;
}

.service-item:hover .service-text {
    color: #fff;
    font-weight: 500;
}

.column-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.column-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #FF9500);
    border-radius: 2px;
}

.stats-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 4rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.floating-elements::before,
.floating-elements::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--primary-rgb), 0.05));
    animation: float 20s infinite linear;
}

.floating-elements::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-elements::after {
    top: 60%;
    right: 10%;
    animation-delay: 10s;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
    100% { transform: translateY(0px) rotate(360deg); }
}

.cta-section {
    text-align: center;
    margin-top: 4rem;
}

.cta-button {
    background: linear-gradient(135deg, var(--primary-color), #FF9500);
    border: none;
    padding: 1rem 3rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(var(--primary-rgb), 0.4);
    color: white;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-column {
        padding: 1.5rem;
    }
    
    .service-item {
        padding: 0.8rem 0;
    }
}

/* Animaciones de entrada */
.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.fade-in-up:nth-child(1) { animation-delay: 0.1s; }
.fade-in-up:nth-child(2) { animation-delay: 0.3s; }
.fade-in-up:nth-child(3) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ================================================================
   GALERÍA MASONRY STYLES
   Agregar estos estilos al archivo custom.css existente
================================================================ */

/* Filtros de Galería */
.gallery-filters {
    margin-bottom: 3rem;
}

.filter-btn {
    background: transparent;
    border: 2px solid #e9ecef;
    color: #6c757d;
    padding: 0.75rem 1.5rem;
    margin: 0 0.5rem 0.5rem 0;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.3);
}

/* Grid Masonry Verdadero */
.masonry-grid {
    column-count: 4;
    column-gap: 20px;
    margin-top: 2rem;
}

.gallery-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 20px;
    break-inside: avoid;
    transition: all 0.3s ease;
    opacity: 1;
    transform: scale(1);
}

/* Tarjetas de Galería para Masonry */
.gallery-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    background: #f8f9fa;
    width: 100%;
}

.gallery-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.gallery-card img,
.gallery-card video {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.gallery-card:hover img,
.gallery-card:hover video {
    transform: scale(1.05);
}

/* Overlay de Galería Corregido */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0) 0%, 
        rgba(0, 0, 0, 0.3) 60%, 
        rgba(0, 0, 0, 0.8) 100%);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    z-index: 3;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-content {
    color: white;
    width: 100%;
    z-index: 4;
}

.gallery-content h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    color: white !important;
}

.gallery-content p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.gallery-content a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(var(--primary-rgb), 0.9);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 5;
}

.gallery-content a:hover {
    background: var(--primary-color);
    transform: scale(1.1);
    color: white;
}

/* Badges de Categoría */
.gallery-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    background: rgba(var(--primary-rgb), 0.9);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    z-index: 5;
}

.gallery-badge.video-badge {
    background: rgba(220, 53, 69, 0.9);
    font-size: 1.4rem;
}

.gallery-card:hover .gallery-badge {
    transform: scale(1.1);
    background: var(--primary-color);
}

.gallery-card:hover .gallery-badge.video-badge {
    background: #dc3545;
}

/* Tarjetas de Video */
.video-card {
    position: relative;
}

.video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-card .gallery-overlay {
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0) 0%, 
        rgba(0, 0, 0, 0.4) 50%, 
        rgba(0, 0, 0, 0.9) 100%);
}

/* Botón Cargar Más */
.load-more-btn {
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(var(--primary-rgb), 0.3);
}

/* Eliminar variaciones de altura problemáticas */
/* .gallery-item:nth-child(3n+1) {
    grid-row-end: span 2;
}

.gallery-item:nth-child(4n+2) {
    grid-row-end: span 1;
}

.gallery-item:nth-child(5n+3) {
    grid-row-end: span 2;
}

.gallery-item:nth-child(6n+4) {
    grid-row-end: span 1;
}

.gallery-item:nth-child(7n+5) {
    grid-row-end: span 2;
} */

/* Responsive Design */
/* Responsive Masonry */
@media (max-width: 1200px) {
    .masonry-grid {
        column-count: 3;
        column-gap: 15px;
    }
    
    .gallery-item {
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .masonry-grid {
        column-count: 2;
        column-gap: 15px;
    }
    
    .gallery-item {
        margin-bottom: 15px;
    }
    
    .gallery-overlay {
        padding: 1rem;
    }
    
    .gallery-content h5 {
        font-size: 1rem;
    }
    
    .gallery-content p {
        font-size: 0.8rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        margin: 0 0.25rem 0.5rem 0;
    }
    
    .gallery-badge {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 576px) {
    .masonry-grid {
        column-count: 1;
        column-gap: 0;
    }
    
    .gallery-item {
        margin-bottom: 20px;
    }
    
    .gallery-filters {
        text-align: left;
    }
    
    .filter-btn {
        display: inline-block;
        width: auto;
    }
}

/* Animaciones adicionales */
@keyframes galleryItemIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.gallery-item {
    animation: galleryItemIn 0.6s ease forwards;
}

/* Mejoras para Lightbox */
.lb-data .lb-caption {
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
}

.lb-data .lb-number {
    color: rgba(255, 255, 255, 0.8);
}

/* Estados de hover mejorados */
.gallery-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(var(--primary-rgb), 0) 0%, 
        rgba(var(--primary-rgb), 0.1) 50%, 
        rgba(var(--primary-rgb), 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.gallery-card:hover::before {
    opacity: 1;
}

/* Efectos de loading mejorados */
.gallery-item {
    background: #f8f9fa;
}

.gallery-item img,
.gallery-item video {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Estilos para Videos en Modales */
.video-container {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-container video {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Estilos para Videos en Modales Fullscreen */
.modal-fullscreen .btn-close {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.modal-fullscreen .btn-close:hover {
    opacity: 1;
}

.modal-fullscreen .modal-body {
    height: 100vh;
}
.gallery-item {
    background: #f8f9fa;
}

.gallery-item img,
.gallery-item video {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Fallback para imágenes que no cargan */
.gallery-card::after {
    content: 'Imagen no disponible';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #6c757d;
    font-size: 0.9rem;
    text-align: center;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-card img[src=""],
.gallery-card img:not([src]) {
    opacity: 0;
}

.gallery-card img[src=""]:after,
.gallery-card img:not([src]):after {
    opacity: 1;
}

.backdrop-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    -moz-backdrop-filter: blur(10px);
    -ms-backdrop-filter: blur(10px);
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.btn-wsp {
    position: fixed;
    bottom: 20px; /* Ajusta la distancia desde el borde inferior */
    left: 20px;   /* Ajusta la distancia desde el borde izquierdo */
    background-color: #25D366; /* Color inicial del botón */
    color: white; /* Color del icono */
    border-radius: 50%;
    padding: 15px;
    font-size: 24px;
    z-index: 1000;
    width: 80px; /* Ancho fijo */
    height: 80px; /* Alto fijo */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Sombra para mayor visibilidad */
    transition: background-color 0.3s ease; /* Transición para el cambio de color */
}

.btn-wsp:hover {
    background-color: #128C7E; /* Color del botón al pasar el cursor */
}

.icono {
    font-size: 44px;
}

.icono {
    animation: heartbeat 1.5s infinite; /* Aplicar la animación de latido */
}

@media screen and (max-width: 768px) {
    .btn-wsp {
        width: 55px;
        height: 55px;
        padding: 10px;
        font-size: 18px;
    }

    .icono {
        font-size: 30px;
    }
}