:root{
    --primary:#4b1409;
    --primary-dark:#3a0603;
    --secondary:#f6f1e7;
    --accent:#a55b22;
    --text:#4a2c16;
    --white:#ffffff;
    /* Nuevos colores azules para contraste */
    --blue-primary:#215567;
    --blue-dark:#1e40af;
    --blue-light:#dbeafe;
    --blue-medium:#3b82f6;
    --blue-hover:#1d4ed8;
}

*{
    box-sizing:border-box;
    margin:0;
    padding:0;
    font-family:'Poppins', sans-serif;
}

body{
    background:var(--secondary);
    color:var(--text);
    display:flex;
    min-height:100vh;
}

/* ================= SIDEBAR ================= */
.sidebar{
    width:280px;
    background:linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    color:var(--white);
    display:flex;
    flex-direction:column;
    position:fixed;
    height:100vh;
    overflow-y:auto;
    box-shadow:4px 0 20px rgba(0,0,0,.15);
    z-index:1001;
    transition:transform 0.3s ease-in-out;
    left:0;
    top:0;
}

.sidebar .logo{
    padding:32px 24px;
    text-align:center;
    background:rgba(0,0,0,.2);
    border-bottom:2px solid rgba(255,255,255,.1);
    position:relative;
    overflow:hidden;
}

.sidebar .logo::before{
    content:'';
    position:absolute;
    top:0;
    left:0;
    right:0;
    bottom:0;
    background:linear-gradient(135deg, rgba(33,85,103,.3) 0%, transparent 100%);
    pointer-events:none;
}

.sidebar .logo h2{
    font-size:22px;
    font-weight:700;
    letter-spacing:1px;
    position:relative;
    z-index:1;
    text-shadow:0 2px 8px rgba(0,0,0,.3);
}

.sidebar .logo img{
    transition:all .3s ease;
    filter:drop-shadow(0 2px 8px rgba(0,0,0,.3));
}

.sidebar .logo:hover img{
    transform:scale(1.05);
    filter:drop-shadow(0 4px 12px rgba(255,255,255,.3));
}

.menu{
    flex:1;
    padding:16px 0;
}

.menu a{
    display:flex;
    align-items:center;
    gap:14px;
    padding:16px 28px;
    color:rgba(255,255,255,.9);
    text-decoration:none;
    font-weight:500;
    font-size:15px;
    transition:all .3s cubic-bezier(0.4, 0, 0.2, 1);
    position:relative;
    margin:4px 12px;
    border-radius:12px;
}

.menu a i{
    font-size:18px;
    width:24px;
    text-align:center;
    transition:all .3s ease;
}

.menu a:hover{
    background:rgba(255,255,255,.12);
    transform:translateX(8px);
    color:var(--white);
    box-shadow:0 4px 12px rgba(0,0,0,.2);
}

.menu a:hover i{
    transform:scale(1.15);
    color:var(--blue-light);
}

.menu a.active{
    background:linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-dark) 100%);
    color:var(--white);
    box-shadow:0 4px 16px rgba(33,85,103,.4);
    transform:translateX(8px);
    border-left:4px solid var(--blue-light);
}

.menu a.active::before{
    content:'';
    position:absolute;
    left:0;
    top:50%;
    transform:translateY(-50%);
    width:4px;
    height:60%;
    background:var(--blue-light);
    border-radius:0 4px 4px 0;
}

.menu a.active i{
    color:var(--blue-light);
    transform:scale(1.1);
}

.logout{
    padding:20px;
    border-top:2px solid rgba(255,255,255,.1);
    background:rgba(0,0,0,.1);
}

.logout a,
.logout button{
    display:flex;
    align-items:center;
    gap:12px;
    color:rgba(255,255,255,.9);
    text-decoration:none;
    font-weight:500;
    font-size:15px;
    padding:12px 16px;
    border-radius:10px;
    transition:all .3s ease;
    width:100%;
    background:none;
    border:none;
    cursor:pointer;
    font-family:inherit;
}

.logout a:hover,
.logout button:hover{
    background:rgba(255,255,255,.1);
    color:var(--white);
    transform:translateX(4px);
}

.logout a i,
.logout button i{
    font-size:18px;
}

/* ================= MAIN ================= */
.main{
    flex:1;
    padding:32px 40px;
    margin-left:280px;
    width:calc(100% - 280px);
    min-height:100vh;
    background:linear-gradient(135deg, #f6f1e7 0%, #faf8f3 100%);
}

/* ================= TOPBAR ================= */
.topbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:32px;
    padding:20px 28px;
    background:#fff;
    border-radius:16px;
    box-shadow:0 2px 12px rgba(0,0,0,.08);
    border:1px solid rgba(0,0,0,.05);
}

.breadcrumb{
    font-weight:600;
    font-size:18px;
    color:var(--primary);
    display:flex;
    align-items:center;
    gap:8px;
}

.breadcrumb::before{
    content:'';
    width:4px;
    height:24px;
    background:linear-gradient(180deg, var(--blue-primary) 0%, var(--blue-dark) 100%);
    border-radius:2px;
}

.breadcrumb a{
    color:var(--blue-primary);
    text-decoration:none;
    transition:all .2s ease;
    font-weight:500;
}

.breadcrumb a:hover{
    color:var(--blue-dark);
    text-decoration:underline;
}

