html, body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #fbf7ef;
}

/* NAV */

.menu-crealiza {
    background: #171410 !important;
    padding: 14px 0;
    border: none !important;
    box-shadow: 0 3px 12px rgba(0,0,0,.08);
}

    .menu-crealiza .nav-link {
        color: #f5ead7 !important;
        font-weight: 500;
        transition: .25s;
    }

        .menu-crealiza .nav-link:hover {
            color: #d8b36a !important;
        }

.btn-menu-presupuesto {
    background: #d8b36a;
    color: #171410;
    padding: 9px 22px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: .25s;
}

    .btn-menu-presupuesto:hover {
        background: #e7c888;
        color: #171410;
    }

/* GENERAL */

main {
    min-height: calc(100vh - 160px);
}

/* HERO */

.crealiza-hero {
    height: 62vh;
    max-width: 1320px;
    margin: 25px auto;
    display: grid;
    grid-template-columns: 38% 62%;
    background: #fbf7ef;
    overflow: hidden;
    border-radius: 12px;
}

/* IZQUIERDA */

.hero-left {
    padding: 18px 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 10;
}

.main-logo {
    width: 500px;
    max-width: 100%;
    margin-bottom: 8px;
    margin-left: -35px;
}

.hero-left h1 {
    margin: 0;
    margin-top: 4px;
    font-family: Georgia, serif;
    font-size: 44px;
    line-height: .95;
    color: #171410;
}

.hero-left span {
    color: #b88732;
}

