/* Variables globales */
:root {
    --primary-color: #034AA6;
    --primary-dark: #1F598C;
    --primary-light: #8FB6D9;
    --secondary-color: #035AA6;
    --background-light: #F2F2F2;
    --white: #ffffff;
    --font-primary: 'Poppins', sans-serif;
}

/* Estilos generales */
body {
    font-family: var(--font-primary);
    font-weight: 400;
    color: var(--text-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
}

.display-4 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.lead {
    font-weight: 300;
    letter-spacing: 0.01em;
}

.navbar-brand {
    font-weight: 600;
    letter-spacing: 0.05em;
}

.btn {
    font-family: var(--font-primary);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background-color: var(--primary-color) !important;
}

/* Hero section */
.hero {
    background-color: var(--white);
    padding: 4rem 0;
}

/* Hero section mejorado */
.hero {
    min-height: 60vh;
    background-color: transparent;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/Aluzinc.png');
    background-repeat: repeat;
    background-position: right center;
    background-size: contain;
    opacity: 0.9;
    z-index: 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(3, 74, 166, 0.85), rgba(3, 90, 166, 0.95)), url('../img/Aluzinc.png');
    background-size: cover;
    background-position: center;
}

.hero-content {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 700px;
    margin: 0 auto;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-light {
    background-color: var(--background-light) !important;
}

.card {
    transition: transform 0.3s ease;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover img {
    transform: scale(1.05);
}

/* Botones mejorados */
.btn-lg {
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .hero .d-flex {
        flex-direction: column;
        gap: 1rem !important;
    }
    
    .hero .btn-lg {
        width: 100%;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .btn-whatsapp, .btn-call {
        padding: 0.5rem 1rem;
    }
}

.btn-whatsapp, .btn-call {
    padding: 0.75rem 1.25rem;
}

/* Productos destacados */
.productos-destacados {
    padding: 3rem 0;
}

/* Navbar y Logo */
.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand span {
    color: var(--white);
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

/* Footer mejorado */
.footer {
    background-color: var(--primary-color);
    color: white;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
}

.footer hr {
    border-color: rgba(255,255,255,0.1);
}

.footer a {
    transition: opacity 0.3s ease;
}

.footer a:hover {
    opacity: 0.8;
}

.footer a.d-block {
    margin: 8px 0;
    font-size: 1.1rem;
}

/* WhatsApp flotante */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
}

.whatsapp-float a:hover {
    transform: scale(1.1);
    box-shadow: 2px 2px 11px rgba(0,0,0,0.7);
}

.whatsapp-float i {
    font-size: 2rem;
}

.btn-whatsapp {
    background-color: #25d366;
    border-color: #25d366;
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
    transform-origin: center;
    animation: pulse 2s infinite;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    border-color: #128C7E;
    color: white;
    transform: scale(1.05);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Estilos página de productos */
.hero-productos {
    background-color: var(--background-light);
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.hero-productos .lead {
    max-width: 800px;
    margin: 0 auto;
}

.card .list-unstyled li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.card .fas.fa-check {
    font-size: 0.8rem;
}

.card .fas.fa-circle {
    font-size: 0.5rem;
}

.producto-img {
    height: 300px;
    object-fit: cover;
}

.img-fluid.rounded-4 {
    max-height: 400px;
    object-fit: cover;
    width: 100%;
}

/* Navbar mejorado */
.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
}

.navbar-brand img {
    height: 60px;
}

.nav-link {
    font-size: 1.1rem;
    padding: 0.5rem 1rem !important;
}

.btn-call {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    transition: all 0.3s ease;
}

.btn-call:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

/* Eliminar la animación shake */
@keyframes shake {
    0% { transform: none; }
    100% { transform: none; }
}