.admin-box{
    background:linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-dark) 100%);
    color:#fff;
    padding:12px 20px;
    border-radius:12px;
    display:flex;
    align-items:center;
    gap:10px;
    font-weight:500;
    font-size:14px;
    box-shadow:0 4px 12px rgba(33,85,103,.3);
    transition:all .3s ease;
}

.admin-box:hover{
    transform:translateY(-2px);
    box-shadow:0 6px 16px rgba(33,85,103,.4);
}

.admin-box i{
    font-size:18px;
}

/* ================= INTRO ================= */
.intro{
    text-align:center;
    margin-bottom:40px;
}

.intro h1{
    color:var(--primary);
    font-size:36px;
    margin-bottom:15px;
    font-weight:700;
    line-height:1.3;
    background:linear-gradient(135deg, var(--primary) 0%, var(--blue-primary) 100%);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    background-clip:text;
}

.intro p{
    max-width:720px;
    margin:0 auto 20px;
    font-size:15px;
    line-height:1.7;
}

/* ================= CAROUSEL ================= */
.carousel{
    position:relative;
    max-width:1200px;
    width:100%;
    height:600px;
    margin:0 auto;
    overflow:hidden;
    border-radius:14px;
    box-shadow:0 8px 20px rgba(0,0,0,.15);
}

.slides{
    display:flex;
    height:100%;
    transition:transform .5s ease;
}

.slides img,
.slides .slide-item{
    width:100%;
    height:100%;
    object-fit:cover;
    flex-shrink:0;
}

.slides .slide-item{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
}

/* Estilos para model-viewer */
model-viewer{
    width:100%;
    height:100%;
    background:transparent;
}

/* Indicador de interacción 3D */
.slide-item > div[style*="position:absolute"]{
    z-index:5;
    animation:fadeInOut 3s ease-in-out infinite;
}

@keyframes fadeInOut{
    0%,100%{opacity:0.7;}
    50%{opacity:1;}
}

.carousel button{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    background:rgba(255,255,255,.95);
    border:none;
    width:48px;
    height:48px;
    border-radius:50%;
    cursor:pointer;
    z-index:10;
    transition:all .3s ease;
    box-shadow:0 4px 12px rgba(0,0,0,.15);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:20px;
    color:var(--blue-primary);
}

.carousel button:hover{
    background:var(--blue-primary);
    color:#fff;
    transform:translateY(-50%) scale(1.1);
    box-shadow:0 6px 16px rgba(37,99,235,.4);
}

.carousel .prev{left:15px;}
.carousel .next{right:15px;}

/* Responsive para carrusel */
@media (max-width:768px){
    .carousel{
        max-width:100%;
        height:400px;
    }
}

@media (max-width:480px){
    .carousel{
        height:300px;
    }
}

/* ================= REALIDAD AUMENTADA (QR SLIDER) ================= */
.ar-button{
    position:absolute;
    bottom:20px;
    left:50%;
    transform:translateX(-50%);
    background:linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-dark) 100%);
    color:#fff;
    border:none;
    padding:10px 22px;
    border-radius:999px;
    font-size:14px;
    font-weight:600;
    cursor:pointer;
    display:inline-flex;
    align-items:center;
    gap:8px;
    box-shadow:0 4px 14px rgba(15,23,42,.4);
    transition:all .25s ease;
    z-index:6;
}

.ar-button i{
    font-size:18px;
}

.ar-button:hover{
    transform:translateX(-50%) translateY(-2px);
    box-shadow:0 6px 18px rgba(37,99,235,.45);
}

.ar-button-3d{
    bottom:70px;
}

@media (max-width:480px){
    .ar-button{
        bottom:16px;
        padding:9px 18px;
        font-size:13px;
    }
}

/* Modal AR */
.ar-modal{
    position:fixed;
    inset:0;
    display:none;
    align-items:center;
    justify-content:center;
    z-index:999;
}

.ar-modal.is-visible{
    display:flex;
}

.ar-modal-backdrop{
    position:absolute;
    inset:0;
    background:rgba(15,23,42,.55);
    backdrop-filter:blur(4px);
}

.ar-modal-content{
    position:relative;
    z-index:1;
    background:#fff;
    border-radius:18px;
    padding:24px 24px 20px;
    max-width:420px;
    width:90%;
    box-shadow:0 20px 50px rgba(15,23,42,.4);
    animation:arModalIn .25s ease-out;
}

.ar-modal-header{
    display:flex;
    gap:14px;
    align-items:center;
    margin-bottom:18px;
}

.ar-modal-icon{
    width:46px;
    height:46px;
    border-radius:16px;
    background:linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-dark) 100%);
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    box-shadow:0 6px 16px rgba(37,99,235,.4);
}

.ar-modal-icon i{
    font-size:22px;
}

.ar-modal-header h3{
    margin:0 0 4px 0;
    font-size:18px;
    color:var(--primary);
}

.ar-modal-header p{
    margin:0;
    font-size:13px;
    color:#64748b;
}

.ar-modal-body{
    text-align:center;
    margin-bottom:14px;
}

.ar-modal-body img{
    max-width:260px;
    width:100%;
    border-radius:12px;
    box-shadow:0 6px 18px rgba(15,23,42,.35);
}

.ar-modal-footer{
    font-size:12px;
    color:#94a3b8;
    display:flex;
    align-items:center;
    gap:6px;
}

.ar-modal-footer i{
    font-size:14px;
}