.hero-left p {
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.45;
    color: #332b24;
    max-width: 350px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

    .hero-buttons a {
        text-decoration: none;
        padding: 11px 23px;
        border-radius: 10px;
        font-weight: 700;
        font-size: 14px;
        transition: .25s;
    }

        .hero-buttons a:hover {
            transform: translateY(-2px);
        }

.btn-dark {
    background: #171410;
    color: white;
}

.btn-light {
    border: 1px solid #b88732;
    color: #b88732;
    background: white;
}

/* DERECHA */

.hero-right {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

    /* FRANJA CURVA */

    .hero-right::before {
        content: "";
        position: absolute;
        left: -165px;
        top: -85px;
        width: 270px;
        height: calc(100% + 170px);
        background: #d8c6a7;
        border-radius: 0 100% 100% 0;
        z-index: 3;
    }

    .hero-right::after {
        content: "";
        position: absolute;
        left: -190px;
        top: -90px;
        width: 270px;
        height: calc(100% + 180px);
        background: #fbf7ef;
        border-radius: 0 100% 100% 0;
        z-index: 4;
    }

/* SLIDER */

.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease;
}

    .slide.active {
        opacity: 1;
    }

/* FOOTER */

.footer {
    position: relative !important;
    background: transparent;
    color: #7f7569 !important;
    text-align: center;
    font-size: 14px;
    border-top: none !important;
    margin-top: 0 !important;
}

/* PÁGINA TRABAJOS */

.trabajos-page {
    background: #0f0d0a;
    color: #f5ead7;
    min-height: 100vh;
    padding: 65px 35px 120px;
}

.trabajos-header {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 45px;
}

    .trabajos-header span {
        color: #d8b36a;
        font-weight: 700;
        letter-spacing: 2px;
    }

    .trabajos-header h1 {
        font-family: Georgia, serif;
        font-size: 52px;
        margin: 12px 0;
    }

        .trabajos-header h1 em {
            color: #d8b36a;
            font-style: normal;
        }

    .trabajos-header p {
        color: #d6cbb9;
        font-size: 18px;
    }

.trabajos-grid {
    max-width: 1500px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.trabajo-card {
    background: linear-gradient(180deg, #1a1713, #0f0d0a);
    border: 1px solid rgba(216, 179, 106, .28);
    border-radius: 14px;
    overflow: hidden;
    transition: .3s;
}

    .trabajo-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 40px rgba(0,0,0,.45);
        border-color: rgba(216, 179, 106, .7);
    }

    .trabajo-card img {
        width: 100%;
        height: 230px;
        padding: 18px;
        object-fit: contain;
        display: block;
        background: radial-gradient(circle, #2a2118, #120f0c);
    }

.trabajo-info {
    padding: 22px;
    min-height: 135px;
}

    .trabajo-info h3 {
        font-family: Georgia, serif;
        color: #d8b36a;
        font-size: 22px;
        margin-bottom: 12px;
    }

    .trabajo-info p {
        color: #e6dccb;
        font-size: 15px;
        line-height: 1.5;
    }

/* CTA TRABAJOS */

.trabajos-cta {
    max-width: 1000px;
    margin: 45px auto 0;
    padding: 25px 35px;
    border: 1px solid rgba(216, 179, 106, .35);
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .trabajos-cta h3 {
        font-family: Georgia, serif;
        margin: 0;
    }

    .trabajos-cta a {
        color: #171410;
        background: #d8b36a;
        padding: 12px 24px;
        border-radius: 30px;
        text-decoration: none;
        font-weight: 700;
    }

@media (max-width: 1100px) {
    .trabajos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    .trabajos-grid {
        grid-template-columns: 1fr;
    }

    .trabajos-header h1 {
        font-size: 38px;
    }
}
/* TIENDA */

.tienda-page {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 35px;
    max-width: 1350px;
    margin: 45px auto 80px;
    padding: 0 25px;
}

.tienda-sidebar {
    background: #fffaf0;
    border: 1px solid rgba(184,135,50,.25);
    border-radius: 16px;
    padding: 25px;
    height: fit-content;
}

    .tienda-sidebar h3 {
        font-size: 16px;
        margin-bottom: 18px;
        color: #171410;
        text-transform: uppercase;
    }

    .tienda-sidebar a {
        display: block;
        color: #4a3b2c;
        text-decoration: none;
        padding: 9px 0;
        border-bottom: 1px solid rgba(0,0,0,.06);
    }

        .tienda-sidebar a:hover {
            color: #b88732;
        }

.filtro-box {
    margin-top: 30px;
}

    .filtro-box label {
        display: block;
        margin-top: 12px;
        font-size: 14px;
    }

    .filtro-box input {
        width: 100%;
        padding: 9px;
        border: 1px solid #ddd;
        border-radius: 8px;
    }

    .filtro-box button {
        margin-top: 15px;
        width: 100%;
        border: none;
        padding: 10px;
        background: #b88732;
        color: white;
        border-radius: 8px;
        font-weight: 700;
    }

.oferta-box {
    margin-top: 25px;
    display: flex;
    justify-content: space-between;
}

.tienda-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

    .tienda-header h1 {
        font-family: Georgia, serif;
        font-size: 44px;
        margin: 0;
    }

    .tienda-header p {
        color: #6c5d4c;
    }

    .tienda-header select {
        padding: 10px 15px;
        border-radius: 8px;
        border: 1px solid #ddd;
    }

.productos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.producto-card {
    position: relative;
    background: white;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 18px;
    padding: 20px;
    transition: .3s;
}

    .producto-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 18px 35px rgba(0,0,0,.12);
    }

    .producto-card img {
        width: 100%;
        height: 230px;
        object-fit: contain;
        background: #f6f0e6;
        border-radius: 14px;
        padding: 18px;
    }

    .producto-card h3 {
        margin-top: 18px;
        font-size: 20px;
    }

.precio strong {
    font-size: 19px;
    color: #171410;
}

.precio span {
    margin-left: 8px;
    color: #999;
    text-decoration: line-through;
}

.badge-descuento {
    position: absolute;
    top: 18px;
    left: 18px;
    background: #171410;
    color: #d8b36a;
    padding: 6px 10px;
    border-radius: 8px;
    font-weight: 700;
    z-index: 2;
}

.btn-producto {
    display: inline-block;
    margin-top: 12px;
    background: #171410;
    color: white;
    padding: 10px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
}

    .btn-producto:hover {
        color: white;
        background: #b88732;
    }

@media (max-width: 1000px) {
    .tienda-page {
        grid-template-columns: 1fr;
    }

    .productos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    .productos-grid {
        grid-template-columns: 1fr;
    }

    .tienda-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}
/* ADMIN */

.admin-panel,
.admin-wrap,
.admin-form-wrap {
    max-width: 1200px;
    margin: 50px auto;
    padding: 30px;
}

    .admin-panel h1,
    .admin-wrap h1,
    .admin-form-wrap h1 {
        font-family: Georgia, serif;
        margin-bottom: 25px;
    }

.admin-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin: 35px 0;
}

.admin-card {
    display: block;
    padding: 28px;
    border-radius: 16px;
    background: #171410;
    color: #f5ead7;
    text-decoration: none;
    border: 1px solid rgba(216, 179, 106, .35);
}

    .admin-card:hover {
        color: #f5ead7;
        transform: translateY(-4px);
    }

    .admin-card h3 {
        color: #d8b36a;
    }

.admin-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.tabla-admin {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 14px;
    overflow: hidden;
}

    .tabla-admin th {
        background: #171410;
        color: #f5ead7;
        padding: 14px;
    }

    .tabla-admin td {
        padding: 14px;
        border-bottom: 1px solid #eee;
    }

    .tabla-admin a {
        color: #b88732;
        font-weight: 600;
        text-decoration: none;
    }

.admin-form-wrap form {
    max-width: 650px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-form-wrap input,
.admin-form-wrap textarea,
.admin-form-wrap select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
}

.check-line {
    display: flex;
    align-items: center;
    gap: 10px;
}
/* DETALLE PRODUCTO */

.detalle-producto {
    max-width: 1250px;
    margin: 55px auto 90px;
    padding: 0 25px;
    display: grid;
    grid-template-columns: 52% 48%;
    gap: 45px;
    align-items: start;
}

.detalle-img {
    background: #f6f0e6;
    border-radius: 22px;
    padding: 35px;
    text-align: center;
}

    .detalle-img img {
        max-width: 100%;
        max-height: 520px;
        object-fit: contain;
    }

.detalle-info {
    background: #fffaf0;
    border: 1px solid rgba(184,135,50,.25);
    border-radius: 22px;
    padding: 35px;
}

    .detalle-info h1 {
        font-family: Georgia, serif;
        font-size: 42px;
        margin-bottom: 10px;
    }

.detalle-categoria {
    color: #7f7569;
}

.detalle-precio strong {
    font-size: 30px;
}

.detalle-precio span {
    margin-left: 10px;
    color: #999;
    text-decoration: line-through;
}

.detalle-descripcion {
    margin: 25px 0;
    line-height: 1.6;
}

.detalle-label {
    display: block;
    margin: 20px 0 10px;
    font-weight: 700;
}

.opciones button {
    margin-right: 8px;
    margin-bottom: 8px;
    padding: 9px 15px;
    border-radius: 8px;
    border: 1px solid #d8b36a;
    background: white;
}

.colores button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #ccc;
    margin-right: 8px;
}

.cantidad-box {
    display: flex;
    width: 150px;
}

    .cantidad-box button,
    .cantidad-box input {
        width: 50px;
        padding: 10px;
        text-align: center;
    }

.btn-agregar-carrito {
    margin-top: 25px;
    width: 100%;
    border: none;
    background: #b88732;
    color: white;
    padding: 15px;
    border-radius: 12px;
    font-weight: 700;
}

@media (max-width: 900px) {
    .detalle-producto {
        grid-template-columns: 1fr;
    }
}
.cantidad-box input::-webkit-outer-spin-button,
.cantidad-box input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cantidad-box input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
    border-left: none;
    border-right: none;
    background: white;
    font-weight: 700;
}
.color-no-disponible {
    position: relative;
    opacity: .45;
    cursor: not-allowed;
}

    .color-no-disponible::after {
        content: "";
        position: absolute;
        width: 140%;
        height: 2px;
        background: #b00020;
        left: -20%;
        top: 50%;
        transform: rotate(-35deg);
    }
