/* ==========================================================================
   BASE STYLES
   ========================================================================== */
body {
    background-color: #000;
    color: #fff;
}

.bg-crema {
    background-color: #f5f5f5;
    color: #333;
}

.bg-verde-oscuro {
    background-image: url("banner3.webp");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: #010902;
}

.bg-green {
    background-image: url("vista-aerea-bosque-verde-banner.webp");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.navbar-dark .navbar-nav .nav-link {
    color: #04a704;
    transition: transform 0.3s ease-in-out, color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    will-change: transform;
}

@media (min-width: 768px) {
    .navbar-dark .navbar-nav .nav-link:hover {
        color: #ffffff;
        transform: scale(1.2);
        box-shadow: 0px 4px 8px rgba(0, 7, 0, 0.5);
        background-color: rgba(4, 167, 4, 0.2);
        border-radius: 5px;
    }
}

@media (max-width: 767px) {
    .navbar-dark .navbar-nav .nav-link:hover {
        color: #ffffff;
        transform: none;
        box-shadow: none;
        background-color: transparent;
    }
}

.align-middle {
    vertical-align: middle !important;
}

section[id] {
    scroll-margin-top: 50px;
}

@media (max-width: 767px) {
    section[id] {
        scroll-margin-top: 0px;
    }
}

.navbar-dark .navbar-nav .nav-link.active {
    color: #ffffff;
}

.navbar-toggler {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: none;
}

.navbar-toggler:active {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(4, 167, 4, 0.25);
}

#home-btn {
    transition: transform 0.2s ease-in-out;
}

#home-btn:active {
    transform: scale(1.1);
}

#home-btn:hover {
    text-decoration: none;
    color: #04a704;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-instagram {
    background-color: #E1306C;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
}

.btn-instagram:hover {
    background-color: #C13584;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

.btn-instagram i {
    margin-right: 8px;
}

.btn-success {
    border-radius: 30px;
    padding: 10px 20px;
}

.btn-whatsapp {
    background-color: #25d366;
    color: white;
    border-radius: 30px;
    padding: 10px 20px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
}

.btn-whatsapp:hover {
    background-color: #1ebe5d;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

/* ==========================================================================
   FLOATING ELEMENTS
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    z-index: 1000;
    font-size: 30px;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #1ebe5d;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    color: white;
    text-decoration: none;
}

.whatsapp-float::before {
    content: '¿Necesitas ayuda?';
    position: absolute;
    bottom: 70px;
    right: 0;
    background: #25d366;
    color: white;
    padding: 8px 14px;
    border-radius: 18px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.whatsapp-float::after {
    content: '';
    position: absolute;
    bottom: 62px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #25d366;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.whatsapp-float:hover::after {
    opacity: 1;
}

.whatsapp-float:hover::before {
    opacity: 1;
    transform: translateY(-5px);
} 
/* ==========================================================================
   COMPONENTS
   ========================================================================== */
.logo-ecoelite {
    max-width: 180px;
    height: auto;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 576px) {
    .logo-ecoelite {
        max-width: 150px;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 15px;
        right: 15px;
    }
}

@media (max-width: 767px) {
    #contacto {
        padding-top: 5px !important;
        scroll-margin-top: 0 !important;
    }
}

#contacto {
    scroll-margin-top: 0 !important;
}

/* ==========================================================================
   ACCESSIBILITY & PERFORMANCE
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Disable heavy animations on low-end devices */
@media (max-width: 767px) {
    .animate__animated {
        animation: none !important;
    }
    
    * {
        transform: none !important;
        transition: none !important;
    }
    
    .btn:hover, a:hover {
        transform: none !important;
        filter: none !important;
    }
}

/* ==========================================================================
   MODERN EFFECTS 2025
   ========================================================================== */
/* Glassmorphism para botones - Solo desktop */
@media (min-width: 768px) {
    .btn-whatsapp, .btn-instagram {
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.btn-instagram {
    background: linear-gradient(135deg, #E1306C, #C13584, #833AB4);
}

/* Efecto Bento Box para secciones - Optimizado para móviles */
@media (min-width: 768px) {
    section {
        border-radius: 24px;
        backdrop-filter: blur(20px);
        background: rgba(245, 245, 245, 0.9);
        border: 1px solid rgba(255, 255, 255, 0.3);
        margin: 10px;
    }
}

@media (max-width: 767px) {
    section {
        border-radius: 12px;
        background: rgba(245, 245, 245, 0.95);
        margin: 5px;
    }
}

/* Efecto Morphing para imágenes - Solo desktop */
@media (min-width: 768px) {
    .img-fluid {
        border-radius: 20px;
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        filter: brightness(1) contrast(1);
    }
    
    .img-fluid:hover {
        border-radius: 50px;
        filter: brightness(1.1) contrast(1.2) saturate(1.3);
        transform: scale(1.05) rotate(2deg);
    }
}

@media (max-width: 767px) {
    .img-fluid {
        border-radius: 10px;
    }
}

/* Gradientes animados para títulos - Solo desktop */
@media (min-width: 768px) {
    h2 {
        background: linear-gradient(270deg, #25d366, #04a704, #2ecc71);
        background-size: 600% 600%;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: gradientShift 3s ease infinite;
    }
}

@media (max-width: 767px) {
    h2 {
        color: #25d366;
    }
}

/* Override para banner - texto blanco */
#banner h2,
#banner p {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: white !important;
    color: white !important;
    animation: none !important;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Efecto Neumorphism para el navbar - Optimizado */
@media (min-width: 768px) {
    .navbar {
        background: linear-gradient(145deg, #2c3e50, #34495e);
        box-shadow: 20px 20px 60px #1a252f, -20px -20px 60px #3e5771;
        border-radius: 30px;
        margin: 10px;
    }
}

@media (max-width: 767px) {
    .navbar {
        background: #2c3e50;
        border-radius: 15px;
        margin: 5px;
    }
}





/* Hover effects modernos */
a, button, .btn {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

a:hover, button:hover, .btn:hover {
    transform: translateY(-3px);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

/* ==========================================================================
   CAROUSEL STYLES
   ========================================================================== */
/* Estilos para el carrusel moderno */
.carousel {
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.carousel-item {
    padding: 40px;
    min-height: 400px;
}

.carousel-item h3 {
    color: #25d366;
    margin-bottom: 20px;
    font-weight: bold;
}

.carousel-item p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(37, 211, 102, 0.8);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(37, 211, 102, 1);
    transform: translateY(-50%) scale(1.1);
}

.carousel-indicators {
    bottom: 10px;
}

.carousel-indicators li {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.5);
    border: none;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    background: #25d366;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .carousel-item {
        padding: 20px;
        text-align: center;
    }
}

/* ==========================================================================
   SECURITY
   ========================================================================== */
/* Prevenir clickjacking */
html {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Permitir selección en elementos de texto */
p, h1, h2, h3, h4, h5, h6, span, div {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}
