:root {
  --azul-hami: #0255bc;
  --rojo-hami: #ff0000;
  --azul-hover: #013b85;
  --rojo-hover: #cc0000;
  --gris-fondo: #f4f6f9;
}

body {
  background-color: var(--gris-fondo);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* Botones Personalizados */
.btn-azul {
  background-color: var(--azul-hami);
  color: white;
  border: none;
  transition: all 0.3s ease;
}

.btn-azul:hover {
  background-color: var(--azul-hover);
  color: white;
}

.btn-rojo {
  background-color: var(--rojo-hami);
  color: white;
  border: none;
  transition: all 0.3s ease;
}

.btn-rojo:hover {
  background-color: var(--rojo-hover);
  color: white;
}

.badge-rojo {
  background-color: var(--rojo-hami);
  color: white;
}

.link-azul {
  color: var(--azul-hami);
  text-decoration: none;
  transition: color 0.3s ease;
}

.link-azul:hover {
  color: var(--azul-hover);
}

.text-azul {
  color: var(--azul-hami) !important;
}

.text-rojo {
  color: var(--rojo-hami) !important;
}

/* Header */
.navbar-custom {
  background-color: #ffffff;
  border-bottom: 2px solid var(--azul-hami);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.navbar-custom .nav-link {
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.navbar-custom .nav-link:hover {
  color: var(--azul-hami);
}

.navbar-brand {
  color: var(--azul-hami) !important;
  font-weight: 800;
  font-size: 1.5rem;
}

/* Hero Section */
.bg-gradient-hero {
  background: linear-gradient(90deg, rgba(2,85,188,0.95) 0%, rgba(255,0,0,0.85) 100%), url('../img/hero-bg.jpg') center/cover no-repeat;
  color: white;
  padding: 100px 0;
}

/* Cards de Producto */
.product-card {
  border: none;
  border-top: 4px solid var(--azul-hami);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-agregar {
  background-color: #e6f0fa;
  color: var(--azul-hami);
  border: 1px solid transparent;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-agregar:hover {
  background-color: white;
  border-color: var(--rojo-hami);
  color: var(--rojo-hami);
}

/* Footer */
footer {
  background-color: #013b85;
}

footer a {
  color: #ffcccc;
  text-decoration: none;
}

footer a:hover {
  color: white;
}

/* WhatsApp Flotante */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: var(--rojo-hami);
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: white;
}

/* Simulador Gráfico (CSS Bar) */
.bar-chart {
  height: 30px;
  background-color: var(--azul-hami);
  border-radius: 4px;
  transition: width 0.5s ease-out;
  display: flex;
  align-items: center;
  padding-left: 10px;
  color: white;
  font-size: 0.8rem;
}

/* Hero video section */
.hero-video-section {
    min-height: 100vh;
    height: 100vh;
    max-height: 800px;
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(2, 85, 188, 0.75) 0%, rgba(255, 0, 0, 0.6) 100%);
    z-index: 2;
}

.z-index-2 {
    z-index: 3;
    position: relative;
}

/* Responsive móvil */
@media (max-width: 768px) {
    .hero-video-section {
        min-height: 90vh;
        height: auto;
        padding: 100px 0;
        background: linear-gradient(135deg, #0255bc, #ff0000);
        background-size: cover;
    }
    
    .hero-video {
        display: none; /* Oculta video en móvil para rendimiento */
    }
    
    .hero-video-section h1 {
        font-size: 2.5rem !important;
    }
}

/* Animaciones suaves */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate__fadeInUp {
    animation: fadeInUp 0.8s ease-out forwards;
}

.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }

/* Blog Media (Videos y Galería) */
.video-vertical-card {
    aspect-ratio: 9/16;
    background-color: #000;
}
.video-vertical-card video {
    border-radius: 1rem;
}
.pointer-events-none {
    pointer-events: none;
}
.gallery-item {
    transition: transform 0.3s ease;
    cursor: pointer;
    background-color: #f8f9fa;
}
.gallery-item:hover img {
    transform: scale(1.05);
}
.gallery-item img {
    transition: transform 0.5s ease;
}