.color-picker-line {
    display: grid;
    grid-template-columns: 1fr 70px auto;
    gap: 10px;
    align-items: center;
}

    .color-picker-line input[type="color"] {
        height: 45px;
        padding: 4px;
    }

    .color-picker-line button {
        border: none;
        background: #171410;
        color: white;
        border-radius: 10px;
        padding: 12px 18px;
        font-weight: 700;
    }
.opciones button.active {
    background: #171410;
    color: white;
    border-color: #171410;
}

.colores button.active {
    outline: 3px solid #b88732;
    outline-offset: 3px;
}
.alert-carrito {
    max-width: 1250px;
    margin: 25px auto 0;
    background: #b88732;
    color: white;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 600;
}
.carrito-link {
    position: relative;
    font-size: 20px;
}

.carrito-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background: #b88732;
    color: white;
    font-size: 12px;
    padding: 3px 6px;
    border-radius: 50%;
    font-weight: 700;
}
.carrito-page {
    max-width: 1200px;
    margin: 55px auto 90px;
    padding: 0 25px;
}

.carrito-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

    .carrito-header h1 {
        font-family: Georgia, serif;
        font-size: 42px;
        margin: 0;
    }

    .carrito-header a {
        color: #b88732;
        text-decoration: none;
        font-weight: 700;
    }

