/* ================================
RESET
================================ */

*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:Arial, Helvetica, sans-serif;
}

body{
background:#f4f6f9;
color:#333;
}

/* ================================
LAYOUT GENERAL
================================ */

.dashboard{
display:flex;
min-height:100vh;
}

/* ================================
SIDEBAR
================================ */

.sidebar{
width:240px;
background:#1f2937;
color:white;
padding:20px;
display:flex;
flex-direction:column;
}

.sidebar h2{
font-size:20px;
margin-bottom:25px;
text-align:center;
}

.sidebar a{
color:white;
text-decoration:none;
padding:12px;
margin-bottom:8px;
border-radius:6px;
transition:0.2s;
}

.sidebar a:hover{
background:#374151;
}

/* ================================
CONTENIDO
================================ */

.dashboard-content{
flex:1;
padding:30px;
}

.dashboard-content h1{
margin-bottom:10px;
}

.dashboard-content p{
margin-bottom:25px;
color:#666;
}

/* ================================
INDICADORES DASHBOARD
================================ */

.indicadores{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
gap:20px;
margin-top:20px;
}

.indicador{
background:white;
padding:25px;
border-radius:10px;
box-shadow:0 4px 12px rgba(0,0,0,0.05);
text-align:center;
}

.indicador h2{
font-size:32px;
color:#1f2937;
}

.indicador p{
margin-top:5px;
color:#666;
}

/* ================================
BOTONES
================================ */

.btn{
display:inline-block;
padding:10px 16px;
border-radius:6px;
text-decoration:none;
font-size:14px;
border:none;
cursor:pointer;
}

.btn-primary{
background:#2563eb;
color:white;
}

.btn-success{
background:#16a34a;
color:white;
}

.btn-danger{
background:#dc2626;
color:white;
}

.btn:hover{
opacity:0.9;
}

/* ================================
FORMULARIOS
================================ */

.form-group{
margin-bottom:15px;
}

.form-group label{
display:block;
margin-bottom:6px;
font-weight:600;
}

.form-group input,
.form-group textarea,
.form-group select{
width:100%;
padding:10px;
border:1px solid #ccc;
border-radius:6px;
font-size:14px;
}

textarea{
resize:vertical;
}

/* ================================
ALERTAS
================================ */

.alert{
padding:12px;
border-radius:6px;
margin-bottom:15px;
}

.alert-error{
background:#fee2e2;
color:#991b1b;
}

.alert-success{
background:#dcfce7;
color:#166534;
}

/* ================================
TABLAS
================================ */

.table-container{
width:100%;
overflow-x:auto;
}

table{
width:100%;
border-collapse:collapse;
background:white;
border-radius:8px;
overflow:hidden;
}

thead{
background:#1f2937;
color:white;
}

th,td{
padding:12px;
text-align:left;
border-bottom:1px solid #eee;
font-size:14px;
}

tbody tr:hover{
background:#f9fafb;
}

td img{
max-width:80px;
border-radius:6px;
}

.badge-destacado{
background:#f59e0b;
color:white;
padding:3px 8px;
border-radius:6px;
font-size:12px;
margin-left:5px;
}

/* ================================
LOGIN
================================ */

.login-container{
display:flex;
justify-content:center;
align-items:center;
height:100vh;
background:#f4f6f9;
}

.login-box{
background:white;
padding:40px;
border-radius:10px;
box-shadow:0 8px 20px rgba(0,0,0,0.1);
width:100%;
max-width:380px;
}

.login-box h2{
text-align:center;
margin-bottom:20px;
}

/* ================================
RESPONSIVE TABLET
================================ */

@media (max-width:1024px){

.dashboard-content{
padding:20px;
}

}

/* ================================
RESPONSIVE MOVIL
================================ */

@media (max-width:768px){

.dashboard{
flex-direction:column;
}

/* sidebar horizontal */

.sidebar{
width:100%;
flex-direction:row;
flex-wrap:wrap;
justify-content:center;
padding:10px;
}

.sidebar h2{
display:none;
}

.sidebar a{
margin:4px;
padding:10px 12px;
font-size:14px;
}

/* contenido */

.dashboard-content{
padding:15px;
}

/* indicadores */

.indicadores{
grid-template-columns:1fr 1fr;
}

/* ================================
TABLAS RESPONSIVE MOVIL
================================ */

.table-container{
width:100%;
overflow-x:auto;
}

table{
min-width:700px;
}

}

