/* General */
body {
    background-color: #FFFFFF;
    line-height: 1.6;
    font-family: "Lora", serif;
    color: #000000;
}

a {
    text-decoration: none;
}
a.text-contact {
    color: #000000;
    transition: color 0.3s ease, transform 0.3s ease;
}
a.text-contact:hover {
    color: #4F5941;
    transform: scale(1.02);
}

/* Navbar */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}
.navbar {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Fondo del navbar en pÃ¡ginas de especialidades */
/*.navbar-especialidades {
    background-image: url('../images/bg-menu.png') !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent !important;
}*/

/* Letras siempre blancas en especialidades */
.navbar-especialidades .nav-link {
    color: #000 !important;
}

.navbar-especialidades .nav-link:hover {
    color: #515151 !important;
    transform: scale(1.05);
}

.navbar-especialidades .dropdown-menu {
    background-color: rgba(79, 89, 65, 0.95);
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 0.5rem 0;
}

.navbar-especialidades .dropdown-item {
    color: #FFFFFF;
    padding: 0.6rem 1.5rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.navbar-especialidades .dropdown-item:hover {
    background-color: rgba(51, 66, 51, 0.9);
    color: #FFFFFF;
    padding-left: 2rem;
}

.navbar-especialidades .dropdown-toggle::after {
    color: #c3c3c3;
}

.navbar-brand {
    margin-right: 2rem;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.navbar-brand img {
    height: 50px;
    width: auto;
    object-fit: contain;
}
/*.navbar-dark-mode .nav-link {
    color: #FFFFFF !important;
}*/
.navbar-light-mode .nav-link {
    color: #000000 !important;
}
.navbar-light-on-partners .nav-link {
    /*color: #FFFFFF !important;*/
}
.navbar-toggler {
    background-color: #FFFFFF !important;
}

/* Estilos para dropdown en modo oscuro (home) */
.navbar-dark-mode .dropdown-menu {
    background-color: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.navbar-dark-mode .dropdown-item {
    color: #2B3526;
    padding: 0.6rem 1.5rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.navbar-dark-mode .dropdown-item:hover {
    background-color: rgba(79, 89, 65, 0.1);
    color: #2B3526;
    padding-left: 2rem;
}

/* Estilos para dropdown en modo claro (home con scroll) */
.navbar-light-mode .dropdown-menu {
    background-color: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.navbar-light-mode .dropdown-item {
    color: #2B3526;
    padding: 0.6rem 1.5rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.navbar-light-mode .dropdown-item:hover {
    background-color: rgba(79, 89, 65, 0.1);
    color: #2B3526;
    padding-left: 2rem;
}

.dropdown-toggle::after {
    margin-left: 0.5rem;
    vertical-align: middle;
}
header nav ul li a {
    font-size: 17px !important;
    transition: transform 0.2s ease;
}
header nav ul li a:hover {
    transform: scale(1.1);
}

/* Home Video */
.home-video {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}
.video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.home-image {
    width: 40%;
    height: auto;
}

/* About Us */
.text-about-us {
    font-size: 60px;
    font-weight: 300;
    color: #4F5941;
}
.border-start {
    border-left: 2px solid #4F5941 !important;
}
.text-quantity {
    font-size: 40px;
    font-weight: 500;
}

/* Services */
#services {
    position: relative;
    background-color: #f8f9fa;
}
.bg-marco {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}
.carousel {
    width: 90%;
    max-width: 600px;
    aspect-ratio: 1 / 1;
    z-index: 2;
}
.interior-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
}
.imagen-interior {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}
.overlay-text {
    background-color: rgba(34, 54, 34, 0.95);
    color: white;
    position: absolute;
    inset: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    overflow-y: auto;
    width: 30vw;
    height: 68vh;
    margin: 0 auto;
}
.interior-container:hover .imagen-interior {
    opacity: 0;
}
.interior-container:hover .overlay-text {
    opacity: 1;
}
.text-services,
.subtitle-services {
    color: #FFFFFF;
    font-size: 14px;
    margin: 5px 0;
}
.subtitle-services {
    font-weight: 600;
    font-size: 16px;
}
.carousel-control-prev.flecha-outside,
.carousel-control-next.flecha-outside {
    color: #FFFFFF;
    font-size: 2rem;
    opacity: 1;
    margin: 0px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
}
.carousel-control-prev.flecha-outside:hover,
.carousel-control-next.flecha-outside:hover {
    opacity: 1;
}
.text-overlay {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    color: #000000;
    z-index: 5;
}
#carouselServices {
    z-index: 2;
    padding: 20px;
}
.carousel-caption {
    color: #fff;
    font-size: 1rem;
}
#carouselServices .carousel-item img {
    max-height: 81vh;
    width: auto;
    object-fit: contain;
    margin: 0 auto;
    display: block !important;
    border-radius: 3px;
}

/* Partners / Testimonials */
#partners {
    background: linear-gradient(135deg, #2B3526 0%, #3d4a35 100%);
    position: relative;
    overflow: hidden;
}

#partners::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(79, 89, 65, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(79, 89, 65, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.title-partners {
    font-size: 40px;
    font-weight: 400;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.text-partners {
    font-size: 16px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* Testimonial Cards */
.testimonial-card {
    background: rgba(255, 255, 255, 0.98);
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4F5941 0%, #6b7a5a 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card:hover::before {
    transform: scaleX(1);
}

.testimonial-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

/* Testimonial Image */
.testimonial-image-wrapper {
    position: relative;
    display: inline-block;
}

.testimonial-image {
    object-fit: cover;
    border: 4px solid #4F5941;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    background-color: #f0f0f0;
}

.testimonial-card:hover .testimonial-image {
    border-color: #6b7a5a;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(79, 89, 65, 0.4);
}

/* Testimonial Text */
.testimonial-title {
    color: #2B3526;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

.testimonial-card:hover .testimonial-title {
    color: #4F5941;
}

.testimonial-subtitle {
    color: #6c757d;
    font-size: 13px;
    font-style: italic;
    font-weight: 400;
}

.testimonial-text {
    color: #333;
    font-size: 15px;
    line-height: 1.7;
    font-style: italic;
    position: relative;
    padding: 0 15px;
}

.testimonial-text::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 0;
    font-size: 60px;
    color: #4F5941;
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

/* Keen Slider Arrows */
.keen-arrow {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.keen-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.keen-arrow i {
    font-size: 2rem;
    color: #FFFFFF;
    transition: transform 0.2s ease;
}

.keen-arrow:hover i {
    transform: scale(1.2);
}

/* Keen Slider Customization */
.keen-slider {
    overflow: visible !important;
}

.keen-slider__slide {
    padding: 20px 10px;
}

/* Contact */
#contact input:focus,
#contact textarea:focus {
    box-shadow: none;
    border-color: #334233;
}
#contact label {
    font-weight: 500;
    color: #334233;
}
.title-contact {
    font-size: 36px;
    font-family: "Montserrat", sans-serif;
    color: #4F5941;
    font-weight: 500;
}
.d-movil {
    display: none;
}
.btn-contact {
    display: flex;
    justify-content: center;
}

/* Responsive */
@media  (min-width: 993px) and (max-width: 1200px) {
    .text-about-us {
        font-size: 42px;
    }
    .text-quantity {
        font-size: 30px;
    }
    .home-image {
        width: 80%;
    }
    .carousel {
        width: 90%;
        aspect-ratio: auto;
    }
    .interior-container {
        aspect-ratio: auto;
        height: auto;
    }
    .text-services,
    .subtitle-services {
        font-size: 13px;
    }
    .navbar-brand img {
        height: 40px;
    }

    /* Testimonials responsive */
    .title-partners {
        font-size: 36px;
    }
    .testimonial-card {
        min-height: 400px;
    }
    .testimonial-text {
        font-size: 14px;
    }
    .navbar-nav {
        flex-direction: column;
        display: flex;
        justify-content: center;
    }

    /* Dropdown en mÃ³vil */
    .dropdown-menu {
        position: static !important;
        transform: none !important;
        border: none !important;
        background-color: transparent !important;
        box-shadow: none !important;
        padding-left: 1rem;
    }

    .navbar-dark-mode .dropdown-item,
    .navbar-light-mode .dropdown-item,
    .navbar-especialidades .dropdown-item {
        color: inherit !important;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .navbar-dark-mode .dropdown-item:hover,
    .navbar-light-mode .dropdown-item:hover,
    .navbar-especialidades .dropdown-item:hover {
        background-color: transparent !important;
        padding-left: 1.5rem;
    }
    .overlay-text {
        width: 42vw;
    }
}
@media (min-width: 769px) and (max-width: 992px) {
    .container {
        margin: 0;
        max-width: 100%;
    }
    .navbar-nav {
        flex-direction: row;
        display: flex;
        justify-content: end;
    }
    .navbar>.container {
        flex-wrap: nowrap !important;
    }
    #services {
        display: flex;
        justify-content: center;
    }
    .overlay-text {
        width: 59vw;
    }
    .btn-contact {
        display: flex;
        justify-content: end;
    }

    /* Testimonials responsive */
    .title-partners {
        font-size: 34px;
    }
    .testimonial-card {
        min-height: 380px;
    }
    .testimonial-text {
        font-size: 14px;
    }
}
@media (min-width: 576px) and (max-width: 768px) {
    .container {
        margin: 0;
        max-width: 100%;
    }
    .navbar-nav {
        flex-direction: row;
        display: flex;
        justify-content: end;
    }
    .navbar>.container {
        flex-wrap: nowrap !important;
    }
    .border-start {
        border-left: 0px !important;
    }
    .d-desk {
        display: none;
    }
    .d-movil {
        display: flex;
    }
    #services {
        display: flex;
        justify-content: center;
    }
    .overlay-text {
        width: 76vw;
    }
    .home-image {
        width: 76%;
    }
    .btn-contact {
        display: flex;
        justify-content: center;
    }
    .carousel-control-prev.flecha-outside, .carousel-control-next.flecha-outside {
        margin: 0px;
    }

    /* Testimonials responsive */
    .title-partners {
        font-size: 30px;
    }
    .text-partners {
        font-size: 15px;
    }
    .testimonial-card {
        min-height: 360px;
    }
    .testimonial-text {
        font-size: 14px;
    }
    .testimonial-image {
        width: 100px !important;
        height: 100px !important;
    }
}
@media (max-width: 575px) {
    .text-about-us {
        font-size: 32px;
    }
    .text-quantity {
        font-size: 26px;
    }
    .text-services,
    .subtitle-services {
        font-size: 12px;
    }
    .navbar-nav {
        flex-direction: row;
        display: flex;
        justify-content: end;
    }
    .navbar>.container {
        flex-wrap: nowrap !important;
    }
    .border-start {
        border-left: 0px !important;
    }
    .d-desk {
        display: none;
    }
    .d-movil {
        display: flex;
    }
    #services {
        display: flex;
        justify-content: center;
    }

    .home-image {
        width: 76%;
    }
    .btn-contact {
        display: flex;
        justify-content: center;
    }
    .carousel-control-prev.flecha-outside, .carousel-control-next.flecha-outside {
        margin: 0px;
    }

    /* Testimonials responsive */
    .title-partners {
        font-size: 28px;
    }
    .text-partners {
        font-size: 14px;
    }
    .testimonial-card {
        min-height: 380px;
        padding: 1.5rem !important;
    }
    .testimonial-title {
        font-size: 18px;
    }
    .testimonial-text {
        font-size: 13px;
        padding: 0 10px;
    }
    .testimonial-image {
        width: 90px !important;
        height: 90px !important;
    }
    .keen-arrow {
        width: 40px;
        height: 40px;
    }
    .keen-arrow i {
        font-size: 1.5rem;
    }
}
