/* Paleta colores */
:root {
    --primary: #001f3f; /* azul marino */
    --secondary: #0074D9;
    --light: #f8f9fa;
    --white: #fff;
    --gray: #6c757d;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--light);
    margin: 0;
    padding: 0;
}

/* Navbar fija */
.navbar {
    background: var(--primary) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

/* Home Hero */
.hero {
    background: linear-gradient(rgba(0, 31, 63, 0.8), rgba(0, 116, 217, 0.6)), url('assets/img/hero-equipo.jpg');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    padding: 0 1rem;
    text-align: center;
}

/* Contenedor ancho completo con padding */
.container-fluid {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Equipos Grid - con flexbox para buena compatibilidad */
.equipos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: flex-start; /* o center si prefieres */
    max-width: 100%;
    margin: 0 auto;
    padding-bottom: 2rem;
}

/* Tarjeta individual de cada equipo */
.equipo-card, .card {
    flex: 0 1 300px;         /* mínimo 300px, puede crecer */
    max-width: 320px;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background: var(--white);
    transition: transform 0.3s ease;
    overflow: hidden;
}

/* Hover efecto */
.equipo-card:hover, .card:hover {
    transform: translateY(-7px);
}

/* Imagen ancho completo, altura fija */
.card-img-top {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background-color: #ffffff;
    border-radius: 10px 10px 0 0;
}

/* Cuerpo de la tarjeta */
.card-body {
    flex-grow: 1;
    padding: 15px;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Titulo y descripcion */
.card-title, .card-text {
    word-break: break-word; /* puntos para romper palabras largas */
    white-space: normal;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

/* Precio destacado */


/* Botón ver detalles */
.btn-primary {
    margin-top: 1rem;
    border-radius: 25px;
}

/* Footer y demás secciones */
footer {
    background: var(--primary);
    color: var(--white);
    padding: 2rem 1rem;
    text-align: center;
}

footer a {
    color: var(--white);
    margin: 0 0.5rem;
    text-decoration: none;
}

footer a:hover {
    color: var(--secondary);
}

/* Áreas con fondo diferente */
.section-light {
    background-color: var(--light);
    padding: 4rem 1rem;
}

/* Responsive ajustes en pantallas pequeñas */
@media (max-width: 768px) {
    .hero {
        height: 60vh;
    }
    .equipo-card, .card {
        flex: 0 1 100%; /* tarjetas ocupan 100% en móviles */
        max-width: 100%;
    }
}

/* Validaciones básicas */
.is-invalid {
    border-color: #dc3545 !important;
}

/* Botón WhatsApp Flotante */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    z-index: 1000;
}

.whatsapp-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #25D366 !important;
    color: #fff !important;
    border-radius: 50%;
    text-decoration: none;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-button:hover {
    background-color: #128C7E !important;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Responsive botón móvil */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-button {
        width: 55px;
        height: 55px;
        font-size: 28px;
    }
}