/********** Template CSS **********/
:root {
    --primary: #B78D65;
    --light: #F8F8F8;
    --dark: #252525;
}

::-webkit-scrollbar {
    display: none;
}

/* Al inicio del archivo */
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Roboto', sans-serif  !important;
    scroll-padding-top: 70px;
}

h1,
h2,
.h1,
.h2,
.fw-bold {
    font-weight: 600 !important;
}

h3,
h4,
.h3,
.h4,
.fw-medium {
    font-weight: 500 !important;
}

h5,
h6,
.h5,
.h6,
.fw-normal {
    font-weight: 400 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
    background: rgba(255, 255, 255, 0.95);
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

#spinner .spinner-border {
    width: 4rem;
    height: 4rem;
    border-width: 0.25rem;
    border-color: #b35454;
    border-right-color: transparent;
}

#spinner img {
    max-width: 80px;
    width: 20%;
    height: auto;
}

@media (max-width: 576px) {
    #spinner .spinner-border {
        width: 3rem;
        height: 3rem;
    }

    #spinner img {
        max-width: 60px;
    }
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.btn-outline-body {
    color: #b35454;
    /* border-color: #777777; */
}

.btn-outline-body:hover {
    color: #ffffff;
    background: #da8d8d;
    border-color: #ff0000;
    border-radius: 6px;
}