/* =================================
NAVBAR LANDING PAGE
================================= */

.navbar{
width:100%;
background:#1f2937;
color:white;
position:sticky;
top:0;
z-index:1000;
}

.nav-container{
max-width:1200px;
margin:auto;
display:flex;
align-items:center;
justify-content:space-between;
padding:12px 20px;
}

.logo img{
height:40px;
}

.menu{
display:flex;
gap:20px;
}

.menu a{
color:white;
text-decoration:none;
font-weight:500;
}

.menu a:hover{
opacity:.8;
}

/* =================================
HERO
================================= */

.hero{
background:#334155;
color:white;
padding:80px 20px;
text-align:center;
}

.hero h1{
font-size:36px;
margin-bottom:10px;
}

.hero p{
max-width:600px;
margin:auto;
margin-bottom:20px;
}

/* =================================
SECCIONES
================================= */

.section{
padding:60px 20px;
max-width:1200px;
margin:auto;
}

.section h2{
margin-bottom:30px;
font-size:28px;
}

/* =================================
GRID PRODUCTOS Y EVENTOS
================================= */

.product-grid,
.event-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:25px;
}

/* =================================
PRODUCT CARDS
================================= */

.product-card{
background:white;
border-radius:10px;
overflow:hidden;
box-shadow:0 4px 10px rgba(0,0,0,0.1);
padding:15px;
text-align:center;
transition:0.2s;
}

.product-card:hover{
transform:translateY(-5px);
}

.product-card img{
width:100%;
height:180px;
object-fit:cover;
border-radius:6px;
}

.product-card h3{
margin:10px 0 5px;
}

.product-card p{
font-size:14px;
color:#555;
}

/* =================================
PRECIOS DESCUENTO
================================= */

.precio-normal{
text-decoration:line-through;
color:#999;
font-size:14px;
margin-right:6px;
}

.precio-descuento{
color:#dc2626;
font-size:20px;
font-weight:bold;
}

.badge-descuento{
background:#dc2626;
color:white;
padding:3px 8px;
font-size:12px;
border-radius:6px;
margin-left:6px;
}

/* =================================
EVENT CARDS
================================= */

.event-card{
background:white;
border-radius:10px;
overflow:hidden;
box-shadow:0 4px 10px rgba(0,0,0,0.1);
padding:15px;
}

.event-card img{
width:100%;
height:180px;
object-fit:cover;
border-radius:6px;
}

.event-card h3{
margin:10px 0 5px;
}

/* =================================
RESPONSIVE LANDING
================================= */

@media(max-width:768px){

.menu{
display:none;
}

.hero h1{
font-size:28px;
}

.section{
padding:40px 15px;
}

}

/* ================================
SUCURSALES
================================ */

.sucursales-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
gap:25px;
margin-top:35px;
}

.sucursal-card{
background:white;
border-radius:12px;
overflow:hidden;
box-shadow:0 6px 18px rgba(0,0,0,0.08);
transition:.25s;
display:flex;
flex-direction:column;
}

.sucursal-card:hover{
transform:translateY(-6px);
box-shadow:0 10px 25px rgba(0,0,0,0.12);
}

.sucursal-info{
padding:20px;
}

.sucursal-card h3{
font-size:20px;
margin-bottom:10px;
color:#1f2937;
}

.sucursal-direccion{
font-size:14px;
color:#555;
margin-bottom:12px;
line-height:1.4;
}

.sucursal-contacto{
display:flex;
gap:10px;
flex-wrap:wrap;
margin-top:10px;
}

.btn-phone{
background:#374151;
color:white;
padding:8px 14px;
border-radius:6px;
text-decoration:none;
font-size:14px;
}

.btn-whatsapp{
background:#16a34a;
color:white;
padding:8px 14px;
border-radius:6px;
text-decoration:none;
font-size:14px;
}

.btn-phone:hover{
background:#1f2937;
}

.btn-whatsapp:hover{
background:#15803d;
}

.sucursal-card iframe{
width:100%;
height:240px;
border:0;
}

/* titulo contacto */

.contacto-header{
max-width:700px;
margin-bottom:25px;
}

.sucursal-contacto a i{
margin-right:6px;
font-size:15px;
}