.ar-modal-close{
    position:absolute;
    top:10px;
    right:10px;
    width:32px;
    height:32px;
    border-radius:999px;
    border:none;
    background:rgba(148,163,184,.16);
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    color:#64748b;
    transition:all .2s ease;
}

.ar-modal-close:hover{
    background:rgba(148,163,184,.28);
    color:#0f172a;
}

.ar-modal-close i{
    font-size:16px;
}

@keyframes arModalIn{
    from{
        opacity:0;
        transform:translateY(10px) scale(.96);
    }
    to{
        opacity:1;
        transform:translateY(0) scale(1);
    }
}

/* ================= WORKS ================= */
.works h2{
    text-align:center;
    color:var(--primary);
    margin:40px 0 30px;
    font-size:32px;
    font-weight:700;
    position:relative;
    padding-bottom:15px;
}

.works h2::after{
    content:'';
    position:absolute;
    bottom:0;
    left:50%;
    transform:translateX(-50%);
    width:80px;
    height:4px;
    background:linear-gradient(90deg, var(--primary), var(--blue-primary));
    border-radius:2px;
}

.cards{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:25px;
    max-width:1200px;
    margin:0 auto;
    width:100%;
}

@media (max-width:1024px){
    .cards{
        grid-template-columns:repeat(2,1fr);
        max-width:800px;
    }
}

@media (max-width:768px){
    .cards{
        grid-template-columns:1fr;
        max-width:100%;
    }
}

/* ================= TABLES ================= */
.table-container{
    background:#fff;
    border-radius:16px;
    overflow:hidden;
    box-shadow:0 4px 20px rgba(0,0,0,.08);
    border:1px solid rgba(0,0,0,.05);
}

.table-modern{
    width:100%;
    border-collapse:separate;
    border-spacing:0;
    background:#fff;
}

.table-modern thead{
    background:linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-dark) 100%);
}

.table-modern thead th{
    padding:18px 20px;
    text-align:left;
    color:#fff;
    font-weight:600;
    font-size:14px;
    letter-spacing:0.5px;
    text-transform:uppercase;
    border-bottom:2px solid rgba(255,255,255,.2);
}

.table-modern thead th:first-child{
    border-top-left-radius:16px;
}

.table-modern thead th:last-child{
    border-top-right-radius:16px;
}

.table-modern tbody tr{
    transition:all .3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom:1px solid #f0f0f0;
}

.table-modern tbody tr:hover{
    background:var(--blue-light);
    transform:scale(1.01);
    box-shadow:0 4px 12px rgba(33,85,103,.15);
}

.table-modern tbody tr:last-child{
    border-bottom:none;
}

.table-modern tbody td{
    padding:18px 20px;
    color:#4a2a00;
    font-size:14px;
    vertical-align:middle;
}

.table-modern tbody td:first-child{
    font-weight:500;
}

.card{
    background:#fff;
    border-radius:16px;
    overflow:hidden;
    box-shadow:0 4px 20px rgba(0,0,0,.1);
    transition:all .4s cubic-bezier(0.4, 0, 0.2, 1);
    border:1px solid rgba(33,85,103,.08);
    position:relative;
    width:100%;
    max-width:100%;
    display:flex;
    flex-direction:column;
}

.card::before{
    content:'';
    position:absolute;
    top:0;
    left:0;
    right:0;
    height:4px;
    background:linear-gradient(90deg, var(--blue-primary) 0%, var(--blue-dark) 100%);
    opacity:0;
    transition:opacity .3s ease;
}

.card:hover{
    transform:translateY(-8px) scale(1.02);
    box-shadow:0 12px 32px rgba(33,85,103,.2);
    border-color:var(--blue-primary);
}

.card:hover::before{
    opacity:1;
}

.card img{
    width:100%;
    height:280px;
    object-fit:cover;
    transition:transform .4s ease;
    flex-shrink:0;
}

.card:hover img{
    transform:scale(1.1);
}

/* Model-viewer en cards */
.card model-viewer{
    width:100%;
    height:280px;
    background:transparent;
    border-radius:0;
    flex-shrink:0;
}

.card:hover model-viewer{
    transform:scale(1.05);
    transition:transform .4s ease;
}

.card-body{
    padding:24px;
    flex:1;
    display:flex;
    flex-direction:column;
}

.card-body h3{
    font-size:20px;
    margin-bottom:10px;
    font-weight:700;
    color:#2d1810;
    line-height:1.3;
}

.card-body p{
    font-size:14px;
    color:#64748b;
    line-height:1.6;
    margin-bottom:16px;
}

.card-body a{
    color:var(--blue-primary);
    text-decoration:none;
    font-weight:600;
    transition:all .3s ease;
    display:inline-flex;
    align-items:center;
    gap:8px;
    font-size:14px;
    padding:8px 16px;
    border-radius:8px;
    background:var(--blue-light);
}

.card-body a:hover{
    color:#fff;
    background:var(--blue-primary);
    gap:12px;
    transform:translateX(4px);
}

/* ================= WHATSAPP ================= */
.whatsapp{
    position:fixed;
    bottom:25px;
    right:25px;
    background:#25D366;
    color:#fff;
    padding:14px 22px;
    border-radius:30px;
    display:flex;
    align-items:center;
    gap:8px;
    text-decoration:none;
    font-weight:600;
    box-shadow:0 6px 18px rgba(0,0,0,.25);
    z-index:1000;
    transition:all .3s ease;
}