/*** Navbar ***/
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 30px 0;
    color: white !important;
    font-weight: 500;
    text-transform: uppercase;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        transition: .5s;
        opacity: 0;
    }

    .navbar .nav-item:hover .dropdown-menu {
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

/* Navbar Glass */
.navbar-glass {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 5px 0;
    z-index: 2;
    transition: all 0.3s ease,
    background-color 0.3s ease;
}
.navbar-glass.menu-open {
    background: #292929 !important;
}

.navbar-glass.scrolled {
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar-glass.navbar-dark {
    background-color: rgb(0 0 0 / 78%);
    padding: 10px 0;
}

.navbar-glass.navbar-hidden {
    transform: translateY(-100%);
}

.navbar-brand {
    display: flex;
    flex-direction: column;
    line-height: 1;
    text-shadow: -1px 1px 5px #000000a1;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: #b35454;
}

.logo-subtext {
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #ffffff;
}

/* Navbar Styles */
.navbar-glass {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    z-index: 1030;
    transition: all 0.3s ease-in-out;
    /* background: rgba(0, 0, 0, 0.8); */
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
}

.navbar-brand img {
    width: 60px;
    height: auto;
    transition: all 0.3s ease;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 24px;
    color: #b35454;
    font-weight: 700;
    line-height: 1;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.logo-subtext {
    font-size: 12px;
    color: #ffffff;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.navbar-toggler {
    padding: 4px 8px;
    border: none;
    background: transparent;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.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, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-nav {
    gap: 0.5rem;
}

.nav-link {
    color: #ffffff !important;
    font-size: 15px;
    padding: 8px 15px !important;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50% !important;
    width: 0;
    height: 2px;
    background: #b35454;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .navbar-glass {
        padding: 10px 0;
        /* background: #292929; */
    }

    .navbar-collapse {
        background: rgba(0, 0, 0, 0.95);
        margin-top: 15px;
        padding: 15px;
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar-nav {
        text-align: center;
    }

    .nav-link {
        padding: 12px !important;
        font-size: 14px;
    }

    .nav-link::after {
        display: none;
    }

    .navbar-brand img {
        width: 50px;
    }

    .logo-text {
        font-size: 20px;
    }

    .logo-subtext {
        font-size: 10px;
    }

    .navbar .nav-item.dropdown {
        width: 100%;
    }
    .navbar .nav-item.dropdown .dropdown-menu {
        min-width: 120px;
        width: 100%;
        left: 0 !important;
        right: auto !important;
        text-align: left;
    }
    .navbar .nav-item.dropdown .dropdown-toggle {
        width: 100%;
        justify-content: flex-start;
    }
    .navbar .nav-item.dropdown .dropdown-item {
        padding: 10px 20px;
        font-size: 15px;
        color: white;
    }
    .navbar .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin-top: 0;
        background: #292929;
        z-index: 9999;
        box-shadow: none;
    }
    .navbar .dropdown-menu.show {
        display: block;
    }

    .dropdown-menu { display: block !important; }
}

@media (max-width: 575.98px) {
    .navbar-brand img {
        width: 40px;
    }

    .logo-text {
        font-size: 18px;
    }

    .logo-subtext {
        font-size: 9px;
        letter-spacing: 1px;
    }

    .navbar-collapse {
        margin-top: 10px;
        padding: 10px;
    }

    .navbar .nav-item.dropdown .dropdown-toggle {
        font-size: 14px;
        padding: 10px 0 !important;
    }
    .navbar .nav-item.dropdown .dropdown-menu {
        font-size: 14px;
    }
    .navbar .nav-item.dropdown .dropdown-item img {
        width: 18px;
        height: 14px;
        margin-right: 8px;
    }
}

/* Animated underline effect */
.navbar-nav .nav-link {
    position: relative;
    overflow: hidden;
}

.navbar-nav .nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #ff0000;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover:after,
.navbar-nav .nav-link.active:after {
    width: 100%;
    left: 0;
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    /* border: 1px solid red; */
}


.hero-slider {
    height: 100%;
}

.hero-slide {
    position: relative;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #FFFFFF;
    text-align: center;
}

.hero-title {
    font-size: 80px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    font-family: 'Roboto', sans-serif;
}

/* Clase arrow-corners corregida */
.arrow-corners {
    position: relative;
    display: inline-block;
    padding: 20px 40px;
    margin: 20px;
}

.arrow-corners::before,
.arrow-corners::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border: 3px solid #fff;
    animation-duration: 2s;
    animation-fill-mode: forwards;
    animation-timing-function: ease-in-out;
    opacity: 0;
}

/* Esquina superior izquierda */
.arrow-corners::before {
    top: -3px;
    left: -3px;
    border-right: none;
    border-bottom: none;
    animation-name: drawTopLeft;
}

/* Esquina inferior derecha */
.arrow-corners::after {
    bottom: -3px;
    right: -3px;
    border-left: none;
    border-top: none;
    animation-name: drawBottomRight;
}

/* Animaciones */
@keyframes drawTopLeft {
    0% {
        opacity: 1;
        width: 0;
        height: 0;
    }
    50% {
        width: 30px;
        height: 0;
    }
    100% {
        width: 30px;
        height: 30px;
        opacity: 1;
    }
}

@keyframes drawBottomRight {
    0% {
        opacity: 1;
        width: 0;
        height: 0;
    }
    50% {
        width: 30px;
        height: 0;
    }
    100% {
        width: 30px;
        height: 30px;
        opacity: 1;
    }
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    font-family: 'Montserrat', sans-serif;
}

/* RESPONSIVE SECCION DE HERO-SECTION */
/* Mejoras responsive para hero section */
@media (max-width: 767.98px) {
    .hero-section {
        height: 100vh; /* Altura más pequeña para móviles */
    }

    .hero-content {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 36px;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .barra_lateral {
        display: none; /* Ocultar barra lateral en móviles */
    }
}

@media (max-width: 340px) {
    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 18px;
    }
}

/* Scroll Down Indicator */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-link {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid #FFFFFF;
    border-radius: 15px;
    position: relative;
}

.scroll-link span {
    display: block;
    width: 6px;
    height: 6px;
    background: #FFFFFF;
    border-radius: 50%;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollAnimation 2s infinite;
}

.scroll-link span:nth-child(1) {
    animation-delay: 0s;
}

.scroll-link span:nth-child(2) {
    top: 18px;
    animation-delay: 0.3s;
}

.scroll-link span:nth-child(3) {
    top: 26px;
    animation-delay: 0.6s;
}

@keyframes scrollAnimation {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 0;
    transition: all 0.3s ease;
    /* position: relative; */
    overflow: hidden;
    z-index: 1;
    /* font-family: 'Montserrat', sans-serif; */
}
.barra_lateral{
    width: 100px;
    /* background: rgba(255, 255, 255, 0.15); */
    backdrop-filter: blur(10px);
    position: absolute;
    z-index: 9999;
    height: 100%;
    background: rgb(112 106 106 / 3%);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    /* box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15); */
}


.btn-primary {
    background-color: #B78D65;
    color: #FFFFFF;
    border: 2px solid #B78D65;
}

.btn-primary:hover {
    background-color: transparent;
    color: #B78D65;
}

.btn-outline-light {
    border: 2px solid #FFFFFF;
    color: #FFFFFF;
    background-color: transparent;
}

.btn-outline-light:hover {
    background-color: #FFFFFF;
    color: #252525;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    border-radius: 10px;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: #363636;
        padding: 20px;
        margin-top: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .navbar-nav .nav-link {
        padding: 10px 0;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 18px;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 36px;
    }

    .logo-text {
        font-size: 24px;
    }

    .logo-subtext {
        font-size: 10px;
    }
}

.center-icon{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18px !important;
    border-radius: 20px;
    border-color: #b35454;
}
.centered-small-button {
    width: 250px;
    margin: auto;
    margin-top: 0px;
    margin-bottom: 0px;
}
/*** Header ***/
.owl-carousel-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, .5);
}

@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }

    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .header-carousel .owl-carousel-item p {
        font-size: 16px !important;
    }
}

.header-carousel .owl-dots {
    position: absolute;
    width: 60px;
    height: 100%;
    top: 0;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header-carousel .owl-dots .owl-dot {
    position: relative;
    width: 45px;
    height: 45px;
    margin: 5px 0;
    background: var(--dark);
    transition: .5s;
}

.header-carousel .owl-dots .owl-dot.active {
    width: 60px;
    height: 60px;
}

.header-carousel .owl-dots .owl-dot img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 2px;
    transition: .5s;
    opacity: .3;
}

