/* ===========================
   ESTILOS GENERALES
=========================== */
body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f7f7f7;
    margin: 0;
    padding: 0;
    color: #333;
    overflow-x: hidden;
}

/* ===========================
   NAVBAR
=========================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 1px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 99999; /* AUMENTADO PARA EVITAR SUPERPOSICIÓN */
    background: linear-gradient(to right, #13253d, #00548b, #72c4bd, #e0eed9);
}

.logo img {
    height: 70px;
    display: block;
}

.menu {
    display: flex;
    gap: 50px;
}

.menu a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    padding: 20px 20px;
    transition: 0.3s;
}

/* ===========================
   DROPDOWN
=========================== */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    color: #ffffff;
    font-weight: bold;
    padding: 20px 20px;
    display: block;
    transition: color 0.3s ease;
}

.dropdown-content {
    display: none;
    position: absolute;
    min-width: 200px;
    top: 60px;
    left: 0;
    background: linear-gradient(135deg, #0a3d62, #1e8bc3, #72c4bd);
    border-radius: 12px;
    box-shadow: 0 12px 25px rgba(0,0,0,0.25);
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.35s ease;
    z-index: 999999 !important; /* SIEMPRE ENCIMA */
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-content a {
    color: #ffffff;
    padding: 14px 18px;
    text-decoration: none;
    display: block;
    font-weight: 600;
    transition: background 0.3s ease, padding-left 0.3s ease;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background: rgba(255,255,255,0.15);
    padding-left: 24px;
}

/* ===========================
   EQUIPOS – CONTENEDOR
=========================== */
.equipos-container {
    width: 100%;
    padding: 5px 0px;
    margin-top: 140px;
}

.equipos-titulo {
    font-size: 3rem;
    font-weight: 900;
    -webkit-background-clip: text;
    color: #005195;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 12px;
    text-shadow: 3px 5px 0 rgba(0, 82, 149, 0.185);

    display: block;        /* lo convierte en bloque */
    width: fit-content;    /* mide solo lo necesario */
    margin: 0 auto 80px;   /* lo centra y respeta tu separación */
}

.equipos-titulo::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 80%;            /* igual que en SOLUCIONES */
    height: 4px;
    background: #72c4bd;   /* mismo color que SOLUCIONES */
    border-radius: 4px;
}

.equipos-container {
    text-align: center;
}


/* RESPONSIVE REAL */
@media (max-width: 768px) {
    .equipos-titulo {
        font-size: 2.2rem !important;
    }
}

@media (max-width: 480px) {
    .equipos-titulo {
        font-size: 1.9rem !important;
    }
}



/* ===========================
   GRID
=========================== */
.equipos-grid {
    width: 85%;
    margin: 0 auto 70px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
    place-items: center;
}

/* ===========================
   TARJETAS (MISMO DISEÑO)
=========================== */
.equipos-item {
    position: relative;
    background: #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    height: 360px; /* TODAS IGUALES */
    border: 2px solid #e0e0e0;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.equipos-item img {
    width: 100%;
    height: 240px; /* TODAS IGUALES */
    object-fit: contain;
    background: #fafafa;
}

.equipos-item h3 {
    text-align: center;
    font-size: 1.5rem;
    margin-top: 40px;
    color: #005195;
}

/* ===========================
   OVERLAY (MISMO DISEÑO)
=========================== */
.overlay-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 240px; /* IGUAL A LA IMAGEN */
    background: rgba(0, 0, 0, 0.50);
    color: #f1f1f1;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.10s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.equipos-item:hover .overlay-info {
    opacity: 1;
}

/* ===========================
   HOVER TARJETA (CORREGIDO)
=========================== */
.equipos-item:hover {
    border-color: #ffffff;
    transform: translateY(-6px); /* YA NO TIEMBLA */
    box-shadow: 0 14px 28px rgba(0,0,0,0.25);
}

/* ===========================
   QUITAR SUBRAYADO
=========================== */
.equipos-link {
    text-decoration: none;
    color: inherit;
}