.whatsapp:hover{
    transform:translateY(-4px) scale(1.05);
    box-shadow:0 8px 24px rgba(37,211,102,.4);
    background:#20c55e;
}

/* ================= SECCIÓN ARTÍCULOS ================= */
.seccion-articulos {
    padding: 40px 60px;
    background-color: #f6f1e7;
}

.seccion-articulos .titulo-seccion {
    font-size: 22px;
    font-weight: 600;
    color: var(--blue-primary);
    margin-bottom: 30px;
    position:relative;
    padding-left:15px;
}

.seccion-articulos .titulo-seccion::before{
    content:'';
    position:absolute;
    left:0;
    top:50%;
    transform:translateY(-50%);
    width:4px;
    height:24px;
    background:var(--blue-primary);
    border-radius:2px;
}

.grid-articulos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card-articulo {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor:pointer;
}

.card-articulo:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.card-articulo .icono {
    font-size: 26px;
    color: var(--blue-primary);
    transition:all .3s ease;
}

.card-articulo:hover .icono {
    color: var(--blue-dark);
    transform:scale(1.1);
}

.card-articulo p {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: #000000;
}

/* ================= SECCIÓN SERVICIOS ================= */
.seccion-servicios {
    padding: 40px 60px 80px;
    background-color: #f6f1e7;
}

.seccion-servicios .titulo-servicios {
    font-size: 22px;
    font-weight: 600;
    color: var(--blue-primary);
    margin-bottom: 25px;
    position:relative;
    padding-left:15px;
}

.seccion-servicios .titulo-servicios::before{
    content:'';
    position:absolute;
    left:0;
    top:50%;
    transform:translateY(-50%);
    width:4px;
    height:24px;
    background:var(--blue-primary);
    border-radius:2px;
}

.contenedor-tabla-servicios {
    display: flex;
    justify-content: center;
}

.tabla-servicios {
    width: 100%;
    max-width: 900px;
    border-collapse: separate;
    border-spacing: 0;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
    position: relative;
}

.tabla-servicios thead th {
    background:linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-dark) 100%);
    color: #fff;
    text-align: left;
    padding: 14px 20px;
    font-weight: 600;
    font-size: 15px;
}

.tabla-servicios tbody td {
    padding: 14px 20px;
    font-size: 14.5px;
    color: #000000;
    border-bottom: 1px solid #f0d7bf;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tabla-servicios tbody td:last-child {
    color: var(--blue-primary);
    font-weight: 600;
    font-size:15px;
}

/* Animación de expansión para filas de servicios */
.tabla-servicios tbody tr {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    position: relative;
}

.tabla-servicios tbody tr:hover {
    background-color: var(--blue-light);
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(33, 85, 103, 0.25);
    z-index: 10;
    border-left:4px solid var(--blue-primary);
}

.tabla-servicios tbody tr:hover td {
    padding: 16px 22px;
    font-size: 15px;
}

.tabla-servicios tbody tr:last-child td {
    border-bottom: none;
}

/* ================= SECCIÓN PRECIOS ================= */
.seccion-precios {
    background-color: #f6f1e7;
    padding-bottom: 80px;
}

.header-precios {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 60px;
    border-bottom: 1px solid #e6d4bf;
}

.header-precios h1 {
    margin: 0;
    font-size: 26px;
    font-weight: 600;
    color: var(--primary);
    background:linear-gradient(135deg, var(--primary) 0%, var(--blue-primary) 100%);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    background-clip:text;
}

.header-precios .admin-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background:linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-dark) 100%);
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight:500;
    box-shadow:0 4px 12px rgba(33,85,103,.3);
    transition:all .3s ease;
}

.header-precios .admin-box:hover {
    transform:translateY(-2px);
    box-shadow:0 6px 16px rgba(33,85,103,.4);
}

.subtitulo-precios {
    font-size: 20px;
    color: var(--blue-primary);
    margin: 35px 60px 25px;
    font-weight:600;
    position:relative;
    padding-left:15px;
}

.subtitulo-precios::before{
    content:'';
    position:absolute;
    left:0;
    top:50%;
    transform:translateY(-50%);
    width:4px;
    height:24px;
    background:var(--blue-primary);
    border-radius:2px;
}

.contenedor-precios {
    display: flex;
    justify-content: center;
}

.card-precios {
    background-color: #ffffff;
    width: 100%;
    max-width: 900px;
    padding: 30px 35px;
    border-radius: 12px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
    border:2px solid var(--blue-light);
    border-top:4px solid var(--blue-primary);
}

.card-precios h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    color: #000000;
}

.lista-precios {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lista-precios li {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid #f0d7bf;
    font-size: 15px;
}

.lista-precios li:last-child {
    border-bottom: none;
}

.lista-precios span {
    color: #000000;
}

.lista-precios strong {
    color:var(--blue-primary);
    font-weight:600;
    font-size:16px;
}

.lista-precios strong {
    color: #c04a00;
    font-weight: 500;
}

.nota-precios {
    margin-top: 20px;
    font-size: 13.5px;
    color: #555555;
}

/* ================= SECCIÓN VENTAS ================= */
.ventas-section {
    background-color: #f7f3ea;
    min-height: 100vh;
    padding: 24px 32px;
    font-family: inherit;
}

.ventas-section .ventas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0d6c8;
    padding-bottom: 12px;
}

