/* 
   Estilos Personalizados - Litoarte
   Archivo: css/custom.css
   Color corporativo: #00CC99
*/

:root {
    --litoarte-green: #00CC99;
    --litoarte-dark: #2c3e50;
    --litoarte-light: #f8f9fa;
}

/* Navegación */
.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--litoarte-green) !important;
}

.dropdown-item:hover,
.dropdown-item.active {
    background-color: var(--litoarte-green);
    color: white;
}

/* Botón WhatsApp flotante */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: white;
    transform: scale(1.1);
    box-shadow: 2px 2px 15px rgba(0,0,0,0.4);
}

/* Botones corporativos */
.btn-litoarte {
    background-color: var(--litoarte-green);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-litoarte:hover {
    background-color: #00b386;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,204,153,0.3);
}

.btn-outline-litoarte {
    border: 2px solid var(--litoarte-green);
    color: var(--litoarte-green);
    background-color: transparent;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-litoarte:hover {
    background-color: var(--litoarte-green);
    color: white;
    transform: translateY(-2px);
}

/* Tarjetas */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

/* Enlaces */
a {
    color: var(--litoarte-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #00b386;
}

/* Texto con color corporativo */
.text-litoarte {
    color: var(--litoarte-green) !important;
}

.bg-litoarte {
    background-color: var(--litoarte-green) !important;
}

/* Badges y etiquetas */
.badge-litoarte {
    background-color: var(--litoarte-green);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Formularios */
.form-control:focus,
.form-select:focus {
    border-color: var(--litoarte-green);
    box-shadow: 0 0 0 0.2rem rgba(0,204,153,0.25);
}

/* Alerta personalizada */
.alert-litoarte {
    background-color: rgba(0,204,153,0.1);
    border-left: 4px solid var(--litoarte-green);
    color: var(--litoarte-dark);
}

/* Secciones hero */
.hero-section {
    background: linear-gradient(135deg, var(--litoarte-green) 0%, #00b386 100%);
    color: white;
    padding: 5rem 0;
    position: relative;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Iconos con fondo circular */
.icon-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--litoarte-green), #00b386);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

/* Footer */
footer {
    background-color: var(--litoarte-dark);
}

footer a:hover {
    color: var(--litoarte-green) !important;
}

/* Efectos de hover en imágenes */
img {
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.02);
}

/* Separadores */
.divider {
    height: 2px;
    background: linear-gradient(to right, transparent, var(--litoarte-green), transparent);
    margin: 3rem 0;
}

/* Títulos de sección */
.section-title {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--litoarte-green);
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 20px;
        right: 20px;
    }
}

/* Spinner de carga */
.spinner-litoarte {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0,204,153,0.1);
    border-top-color: var(--litoarte-green);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Banner de cookies */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(44, 62, 80, 0.95);
    color: white;
    padding: 1.5rem;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

.cookie-banner .btn-litoarte {
    padding: 0.5rem 1.5rem;
}

/* Espaciado general */
section {
    padding: 4rem 0;
}

/* Estilos para tablas */
.table-litoarte {
    border: 2px solid var(--litoarte-light);
}

.table-litoarte thead {
    background-color: var(--litoarte-green);
    color: white;
}

.table-litoarte tbody tr:hover {
    background-color: rgba(0,204,153,0.05);
}