.header-carousel .owl-dots .owl-dot.active img {
    opacity: 1;
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, .5)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}


/*** Section Title ***/
.section-title {
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 5px;
    text-transform: uppercase;
}

/* Facts Section Styling */
.fact-item {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(179, 84, 84, 0.1);
    min-height: 450px; /* Altura fija para todos los cards */
    display: flex;
    flex-direction: column;
    height: 100%;
}

.fact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #b35454, #ff6b6b);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.fact-item:hover::before {
    transform: scaleX(1);
}

.fact-item.hover-effect:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(179, 84, 84, 0.2);
}

.fact-icon {
    width: 120px;
    height: 120px;
    margin: -60px auto 30px;
    position: relative;
    background: #ffffff;
    border-radius: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(179, 84, 84, 0.1);
}

.icon-image {
    width: 60px;
    height: 60px;
    transition: transform 0.3s ease;
}

.fact-item:hover .icon-image {
    transform: scale(1.1);
}

.icon-border {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid #b35454;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.fact-title {
    color: #252525;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

.fact-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: #b35454;
}

.fact-description {
    color: #666666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    padding: 0 15px;
    flex-grow: 1; /* Permite que la descripción ocupe el espacio disponible */
    display: -webkit-box;
    /* -webkit-line-clamp: 4; */
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 100px;
}

.fact-stats {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(179, 84, 84, 0.1);
}

.counter {
    font-size: 36px;
    font-weight: 700;
    color: #b35454;
    display: block;
    margin-bottom: 5px;
}

.stats-label {
    font-size: 14px;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .fact-item {
        margin-bottom: 60px;
        min-height: 400px
    }

    .fact-description {
        padding: 0 10px;
        height: 80px;
    }
}
.fact-item .fact-icon {
    width: 120px;
    height: 120px;
    margin-top: 20px;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border-radius: 120px;
    transition: .5s;
}

.fact-item:hover .fact-icon {
    background: var(--dark);
}

.fact-item .fact-icon i {
    color: var(--primary);
    transition: .5;
}

.fact-item:hover .fact-icon i {
    color: #FFFFFF;
}

/* Ajustes generales responsive */
@media (max-width: 575.98px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .section-title {
        font-size: 14px;
    }

    h1.display-5 {
        font-size: 28px;
    }

    .fact-item {
        margin-bottom: 30px;
        min-height: auto;
    }
}


/*** About & Feature ***/
.about-img,
.feature-img {
    position: relative;
    height: 100%;
    min-height: 400px;
}

.about-img img,
.feature-img img {
    position: absolute;
    width: 60%;
    height: 80%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
}

.about-img img:last-child,
.feature-img img:last-child {
    margin: 20% 0 0 40%;
}

.about-img::before,
.feature-img::before {
    position: absolute;
    content: "";
    width: 60%;
    height: 80%;
    top: 10%;
    left: 20%;
    border: 5px solid #dc3545;
    z-index: -1;
}


/* Service Section Styling */
.service-item {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 45px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.service-item:hover {
    transform: translateY(-10px);
}

.service-img {
    position: relative;
    overflow: hidden;
}

.service-img .bg-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.service-item:hover .bg-img {
    transform: scale(1.1);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(179, 84, 84, 0.1), rgb(179 84 84 / 9%));
    transition: all 0.3s ease;
}

.service-item:hover .service-overlay {
    background: linear-gradient(rgba(179, 84, 84, 0.4), rgba(179, 84, 84, 0.7));
}

.service-content {
    position: relative;
    padding: 30px;
    text-align: center;
    background: #ffffff;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: -70px auto 20px;
    position: relative;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 45px rgba(0, 0, 0, 0.08);
    z-index: 1;
}

.service-icon img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.service-item:hover .service-icon img {
    transform: scale(1.2);
}

.icon-border {
    position: absolute;
    width: 60%;
    height: 60%;
    border: 2px solid #b35454;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.service-title {
    color: #252525;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

.service-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: #b35454;
}

.service-description {
    color: #666666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    /* height: 80px; */
    overflow: hidden;
}

.service-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    color: #b35454;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.service-btn i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.service-btn:hover {
    color: #ff6b6b;
}

.service-btn:hover i {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .service-item {
        margin-bottom: 30px;
        height: auto;
    }

    .service-description {
        height: auto;
        max-height: none;
    }

    .project-carousel {
        padding: 0 15px;
    }

    .project-item .position-relative {
        height: 300px;
    }
}


/*** Project ***/
.project .nav .nav-link {
    background: var(--light);
    transition: .5s;
}

.project .nav .nav-link.active {
    background: var(--primary);
}

.project .nav .nav-link.active h3 {
    color: #FFFFFF !important;
}


/*** Team ***/
.team-items {
    margin: -.75rem;
}

.team-item {
    padding: .75rem;
}

.team-item::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    background: #FFFFFF;
    transition: .5s;
    z-index: -1;
}

.team-item:hover::after {
    height: 100%;
    background: var(--primary);
}

.team-item .team-social {
    position: absolute;
    width: 100%;
    bottom: -20px;
    left: 0;
}