.ventas-section .ventas-header h1 {
    margin: 0;
    color: #9c4a00;
    font-size: 24px;
}

.ventas-section .ventas-admin-btn {
    background-color: #9c4a00;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ventas-section .ventas-content {
    margin-top: 24px;
}

.ventas-section .ventas-content h2 {
    color: #9c4a00;
    font-size: 18px;
    margin-bottom: 16px;
}

.ventas-section .ventas-table-wrapper {
    display: flex;
    justify-content: center;
}

.ventas-section .ventas-table {
    width: 100%;
    max-width: 900px;
    border-collapse: collapse;
    background-color: #e9ddc8;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.ventas-section .ventas-table thead {
    background-color: #e1d3bb;
}

.ventas-section .ventas-table th {
    text-align: left;
    padding: 14px 16px;
    color: #6b3a00;
    font-weight: 600;
    font-size: 14px;
}

.ventas-section .ventas-table td {
    padding: 14px 16px;
    font-size: 14px;
    color: #4a2a00;
    border-top: 1px solid #ecdcc4;
}

.ventas-section .ventas-table tbody tr:hover {
    background-color: #f1e6d4;
}

.ventas-section .ventas-table .monto {
    color: #c45a00;
    font-weight: 600;
}

/* ================= SECCIÓN CONTACTO ================= */
.contacto-section {
    background-color: #f7f3ea;
    min-height: 100vh;
    padding: 24px 32px;
}

.contacto-section .contacto-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0d6c8;
    padding-bottom: 12px;
}

.contacto-section .contacto-header h1 {
    margin: 0;
    color: var(--primary);
    font-size: 24px;
    background:linear-gradient(135deg, var(--primary) 0%, var(--blue-primary) 100%);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    background-clip:text;
    font-weight:700;
}

.contacto-section .contacto-admin-btn {
    background:var(--blue-primary);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition:all .3s ease;
    box-shadow:0 2px 8px rgba(33,85,103,.3);
}

.contacto-section .contacto-admin-btn:hover {
    background:var(--blue-dark);
    transform:translateY(-2px);
    box-shadow:0 4px 12px rgba(33,85,103,.4);
    font-size: 14px;
}

.contacto-section .contacto-content h2 {
    margin: 24px 0 16px;
    color: var(--blue-primary);
    font-weight:600;
    position:relative;
    padding-left:15px;
}

.contacto-section .contacto-content h2::before{
    content:'';
    position:absolute;
    left:0;
    top:50%;
    transform:translateY(-50%);
    width:4px;
    height:24px;
    background:var(--blue-primary);
    border-radius:2px;
}

.contacto-section .contacto-card {
    max-width: 520px;
    margin: auto;
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,.08);
    border:2px solid var(--blue-light);
    border-top:4px solid var(--blue-primary);
}

.contacto-section .contacto-info {
    margin-bottom: 20px;
}

.contacto-section .info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    color: #5a2f00;
    align-items:center;
}

.contacto-section .info-item .icon {
    font-size: 18px;
}

.contacto-section .contacto-form label {
    display: block;
    font-size: 14px;
    margin-bottom: 12px;
    color: #5a2f00;
}

/* ================= FORMS ================= */
.form-group{
    margin-bottom:24px;
}

.form-label{
    display:block;
    font-size:14px;
    font-weight:600;
    color:#2d1810;
    margin-bottom:10px;
    display:flex;
    align-items:center;
    gap:8px;
}

.form-label i{
    color:var(--blue-primary);
    font-size:16px;
}

