/*
====================================
ESTILOS GENERALES Y TIPOGRAFÍA (Poppins)
====================================
*/
body {
    font-family: 'Poppins', sans-serif; 
    margin: 0;
    padding: 0;
    background: #f5f5f5;
    color: #333;
}

/* Títulos: Color de Marca y Peso */
h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700; 
    color: #004D40; /* Verde oscuro elegante */
}

/*
====================================
HEADER Y NAVEGACIÓN
====================================
*/
header {
    background: #00796B; /* Verde Esmeralda/Profundo de Marca */
    color: white;
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    align-items: center;
}
  
header .logo {
    font-size: 1.6em;
    font-weight: bold;
}
  
nav a {
    color: white;
    margin-left: 15px;
    text-decoration: none;
    transition: color 0.3s;
}
  
nav a:hover {
    color: #E0F2F1; 
    text-decoration: none;
}

/*
====================================
ESTILOS DE SECCIÓN
====================================
*/
.hero, .catalogo, .ofertas, .admin, footer {
    padding: 30px 20px; 
}

.hero {
    background: #E0F2F1; 
    color: #004D40; 
    text-align: center;
}

.oculto {
    display: none;
}

.catalogo .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 25px; 
}

/*
====================================
BUSCADOR MEJORADO
====================================
*/
#buscador-productos, #buscador-reparaciones {
    width: 100%; 
    max-width: 500px;
    padding: 12px 15px; 
    margin: 25px auto; 
    display: block; 
    border: 2px solid #00796B; 
    border-radius: 8px;
    font-size: 1em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); 
    transition: border-color 0.3s, box-shadow 0.3s;
}

#buscador-productos:focus, #buscador-reparaciones:focus {
    border-color: #004D40; 
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 121, 107, 0.25); 
}

#buscador-productos::placeholder, #buscador-reparaciones::placeholder {
    color: #90A4AE;
}

/*
====================================
TARJETAS DE PRODUCTO (ESTILO PREMIUM)
====================================
*/
.catalogo .grid .producto {
    background: white;
    padding: 20px;
    border-radius: 10px; 
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15); 
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #EEEEEE; 
}

.catalogo .grid .producto:hover {
    transform: translateY(-8px); 
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); 
}
  
.catalogo .grid img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 15px;
}

.producto .precio {
    font-size: 1.5em; 
    font-weight: 700; 
    color: #00796B; 
    margin: 10px 0 15px 0;
}

/*
====================================
BOTONES Y ADMIN
====================================
*/
.btn {
    display: inline-block;
    padding: 10px 15px;
    margin: 5px;
    background: #00796B; 
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}
  
.btn:hover {
    background: #004D40; 
}

.whatsapp.btn {
    background: #25D366; 
}

.whatsapp.btn:hover {
    background: #128C7E;
}

/* Estilos del Panel Admin */
.admin {
    background: #E0F2F1;
    border: 1px solid #b2dfdb;
    border-radius: 8px;
    margin: 20px;
    padding: 15px;
}
  
.producto-admin {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #ccc;
}

/* Estilo para el Footer */
footer {
    background: #004D40; 
    color: white;
    text-align: center;
    padding: 40px 20px;
    margin-top: 20px;
}