.carrusel-rehab-img {
  width: 100% !important;
  height: 300px !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 12px !important;
}
body {
    font-family: 'Poppins', sans-serif;
    color: #555;
    background-color: #ffffff;
}

.navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    color: #2c5e3f !important;
}

/* Main Navigation Update */
.navbar-nav .nav-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #555 !important;
    margin: 0 15px;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #2c5e3f !important;
}

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

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Dropdown Menu Styles */
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.dropdown-item:hover {
    background-color: #2c5e3f;
    color: #fff;
}

.social-icons a {
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #2c5e3f !important;
}

/* Hero Section */
.hero-section {
    padding: 40px 0 80px 0;
    background-color: #fff;
}

/* Estilos para el carrusel */
#heroCarousel {
    max-width: 500px;
    margin: 0 auto;
}

#heroCarousel .carousel-inner {
    border-radius: 10px;
    overflow: hidden;
}

#heroCarousel img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}

/* Ajuste para la cuadrícula de imágenes en desktop */
.hero-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 100%;
}

.hero-images img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.hero-img-1 {
    grid-column: 1;
    grid-row: 1;
}

.hero-img-2 {
    grid-column: 2;
    grid-row: 1 / span 2;
    height: 100% !important;
}

.hero-img-3 {
    grid-column: 1;
    grid-row: 2;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 600;
    color: #2c5e3f;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.btn-primary-custom {
    background-color: #2c5e3f;
    color: #fff;
    border-radius: 50px;
    padding: 8px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: #255036;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.navbar-logo-img {
    height: 90px;
}

.dropdown-item {
    text-transform: uppercase;
}

.btn-secondary-custom {
    background-color: transparent;
    border: 2px solid #2c5e3f;
    color: #2c5e3f;
    padding: 10px 25px;
    font-weight: 600;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.btn-secondary-custom:hover {
    background-color: #2c5e3f;
    color: #fff;
}

.hero-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    align-items: stretch;
}

.hero-images img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}


/* Services Section */
.section-title {
    font-weight: 700;
    color: #2c5e3f;
    margin-bottom: 15px;
}

.section-subtitle {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.service-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    height: 100%;
    text-align: center;
}

.service-card h4 {
    font-weight: 600;
    color: #2c5e3f;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-icon {
    font-size: 3rem;
    color: #2c5e3f;
    margin-bottom: 20px;
}

.btn-link-custom {
    color: #2c5e3f;
    font-weight: 600;
    text-decoration: none;
}

.btn-link-custom:hover {
    text-decoration: underline;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 10px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

/* Servicios Page */
.services-header {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../Imagenes/Nosotros/hermosa-foto-de-las-flores-de-lirio-rojo-floreciente-aislado.jpg') no-repeat center center;
    background-size: cover;
    padding: 100px 0;
    color: #fff;
    margin-top: 110px;
}

.services-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 3.5rem;
}

/* Estilos para el Carrusel de la Página Principal (Móvil) */
#heroCarousel {
    max-width: 90%; /* Usar porcentaje para mejor adaptabilidad */
    margin: 2rem auto; /* Centrado con espacio vertical */
}

/* Uniformiza el tamaño de las imágenes del carrusel */
.carrusel-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(44, 94, 63, 0.08);
}


/* Moderniza el menú desplegable de servicios */
.dropdown-menu {
    border: none;
    box-shadow: 0 8px 24px rgba(44,94,63,0.10);
    border-radius: 18px;
    padding: 12px 0;
    min-width: 260px;
    background: #fff;
    margin-top: 10px;
}

.dropdown-item {
    font-family: 'Poppins', sans-serif;
    font-size: 1.08rem;
    color: #2c5e3f;
    border-radius: 10px;
    padding: 10px 22px;
    margin: 3px 10px;
    transition: background 0.22s, color 0.22s;
    text-transform: capitalize !important;
    letter-spacing: 0.01em;
    background: none;
}