.form-input,
.form-textarea,
.form-select{
    width:100%;
    padding:14px 16px;
    border:2px solid #e5e7eb;
    border-radius:12px;
    font-size:15px;
    color:#2d1810;
    background:#fff;
    transition:all .3s ease;
    font-family:inherit;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus{
    outline:none;
    border-color:var(--blue-primary);
    box-shadow:0 0 0 4px rgba(33,85,103,.1);
    background:#fafafa;
}

.form-input:hover,
.form-textarea:hover,
.form-select:hover{
    border-color:#cbd5e1;
}

.form-textarea{
    resize:vertical;
    min-height:120px;
    line-height:1.6;
}

.form-error{
    color:#dc2626;
    font-size:13px;
    margin-top:8px;
    display:flex;
    align-items:center;
    gap:6px;
    font-weight:500;
}

.form-error::before{
    content:'⚠';
    font-size:14px;
}

.form-help{
    color:#64748b;
    font-size:12px;
    margin-top:6px;
    display:flex;
    align-items:center;
    gap:4px;
}

/* ================= FOOTER ================= */
.site-footer{
    background:linear-gradient(180deg, #1a0f08 0%, #0d0704 100%);
    color:#fff;
    margin-top:100px;
    padding:0;
    position:relative;
    overflow:hidden;
}

.site-footer::before{
    content:'';
    position:absolute;
    top:0;
    left:0;
    right:0;
    height:4px;
    background:linear-gradient(90deg, var(--blue-primary) 0%, var(--blue-dark) 50%, var(--blue-primary) 100%);
    background-size:200% 100%;
    animation:gradientShift 3s ease infinite;
}

@keyframes gradientShift{
    0%,100%{background-position:0% 50%;}
    50%{background-position:100% 50%;}
}

.footer-content{
    max-width:1400px;
    margin:0 auto;
    padding:70px 50px 50px;
    display:grid;
    grid-template-columns:2fr 1.5fr 1.5fr 1.5fr;
    gap:50px;
    position:relative;
}

.footer-content::after{
    content:'';
    position:absolute;
    bottom:0;
    left:50px;
    right:50px;
    height:1px;
    background:linear-gradient(90deg, transparent 0%, rgba(255,255,255,.1) 50%, transparent 100%);
}

.footer-section{
    position:relative;
}

.footer-section:first-child{
    padding-right:30px;
}

.footer-section h3{
    font-size:24px;
    font-weight:700;
    margin:0 0 20px 0;
    background:linear-gradient(135deg, #fff 0%, var(--blue-light) 100%);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    background-clip:text;
    display:flex;
    align-items:center;
    gap:12px;
}

.footer-section h3 i{
    color:var(--blue-primary);
    -webkit-text-fill-color:var(--blue-primary);
    font-size:28px;
}

.footer-section h4{
    font-size:18px;
    font-weight:600;
    margin:0 0 24px 0;
    color:#fff;
    position:relative;
    padding-bottom:12px;
}

.footer-section h4::after{
    content:'';
    position:absolute;
    bottom:0;
    left:0;
    width:50px;
    height:3px;
    background:linear-gradient(90deg, var(--blue-primary) 0%, transparent 100%);
    border-radius:2px;
}

.footer-section p{
    color:rgba(255,255,255,.8);
    font-size:15px;
    line-height:1.8;
    margin:0;
}

.footer-section ul{
    list-style:none;
    padding:0;
    margin:0;
}

.footer-section ul li{
    margin-bottom:14px;
}

.footer-section ul li a{
    color:rgba(255,255,255,.7);
    text-decoration:none;
    font-size:15px;
    transition:all .3s ease;
    display:flex;
    align-items:center;
    gap:10px;
    padding:8px 0;
    position:relative;
}

.footer-section ul li a::before{
    content:'';
    position:absolute;
    left:0;
    bottom:4px;
    width:0;
    height:2px;
    background:var(--blue-primary);
    transition:width .3s ease;
}

.footer-section ul li a:hover{
    color:#fff;
    transform:translateX(8px);
}

.footer-section ul li a:hover::before{
    width:30px;
}

.footer-section ul li a i{
    font-size:12px;
    color:var(--blue-primary);
    transition:all .3s ease;
}

.footer-section ul li a:hover i{
    transform:scale(1.2);
}

.footer-contact-item{
    display:flex;
    align-items:flex-start;
    gap:14px;
    margin-bottom:20px;
    padding:16px;
    background:rgba(255,255,255,.03);
    border-radius:10px;
    border:1px solid rgba(255,255,255,.05);
    transition:all .3s ease;
}

.footer-contact-item:hover{
    background:rgba(255,255,255,.06);
    border-color:rgba(33,85,103,.3);
    transform:translateX(4px);
}

.footer-contact-item i{
    width:40px;
    height:40px;
    background:linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-dark) 100%);
    border-radius:10px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:18px;
    color:#fff;
    flex-shrink:0;
    box-shadow:0 4px 12px rgba(33,85,103,.3);
}

.footer-contact-item div{
    flex:1;
}

.footer-contact-item strong{
    display:block;
    color:#fff;
    font-size:14px;
    font-weight:600;
    margin-bottom:4px;
}

.footer-contact-item span,
.footer-contact-item p{
    color:rgba(255,255,255,.7);
    font-size:14px;
    line-height:1.5;
    margin:0;
}

.social-links{
    display:flex;
    gap:14px;
    flex-wrap:wrap;
    align-items:center;
    justify-content:flex-start;
}

.social-link{
    width:52px;
    height:52px;
    border-radius:14px;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    font-size:22px;
    transition:all .4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:0 6px 16px rgba(0,0,0,.25);
    position:relative;
    overflow:hidden;
}

.social-link::before{
    content:'';
    position:absolute;
    top:50%;
    left:50%;
    width:0;
    height:0;
    border-radius:50%;
    background:rgba(255,255,255,.2);
    transform:translate(-50%,-50%);
    transition:width .6s ease,height .6s ease;
}

.social-link:hover::before{
    width:100%;
    height:100%;
}

.social-link i{
    position:relative;
    z-index:1;
}

.social-link.facebook{
    background:linear-gradient(135deg, #1877f2 0%, #0d5fcc 100%);
    color:#fff;
}

.social-link.instagram{
    background:linear-gradient(135deg, #e4405f 0%, #c13584 50%, #833ab4 100%);
    color:#fff;
}

.social-link.whatsapp{
    background:linear-gradient(135deg, #25D366 0%, #20c55e 100%);
    color:#fff;
}

.social-link:hover{
    transform:translateY(-6px) rotate(5deg) scale(1.1);
    box-shadow:0 12px 28px rgba(0,0,0,.4);
}

.footer-bottom{
    background:rgba(0,0,0,.3);
    padding:28px 50px;
    text-align:center;
    border-top:1px solid rgba(255,255,255,.08);
}

.footer-bottom p{
    margin:0;
    color:rgba(255,255,255,.6);
    font-size:14px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
}

.footer-bottom p::before,
.footer-bottom p::after{
    content:'';
    flex:1;
    height:1px;
    background:linear-gradient(90deg, transparent 0%, rgba(255,255,255,.1) 50%, transparent 100%);
}

@media (max-width:1024px){
    .footer-content{
        grid-template-columns:repeat(2,1fr);
        gap:40px;
        padding:60px 40px 40px;
    }
}

@media (max-width:768px){
    .footer-content{
        grid-template-columns:1fr;
        gap:35px;
        padding:50px 30px 30px;
    }
    
    .footer-section:first-child{
        padding-right:0;
    }
}

/* ================= CHARTS ================= */
.chart-container{
    position:relative;
    height:300px;
    width:100%;
}

@media (max-width:1024px){
    .chart-container{
        height:250px;
    }
}

@media (max-width:768px){
    .chart-container{
        height:200px;
    }
}

/* ================= GUEST LAYOUT (LOGIN) ================= */
body:has(.guest-layout-container){
    display:block !important;
    background:linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f6f1e7 100%) !important;
    background-attachment:fixed !important;
}

.guest-layout-container{
    min-height:100vh;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    padding:20px;
    position:relative;
    overflow:hidden;
    width:100%;
    margin:0 auto;
}

.guest-layout-card{
    background:#fff;
    border-radius:24px;
    box-shadow:0 20px 60px rgba(0,0,0,.12), 0 8px 24px rgba(33,85,103,.08);
    width:100%;
    max-width:480px;
    padding:48px;
    display:flex;
    flex-direction:column;
    align-items:center;
    position:relative;
    z-index:1;
    border:1px solid rgba(255,255,255,.8);
    backdrop-filter:blur(10px);
    margin:0 auto;
}

.contacto-section .contacto-form input,
.contacto-section .contacto-form textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #e3d6c3;
    margin-top: 6px;
    font-size: 14px;
}

.contacto-section .contacto-form textarea {
    resize: none;
    height: 110px;
}

.contacto-section .contacto-form button,
button[type="submit"],
.btn-primary,
.btn-blue {
    width: 100%;
    margin-top: 16px;
    background:var(--blue-primary);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-size: 15px;
    font-weight:600;
    cursor: pointer;
    transition:all .3s ease;
    box-shadow:0 4px 12px rgba(33,85,103,.3);
}

.contacto-section .contacto-form button:hover,
button[type="submit"]:hover,
.btn-primary:hover,
.btn-blue:hover {
    background:var(--blue-dark);
    transform:translateY(-2px);
    box-shadow:0 6px 16px rgba(33,85,103,.4);
}

.contacto-section .whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    background-color: #25d366;
    color: #fff;
    padding: 12px 18px;
    border-radius: 30px;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,.2);
}