.team-item .team-social .btn {
    display: inline-flex;
    margin: 0 2px;
    color: var(--primary);
    background: var(--light);
}

.team-item .team-social .btn:hover {
    color: #FFFFFF;
    background: var(--primary);
}


   /* Contact Section Styles */
        #contact {
            background: linear-gradient(135deg, #3d3d3d 0%, #6d0e0e 100%);
            position: relative;
            overflow: hidden;
        }

        #contact::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="20" cy="80" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
            animation: float 20s ease-in-out infinite;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-20px); }
        }

        .section-header {
            text-align: center;
            margin-bottom: 4rem;
            position: relative;
            z-index: 2;
        }

        .section-title {
            font-size: 1.1rem;
            font-weight: 600;
            /* color: rgba(255, 255, 255, 0.8); */
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-bottom: 1rem;
            position: relative;
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 3px;
            background: linear-gradient(90deg, #ff6b6b, #ffd93d);
            border-radius: 2px;
        }

        .main-title {
            font-size: 3.5rem;
            font-weight: 700;
            color: white;
            margin-bottom: 1.5rem;
            line-height: 1.2;
        }

        .subtitle {
            font-size: 1.2rem;
            color: rgba(255, 255, 255, 0.9);
            max-width: 600px;
            margin: 0 auto;
            line-height: 1.6;
        }

        /* Contact Cards Container */
        .contact-container {
            position: relative;
            /* z-index: 2;   */
        }


        /* Contact Info Card */
        .contact-info-card {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 24px;
            padding: 3rem;
            height: 100%;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .contact-info-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #ff6b6b, #ffd93d, #4ecdc4);
        }

        .contact-info-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
        }

        .contact-info-header {
            margin-bottom: 2.5rem;
        }

        .contact-info-title {
            font-size: 2rem;
            font-weight: 600;
            color: white;
            margin-bottom: 1rem;
        }

        .contact-info-desc {
            color: rgba(255, 255, 255, 0.8);
            font-size: 1.1rem;
            line-height: 1.6;
        }

        /* Contact Info Items */
        .contact-item {
            display: flex;
            align-items: center;
            margin-bottom: 2rem;
            padding: 1.5rem;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 16px;
            transition: all 0.3s ease;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .contact-item:hover {
            background: rgba(255, 255, 255, 0.15);
            transform: translateX(10px);
        }

        .contact-icon {
            width: 60px;
            height: 60px;
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            color: white;
            margin-right: 1.5rem;
            position: relative;
            transition: all 0.3s ease;
        }

        .contact-icon.location { background: linear-gradient(135deg, #ff6b6b, #ff8e53); }
        .contact-icon.phone { background: linear-gradient(135deg, #4ecdc4, #44a08d); }
        .contact-icon.email { background: linear-gradient(135deg, #ffd93d, #ff9a9e); }
        .contact-icon.time { background: linear-gradient(135deg, #a8edea, #fed6e3); }

        .contact-item:hover .contact-icon {
            transform: scale(1.1) rotate(5deg);
        }

        .contact-details h5 {
            color: white;
            font-weight: 600;
            margin-bottom: 0.5rem;
            font-size: 1.1rem;
        }

        .contact-details p {
            color: rgba(255, 255, 255, 0.8);
            margin: 0;
            line-height: 1.5;
        }

        .contact-details a {
            color: rgba(255, 255, 255, 0.9);
            text-decoration: none;
            transition: all 0.3s ease;
        }

        .contact-details a:hover {
            color: #ffd93d;
            text-decoration: underline;
        }

        /* Contact Form Card */
        .contact-form-card {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(20px);
            border-radius: 24px;
            padding: 3rem;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
            position: relative;
            overflow: hidden;
        }

        .contact-form-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            /* background: linear-gradient(90deg, #667eea, #764ba2); */
        }

        .form-title {
            font-size: 1.8rem;
            font-weight: 600;
            color: #2d3748;
            margin-bottom: 0.5rem;
            text-align: center;
        }

        .form-subtitle {
            color: #718096;
            text-align: center;
            margin-bottom: 2.5rem;
            font-size: 1rem;
        }

        /* Form Styles */
        .form-group {
            margin-bottom: 1.5rem;
            position: relative;
        }

        .form-control, .form-select {
            height: 60px;
            border: 2px solid #e2e8f0;
            border-radius: 12px;
            padding: 1rem 1.5rem;
            font-size: 1rem;
            transition: all 0.3s ease;
            background: rgba(255, 255, 255, 0.8);
        }

        .form-control:focus, .form-select:focus {
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
            background: white;
            outline: none;
        }

        textarea.form-control {
            height: 120px;
            resize: vertical;
        }

        .form-floating > label {
            padding: 1rem 1.5rem;
            color: #718096;
            font-weight: 500;
        }

        /* Submit Button */
        .submit-btn {
            width: 100%;
            height: 60px;
            background: linear-gradient(135deg, #713535, #dc3545);
            border: none;
            border-radius: 12px;
            color: white;
            font-size: 1.1rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

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

        .submit-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
        }

        .submit-btn:hover::before {
            left: 100%;
        }

        .submit-btn i {
            margin-right: 0.5rem;
            transition: transform 0.3s ease;
        }

        .submit-btn:hover i {
            transform: translateX(5px);
        }

        /* Responsive Design */
        @media (max-width: 992px) {
            .main-title {
                font-size: 2.5rem;
            }

            .contact-info-card, .contact-form-card {
                padding: 2rem;
                margin-bottom: 2rem;
            }
        }

        @media (max-width: 768px) {
            .main-title {
                font-size: 2rem;
            }

            .contact-info-card, .contact-form-card {
                padding: 1.5rem;
            }

            .contact-item {
                padding: 1rem;
            }

            .contact-icon {
                width: 50px;
                height: 50px;
                font-size: 1.2rem;
                margin-right: 1rem;
            }
        }

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

        .fade-in-left {
            opacity: 0;
            transform: translateX(-30px);
            animation: fadeInLeft 0.8s ease forwards;
        }

        .fade-in-right {
            opacity: 0;
            transform: translateX(30px);
            animation: fadeInRight 0.8s ease forwards;
        }

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

        @keyframes fadeInLeft {
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        @keyframes fadeInRight {
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .delay-1 { animation-delay: 0.1s; }
        .delay-2 { animation-delay: 0.2s; }
        .delay-3 { animation-delay: 0.3s; }
        .delay-4 { animation-delay: 0.4s; }
        .delay-5 { animation-delay: 0.5s; }

/*** Testimonial ***/
.testimonial-carousel {
    display: flex !important;
    flex-direction: column-reverse;
    max-width: 700px;
    margin: 0 auto;
}

.testimonial-carousel .owl-dots {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.testimonial-carousel .owl-dots .owl-dot {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 5px;
    transition: .5s;
}

.testimonial-carousel .owl-dots .owl-dot.active {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-dots .owl-dot::after {
    position: absolute;
    width: 40px;
    height: 40px;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    content: "\f10d";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--primary);
    background: #FFFFFF;
    border-radius: 40px;
    transition: .5s;
    opacity: 0;
}

.testimonial-carousel .owl-dots .owl-dot.active::after {
    opacity: 1;
}

.testimonial-carousel .owl-dots .owl-dot img {
    opacity: .4;
    transition: .5s;
}

.testimonial-carousel .owl-dots .owl-dot.active img {
    opacity: 1;
}


/*** Footer ***/
/* Footer Styles */
.footer-section {
    position: relative;
    background: linear-gradient(to bottom, #1a1a1a, #2d2d2d);
    color: #ffffff;
    overflow: hidden;
}

.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ff4d4d, transparent);
}

/* Footer Top */
.footer-top {
    padding: 80px 0 50px;
    position: relative;
}

/* Company Info Widget */
.company-info {
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo img {
    filter: drop-shadow(0 0 8px rgba(255, 77, 77, 0.3));
}

/* .logo-text {
    margin-left: 15px;
} */

.logo-text h3 {
    color: #ff4d4d;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    line-height: 1;
}

.logo-text span {
    font-size: 12px;
    color: #ffffff;
    letter-spacing: 2px;
}

.company-desc {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #ff4d4d, #ff8080);
    opacity: 0;
    transition: all 0.3s ease;
}

.social-link i {
    position: relative;
    z-index: 2;
}

.social-link:hover {
    transform: translateY(-5px);
    color: #ffffff;
}

.social-link:hover::before {
    opacity: 1;
}

/* Widget Styles */
.footer-widget {
    margin-bottom: 30px;
}

.widget-title {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: #ff4d4d;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-links a i {
    font-size: 12px;
    margin-right: 10px;
    color: #ff4d4d;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #ff4d4d;
    transform: translateX(5px);
}

.footer-links a:hover i {
    transform: rotate(90deg);
}

/* Contact Info */
.contact-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.contact-item i {
    color: #ff4d4d;
    font-size: 18px;
}

.contact-text {
    display: flex;
    flex-direction: column;
}

.contact-text span,
.contact-text a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-text a:hover {
    color: #ff4d4d;
}

/* Footer Bottom */
.footer-bottom {
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.footer-bottom-links {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #ff4d4d;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #ff4d4d, #ff8080);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 77, 77, 0.4);
}

/* Responsive Styles */
@media (max-width: 991px) {
    .footer-top {
        padding: 60px 0 30px;
    }

    .footer-bottom-links {
        justify-content: center;
        margin-top: 15px;
    }

    .copyright {
        text-align: center;
    }
}

/* Mejoras footer responsive */
@media (max-width: 767.98px) {
    .footer-widget {
        margin-bottom: 40px;
    }

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

    .footer-bottom-links {
        justify-content: center;
        margin-top: 15px;
    }

    .social-links {
        justify-content: center;
    }
}

/* Banner Section Styles */
.banner-section {
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
}

.banner-image-overlay {
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

.banner-content {
    padding-right: 20%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

.highlight-text {
    background: #fb6060;
    color: #ffffff;
    padding: 0 10px;
    margin-left: 5px;
    box-shadow: 1px 1px 14px 0px #dc3545;
    border-radius: 4px;
}

.banner-icons {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.banner-icons img {
    filter: invert(1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.banner-icons img:hover {
    transform: translateY(-5px);
    filter: invert(1) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

@media (max-width: 991.98px) {
    .banner-section {
        min-height: auto;
        padding: 60px 0;
    }

    .banner-image-overlay {
        position: absolute !important;
        width: 100% !important;
        height: 100% !important;
        margin-top: 30px;
        clip-path: none;
    }

    .banner-content {
        padding: 30px;
        margin: 15px;
        text-align: center;
    }
}


/* Project Section Styles */
.project-section {
    background: #f8f9fa;
    padding: 100px 0;
    position: relative;
}

.project-carousel {
    position: relative;
    padding: 0 50px;
}

.project-item {
    margin: 15px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.project-item .position-relative {
    height: 450px;
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.8));
    display: flex;
    align-items: flex-end;
    padding: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.project-info {
    width: 100%;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.project-info h5 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.project-info span {
    font-size: 16px;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

/* Hover Effects */
.project-item:hover img {
    transform: scale(1.08);
}

.project-item:hover .project-overlay {
    opacity: 1;
    transform: translateY(0);
}

.project-item:hover .project-info {
    transform: translateY(0);
}


/* Para pantallas más pequeñas */
@media (max-width: 768px) {
    .project-carousel .owl-nav {
        padding: 0 10px;
    }

    .project-carousel .owl-nav button {
        width: 45px;
        height: 45px;
    }

    .project-carousel .owl-nav button i {
        font-size: 20px;
    }
}

.project-item:hover {
    transform: scale(1.03);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    width: 100%;
    padding: 10px;
    transition: all 0.3s ease-in-out;
}

/* ===== MODAL DE PROYECTOS - ESTILOS CORREGIDOS ===== */

/* Modal content base */
.modal-content {
    background: linear-gradient(135deg, #5f2323 0%, #5f2323 50%, #e95e5e 100%) !important;
    border: none !important;
    border-radius: 5px !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(10px);
    overflow: hidden; /* Evita desbordamientos */
}

/* Header del modal */
.modal-header {
    background: linear-gradient(90deg, #5f2323, #a73d3d) !important;
    padding: 25px 30px !important;
    position: relative;
    overflow: hidden;
    border: none !important;
    z-index: 5;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><radialGradient id="a" cx="50%" cy="50%" r="50%"><stop offset="0%" stop-color="white" stop-opacity="0.1"/><stop offset="100%" stop-color="white" stop-opacity="0"/></radialGradient></defs><rect width="100" height="20" fill="url(%23a)"/></svg>');
    opacity: 0.3;
}

.modal-title {
    font-size: 20px !important;
    color: #fff !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 6;
    position: relative;
    display: flex;
    align-items: center;
}

.modal-title .project-icon {
    margin-right: 10px;
    font-size: 1.2rem;
    color: #fff;
}

.btn-close-white {
    filter: brightness(0) invert(1) !important;
    opacity: 0.8 !important;
    transition: all 0.3s ease !important;
    z-index: 6;
    position: relative;
}

.btn-close-white:hover {
    opacity: 1 !important;
    transform: rotate(90deg) !important;
}

/* Body del modal - SIN PADDING PARA EVITAR ESPACIOS */
.modal-body {
    padding: 0 !important;
    position: relative;
    overflow: hidden;
}

/* ===== GALERÍA DE IMÁGENES ===== */

.gallery-container {
    position: relative;
    width: 100%;
    background: #000; /* Fondo negro para contraste */
}

/* IMAGEN PRINCIPAL - CORREGIDA */
.gallery-main-image {
    width: 100%;
    height: 60vh; /* Altura más manejable */
    max-height: 500px; /* Límite máximo */
    min-height: 300px; /* Mínimo para móviles */
    object-fit: cover;
    display: block; /* Evita espacios en blanco */
    transition: transform 0.3s ease;
    border-radius: 0; /* Sin bordes redondeados que causen problemas */
}

.gallery-main-image:hover {
    transform: scale(1.02); /* Zoom más sutil */
}

/* NAVEGACIÓN DE GALERÍA - Z-INDEX CORREGIDO */
.gallery-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 15; /* Z-index más alto */
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.gallery-navigation:hover {
    background: rgba(0, 0, 0, 0.9);
    color: #B78D65;
    border-color: #d4c5b6;
    transform: translateY(-50%) scale(1.1);
}

.gallery-navigation.prev {
    left: 20px;
}

.gallery-navigation.next {
    right: 20px;
}

/* CONTADOR DE IMÁGENES */
.gallery-counter {
    position: absolute;
    top: 20px; /* Movido arriba para no interferir */
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 15;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* MINIATURAS - MEJORADAS */
.gallery-thumbnails {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden; /* Previene scroll vertical en iOS */
    padding: 15px 20px;
    scrollbar-width: thin;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);

    /* ===== FIXES ESPECÍFICOS PARA iOS ===== */
    -webkit-overflow-scrolling: touch; /* Scroll suave en iOS */
    scroll-behavior: smooth;
    white-space: nowrap; /* Previene wrap en iOS */

    /* Fuerza el ancho del contenedor */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;

    /* Asegura que el flex funcione en iOS Safari */
    min-height: 100px; /* Altura mínima explícita */
    align-items: center;
}

.gallery-thumbnails::-webkit-scrollbar {
    height: 8px;
    background: transparent;
}

.gallery-thumbnails::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin: 0 20px; /* Margen para que no toque los bordes */
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background: #B78D65;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.thumbnail-item {
    /* ===== DIMENSIONES FIJAS PARA iOS ===== */
    width: 90px !important; /* Ancho fijo obligatorio */
    min-width: 90px !important; /* Min-width igual al width */
    max-width: 90px !important; /* Max-width para evitar extensión */
    height: 70px !important; /* Altura fija */

    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    border: 3px solid transparent;
    transition: all 0.3s ease;

    /* ===== FIXES PARA FLEXBOX EN iOS ===== */
    flex-shrink: 0 !important; /* CRÍTICO: Evita que se encoja */
    flex-grow: 0 !important; /* CRÍTICO: Evita que crezca */
    flex-basis: 90px !important; /* Base fija */

    /* Posicionamiento y display */
    display: inline-block; /* Cambiado a inline-block para iOS */
    vertical-align: top;
    position: relative;

    /* Box model específico */
    box-sizing: border-box;
    margin: 0; /* Sin márgenes que causen problemas */
}


.thumbnail-item.active {
    border-color: #B78D65;
    box-shadow: 0 0 15px rgba(124, 96, 55, 0.5);
}

.thumbnail-item:hover {
    border-color: #6c757d;
    transform: translateY(-2px);
}

.thumbnail-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;

    /* ===== FIXES PARA IMÁGENES EN iOS ===== */
    max-width: 100%;
    max-height: 100%;
    border-radius: 5px; /* Coincide con el contenedor */

    /* Previene distorsión en iOS */
    -webkit-user-select: none;
    user-select: none;
    pointer-events: none; /* Evita interferencias táctiles */
}

/* ===== OVERLAY DE DETALLES - CORREGIDO ===== */
.project-details-overlay {
     background: linear-gradient(90deg, #200202, #6e2121) !important;
    padding: 25px;
    color: white;
    position: relative; /* Cambiado de absolute a relative */
    z-index: 10;
}

.project-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 16px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.meta-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.meta-item i {
    color: #B78D65;
    font-size: 1rem;
}

.project-description {
    font-size: 1.1rem;
    line-height: 1.7;
    opacity: 0.95;
    margin: 0;
}

/* ===== FALLBACK PARA IMÁGENES SIN CARGAR ===== */
.gallery-main-image[src=""],
.gallery-main-image:not([src]) {
    background: linear-gradient(45deg, #2d3748, #4a5568);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-main-image[src=""]:before,
.gallery-main-image:not([src]):before {
    /* content: "🖼️ Imagen no disponible"; */
    color: #a0aec0;
    font-size: 1.2rem;
}

/* ===== RESPONSIVE ESPECÍFICO PARA iOS ===== */

/* Previene el zoom táctil en iOS */
.gallery-thumbnails,
.thumbnail-item,
.thumbnail-item img {
    touch-action: manipulation;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

/* Fix para el contenedor padre en iOS */
.gallery-container {
    position: relative;
    width: 100%;
    background: #000;

    /* ===== iOS SPECIFIC ===== */
    -webkit-transform: translateZ(0); /* Activa aceleración hardware */
    transform: translateZ(0);
    overflow: hidden; /* Previene scroll accidental */
}

/* Alternativa con CSS Grid para casos extremos */
@supports not (flex-shrink: 0) {
    .gallery-thumbnails {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 90px;
        gap: 12px;
        overflow-x: auto;
        padding: 15px 20px;
    }

    @media (max-width: 768px) {
        .gallery-thumbnails {
            grid-auto-columns: 70px;
            gap: 8px;
        }
    }

    @media (max-width: 576px) {
        .gallery-thumbnails {
            grid-auto-columns: 60px;
            gap: 6px;
        }
    }
}

/* ===== RESPONSIVE - MEJORADO ===== */
@media (max-width: 992px) {
    .gallery-main-image {
        height: 50vh;
        max-height: 400px;
    }

    .gallery-navigation {
        width: 40px;
        height: 40px;
    }

    .gallery-navigation.prev {
        left: 15px;
    }

    .gallery-navigation.next {
        right: 15px;
    }
}

@media (max-width: 768px) {
    .modal-dialog {
        margin: 10px;
    }

    .gallery-main-image {
        height: 45vh !important;
        min-height: 250px;
    }

    .project-details-overlay {
        padding: 20px;
    }

    .project-meta {
        gap: 10px;
    }

    .meta-item {
        font-size: 0.8rem;
        padding: 8px 12px;
    }

    .modal-title {
        font-size: 16px !important;
    }

    .gallery-navigation {
        width: 35px;
        height: 35px;
    }

    .gallery-counter {
        top: 15px;
        right: 15px;
        font-size: 0.8rem;
        padding: 6px 10px;
    }

    .thumbnail-item {
        min-width: 70px;
        height: 55px;
    }

    .gallery-thumbnails {
        padding: 12px 15px;
        gap: 8px;
    }
}

@media (max-width: 576px) {
    .gallery-main-image {
        height: 40vh !important;
        min-height: 200px;
    }

    .project-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }



    .project-description {
        font-size: 1rem;
    }
}

/* ===== ELIMINACIÓN DE ESTILOS CONFLICTIVOS ===== */
/* Remover estas clases si existen en tu CSS original: */
/*
.modal-image { ... } - ELIMINAR (causa conflictos de altura)
.image-container { ... } - SIMPLIFICAR (solo background si es necesario)
*/

/* Animaciones para el modal */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal.show .modal-content {
    animation: fadeInUp 0.5s ease-out;
}

/* Responsive styles for navigation buttons */
@media (max-width: 1200px) {
    .project-carousel .owl-nav button.owl-prev {
        left: 10px;
    }

    .project-carousel .owl-nav button.owl-next {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .project-carousel .owl-nav button.owl-prev,
    .project-carousel .owl-nav button.owl-next {
        width: 48px;
        height: 48px;
    }

    .project-carousel .owl-nav button i {
        font-size: 20px;
    }
}

/* Estilos para los iconos de contacto lateral */
.barra_lateral .contact-icon-link {
    position: relative;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    overflow: hidden;
}

.barra_lateral .contact-icon-link::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #b35454, #ff6b6b);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.barra_lateral .contact-icon-link i {
    font-size: 1.2rem;
    color: #b35454;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.barra_lateral .contact-icon-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(179, 84, 84, 0.3);
}

.barra_lateral .contact-icon-link:hover::before {
    opacity: 1;
}

.barra_lateral .contact-icon-link:hover i {
    color: #ffffff;
    transform: scale(1.1);
}

/* Tooltip personalizado */
.barra_lateral .contact-icon-link {
    position: relative;
}

.barra_lateral .contact-icon-link::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.barra_lateral .contact-icon-link:hover::after {
    opacity: 1;
    visibility: visible;
    right: 50px;
}


/* Estilos de la sección mapa*/
.ubicaciones-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    position: relative;
    overflow: hidden;
}

.ubicaciones-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #e63946 0%, #e63946 50%, #ffffff 50%, #ffffff 100%);
}

/* Estilos del mapa */
.map-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 50px;
}

.baja-map {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

#baja-map {
    width: 100%;
    height: auto;
}

.state-outline {
    fill: #f8f8f8;
    stroke: #e63946;
    stroke-width: 2;
    transition: fill 0.3s ease;
}

.location-point {
    fill: #e63946;
    stroke: white;
    stroke-width: 2;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.location-point:hover {
    fill: #c1121f;
    transform: scale(1.5);
    opacity: 1;
}

.location-point.active {
    fill: #c1121f;
    transform: scale(1.5);
    opacity: 1;
    animation: pulse 1.5s infinite;
}

/* Información de ubicación */
.location-info {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.location-info h3 {
    color: #e63946;
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 20px;
}

.location-info p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.location-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.highlight-card {
    flex: 1;
    min-width: 120px;
    background-color: #f8f8f8;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border-left: 3px solid #e63946;
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.2);
}

.highlight-card i {
    font-size: 1.5rem;
    color: #e63946;
    margin-bottom: 10px;
}

.highlight-card h4 {
    margin: 0;
    color: #333;
    font-size: 1rem;
}

.highlight-card p {
    margin: 5px 0 0;
    font-size: 0.8rem;
    color: #666;
}

/* Lista de ubicaciones */
.locations-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.location-item {
    flex: 1;
    min-width: 200px;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-top: 3px solid #e63946;
}

.location-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(230, 57, 70, 0.2);
}

.location-item i {
    font-size: 2rem;
    color: #e63946;
    margin-bottom: 15px;
}

.location-item h4 {
    margin: 0;
    color: #333;
    font-size: 1.2rem;
}

.location-item p {
    margin: 10px 0 0;
    color: #666;
    font-size: 0.9rem;
}

/* Animaciones */
@keyframes pulse {
    0% {
        transform: scale(1.5);
        box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.7);
    }
    70% {
        transform: scale(1.5);
        box-shadow: 0 0 0 10px rgba(230, 57, 70, 0);
    }
    100% {
        transform: scale(1.5);
        box-shadow: 0 0 0 0 rgba(230, 57, 70, 0);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .map-container {
        flex-direction: column;
    }

    .baja-map, .location-info {
        max-width: 100%;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }
}