.carrito-contenedor {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
    align-items: start;
}

.carrito-lista {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.carrito-item {
    display: grid;
    grid-template-columns: 130px 1fr 150px;
    gap: 20px;
    align-items: center;
    background: #fffaf0;
    border: 1px solid rgba(184,135,50,.22);
    border-radius: 18px;
    padding: 18px;
}

.carrito-img {
    background: #f1e6d4;
    border-radius: 14px;
    padding: 10px;
    text-align: center;
}

    .carrito-img img {
        width: 100%;
        height: 105px;
        object-fit: contain;
    }

.carrito-info h3 {
    margin: 0 0 10px;
    font-size: 20px;
}

.carrito-info p {
    margin: 4px 0;
    color: #5b5147;
}

.carrito-precio {
    text-align: right;
}

    .carrito-precio strong {
        display: block;
        font-size: 22px;
        margin-bottom: 12px;
    }

.btn-eliminar {
    color: #a32020;
    text-decoration: none;
    font-weight: 700;
}

.carrito-resumen {
    background: #171410;
    color: #f5ead7;
    border-radius: 18px;
    padding: 25px;
    position: sticky;
    top: 25px;
}

    .carrito-resumen h2 {
        font-family: Georgia, serif;
        color: #d8b36a;
        margin-bottom: 22px;
    }

.resumen-linea {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    border-top: 1px solid rgba(216,179,106,.3);
    border-bottom: 1px solid rgba(216,179,106,.3);
    padding: 18px 0;
    margin-bottom: 22px;
}

.btn-comprar {
    width: 100%;
    border: none;
    background: #d8b36a;
    color: #171410;
    padding: 14px;
    border-radius: 12px;
    font-weight: 800;
    margin-bottom: 12px;
}

.btn-vaciar {
    display: block;
    text-align: center;
    color: #f5ead7;
    border: 1px solid rgba(245,234,215,.35);
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
}

.carrito-vacio {
    background: #fffaf0;
    border-radius: 18px;
    padding: 40px;
    text-align: center;
}

@media (max-width: 900px) {
    .carrito-contenedor {
        grid-template-columns: 1fr;
    }

    .carrito-item {
        grid-template-columns: 100px 1fr;
    }

    .carrito-precio {
        grid-column: 1 / -1;
        text-align: left;
    }
}
.checkout-page {
    max-width: 700px;
    margin: 60px auto 90px;
    padding: 35px;
    background: #fffaf0;
    border-radius: 20px;
    border: 1px solid rgba(184,135,50,.22);
}

    .checkout-page h1 {
        font-family: Georgia, serif;
        margin-bottom: 10px;
    }

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
}

    .checkout-form input {
        padding: 12px;
        border: 1px solid #ddd;
        border-radius: 10px;
    }
/* PERSONALIZAR */

.personalizar-page {
    max-width: 1350px;
    margin: 55px auto 90px;
    padding: 0 25px;
}

.personalizar-header {
    text-align: center;
    margin-bottom: 40px;
}

    .personalizar-header span {
        color: #b88732;
        font-weight: 800;
        letter-spacing: 2px;
    }

    .personalizar-header h1 {
        font-family: Georgia, serif;
        font-size: 48px;
        margin: 8px 0;
    }

    .personalizar-header p {
        color: #6b5d4c;
        font-size: 18px;
    }

.personalizar-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 28px;
}

.personalizar-sidebar {
    background: #fffaf0;
    border: 1px solid rgba(184,135,50,.25);
    border-radius: 18px;
    padding: 24px;
    height: fit-content;
}

    .personalizar-sidebar h3 {
        font-size: 16px;
        text-transform: uppercase;
        margin-bottom: 18px;
    }

    .personalizar-sidebar a {
        display: block;
        padding: 10px 0;
        color: #4a3b2c;
        text-decoration: none;
        border-bottom: 1px solid rgba(0,0,0,.06);
    }

        .personalizar-sidebar a:hover,
        .personalizar-sidebar a.activo {
            color: #b88732;
            font-weight: 700;
        }

.personalizar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.personalizar-card {
    background: white;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 20px;
    overflow: hidden;
    transition: .3s;
}

    .personalizar-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 18px 35px rgba(0,0,0,.12);
    }

.personalizar-img {
    background: #f2eee8;
    padding: 18px;
    text-align: center;
}

    .personalizar-img img {
        width: 100%;
        height: 260px;
        object-fit: contain;
    }