/* ===========================
   MENÚ HAMBURGUESA
=========================== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 9999;
    margin-right: 15px;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: #154377;
    border-radius: 3px;
    transition: 0.3s;
}

/* MENÚ MÓVIL */
.menu-mobile {
    display: none;
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    background: linear-gradient(to right, #13253d, #00548b, #72c4bd);
    padding: 25px 0;
    flex-direction: column;
    text-align: center;
    gap: 20px;
    z-index: 999;
}

.menu-mobile a {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: bold;
    text-decoration: none;
    padding: 10px 0;
}

/* ===========================
   WHATSAPP FLOAT
=========================== */
.whatsapp-float {
    position: fixed;
    bottom: 35px;
    right: 20px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 10px;

    background: #1fc75c;
    color: white;
    padding: 6px 6px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;

    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.whatsapp-float:hover {
    transform: scale(1.07);
    box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}

/* ============================================
   RESPONSIVE — TABLET (≤ 1024px)
============================================ */
@media (max-width: 1024px) {

    .equipos-titulo {
        font-size: 2.2rem;
    }

    .equipos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .equipos-item {
        height: 340px;
    }

    .equipos-item img {
        height: 210px;
    }

    .overlay-info {
        height: 210px;
    }
}

/* ============================================
   RESPONSIVE — TABLET PEQUEÑA (≤ 850px)
============================================ */
@media (max-width: 850px) {

    .navbar {
        padding: 8px 10px;
    }

    .logo img {
        height: 55px;
    }

    .equipos-titulo {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .equipos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }

    .equipos-item {
        height: 320px;
    }

    .equipos-item img {
        height: 200px;
    }

    .overlay-info {
        height: 200px;
    }
}

/* ============================================
   RESPONSIVE — MÓVIL (≤ 600px)
============================================ */
@media (max-width: 600px) {

    .equipos-container {
        margin-top: 90px;
    }

    .equipos-titulo {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .equipos-grid {
        grid-template-columns: 1fr;
        width: 90%;
        gap: 22px;
    }

    .equipos-item {
        height: 300px;
    }

    .equipos-item img {
        height: 180px;
    }

    .overlay-info {
        height: 180px;
        font-size: 1rem;
    }
}


@media (max-width: 600px) {

    /* Tarjeta más angosta */
    .equipos-item.cassette {
        width: 75% !important;   /* más apachurrada */
        margin: 0 auto;          /* centrada */
        height: 300px !important;
    }

    /* Imagen ajustada al nuevo ancho */
    .equipos-item.cassette img {
        height: 170px !important;
        object-fit: contain;
    }

    /* Overlay igual que la imagen */
    .equipos-item.cassette .overlay-info {
        height: 170px !important;
    }
}



/* ============================================
   RESPONSIVE — EXTRA SMALL (≤ 400px)
============================================ */
@media (max-width: 400px) {

    .equipos-titulo {
        font-size: 1.6rem;
    }

    .equipos-item {
        height: 280px;
    }

    .equipos-item img {
        height: 160px;
    }

    .overlay-info {
        height: 160px;
        font-size: 0.9rem;
    }
}

/* ============================================
   RESPONSIVE — MENÚ HAMBURGUESA (≤ 850px)
============================================ */
@media (max-width: 850px) {

    /* Oculta el menú normal */
    .menu {
        display: none;
    }

    /* Muestra el botón hamburguesa */
    .hamburger {
        display: flex;
    }

    /* Muestra el menú móvil cuando se activa */
    .menu-mobile.show {
        display: flex;
    }

    /* Ajuste del logo */
    .logo img {
        height: 55px;
    }
}

/* CORRECCIÓN DE DESBORDAMIENTO EN MÓVIL */
@media (max-width: 850px) {

    /* Evita que el grid se salga del ancho */
    .equipos-grid {
        width: 100%;
        margin: 0 auto;
        padding: 0 10px;
        box-sizing: border-box;
    }

    /* Asegura que nada rompa el ancho */
    * {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Evita que imágenes causen overflow */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Asegura que el menú móvil no se desplace */
    .menu-mobile {
        left: 0;
        right: 0;
        width: 100%;
    }
}

@media (max-width: 1024px) {
    .whatsapp-float {
        bottom: 30px;
        right: 18px;
        padding: 6px 10px;
        font-size: 1.1rem;
    }

    .whatsapp-float img {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 25px;
        right: 16px;
        padding: 5px 10px;
        font-size: 1rem;
        gap: 8px;
    }

    .whatsapp-float img {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 20px;
        right: 14px;
        padding: 4px 8px;
        font-size: 0.9rem;
        gap: 6px;
    }

    .whatsapp-float img {
        width: 28px;
        height: 28px;
    }
}
