:root {
    --primary-color: #000000;
    --secondary-dark: #006400;
    --secondary-light: #32CD32;
}

body {
    padding-top: 150px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Navbar */
.navbar {
    background-color: black;
    transition: background-color 0.4s ease;
    padding: 10px 0;
}

.navbar.scrolled {
    background-color: black;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    height: 130px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.1);
}

.nav-link {
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    transition: all 0.3s ease;
    color: white !important;
}

.nav-link:hover {
    transform: scale(1.05);
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #32CD32;
    transition: width 0.3s ease;
}

.nav-link:hover:after {
    width: 100%;
}

.navbar-toggler {
    border-color: #32CD32 !important;
}

.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='%2332CD32' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(50, 205, 50, 0.25) !important;
}

/* Carrusel Hero */
.hero-carousel {
    height: 70vh;
    min-height: 500px;
    margin-top: 10px;
    overflow: hidden;
}

.hero-slide {
    height: 70vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-carousel .hero-content {
    position: relative;
    z-index: 2;
    color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero-carousel .hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    animation: fadeInUp 0.8s ease-out;
}

.hero-carousel .hero-content p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 30px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.7);
    animation: fadeInUp 1s ease-out;
}

.hero-carousel .btn-primary-custom {
    animation: fadeInUp 1.2s ease-out;
}

.hero-carousel .carousel-indicators {
    bottom: 30px;
    z-index: 3;
}

.hero-carousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 5px;
}

.hero-carousel .carousel-indicators .active {
    background-color: var(--secondary-light);
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 15px;
    z-index: 3;
    transition: all 0.3s ease;
}

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
    background-color: rgba(50, 205, 50, 0.7);
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
    width: 25px;
    height: 25px;
}

/* Animación para el contenido */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Secciones de contenido */
.section-title {
    position: relative;
    margin-bottom: 50px;
    text-align: center;
}

.section-title:after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-dark), var(--secondary-light));
}

.info-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.feature-box {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: transform 0.3s ease;
    position: relative;
}

.feature-box:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--secondary-dark);
}



/* Productos Destacados - MEJORADO */
.products-section {
    padding: 60px 0;
}

.product-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: white;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 100, 0, 0.2);
}

/* Contenedor para relación de aspecto fija */
.product-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 75%; /* Relación 4:3 */
    overflow: hidden;
    background-color: #f8f9fa;
}

/* Imagen optimizada */
.product-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

/* Cuerpo de la tarjeta */
.product-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    color: var(--secondary-dark);
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.product-body p {
    flex-grow: 1;
    margin-bottom: 15px;
    color: #666;
    line-height: 1.5;
}

.product-body .btn {
    align-self: flex-start;
    margin-top: auto;
}

/* Carrusel de productos - ESTILOS MEJORADOS */
.carousel-section {
    padding: 60px 0;
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.carousel-section .section-title {
    margin-bottom: 3rem;
    color: var(--secondary-dark);
}

/* Tarjeta del carrusel */
.carousel-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 15px;
}

.carousel-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(50, 205, 50, 0.15);
    border-color: rgba(50, 205, 50, 0.2);
}

/* Contenedor de imagen */
.carousel-img-container {
    position: relative;
    width: 100%;
    padding-top: 75%; /* Relación 4:3 */
    overflow: hidden;
    border-radius: 10px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.carousel-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
    transition: transform 0.5s ease;
}

.carousel-card:hover .carousel-img {
    transform: scale(1.05);
}

/* Controles del carrusel */
.carousel-control-prev, 
.carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
    margin: 0 10px;
}

.carousel-control-prev {
    left: 15px;
}

.carousel-control-next {
    right: 15px;
}

.carousel-control-prev:hover, 
.carousel-control-next:hover {
    background-color: rgba(50, 205, 50, 0.9);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 25px;
    height: 25px;
}

/* Indicadores */
.carousel-indicators {
    bottom: -50px;
    margin: 0;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--secondary-dark);
    opacity: 0.5;
    border: none;
    margin: 0 6px;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    opacity: 1;
    background-color: var(--secondary-light);
    transform: scale(1.2);
}

/* Animación de entrada */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.carousel-item {
    animation: slideIn 0.8s ease-out;
}

/* RESPONSIVIDAD MEJORADA */

/* Tablets */
@media (max-width: 992px) {
    .carousel-section {
        padding: 50px 0;
    }
    
    .carousel-section .section-title {
        margin-bottom: 2.5rem;
    }
    
    .carousel-card {
        padding: 12px;
    }
    
    .carousel-img-container {
        padding-top: 66.67%; /* Relación 3:2 */
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 45px;
        height: 45px;
        margin: 0 5px;
    }
}