.personalizar-info {
    padding: 22px;
}

    .personalizar-info span {
        color: #b88732;
        font-size: 14px;
        font-weight: 700;
    }

    .personalizar-info h3 {
        margin: 10px 0;
        font-size: 22px;
    }

    .personalizar-info p {
        color: #5f5146;
    }

.personalizar-vacio {
    grid-column: 1 / -1;
    background: #fffaf0;
    border-radius: 18px;
    padding: 45px;
    text-align: center;
}

@media (max-width: 1000px) {
    .personalizar-layout {
        grid-template-columns: 1fr;
    }

    .personalizar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    .personalizar-grid {
        grid-template-columns: 1fr;
    }
}
.admin-preview-layout {
    display: grid;
    grid-template-columns: 500px 1fr;
    gap: 40px;
    align-items: start;
}

.preview-panel {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.preview-canvas {
    width: 650px;
    height: 650px;
    background: #f3f3f3;
    border: 2px dashed #d8b36a;
    position: relative;
    overflow: hidden;
    margin-top: 20px;
}

    .preview-canvas img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

#printArea {
    position: absolute;
    border: 3px solid red;
    background: rgba(255,0,0,.12);
    pointer-events: none;
    box-sizing: border-box;
}

.preview-regla-x {
    height: 30px;
    background: repeating-linear-gradient( to right, #ddd 0px, #ddd 1px, white 1px, white 30px );
}

.preview-regla-y {
    width: 30px;
    height: 650px;
    margin-top: 20px;
    background: repeating-linear-gradient( to bottom, #ddd 0px, #ddd 1px, white 1px, white 30px );
}
.editor-page {
    max-width: 1350px;
    margin: 50px auto 90px;
    padding: 0 25px;
}

.editor-header {
    text-align: center;
    margin-bottom: 30px;
}

    .editor-header h1 {
        font-family: Georgia, serif;
    }

.editor-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
}

.editor-tools {
    background: #fffaf0;
    border: 1px solid rgba(184,135,50,.25);
    border-radius: 18px;
    padding: 22px;
    height: fit-content;
}

    .editor-tools button,
    .editor-tools input {
        width: 100%;
        margin-bottom: 12px;
    }

    .editor-tools button {
        background: #171410;
        color: white;
        border: none;
        padding: 11px;
        border-radius: 10px;
        font-weight: 700;
    }

.editor-canvas-wrap {
    background: white;
    border-radius: 20px;
    padding: 25px;
    text-align: center;
}

.editor-canvas {
    width: 700px;
    height: 700px;
    margin: auto;
    background: #eeeeee;
    position: relative;
    overflow: hidden;
    border: 1px solid #ddd;
}

    .editor-canvas #productoBase {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

#areaImprimible {
    position: absolute;
    border: 2px dashed #b88732;
    background: rgba(184,135,50,.08);
    z-index: 5;
}

#disenoCliente {
    position: absolute;
    display: none;
    z-index: 10;
    cursor: move;
    left: 0;
    top: 0;
}

.editor-ayuda {
    color: #7f7569;
    margin-top: 15px;
}

@media (max-width: 1000px) {
    .editor-layout {
        grid-template-columns: 1fr;
    }

    .editor-canvas {
        width: 100%;
        height: 520px;
    }
}
.detalle-diseno-box {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.grid-vistas-admin {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(320px,1fr));
    gap: 25px;
    margin-top: 25px;
}

.vista-admin-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

    .vista-admin-card img {
        width: 100%;
        border-radius: 14px;
        margin-top: 12px;
        border: 1px solid #ddd;
    }

.vista-medidas {
    margin-top: 12px;
    color: #666;
    font-size: 14px;
}
.contacto-page {
    max-width: 1300px;
    margin: auto;
    padding: 70px 30px;
}

.contacto-header {
    text-align: center;
    margin-bottom: 50px;
}

    .contacto-header h1 {
        font-size: 42px;
        margin-bottom: 10px;
    }

    .contacto-header p {
        color: #666;
        font-size: 18px;
    }

.contacto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(340px,1fr));
    gap: 30px;
}

.contacto-card {
    background: white;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 12px 35px rgba(0,0,0,.08);
}

    .contacto-card h2 {
        margin-bottom: 20px;
    }

    .contacto-card p {
        margin-bottom: 10px;
        color: #444;
    }

.contacto-redes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

    .contacto-redes a {
        padding: 8px 14px;
        border-radius: 999px;
        background: #f2f2f2;
        text-decoration: none;
        color: #222;
        font-weight: 600;
    }
