/* ============================================
   HEADER - LA ANONIMA
   Header responsive profesional
   ============================================ */

.header {
    position: sticky;
    top: 0;
    z-index: 999;
    background-color: #24397B;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    width: 100%;
    box-sizing: border-box;
}

/* Container del header */
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    max-width: 1400px;
    margin: 0 auto;
    gap: 20px;
    min-height: 60px;
}

/* Logo principal (izquierda) */
.logo-container {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    min-width: 100px;
}

.logo-container a {
    display: flex;
    align-items: center;
    line-height: 0;
}

.logo-container img {
    display: block;
    height: auto;
    min-height: 40px;
    max-height: 70px;
    width: auto;
    min-width: 100px;
    max-width: 200px;
    object-fit: contain;
}

/* Logo aniversario (centro) */
.logo-anniversary-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 150px;
}

.logo-anniversary-wrapper a {
    display: flex;
    align-items: center;
    line-height: 0;
}

.logo-anniversary {
    display: block;
    height: auto;
    min-height: 35px;
    max-height: 55px;
    width: auto;
    min-width: 150px;
    max-width: 300px;
    object-fit: contain;
}

/* Contacto (derecha) */
.contact-header {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.contact-item a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.contact-item a:hover {
    opacity: 0.8;
}

/* Iconos */
.ico-phone,
.ico-whatsapp {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.ico-phone {
    background-image: url(../svg/ico-phone.svg);
}

.ico-whatsapp {
    background-image: url(../svg/whatsapp.svg);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet y menores - Ocultar contacto */
@media screen and (max-width: 1024px) {
    .contact-header {
        display: none;
    }

    .logo-anniversary-wrapper {
        min-width: 120px;
    }

    .logo-anniversary {
        min-height: 30px;
        max-height: 45px;
        min-width: 120px;
        max-width: 240px;
    }
}

/* Mobile landscape y menores */
@media screen and (max-width: 768px) {
    .header-container {
        padding: 10px 15px;
        gap: 15px;
        min-height: 50px;
    }

    .logo-container {
        min-width: 80px;
    }

    .logo-container img {
        min-height: 35px;
        max-height: 55px;
        min-width: 80px;
        max-width: 150px;
    }

    .logo-anniversary-wrapper {
        min-width: 100px;
    }

    .logo-anniversary {
        min-height: 28px;
        max-height: 40px;
        min-width: 100px;
        max-width: 200px;
    }
}

/* Mobile portrait */
@media screen and (max-width: 480px) {
    .header-container {
        padding: 8px 12px;
        gap: 10px;
    }

    .logo-container {
        min-width: 70px;
    }

    .logo-container img {
        min-height: 30px;
        max-height: 50px;
        min-width: 70px;
        max-width: 130px;
    }

    .logo-anniversary-wrapper {
        min-width: 80px;
    }

    .logo-anniversary {
        min-height: 25px;
        max-height: 35px;
        min-width: 80px;
        max-width: 170px;
    }
}

/* Mobile pequeño - Ocultar logo aniversario */
@media screen and (max-width: 380px) {
    .logo-anniversary-wrapper {
        display: none;
    }

    .header-container {
        justify-content: center;
    }

    .logo-container {
        min-width: 100px;
    }

    .logo-container img {
        min-height: 40px;
        max-height: 60px;
        min-width: 100px;
        max-width: 220px;
    }
}

/* ============================================
   PRINT
   ============================================ */
@media print {
    .header {
        position: relative;
        box-shadow: none;
    }
}