.dropdown-item:hover, .dropdown-item:focus {
    background: linear-gradient(90deg, #d2f5e3 0%, #c7e7d8 100%);
    color: #1b3c26;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(44,94,63,0.13);
}

.dropdown-menu .dropdown-item:not(:last-child) {
    border-bottom: 1px solid #f0f0f0;
}

.floral-carrusel-img-contain {
    width: 100%;
    height: 400px;
    object-fit: contain;
    object-position: center;
    background: transparent;
    border-radius: 12px !important;
    box-shadow: none;
    transition: transform 0.4s cubic-bezier(.4,2,.6,1);
    display: block;
    margin: 0 auto;
}

.floral-card-img {
    height: 280px;
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floral-card-img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.badge.bg-success {
    background-color: #2c5e3f !important;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 20px;
}

/* Flechas del carrusel más visibles */
#arreglosCarousel .carousel-control-prev,
#arreglosCarousel .carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: #2c5e3f;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.9;
    transition: all 0.3s ease;
    border: 2px solid #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

#arreglosCarousel .carousel-control-prev {
    left: -25px;
}

#arreglosCarousel .carousel-control-next {
    right: -25px;
}

#arreglosCarousel .carousel-control-prev:hover,
#arreglosCarousel .carousel-control-next:hover {
    background-color: #1b3c26;
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

#arreglosCarousel .carousel-control-prev-icon,
#arreglosCarousel .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .floral-carrusel-img-contain {
        height: 220px;
    }
}

#floralCarousel .carousel-inner {
    border-radius: 18px;
    overflow: hidden;
}

#floralCarousel {
    max-width: 700px;
    margin: 0 auto 3rem auto;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

#floralCarousel .carousel-control-prev-icon,
#floralCarousel .carousel-control-next-icon {
    background-color: #2c5e3f;
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(44,94,63,0.10);
}

@media (max-width: 768px) {
    .floral-carrusel-img {
        height: 220px;
    }
    #floralCarousel {
        max-width: 98vw;
    }
}



#heroCarousel .carousel-inner {
    border-radius: 15px; /* Bordes redondeados */
    overflow: hidden; /* Esencial para que las imágenes respeten los bordes */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

#heroCarousel .carousel-item {
    height: 380px; /* Altura fija para todos los slides */
}

#heroCarousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la imagen cubra el espacio sin deformarse */
    object-position: center;
}

#heroCarousel .carousel-control-prev-icon,
#heroCarousel .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    padding: 1rem;
}

.service-detail-section {
    padding: 60px 0;
}

.service-detail-section:nth-child(even) {
    background-color: #f8f9fa;
}

.service-detail-section .section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.service-image-box {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    height: 350px; /* Control image height */
}

.service-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Video Section */
.video-container {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden; /* Ensures the video respects the border-radius */
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}

.service-text-box {
    padding: 40px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Quienes Somos Page */
.about-header {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../Imagenes/Nosotros/flores-rosadas-frescas-en-rocio.jpg') no-repeat center center;
    background-size: cover;
    padding: 100px 0;
    color: #fff;
    margin-top: 110px;
}

.about-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 3.5rem;
}

.info-card {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    height: 100%;
}

.info-card .icon {
    font-size: 3rem;
    color: #2c5e3f;
    margin-bottom: 20px;
}

.info-card h3 {
    font-family: 'Montserrat', sans-serif;
    color: #2c5e3f;
    font-weight: 600;
    margin-bottom: 15px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.value-item {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.value-item .icon {
    font-size: 2.5rem;
    color: #2c5e3f;
    margin-bottom: 15px;
}

.value-item h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #2c5e3f;
}

/* Footer */
.footer-section {
    border-top: 1px solid #e9ecef;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    /* Tablet */
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-images {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero-img-1, .hero-img-2, .hero-img-3 {
        grid-column: auto;
        transform: none;
        height: 300px;
    }

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

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

    .social-icons {
        margin-top: 15px;
    }

    .service-text-box {
        padding: 30px;
        margin-top: 20px;
    }

    /* Hero Carousel Styles */
    #heroCarousel {
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }

    #heroCarousel .carousel-item {
        background-color: #f8f9fa; /* Light background for letterboxing */
    }

    #heroCarousel .carousel-item img {
        height: 400px; /* Adjust height for tablets */
        object-fit: contain; /* Show full image, don't crop */
    }
}

@media (max-width: 767.98px) {
    /* Mobile */
    .hero-title, .services-header h1, .about-header h1 {
        font-size: 2.2rem;
    }

    .hero-section {
        padding: 60px 0;
        text-align: center;
    }

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

    .service-detail-section {
        padding: 40px 0;
    }

    .service-text-box {
        height: auto;
    }

    .service-image-box {
        height: 250px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }
}