.checkout-page {
    max-width: 1300px;
    margin: auto;
    padding: 70px 30px;
}

.checkout-header {
    text-align: center;
    margin-bottom: 45px;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.checkout-form-box,
.checkout-resumen {
    background: white;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 12px 35px rgba(0,0,0,.08);
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

    .checkout-form input,
    .checkout-form textarea {
        padding: 14px;
        border: 1px solid #ddd;
        border-radius: 12px;
        font-size: 15px;
    }

.checkout-item,
.checkout-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
}

.checkout-total {
    font-size: 22px;
}

.mensaje-error {
    background: #ffe7e7;
    color: #a50000;
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 20px;
}
.admin-table-wrap {
    margin-top: 20px;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

    .admin-table th {
        background: #171410;
        color: white;
        text-align: left;
        padding: 14px 16px;
    }

    .admin-table td {
        padding: 14px 16px;
        border-bottom: 1px solid #eee;
    }

    .admin-table tr:last-child td {
        border-bottom: none;
    }
.presupuesto-page {
    max-width: 1200px;
    margin: 60px auto 100px;
    padding: 0 25px;
}

.presupuesto-hero {
    text-align: center;
    margin-bottom: 70px;
    padding: 35px 20px 10px;
}

.presupuesto-logo-box {
    width: 300px;
    margin: 0 auto 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .presupuesto-logo-box img {
        width: 100%;
        max-width: 300px;
        height: auto;
        object-fit: contain;
        filter: drop-shadow(0 12px 25px rgba(0,0,0,.12));
    }

.presupuesto-hero h1 {
    font-family: Georgia, serif;
    font-size: 50px;
    margin: 10px 0;
    color: #111827;
}

.presupuesto-hero p {
    max-width: 680px;
    margin: auto;
    color: #6b6258;
    font-size: 18px;
    line-height: 1.6;
}

.presupuesto-steps {
    display: flex;
    justify-content: center;
    gap: 35px;
    margin-bottom: 35px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #999;
    font-weight: 700;
}

    .step.active {
        color: #b88732;
    }

.presupuesto-box {
    background: linear-gradient(145deg, #f5f5f3, #eceae6);
    border: 1px solid rgba(216,179,106,.22);
    border-radius: 32px;
    padding: 48px;
    box-shadow: 0 25px 70px rgba(0,0,0,.10), inset 0 1px 0 rgba(255,255,255,.7);
}

    .presupuesto-box h2 {
        text-align: center;
        margin-bottom: 35px;
    }

.presupuesto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 18px;
}

.presupuesto-card {
    background: #ffffff;
    border: 1px solid rgba(216,179,106,.28);
    border-radius: 22px;
    padding: 30px 15px;
    text-align: center;
    cursor: pointer;
    transition: .25s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,.04);
    position: relative;
    overflow: hidden;
}

    .presupuesto-card::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at top right, rgba(216,179,106,.20), transparent 45%);
        opacity: 0;
        transition: .25s ease;
    }

    .presupuesto-card div {
        font-size: 40px;
        margin-bottom: 14px;
        position: relative;
        z-index: 1;
    }

    .presupuesto-card strong {
        position: relative;
        z-index: 1;
    }

    .presupuesto-card:hover,
    .presupuesto-card.active {
        border-color: #d8b36a;
        box-shadow: 0 18px 35px rgba(184,135,50,.22);
        transform: translateY(-5px);
    }

        .presupuesto-card:hover::before,
        .presupuesto-card.active::before {
            opacity: 1;
        }

