:root {
    --primary-green: #2e7d32;
    --secondary-green: #388e3c;
    --light-green: #8bc34a;
    --lighter-green: #dcedc8;
    --dark-green: #1b5e20;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Espacio para logo */
.navbar-brand {
    display: flex;
    padding-top: 0;
    padding-bottom: 0;
    align-items: center;
    text-decoration: none !important;
}
.logo-container {
    width: 80px;
    min-width: 80px; /* Evita que se encoja */
    flex-shrink: 0; /* Evita que el logo se encoja */
    margin-right: 10px;
    display: flex;
    align-items: center;
}
.logo-container img {
    max-width: 100%;
    max-height: 100%;
}

.hero-section {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../img/hero.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    background-attachment: fixed;
}

.cta-button {
    background-color: var(--primary-green);
    border: none;
    padding: 12px 30px;
    font-size: 1.2rem;
    transition: all 0.3s;
    color: white;
}

.cta-button:hover {
    background-color: var(--dark-green);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    color: white;
}

.feature-icon {
    color: var(--primary-green);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.product-card {
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 20px;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

.product-card .btn {
    background-color: var(--light-green);
    border: none;
    color: white;
}

.product-card .btn:hover {
    background-color: var(--secondary-green);
    color: white;
}

.testimonial-card {
    background-color: var(--lighter-green);
    border-radius: 10px;
    padding: 20px;
}

.nav-link {
    color: var(--dark-green);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-green);
}

.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #f44336;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
}

.lead-magnet {
    background-color: var(--lighter-green);
    border-radius: 10px;
    padding: 30px;
}

/* Botón de WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 1.5s infinite;
    transition: all 0.3s;
}

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

.whatsapp-float:hover {
    background-color: #128C7E;
    color: #FFF;
    text-decoration: none;
}

/* Formulario de contacto */
.contact-form {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-control:focus {
    border-color: var(--light-green);
    box-shadow: 0 0 0 0.25rem rgba(139, 195, 74, 0.25);
}

/* Sección Nosotros */
.about-section {
    background-color: var(--lighter-green);
    border-radius: 10px;
}

/* Optimización de imágenes */
img {
    max-width: 100%;
    height: auto;
}

/* Mejoras de accesibilidad */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Mejoras de rendimiento */
[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

[loading="lazy"].loaded {
    opacity: 1;
}

/* Optimización para móviles */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0;
        background-attachment: scroll;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
}

/* Mejoras de jerarquía visual */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1rem;
}

/* Mejoras de formularios */
.btn:focus {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(139, 195, 74, 0.5);
}

/* Transiciones suaves */
a, button {
    transition: all 0.3s ease;
}
/* Botón principal */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    animation: pulse-whatsapp 2s infinite;
}

/* Tooltip */
.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    width: 180px;
    padding: 8px;
    background: #075E54;
    color: white;
    border-radius: 5px;
    font-size: 14px;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s;
}

.whatsapp-float:hover .whatsapp-tooltip {
    visibility: visible;
    opacity: 1;
}

/* Animación */
@keyframes pulse-whatsapp {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Versión móvil */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
    
    .whatsapp-tooltip {
        display: none;
    }
}
/* Estilos para el mensaje flotante */
/* Mensaje emergente compacto */
.online-message {
    position: fixed;
    bottom: 120px;
    right: 20px;
    background-color: #25D366;
    color: white;
    padding: 8px 15px; /* Reducido para una línea */
    border-radius: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    font-family: 'Arial', sans-serif;
    font-size: 14px; /* Tamaño base */
    font-weight: 600;
    white-space: nowrap; /* Fuerza una sola línea */
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px; /* Ancho máximo en desktop */
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Versión móvil */
@media (max-width: 480px) {
    .online-message {
        bottom: 130px;
        right: 10px;
        font-size: 12px; /* Más pequeño en móviles */
        padding: 6px 12px;
        max-width: 160px; /* Más estrecho */
    }
}

/* Triángulo inferior */
.online-message::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #25D366;
}

/* Animaciones (opcional) */
@keyframes fadeIn {
    0% { opacity: 0; transform: translateX(20px); }
    100% { opacity: 1; transform: translateX(0); }
}

.online-message {
    animation: fadeIn 0.5s ease forwards;
}
/* Animaciones mejoradas */
.online-message {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.online-message.hidden {
    opacity: 0 !important;
    transform: translateX(20px) !important;
    pointer-events: none;
}
/* nuevo */
/* ESTILOS PARA EL LOGO Y MARCA - Versión mejorada */
.navbar .navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar .logo-container {
    width: 60px;
    height: 60px;
    transition: all 0.3s ease;
}

.navbar .logo-container img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.navbar .brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #25D366; /* Verde WhatsApp */
    margin: 0;
    transition: color 0.3s ease;
}

/* Efecto hover */
.navbar .navbar-brand:hover .logo-container {
    transform: rotate(-5deg) scale(1.1);
}

.navbar .navbar-brand:hover .brand-name {
    color: #128C7E; /* Verde más oscuro */
}

/* Responsive */
@media (max-width: 768px) {
    .navbar .logo-container {
        width: 50px;
        height: 50px;
    }
    
    .navbar .brand-name {
        font-size: 1.3rem;
    }
}

/* Fuerza la especificidad para sobrescribir Bootstrap */
header.navbar .navbar-brand,
nav.navbar .navbar-brand {
    /* Tus estilos aquí */
    padding-top: 0;
    padding-bottom: 0;
}
.social-btn i {
    min-width: 16px; /* Alinea iconos si tienen anchos distintos */
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centrado vertical perfecto */
    height: 100%; /* Ocupa toda la altura disponible */
    margin-left: 12px; /* Espaciado del logo */
}

.brand-name {
    white-space: nowrap; /* Evita saltos de línea */
}

.brand-tagline {
    margin-top: 2px; /* Espacio entre líneas de texto */
}

/* Efecto hover */
.navbar-brand:hover .brand-name {
    color: #25D366; /* Verde de RodarE al pasar mouse */
}
