* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #222;
    padding: 16px;
}

h1 {
    text-align: center;
    margin-bottom: 4px;
}

body > p {
    text-align: center;
    margin-bottom: 24px;
    color: #555;
}

#catalogo {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.tarjeta-tenis {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    text-align: center;
    padding-bottom: 12px;
}

.tarjeta-tenis img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.tarjeta-tenis h3 {
    margin-top: 10px;
    font-size: 1.1rem;
}

.tarjeta-tenis p {
    margin: 4px 0;
    color: #555;
}

.tarjeta-tenis .precio {
    font-weight: bold;
    font-size: 1.2rem;
    color: #222;
}

.btn-whatsapp {
    display: inline-block;
    background-color: #25D366;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    margin-top: 8px;
    font-weight: bold;
}

.btn-whatsapp:hover {
    background-color: #1ebe5b;
}

.portada {
    background-color: #111;
    color: white;
    text-align: center;
    padding: 60px 20px;
    margin: -16px -16px 24px -16px;
}

.portada h1 {
    font-size: 2.2rem;
    color: #25D366;
    margin-bottom: 8px;
}

.portada p {
    color: #ccc;
    font-size: 1.1rem;
    margin-bottom: 0;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

.oculto {
    display: none !important;
}

.modal-contenido {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 90%;
}

.modal-contenido img {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 8px;
}

.cerrar-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 1001;
}


/* Estilo del menú el de Mujer, Hombre, Microempresa */
/* ===== MENÚ CON BOTONES OUTLINE ===== */
.nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 24px auto 32px auto;
    max-width: 700px;
    padding: 8px;
}

.nav-menu a {
    display: inline-block;
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 1rem;
    padding: 12px 34px;
    border-radius: 12px;
    background: transparent;
    border: 2px solid #1a1a1a;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 140px;
}

.nav-menu a:hover {
    background: #1a1a1a;
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.nav-menu a.activo {
    background: #1a1a1a;
    color: #fff;
}

.nav-menu a.activo:hover {
    background: #e63946;
    border-color: #e63946;
}

.acerca-de {
    background: white;
    max-width: 700px;
    margin: 0 auto;
    padding: 30px 24px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.acerca-de h2 {
    margin-bottom: 12px;
}

.acerca-de > p {
    color: #444;
    line-height: 1.6;
    margin-bottom: 20px;
}

.info-item {
    margin-bottom: 16px;
}

.info-item h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.info-item p {
    color: #555;
    margin: 2px 0;
}

.apartado-destacado {
    background: #f0f0f0;
    padding: 10px 15px;
    border-radius: 8px;
    margin: 20px 0 30px 0;
    text-align: center;
}

/*  Estes es el estilo del panel de Admin */
.pantalla-login {
    max-width: 350px;
    margin: 80px auto;
    background: white;
    padding: 30px 24px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    text-align: center;
}

.pantalla-login h2 {
    margin-bottom: 16px;
}

.pantalla-login input {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

.pantalla-login button {
    width: 100%;
    padding: 12px;
    background-color: #111;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

.pantalla-login button:hover {
    background-color: #333;
}

.error-clave {
    color: #dc2626;
    margin-top: 10px;
    font-size: 0.9rem;
}

.panel-admin {
    max-width: 700px;
    margin: 0 auto;
}

.panel-admin h1 {
    text-align: center;
    margin-bottom: 24px;
}

.panel-admin section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.panel-admin label {
    display: block;
    margin-top: 10px;
    margin-bottom: 4px;
    font-size: 0.9rem;
    color: #555;
}

.panel-admin input,
.panel-admin select {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

.panel-admin button[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: #25D366;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 10px;
}

.panel-admin button[type="submit"]:hover {
    background-color: #1ebe5b;
}

#lista-productos {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#lista-productos > div {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 6px;
}

#lista-productos img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
}

.btn-borrar-producto {
    margin-left: auto;
    background-color: #dc2626;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

.btn-borrar-producto:hover {
    background-color: #991b1b;
}