.presupuesto-form {
    margin-top: 45px;
    border-top: 1px solid rgba(0,0,0,.08);
    padding: 35px;
    background: rgba(255,255,255,.72);
    border-radius: 24px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

    .presupuesto-form label {
        display: block;
        font-weight: 700;
        margin: 16px 0 7px;
    }

    .presupuesto-form input,
    .presupuesto-form select,
    .presupuesto-form textarea {
        width: 100%;
        padding: 14px;
        border: 1px solid #ddd;
        border-radius: 12px;
        font-size: 15px;
        background: #fff;
    }

.form-doble {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

@media(max-width:800px) {
    .presupuesto-hero h1 {
        font-size: 38px;
    }

    .presupuesto-logo-box {
        width: 230px;
    }

    .presupuesto-steps {
        flex-wrap: wrap;
        gap: 16px;
    }

    .presupuesto-box {
        padding: 28px;
    }

    .form-doble {
        grid-template-columns: 1fr;
    }
}
.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    max-width: 1500px;
    margin: 0 auto;
    padding: 60px 30px;
}

.admin-sidebar {
    background: #171410;
    color: white;
    border-radius: 24px;
    padding: 25px;
    min-height: 650px;
    position: sticky;
    top: 110px;
}

    .admin-sidebar h2 {
        color: #d8b36a;
        margin-bottom: 25px;
        font-size: 24px;
    }

    .admin-sidebar a {
        display: block;
        color: white;
        text-decoration: none;
        padding: 12px 14px;
        border-radius: 12px;
        margin-bottom: 6px;
        font-weight: 600;
    }

        .admin-sidebar a:hover {
            background: rgba(216,179,106,.18);
            color: #d8b36a;
        }

.admin-sidebar-logout {
    color: #ff6b6b !important;
}

.admin-content {
    min-width: 0;
}

@media(max-width: 900px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: relative;
        top: 0;
        min-height: auto;
    }
}
.admin-alert-ok {
    background: #ecfdf3;
    color: #147a3b;
    border: 1px solid #b8efcc;
    padding: 16px 20px;
    border-radius: 16px;
    font-weight: 700;
    margin-bottom: 22px;
    box-shadow: 0 10px 25px rgba(20,122,59,.08);
}

.envio-card {
    background: linear-gradient(145deg, #ffffff, #f6f1e8);
    border: 1px solid rgba(216,179,106,.35);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 18px 45px rgba(0,0,0,.08);
    margin-bottom: 28px;
}

.envio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 18px;
    margin-bottom: 20px;
}

.envio-card label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
}

.envio-card input,
.envio-card select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd1bb;
    border-radius: 14px;
    background: white;
    font-size: 15px;
}

    .envio-card input:focus,
    .envio-card select:focus {
        outline: none;
        border-color: #d8b36a;
        box-shadow: 0 0 0 4px rgba(216,179,106,.18);
    }

.envio-fecha {
    background: #fff8e8;
    border: 1px solid #ead29b;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 20px;
    color: #6f551a;
}

@media(max-width:900px) {
    .envio-grid {
        grid-template-columns: 1fr;
    }
}
.cliente-link {
    color: #d8b36a !important;
    font-weight: 700;
}

    .cliente-link:hover {
        color: #fff !important;
    }
/* =========================
   VERSION MOVIL CREALIZA
   ========================= */