/* Móviles grandes */
@media (max-width: 768px) {
    .carousel-section {
        padding: 40px 0;
    }
    
    .carousel-section .section-title {
        margin-bottom: 2rem;
        font-size: 1.8rem;
    }
    
    .carousel-card {
        margin-bottom: 20px;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .carousel-img-container {
        padding-top: 75%; /* Relación 4:3 */
    }
    
    .carousel-img {
        padding: 10px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
        top: 40%;
    }
    
    .carousel-control-prev {
        left: 5px;
    }
    
    .carousel-control-next {
        right: 5px;
    }
    
    .carousel-indicators {
        bottom: -40px;
    }
}

/* Móviles pequeños */
@media (max-width: 576px) {
    .carousel-section {
        padding: 30px 0 50px;
    }
    
    .carousel-section .section-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
    
    .carousel-card {
        padding: 10px;
        max-width: 250px;
    }
    
    .carousel-img-container {
        padding-top: 100%; /* Relación 1:1 */
    }
    
    .carousel-img {
        padding: 8px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 35px;
        height: 35px;
        top: 35%;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 20px;
        height: 20px;
    }
    
    .carousel-indicators button {
        width: 10px;
        height: 10px;
        margin: 0 4px;
    }
}

/* Pantallas muy pequeñas */
@media (max-width: 400px) {
    .carousel-section .section-title {
        font-size: 1.4rem;
    }
    
    .carousel-card {
        max-width: 220px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 30px;
        height: 30px;
    }
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 50px 0 20px;
}

.footer-logo {
    height: 60px;
    margin-bottom: 20px;
}

.footer-title {
    color: var(--secondary-light);
    position: relative;
    margin-bottom: 25px;
    padding-bottom: 10px;
}

.footer-title:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-dark), var(--secondary-light));
}

.footer-links a {
    display: block;
    color: #ddd;
    margin-bottom: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-light);
    padding-left: 5px;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: all 0.3s ease;
}
/*
.social-icons a:hover {
    background-color: var(--secondary-light);
    transform: translateY(-5px);
}*/

.copyright {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Botones */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--secondary-dark), var(--secondary-light));
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 30px;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 100, 0, 0.3);
    color: white;
}

/* Botón de WhatsApp flotante */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    opacity: 1;
    transform: scale(1);
    text-decoration: none;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

/* Responsividad - TODAS LAS SECCIONES */

/* Para tablets */
@media (max-width: 992px) {
    .hero-carousel {
        height: 75vh;
        min-height: 450px;
    }
    
    .hero-slide {
        height: 75vh;
        min-height: 450px;
    }
    
    .hero-carousel .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-carousel .hero-content p {
        font-size: 1.2rem;
    }
    
    .info-section,
    .products-section,
    .carousel-section {
        padding: 50px 0;
    }
    
    .product-img-wrapper {
        padding-top: 66.67%; /* Relación 3:2 para tablets */
    }
    
    .carousel-item img {
        height: 200px;
    }
}

/* Para móviles grandes */
@media (max-width: 768px) {
    .hero-carousel {
        height: 65vh;
        min-height: 400px;
    }
    
    .hero-slide {
        height: 65vh;
        min-height: 400px;
    }
    
    .hero-carousel .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-carousel .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-carousel .carousel-control-prev,
    .hero-carousel .carousel-control-next {
        width: 40px;
        height: 40px;
        margin: 0 10px;
    }
    
    .info-section,
    .products-section,
    .carousel-section {
        padding: 40px 0;
    }
    
    .section-title {
        margin-bottom: 40px;
    }
    
    .feature-box {
        padding: 20px;
    }
    
    .feature-icon {
        font-size: 2rem;
    }
    
    .product-img-wrapper {
        padding-top: 75%; /* Relación 4:3 para móviles */
    }
    
    .product-body {
        padding: 15px;
    }
    
    .product-title {
        font-size: 1.1rem;
    }
    
    .carousel-item img {
        height: 180px;
    }
}

/* Para móviles pequeños */
@media (max-width: 576px) {
    .hero-carousel {
        height: 60vh;
        min-height: 350px;
    }
    
    .hero-slide {
        height: 60vh;
        min-height: 350px;
    }
    
    .hero-carousel .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-carousel .hero-content p {
        font-size: 1rem;
    }
    
    .hero-carousel .carousel-indicators {
        bottom: 15px;
    }
    
    .hero-carousel .carousel-indicators button {
        width: 8px;
        height: 8px;
    }
    
    .section-title {
        margin-bottom: 30px;
    }
    
    .section-title:after {
        bottom: -10px;
        height: 3px;
    }
    
    .product-img-wrapper {
        padding-top: 100%; /* Relación 1:1 para móviles pequeños */
    }
    
    .product-card {
        margin-bottom: 20px;
    }
    
    .carousel-item img {
        height: 150px;
    }
    
    .footer {
        padding: 40px 0 15px;
    }
    
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }
}

/* Para pantallas muy pequeñas */
@media (max-width: 400px) {
    .hero-carousel {
        height: 55vh;
        min-height: 300px;
    }
    
    .hero-slide {
        height: 55vh;
        min-height: 300px;
    }
    
    .hero-carousel .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .hero-carousel .hero-content p {
        font-size: 0.9rem;
    }
    
    .product-body {
        padding: 12px;
    }
    
    .product-title {
        font-size: 1rem;
    }
    
    .product-body p {
        font-size: 0.9rem;
    }
}

/* ===== MEJORAS RESPONSIVAS PARA TARJETAS DE SERVICIOS ===== */
.feature-box {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature-box p {
    flex-grow: 1;
}

@media (max-width: 768px) {
    .feature-box {
        padding: 20px;
    }
    .feature-box h3 {
        font-size: 1.2rem;
        word-break: break-word; /* Evita desbordamiento de palabras largas */
    }
    .feature-box p {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .feature-box {
        padding: 15px;
    }
    .feature-box h3 {
        font-size: 1.1rem;
    }
    .feature-box p {
        font-size: 0.9rem;
    }
    .feature-icon {
        font-size: 2rem;
        margin-bottom: 10px;
    }
}