/*
------------------------------------------------
Archivo: estilos.css
Proyecto: Detalles Aurvin
Descripción:
Base visual general del sitio público.
------------------------------------------------
*/

:root {
    --color-fondo: #e6dcc6;
    --color-superficie: #ffffff;
    --color-superficie-suave: #f7f3ec;
    --color-texto: #2c2233;
    --color-texto-secundario: #5f5668;
    --color-primario: #7a35b6;
    --color-primario-hover: #63299a;
    --color-acento: #d6852f;
    --color-borde: #e1d7e7;
    --color-sombra: 0 10px 24px rgba(0, 0, 0, 0.08);
    --radio: 16px;
    --radio-sm: 10px;
    --ancho-sitio: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--color-fondo);
    color: var(--color-texto);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--color-primario);
    text-decoration: none;
}

a:hover {
    color: var(--color-primario-hover);
}

h1, h2, h3, h4 {
    color: var(--color-texto);
    line-height: 1.2;
    margin-bottom: 14px;
}

h2 {
    font-size: 2rem;
    margin-bottom: 22px;
}

p {
    margin-bottom: 14px;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

section {
    margin-bottom: 28px;
}

/* =========================
   TOPBAR Y HEADER
========================= */

.topbar-aurvin {
    background: linear-gradient(90deg, #5a2d42, #6b344c);
    color: #fff;
    text-align: center;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.topbar-aurvin p {
    margin: 0;
}

.header-principal {
    background: #f5f3f1;
    background-image:
        linear-gradient(rgba(255,255,255,0.84), rgba(255,255,255,0.84)),
        url("/img/fondo-madera.jpg");
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid #d8cfc3;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.header-superior {
    width: 94%;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 170px;
    display: grid;
    grid-template-columns: 320px 1fr 300px;
    align-items: center;
    gap: 24px;
    padding: 18px 0;
}

.header-logo-box {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.marca-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo-aurvin {
    width: 200px;
    height: 200px;
    object-fit: contain;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.logo-aurvin:hover {
    transform: scale(1.04);
}

.header-centro {
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 46px;
    flex-wrap: wrap;
}

.header-menu a {
    text-decoration: none;
    font-size: 21px;
    font-weight: 800;
    color: #1f1f1f;
    transition: 0.2s ease;
    position: relative;
}

.header-menu a:hover {
    color: #742f98;
}

.header-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: #b56a3c;
    transition: width 0.2s ease;
}

.header-menu a:hover::after {
    width: 100%;
}

.header-acciones {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.icono-header-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icono-header {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #d8cfc3;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: 0.2s ease;
}

.icono-header:hover {
    transform: translateY(-2px);
    background: #f8f2fb;
    border-color: #d8c0eb;
}

.icono-header svg {
    width: 21px;
    height: 21px;
    fill: #5a3d31;
    display: block;
}

.icono-carrito-wrap {
    background: #ffffff;
}

.carrito-icono-img {
    width: 21px;
    height: 21px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.carrito-icono-img svg {
    width: 21px;
    height: 21px;
    fill: #5a3d31;
    display: block;
}

.carrito-contador {
    position: absolute;
    top: -4px;
    right: -5px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ea6b1f;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

/* =========================
   MAIN Y BLOQUES GENERALES
========================= */

main,
.site-main {
    width: 92%;
    max-width: 1200px;
    margin: 30px auto 40px auto;
    min-height: 60vh;
    flex: 1 0 auto;
}

.bloque-contenido,
.bienvenida,
.detalle-producto {
    background: var(--color-superficie);
    border-radius: var(--radio);
    padding: 28px;
    box-shadow: var(--color-sombra);
}

/* =========================
   BOTONES GENERALES
========================= */

.btn-primary,
.btn-secundario,
.btn-link,
.btn-eliminar-linea,
.btn-carrito,
.btn-actualizar-cantidad {
    transition: 0.2s ease;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--color-primario);
    color: #fff;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: bold;
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--color-primario-hover);
    color: #fff;
    transform: translateY(-1px);
}

.btn-secundario {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #efefef;
    color: #333;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
}

.btn-secundario:hover {
    background: #e4e4e4;
    color: #222;
}

.btn-link {
    display: inline-block;
    font-weight: bold;
    text-decoration: none;
}

.btn-actualizar-cantidad {
    background: #f2e8df;
    color: #4e3a33;
    border: 1px solid #ddcec0;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: bold;
}

.btn-actualizar-cantidad:hover {
    background: #ead9ca;
    color: #4e3a33;
}

/* =========================
   BADGES
========================= */

.badge {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: bold;
}

.badge-disponible {
    background: #dff6e8;
    color: #168249;
}

.badge-encargo {
    background: #fff0db;
    color: #b5691f;
}

.badge-orden {
    background: #232323;
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: bold;
}

/* =========================
   HERO / HOME
========================= */

.hero-home {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
    align-items: center;
    margin: 10px auto 36px auto;
}

.hero-home-texto {
    background: rgba(255, 255, 255, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 24px;
    padding: 34px 30px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.05);
    backdrop-filter: blur(3px);
}

.subtitulo-mini {
    font-size: 14px;
    color: #5f4e42;
    margin-bottom: 8px;
}

.hero-home-texto h1 {
    font-size: 52px;
    line-height: 1.08;
    margin-bottom: 18px;
    color: #211b21;
}

.hero-home-parrafo {
    font-size: 17px;
    color: #3d3737;
    line-height: 1.9;
    margin-bottom: 14px;
}

.hero-home-imagen {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-home-imagen img {
    width: 100%;
    max-width: 620px;
    border-radius: 28px;
    box-shadow: 0 18px 34px rgba(56, 42, 28, 0.12);
    background: #fff;
}

.home-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin: 22px 0 20px 0;
}

.home-btn-principal,
.home-btn-secundario {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s ease;
}

.home-btn-principal {
    background: #742f98;
    color: #fff;
}

.home-btn-principal:hover {
    background: #5f247d;
    color: #fff;
}

.home-btn-secundario {
    background: #f2e8df;
    color: #4e3a33;
    border: 1px solid #ddcec0;
}

.home-btn-secundario:hover {
    background: #ead9ca;
    color: #4e3a33;
}

.home-secciones {
    display: grid;
    gap: 24px;
    margin-top: 26px;
}

.home-secciones-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 22px;
    margin-top: 12px;
    margin-bottom: 34px;
}

.home-bloque {
    background: rgba(255,255,255,0.45);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

.home-bloque h3 {
    font-size: 24px;
    color: #2d2235;
    margin-bottom: 10px;
}

.home-bloque p {
    margin-bottom: 0;
}

.home-destacado {
    margin-top: 12px;
    margin-bottom: 40px;
}

.home-destacado-box {
    background: linear-gradient(135deg, rgba(255,255,255,0.7), rgba(250,244,236,0.86));
    border: 1px solid #eadccc;
    border-radius: 24px;
    padding: 34px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.05);
}

.home-destacado-texto h2 {
    font-size: 34px;
    margin-bottom: 14px;
    color: #2d2235;
}

.home-destacado-texto p {
    max-width: 760px;
    font-size: 17px;
    color: #4d4343;
    margin-bottom: 20px;
    line-height: 1.8;
}

/* =========================
   FORMULARIOS DE DETALLE
========================= */

.form-detalle p,
.form-carrito,
.form-actualizar {
    margin-bottom: 16px;
}

.form-detalle input[type="number"],
.form-detalle input[type="text"],
.form-detalle input[type="date"],
.form-detalle input[type="email"],
.form-detalle textarea,
.form-detalle select,
.form-actualizar input[type="number"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d5ccd8;
    border-radius: 12px;
    background: #fff;
    margin-top: 6px;
}

.form-detalle textarea {
    min-height: 120px;
    resize: vertical;
}

.form-detalle input:focus,
.form-detalle textarea:focus,
.form-detalle select:focus {
    outline: none;
    border-color: var(--color-primario);
    box-shadow: 0 0 0 3px rgba(122, 53, 182, 0.12);
}

/* =========================
   CATÁLOGO GENERAL
========================= */

.productos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.producto {
    background: #fff;
    border-radius: 18px;
    padding: 18px;
    box-shadow: var(--color-sombra);
    transition: 0.2s ease;
}

.producto:hover {
    transform: translateY(-4px);
}

.producto h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.precio {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--color-primario);
    margin: 12px 0;
}

.filtros-catalogo {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: end;
    margin: 20px 0 30px 0;
    padding: 20px;
    background: var(--color-superficie-suave);
    border-radius: 14px;
    border: 1px solid #eadfcd;
}

.filtro-item {
    display: flex;
    flex-direction: column;
    min-width: 220px;
    flex: 1;
}

.filtro-item label {
    margin-bottom: 6px;
    font-weight: bold;
}

.filtro-item input,
.filtro-item select {
    padding: 10px 12px;
    border: 1px solid #d5ccd8;
    border-radius: 10px;
    background: #fff;
}

.filtro-acciones {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* =========================
   CATÁLOGO PÁGINA
========================= */

.catalogo-contenido {
    width: 92%;
    max-width: 1400px;
    margin: 35px auto 40px;
}

.catalogo-titulo {
    font-size: 38px;
    color: #3b2347;
    margin-bottom: 10px;
    text-align: center;
}

.catalogo-subtitulo {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

.catalogo-filtros {
    background: #fff;
    padding: 24px;
    border-radius: 18px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.07);
    display: grid;
    grid-template-columns: 2fr 1fr auto;
    gap: 18px;
    align-items: end;
    margin-bottom: 35px;
    border: none;
}

.catalogo-filtros .filtro-item label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #4a2d59;
}

.catalogo-filtros .filtro-item input,
.catalogo-filtros .filtro-item select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d7d7d7;
    border-radius: 10px;
    font-size: 14px;
    box-sizing: border-box;
}

.catalogo-filtros .filtro-acciones {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.catalogo-filtros .filtro-acciones button,
.catalogo-filtros .filtro-acciones .btn-secundario {
    padding: 12px 18px;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    display: inline-block;
}

.catalogo-filtros .filtro-acciones button {
    background: linear-gradient(135deg, #6a0dad, #8e44ad);
    color: #fff;
}

.catalogo-filtros .filtro-acciones .btn-secundario {
    background: #f0f0f0;
    color: #333;
}

.catalogo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 28px;
}

.catalogo-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
    transition: 0.2s ease;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.catalogo-card:hover {
    transform: translateY(-6px);
}

.catalogo-imagen {
    width: 100%;
    height: 300px;
    background: #f3edf6;
    position: relative;
    overflow: hidden;
}

.catalogo-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.catalogo-card:hover .catalogo-imagen img {
    transform: scale(1.07);
}

.sin-imagen {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 15px;
    background: #f3edf6;
}

.catalogo-card-contenido {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.catalogo-card h3 {
    margin: 0 0 10px;
    font-size: 22px;
    color: #2f2f2f;
    line-height: 1.3;
}

.descripcion-producto {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 14px;
    min-height: 70px;
}

.categoria-producto {
    font-size: 13px;
    color: #7a6286;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 0.4px;
}

.catalogo-card .precio {
    font-size: 26px;
    font-weight: bold;
    color: #6a0dad;
    margin-bottom: 12px;
}

.catalogo-card .badge {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 12px;
}

.catalogo-card .badge-disponible {
    background: #e7f7ea;
    color: #1f8b3b;
}

.catalogo-card .badge-encargo {
    background: #efe5f7;
    color: #6a0dad;
}

.stock-texto {
    color: #555;
    font-size: 14px;
    margin-bottom: 14px;
}

.acciones-producto {
    margin-top: auto;
}

.catalogo-card .btn-link,
.catalogo-card .btn-secundario {
    display: inline-block;
    text-decoration: none;
    padding: 11px 16px;
    border-radius: 10px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 12px;
}

.catalogo-card .btn-link {
    background: linear-gradient(135deg, #6a0dad, #8e44ad);
    color: #fff;
}

.catalogo-card .btn-secundario {
    background: #f0f0f0;
    color: #333;
}

.catalogo-card .form-carrito {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.catalogo-card .form-carrito input[type="number"] {
    width: 90px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 10px;
}

.catalogo-card .form-carrito button {
    padding: 11px 16px;
    border: none;
    border-radius: 10px;
    background: #4f9d69;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.mensaje-vacio {
    grid-column: 1 / -1;
    text-align: center;
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    color: #666;
    box-shadow: 0 8px 18px rgba(0,0,0,0.05);
}

/* =========================
   DETALLE DE PRODUCTO
========================= */

.detalle-wrapper {
    width: 92%;
    max-width: 1400px;
    margin: 35px auto 60px;
}

.detalle-card {
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.08);
    padding: 32px;
}

.detalle-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 35px;
    align-items: start;
}

.detalle-galeria {
    position: sticky;
    top: 20px;
}
.detalle-imagen-principal {
    width: 100%;
    min-height: 600px;
    background: #f4eef8;
    border: 1px solid #e7dff0;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.detalle-imagen-principal img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.detalle-imagen-principal {
    cursor: zoom-in;
}

.detalle-imagen-principal img {
    transition: transform 0.35s ease;
}

.detalle-imagen-principal:hover img {
    transform: scale(1.2);
}

.detalle-sin-imagen {
    padding: 30px;
    color: #777;
    text-align: center;
    font-size: 16px;
}

.detalle-miniaturas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.detalle-miniatura {
    width: 95px;
    height: 95px;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid #ddd;
    cursor: pointer;
    background: #f7f3fa;
    transition: 0.3s ease;
}

.detalle-miniatura:hover {
    border-color: #6a0dad;
    transform: scale(1.08);
}

.detalle-miniatura img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.detalle-info h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 38px;
    color: #31203a;
    line-height: 1.2;
}

.detalle-meta-superior {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.pill-detalle {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
}

.pill-categoria {
    background: #efe5f7;
    color: #6a0dad;
}

.pill-disponible {
    background: #e7f7ea;
    color: #1f8b3b;
}

.pill-encargo {
    background: #efe5f7;
    color: #6a0dad;
}

.detalle-codigo {
    color: #777;
    font-size: 14px;
    margin-bottom: 18px;
}

.detalle-precio {
    font-size: 34px;
    font-weight: bold;
    color: #6a0dad;
    margin-bottom: 20px;
}

.detalle-descripcion-box,
.detalle-estado-box,
.detalle-form-box {
    background: #faf8fb;
    border: 1px solid #ece3f2;
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 18px;
}

.detalle-descripcion-box p,
.detalle-estado-box p {
    margin: 0;
    color: #555;
    line-height: 1.8;
}

.detalle-estado-box strong {
    color: #3d2a46;
}

.detalle-form-box .form-detalle p {
    margin: 0 0 16px;
}

.detalle-form-box .form-detalle label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: #472b58;
}

.detalle-form-box .form-detalle input[type="text"],
.detalle-form-box .form-detalle input[type="number"],
.detalle-form-box .form-detalle input[type="date"],
.detalle-form-box .form-detalle select,
.detalle-form-box .form-detalle textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-sizing: border-box;
    font-size: 14px;
    background: #fff;
}

.detalle-form-box .form-detalle textarea {
    resize: vertical;
}

.detalle-botones {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.detalle-form-box .form-detalle button,
.btn-link-detalle {
    display: inline-block;
    border: none;
    text-decoration: none;
    padding: 13px 18px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
}

.detalle-form-box .form-detalle button {
    background: linear-gradient(135deg, #6a0dad, #8e44ad);
    color: #fff;
}

.btn-link-detalle {
    background: #f0f0f0;
    color: #333;
}

.mensaje-detalle {
    background: #fff;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.06);
}

.mensaje-pedido-grande {
    color: #b45309;
    font-weight: bold;
}

/* =========================
   CARRITO
========================= */

.tabla-responsive {
    width: 100%;
    overflow-x: auto;
}

.tabla-carrito {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--color-sombra);
}

.tabla-carrito th {
    background: #2f2f2f;
    color: #fff;
    padding: 14px;
    text-align: center;
}

.tabla-carrito td {
    padding: 14px;
    border-bottom: 1px solid #ececec;
    text-align: center;
    vertical-align: middle;
}

.tabla-carrito tr:hover {
    background: #fafafa;
}

.detalle-encargo {
    text-align: left;
    background: #fafafa;
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 12px;
}

.detalle-simple {
    color: #555;
}

.carrito-box {
    padding: 26px;
}

.carrito-vacio-box {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.carrito-vacio-titulo {
    font-size: 1.2rem;
    font-weight: bold;
}

.col-producto {
    min-width: 170px;
}

.nombre-producto-carrito {
    font-weight: bold;
    color: #222;
}

.precio-carrito,
.subtotal-carrito {
    font-weight: bold;
    white-space: nowrap;
}

.form-cantidad-carrito {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.form-cantidad-carrito input[type="number"] {
    width: 72px;
    padding: 8px;
    border: 1px solid #c8c8c8;
    border-radius: 8px;
}

.resumen-carrito-final {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
    margin-bottom: 10px;
}

.resumen-total-carrito {
    min-width: 280px;
    background: #fafafa;
    border: 1px solid #ececec;
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.resumen-total-carrito span {
    color: #444;
    font-weight: bold;
}

.resumen-total-carrito strong {
    font-size: 1.2rem;
    color: #111;
}

.acciones-carrito {
    margin-top: 24px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.acciones-carrito-principales {
    margin-top: 22px;
    justify-content: flex-start;
    align-items: center;
}

.btn-carrito {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 170px;
    padding: 12px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid transparent;
}

.btn-carrito-principal {
    background: #2f2f2f;
    color: white;
}

.btn-carrito-principal:hover {
    background: #4a4a4a;
    color: white;
}

.btn-carrito-secundario {
    background: #f1f1f1;
    color: #333;
    border-color: #dddddd;
}

.btn-carrito-secundario:hover {
    background: #e7e7e7;
    color: #222;
}

.btn-carrito-danger {
    background: #fff1f1;
    color: #b00020;
    border-color: #f3d6d6;
}

.btn-carrito-danger:hover {
    background: #ffe3e3;
    color: #d62839;
}

.btn-eliminar-linea {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 8px;
    background: #fff0f0;
    color: #b00020;
    text-decoration: none;
    font-weight: bold;
    transition: 0.25s ease;
}

.btn-eliminar-linea:hover {
    background: #ffdede;
    color: #d62839;
}

/* =========================
   PEDIDOS Y CONFIRMACIÓN
========================= */

.grid-formulario-pedido {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 18px 22px;
    margin-bottom: 25px;
}

.campo-completo {
    grid-column: 1 / -1;
}

.metodo-envio-box {
    margin: 28px 0 22px 0;
    border: 1px solid #dcdcdc;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.metodo-envio-box h3 {
    margin: 0;
    padding: 18px 20px 12px 20px;
    font-size: 1.35rem;
    color: #222;
}

.opcion-envio {
    display: grid;
    grid-template-columns: 24px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-top: 1px solid #e8e8e8;
    cursor: pointer;
    transition: background 0.2s ease;
}

.opcion-envio:hover {
    background: #fafafa;
}

.opcion-envio.activo {
    background: #f8f8f8;
}

.opcion-envio input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #bcbcbc;
    border-radius: 50%;
    position: relative;
    display: inline-block;
}

.opcion-envio input[type="radio"]:checked + .radio-custom {
    border-color: #63b32e;
}

.opcion-envio input[type="radio"]:checked + .radio-custom::after {
    content: "";
    width: 8px;
    height: 8px;
    background: #63b32e;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
}

.envio-texto {
    color: #555;
    font-size: 1rem;
    line-height: 1.4;
}

.envio-precio {
    font-weight: bold;
    color: #6b5b53;
    white-space: nowrap;
    font-size: 1rem;
}

.resumen-pedido-box {
    margin-top: 25px;
    border-top: 1px solid #ddd;
    padding-top: 18px;
    max-width: 560px;
}

.fila-resumen {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
}

.total-final {
    font-size: 1.08rem;
    padding-top: 8px;
    border-top: 1px dashed #ddd;
}

.confirmacion-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    align-items: start;
}

.confirmacion-card,
.confirmacion-resumen {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 14px;
    padding: 22px;
}

.confirmacion-item {
    margin-bottom: 14px;
}

.confirmacion-item strong {
    display: inline-block;
    min-width: 140px;
}

.confirmacion-numero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #f8f8f8;
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 10px 14px;
    margin: 10px 0 18px 0;
}

/* =========================
   CONTACTO
========================= */

.contacto-pagina {
    display: grid;
    gap: 24px;
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.contacto-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--color-sombra);
}

.contacto-lista {
    list-style: none;
    margin: 16px 0;
    padding: 0;
}

.contacto-lista li {
    margin-bottom: 8px;
}

.contacto-campo {
    margin-bottom: 16px;
}

.contacto-campo input,
.contacto-campo textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d5ccd8;
    border-radius: 12px;
    background: #fff;
}

/* =========================
   BOTONES FLOTANTES
========================= */

.floating-accesos {
    position: fixed;
    right: 22px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.floating-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 155px;
    padding: 13px 20px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    border: none;
    box-shadow: 0 10px 22px rgba(0,0,0,0.18);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-btn:hover {
    transform: translateY(-2px);
    color: #fff;
}

.floating-btn-reclamos {
    background: linear-gradient(135deg, #6d3d2a, #8b5a3c);
}

.floating-btn-whatsapp {
    background: linear-gradient(135deg, #1faa59, #25d366);
}

.floating-btn-whatsapp:hover {
    color: #fff;
}

/* =========================
   FOOTER
========================= */

footer {
    width: 100%;
    background: linear-gradient(90deg, #1f1f1f, #2c2c2c);
    color: #fff;
    text-align: center;
    padding: 18px;
    font-size: 14px;
    margin-top: 0;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

footer p {
    margin: 0;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px) {
    .hero-home {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .hero-home-texto {
        order: 2;
    }

    .hero-home-imagen {
        order: 1;
    }

    .hero-home-texto h1 {
        font-size: 42px;
    }
}

@media (max-width: 980px) {
    .header-superior {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 16px;
        padding: 18px 0;
    }

    .header-logo-box,
    .header-acciones {
        justify-content: center;
    }

    .header-menu {
        gap: 24px;
    }

    .header-menu a {
        font-size: 18px;
    }

    .logo-aurvin {
        width: 150px;
        height: 150px;
    }

    .floating-accesos {
        right: 14px;
        bottom: 84px;
    }

    .floating-btn {
    min-width: 130px;
    width: auto;
    height: auto;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 13px;
}

    .detalle-grid {
        grid-template-columns: 1fr;
    }

    .detalle-galeria {
        position: static;
    }

    .detalle-imagen-principal {
        min-height: 380px;
    }

    .detalle-imagen-principal img {
        height: 380px;
    }

    .detalle-info h2 {
        font-size: 30px;
    }

    .detalle-precio {
        font-size: 28px;
    }
}

@media (max-width: 900px) {
    main,
    .site-main {
        width: 94%;
        margin: 24px auto;
    }

    .confirmacion-grid,
    .contacto-grid,
    .grid-formulario-pedido,
    .catalogo-filtros,
    .home-secciones-grid {
        grid-template-columns: 1fr;
    }

    .resumen-carrito-final {
        justify-content: stretch;
    }

    .resumen-total-carrito {
        width: 100%;
        min-width: 0;
    }

    .acciones-carrito {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-carrito {
        width: 100%;
        min-width: 0;
    }

    .opcion-envio {
        grid-template-columns: 24px 1fr;
    }

    .envio-precio {
        grid-column: 2;
        margin-top: 6px;
    }

    .confirmacion-item strong {
        min-width: 0;
        display: block;
        margin-bottom: 4px;
    }

    .acciones-carrito-principales a {
        text-align: center;
    }
}

@media (max-width: 640px) {
    .hero-home-texto {
        padding: 24px 20px;
    }

    .hero-home-texto h1 {
        font-size: 34px;
    }

    .hero-home-parrafo,
    .home-destacado-texto p {
        font-size: 15px;
    }

    .home-destacado-box {
        padding: 24px 20px;
    }

    .home-destacado-texto h2 {
        font-size: 28px;
    }
}
.info-pago-box {
    margin: 24px 0 20px 0;
}

.info-pago-box h3 {
    margin-bottom: 12px;
    color: #2d2235;
}

.info-pago-card {
    background: #eef8f0;
    border: 1px solid #bfe2c5;
    border-radius: 16px;
    padding: 18px 20px;
}

.info-pago-card p {
    margin-bottom: 8px;
    color: #2f3a2f;
}

.info-pago-nota {
    margin-top: 12px;
    font-size: 14px;
    color: #4f5d4f;
}

.detalle-imagen-principal {
    cursor: zoom-in;
}

.detalle-imagen-principal img {
    transition: transform 0.35s ease;
}

.detalle-imagen-principal:hover img {
    transform: scale(1.20);
}

.modal-imagen {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.img-modal {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.35);
}

.cerrar-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    line-height: 1;
    font-weight: bold;
}

@media (max-width: 768px) {
    .floating-accesos {
        position: fixed;
        right: 10px;
        bottom: 85px;
        gap: 10px;
        z-index: 9999;
        align-items: flex-end;
    }

    .floating-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 120px;
        max-width: 135px;
        padding: 10px 12px;
        font-size: 12px;
        line-height: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        box-sizing: border-box;
    }
}