@media (max-width: 768px) {

    html, body {
        overflow-x: hidden;
    }

    .menu-crealiza {
        padding: 10px 0;
    }

        .menu-crealiza .container {
            justify-content: space-between !important;
            padding: 0 15px;
        }

    .navbar-toggler {
        background: #d8b36a;
        border-radius: 8px;
    }

    .navbar-nav {
        padding: 18px 0;
        text-align: center;
        gap: 10px !important;
    }

    .btn-menu-presupuesto {
        display: inline-block;
        margin-top: 8px;
    }

    /* HERO MOVIL */

    .crealiza-hero {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        max-width: 100% !important;
        margin: 15px 12px 40px !important;
        border-radius: 18px;
        overflow: hidden;
        background: #fbf7ef;
    }

    .hero-left {
        order: 1;
        padding: 35px 24px 28px !important;
        text-align: center;
        align-items: center;
        justify-content: center;
    }

    .main-logo {
        width: 210px !important;
        max-width: 85% !important;
        margin: 0 auto 22px !important;
    }

    .hero-left h1 {
        font-size: 38px !important;
        line-height: 1.05 !important;
        margin: 0 !important;
    }

    .hero-left p {
        font-size: 16px !important;
        line-height: 1.55 !important;
        max-width: 310px !important;
        margin: 18px auto 0 !important;
    }

    .hero-buttons {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 24px;
    }

        .hero-buttons a {
            width: 100%;
            text-align: center;
            padding: 13px 20px !important;
            font-size: 15px !important;
        }

    .hero-right {
        order: 2;
        height: 320px !important;
        width: 100% !important;
        border-radius: 0 0 18px 18px !important;
    }

        .hero-right::before,
        .hero-right::after {
            display: none !important;
        }

    .slide {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* TRABAJOS */

    .trabajos-page {
        padding: 45px 18px 80px !important;
    }

    .trabajos-header h1 {
        font-size: 36px !important;
        line-height: 1.1;
    }

    .trabajos-header p {
        font-size: 16px !important;
    }

    .trabajos-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .trabajo-card img {
        height: auto !important;
        min-height: 230px;
    }

    /* TIENDA */

    .tienda-page {
        grid-template-columns: 1fr !important;
        padding: 0 16px !important;
        margin: 35px auto 70px !important;
    }

    .tienda-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

        .tienda-header h1 {
            font-size: 36px !important;
        }

    .productos-grid {
        grid-template-columns: 1fr !important;
    }

    .producto-card img {
        height: 220px !important;
    }

    /* PRODUCTO / CARRITO / CHECKOUT */

    .detalle-producto,
    .carrito-contenedor,
    .checkout-layout,
    .personalizar-layout,
    .admin-layout,
    .editor-layout,
    .envio-grid {
        grid-template-columns: 1fr !important;
    }

    .detalle-producto {
        padding: 0 16px !important;
        margin: 35px auto 70px !important;
    }

    .detalle-info {
        padding: 25px !important;
    }

        .detalle-info h1 {
            font-size: 34px !important;
        }

    .carrito-page,
    .checkout-page,
    .personalizar-page,
    .contacto-page,
    .presupuesto-page {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .carrito-item {
        grid-template-columns: 95px 1fr !important;
        gap: 14px !important;
    }

    .carrito-precio {
        grid-column: 1 / -1;
        text-align: left;
    }

    .checkout-form-box,
    .checkout-resumen,
    .contacto-card {
        padding: 22px !important;
    }

    /* PRESUPUESTO */

    .presupuesto-hero {
        margin-bottom: 35px !important;
        padding: 25px 10px 5px !important;
    }

    .presupuesto-logo-box {
        width: 220px !important;
    }

    .presupuesto-hero h1 {
        font-size: 36px !important;
    }

    .presupuesto-hero p {
        font-size: 16px !important;
    }

    .presupuesto-steps {
        flex-wrap: wrap;
        gap: 14px !important;
    }

    .presupuesto-box {
        padding: 24px 18px !important;
        border-radius: 22px !important;
    }

    .presupuesto-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 14px !important;
    }

    .presupuesto-card {
        padding: 22px 10px !important;
    }

        .presupuesto-card div {
            font-size: 32px !important;
        }

    .form-doble {
        grid-template-columns: 1fr !important;
    }

    /* ADMIN */

    .admin-layout {
        padding: 30px 15px !important;
    }

    .admin-sidebar {
        position: relative !important;
        top: 0 !important;
        min-height: auto !important;
    }

    .admin-cards {
        grid-template-columns: 1fr !important;
    }

    .admin-table-wrap {
        overflow-x: auto;
    }

    .admin-table {
        min-width: 700px;
    }

    /* FOOTER */

    .footer {
        font-size: 12px !important;
        padding: 15px 10px !important;
    }
}
/* FIX FINAL MOBILE HOME + MENU */

@media (max-width: 768px) {

    .menu-crealiza .container {
        justify-content: flex-end !important;
    }

    .navbar-toggler {
        display: block !important;
        margin-left: auto;
        border: 1px solid #d8b36a !important;
        background: #d8b36a !important;
        padding: 8px 10px;
    }

    .navbar-toggler-icon {
        filter: invert(1);
    }

    .navbar-collapse.show {
        display: block !important;
    }

    .navbar-nav {
        width: 100%;
        padding: 18px 0;
        text-align: center;
    }

    .crealiza-hero {
        display: block !important;
        height: auto !important;
        max-width: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
        overflow: visible !important;
    }

    .hero-left {
        padding: 35px 22px 25px !important;
        text-align: center !important;
        align-items: center !important;
    }

    .main-logo {
        width: 170px !important;
        margin: 0 auto 20px !important;
    }

    .hero-left h1 {
        font-size: 34px !important;
        line-height: 1.1 !important;
    }

    .hero-left p {
        font-size: 15px !important;
        max-width: 310px !important;
        margin: 16px auto 0 !important;
    }

    .hero-buttons {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 280px;
        margin: 22px auto 0 !important;
    }

        .hero-buttons a {
            display: block !important;
            width: 100% !important;
        }

    .hero-right {
        height: 280px !important;
        width: 100% !important;
        border-radius: 0 !important;
        margin-top: 10px;
    }

        .hero-right::before,
        .hero-right::after {
            display: none !important;
        }

    .slide {
        object-fit: cover !important;
    }
}