/* ================= SECCIÓN UBICACIÓN ================= */
.ubicacion-section {
    background-color: #f7f3ea;
    padding: 32px;
}

.ubicacion-section h2 {
    color: var(--blue-primary);
    margin-bottom: 16px;
    font-weight:600;
    position:relative;
    padding-left:15px;
}

.ubicacion-section h2::before{
    content:'';
    position:absolute;
    left:0;
    top:50%;
    transform:translateY(-50%);
    width:4px;
    height:24px;
    background:var(--blue-primary);
    border-radius:2px;
}

.ubicacion-section .ubicacion-card {
    max-width: 900px;
    margin: auto;
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,.08);
    border:2px solid var(--blue-light);
    border-top:4px solid var(--blue-primary);
}

.ubicacion-section .ubicacion-info {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    color: #5a2f00;
}

.ubicacion-section .ubicacion-mapa {
    background-color: #e9ddc8;
    height: 260px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b3a00;
    font-size: 14px;
}

/* ================= MOBILE MENU BUTTON ================= */
.mobile-menu-btn{
    display:none;
    position:fixed;
    top:20px;
    left:20px;
    z-index:1002;
    background:linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-dark) 100%);
    color:#fff;
    border:none;
    width:48px;
    height:48px;
    border-radius:12px;
    cursor:pointer;
    box-shadow:0 4px 12px rgba(33,85,103,.3);
    transition:all .3s ease;
    align-items:center;
    justify-content:center;
    font-size:24px;
}

.mobile-menu-btn:hover{
    transform:scale(1.05);
    box-shadow:0 6px 16px rgba(33,85,103,.4);
}

.mobile-menu-btn:active{
    transform:scale(0.95);
}

/* ================= SIDEBAR OVERLAY ================= */
.sidebar-overlay{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.5);
    z-index:1000;
    opacity:0;
    transition:opacity 0.3s ease-in-out;
    pointer-events:none;
}

.sidebar-overlay.overlay-active{
    display:block;
    opacity:1;
    pointer-events:all;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px){
    .mobile-menu-btn{
        display:flex;
    }
    
    .sidebar{
        transform:translateX(-100%);
    }
    
    .sidebar.sidebar-open{
        transform:translateX(0);
    }
    
    body.sidebar-open{
        overflow:hidden;
    }

    .main{
        padding:20px;
        margin-left:0;
        width:100%;
        padding-top:80px;
    }
    
    .topbar{
        padding:16px 20px;
        margin-bottom:24px;
        flex-wrap:wrap;
        gap:12px;
    }
    
    .breadcrumb{
        font-size:16px;
    }
    
    .admin-box{
        font-size:13px;
        padding:10px 16px;
    }

    .carousel{
        max-width:100%;
        height:240px;
    }

    .grid-articulos {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) and (min-width: 769px){
    .sidebar{
        width:240px;
    }
    
    .main{
        margin-left:240px;
        width:calc(100% - 240px);
        padding:28px 32px;
    }
}

@media (max-width: 576px){
    .grid-articulos {
        grid-template-columns: 1fr;
    }

    .seccion-articulos,
    .seccion-servicios {
        padding: 30px 20px;
    }
    
    .intro h1{
        font-size:28px;
    }
    
    .intro p{
        font-size:14px;
    }
}

/* ================= RESPONSIVE TABLES ================= */
@media (max-width: 768px){
    .table-container{
        overflow-x:auto;
        -webkit-overflow-scrolling:touch;
    }
    
    .table-modern{
        min-width:600px;
    }
    
    .table-modern thead th{
        font-size:12px;
        padding:10px 8px;
    }
    
    .table-modern tbody td{
        font-size:13px;
        padding:12px 8px;
    }
}

/* ================= RESPONSIVE FORMS ================= */
@media (max-width: 768px){
    .form-input,
    .form-select,
    .form-textarea{
        font-size:16px; /* Previene zoom en iOS */
        padding:12px 16px;
    }
    
    .form-label{
        font-size:14px;
        margin-bottom:8px;
    }
}

/* ================= RESPONSIVE CARDS AND GRIDS ================= */
@media (max-width: 1024px){
    .grid-articulos{
        grid-template-columns:repeat(2, 1fr);
        gap:20px;
    }
}

@media (max-width: 768px){
    .grid-articulos{
        grid-template-columns:repeat(2, 1fr);
        gap:16px;
    }
}

@media (max-width: 480px){
    .grid-articulos{
        grid-template-columns:1fr;
        gap:16px;
    }
}

/* ================= RESPONSIVE WHATSAPP BUTTON ================= */
@media (max-width: 768px){
    .whatsapp{
        width:56px;
        height:56px;
        font-size:24px;
        bottom:20px;
        right:20px;
    }
    
    .whatsapp span{
        display:none;
    }
}

/* ================= RESPONSIVE MODAL ================= */
@media (max-width: 768px){
    .ar-modal-content{
        width:90%;
        max-width:400px;
        padding:24px;
    }
    
    .ar-modal-header h3{
        font-size:20px;
    }
    
    .ar-modal-body img{
        max-width:200px;
    }
}

/* ================= RESPONSIVE GRID IMPROVEMENTS ================= */
@media (max-width: 1024px){
    /* Ajustar grids con minmax para tablets */
    [style*="grid-template-columns:repeat(auto-fit,minmax(300px,1fr))"]{
        grid-template-columns:repeat(auto-fit,minmax(250px,1fr)) !important;
    }
    
    [style*="grid-template-columns:repeat(auto-fit,minmax(500px,1fr))"]{
        grid-template-columns:1fr !important;
    }
}

@media (max-width: 768px){
    /* Ajustar grids para móviles */
    [style*="grid-template-columns:repeat(auto-fit,minmax(300px,1fr))"]{
        grid-template-columns:1fr !important;
    }
    
    [style*="grid-template-columns:repeat(auto-fit,minmax(250px,1fr))"]{
        grid-template-columns:1fr !important;
    }
    
    [style*="grid-template-columns:repeat(auto-fill,minmax(280px,1fr))"]{
        grid-template-columns:1fr !important;
    }
    
    /* Mejorar padding en cards y contenedores */
    [style*="padding:32px"]{
        padding:20px !important;
    }
    
    [style*="padding:24px"]{
        padding:16px !important;
    }
}

/* ================= RESPONSIVE STATS CARDS ================= */
@media (max-width: 768px){
    [style*="display:grid"][style*="grid-template-columns:repeat(auto-fit,minmax(250px,1fr))"] > div{
        padding:20px !important;
    }
}

/* ================= RESPONSIVE TOPBAR ================= */
@media (max-width: 480px){
    .topbar{
        flex-direction:column;
        align-items:flex-start;
        gap:12px;
    }
    
    .admin-box{
        width:100%;
        justify-content:center;
    }
}

/* ================= SOCIAL BUTTONS ================= */
.social-buttons-container{
    margin:40px 0;
    display:flex;
    justify-content:center;
}

.social-buttons{
    display:flex;
    gap:16px;
    flex-wrap:wrap;
    justify-content:center;
}

.social-button{
    display:flex;
    align-items:center;
    gap:10px;
    padding:14px 24px;
    border-radius:12px;
    text-decoration:none;
    font-weight:600;
    font-size:15px;
    transition:all .3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:0 4px 12px rgba(0,0,0,.15);
    color:#fff;
}

.social-button i{
    font-size:20px;
}

.social-button.facebook{
    background:linear-gradient(135deg, #1877f2 0%, #0d5fcc 100%);
}

.social-button.instagram{
    background:linear-gradient(135deg, #e4405f 0%, #c13584 50%, #833ab4 100%);
}

.social-button.whatsapp{
    background:linear-gradient(135deg, #25D366 0%, #20c55e 100%);
}

.social-button:hover{
    transform:translateY(-4px) scale(1.05);
    box-shadow:0 8px 24px rgba(0,0,0,.25);
}

.social-button:hover.facebook{
    background:linear-gradient(135deg, #0d5fcc 0%, #0a4db8 100%);
}

.social-button:hover.instagram{
    background:linear-gradient(135deg, #c13584 0%, #a02a6f 50%, #6a2a8f 100%);
}

.social-button:hover.whatsapp{
    background:linear-gradient(135deg, #20c55e 0%, #16a34a 100%);
}

