/*letra para el nombre de la empresa*/
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400..700&display=swap');
/*letra general de toda la pagina*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/************* Propiedades generales **********/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

/* Estilo para el body */
body {
    background-color: #F9EAF1;
    font-size: 18px;
    line-height: 1.5;
    color: #451221;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
}

body::-webkit-scrollbar {
    width: 6px;
    /* Altura de la barra de scroll horizontal */
}

body::-webkit-scrollbar-thumb {
    background-color: #DF7DA6;
    border-radius: 10px;
    /* Bordes redondeados */
}

body::-webkit-scrollbar-thumb:hover {
    background-color: #C1416D;
}

body::-webkit-scrollbar-track {
    background-color: #F5D5E4;
}

a {
    text-decoration: none;
}

/************************************ 1. HEADER ***********************************/
/* Header y navegación */
.header {
    background: #451221;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 65px;
    padding: 15px 20px;
    font-weight: 800;
    box-shadow: 0 2px 10px rgba(69, 18, 33, 0.2);
    position: sticky;
    top: 0;
    z-index: 999;
}

/* Estilo para el nombre de la empresa */
.nombre-empresa {
    margin-right: auto;
}

.nombre-empresa a {
    font-family: "Dancing Script", cursive;
    font-size: 40px;
    color: #FBFAF7;
    margin: 0;
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(69, 18, 33, 0.3);
    transition: all 0.2s ease-in-out;
}

/* Estilo para la lista de navegación */
.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    /* centra verticalmente */
    justify-content: center;
    gap: 20px;
}

.nav-links i {
    text-align: center;
    width: 25px;
    height: 25px;
    font-size: 25px;
    transition: all 0.2s ease-in-out;
}

.nav-links .house i {
    font-size: 20px;
    transition: all 0.2s ease-in-out;
}

.nav-links .usuario-menu i {
    font-size: 20px;
    transition: all 0.2s ease-in-out;
}

.nav-links li {
    padding: 10px;
    border-radius: 50%;
    transition: all 0.2s ease-in-out;
}

.nav-links a {
    color: #F9EAF1;
}

.navbara:hover {
    cursor: pointer;
}

.nav-links li:hover {
    padding: 10px;
    border-radius: 25px;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(69, 18, 33, 0.2);
}

.nombre-user {
    font-size: 16px;
    font-weight: normal;
}

/* Contenedor del menú de usuario */
.usuario-menu {
    position: relative;
    display: inline-block;
}

.usuario-menu a {
    font-weight: normal;
}

/* Dropdown oculto */
.usuario-dropdown {
    display: none;
    position: fixed;
    top: 120%;
    /* un poco más abajo para dejar espacio al pico */
    right: 0;
    font-weight: normal;
    background: #fff;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    min-width: 180px;
    z-index: 1000;
}

/* Pico arriba del menú */
.usuario-dropdown::before {
    content: "";
    position: absolute;
    top: -22px;
    /* lo coloca arriba del menú */
    right: 6px;
    /* ajusta la posición hacia la derecha/izquierda */
    border-width: 12px;
    border-style: solid;
    border-color: transparent transparent #fff transparent;
    /* triángulo hacia abajo */
}

/* Opciones dentro del dropdown */
.usuario-dropdown a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #333;
    transition: background 0.3s;
}

.usuario-dropdown a:hover {
    background: #f1f1f1;
}

/* Mostrar menú al pasar el mouse */
.usuario-menu:hover .usuario-dropdown {
    display: block;
}

/******************************* 1.1. BARRA DE BUSQUEDA **********************************/

/* Contenedor principal */
.barra-de-busqueda {
    display: flex;
    align-items: center;
    position: relative;
    right: -40px;
    padding: 20px;
    transition: all 0.3s ease-in-out;
}

/* Input de búsqueda */
.barra-de-busqueda .buscar {
    box-sizing: border-box;
    padding: 0 45px 0 20px;
    width: 100%;
    color: #451221;
    border-radius: 50px;
    font-size: 16px;
    border: none;
    height: 40px;
    box-shadow: 0 2px 8px rgba(166, 48, 85, 0.3);
    transition: all 0.3s ease-in-out;
}

.buscar:focus {
    outline: none;
    box-shadow: 0 3px 12px rgba(166, 48, 85, 0.4);
}

/* Botón de búsqueda */
.btn-serch button {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    top: -2px;
    right: 40px;
    width: 45px;
    height: 45px;
    border: 0;
    border-radius: 50%;
    background-color: #DF7DA6;
    font-size: 20px;
    color: #FBFAF7;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.btn-serch button:hover {
    background-color: #C1416D;
    transform: scale(1.05);
    box-shadow: 0 3px 6px rgba(69, 18, 33, 0.3);
}

/* Botón toggle (lupa) para móvil */
.toggle-search {
    display: none;
    position: absolute;
    font-size: 20px;
    right: -60px;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #FBFAF7;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    z-index: 100;
}

/* Cuando SÍ hay usuario - necesitas más espacio para el menú */
body:has(.usuario-menu) .toggle-search {
    right: 40px;
}

.toggle-search:hover {
    background-color: #C1416D;
    transform: scale(1.05);
}

.form-busqueda {
    background: #dfdfdf;
    padding: 20px 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-busqueda-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr auto;
    gap: 15px;
    align-items: end;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select {
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #A63055;
    outline: none;
}

.btn-buscar {
    position: relative;
    top: 44px;
    background: #C1416D;
    color: white;
    border: none;
    padding: 12px 20px;
    margin-bottom: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-buscar:hover {
    background: #A63055;
}

.btn-limpiar {
    position: relative;
    top: -50px;
    right: 5px;
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 10px;
    font-size: 12px;
}

.resultado-info {
    background: rgba(237, 180, 205, 0.6);
    padding: 10px 15px;
    color: #73283E;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.resultado-contador {
    display: flex;
    align-items: center;
    gap: 10px;
}

.productos-por-pagina {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.productos-por-pagina select {
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 12px;
}

.paginacion {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    gap: 5px;
    flex-wrap: wrap;
}

.paginacion button {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
    color: #73283E;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 40px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.paginacion button:hover:not(:disabled) {
    background: #73283E;
    color: white;
    font-weight: bold;
    transform: translateY(-1px);
}

.paginacion button.active {
    background: #A63055;
    color: white;
    font-weight: bold;
}

.paginacion button:disabled {
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.5;
}

.paginacion .puntos {
    border: none;
    background: none;
    color: #6c757d;
    cursor: default;
}

.filtros-activos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
}

.filtro-tag {
    background: #A63055;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.filtro-tag .remove {
    cursor: pointer;
    font-weight: bold;
}

/* Ocultar productos cuando no están en la página actual */
.product-card.hidden {
    display: none;
}

/* Animación para cambio de páginas */
.container-product-cards {
    transition: opacity 0.3s ease;
}

.container-product-cards.loading {
    opacity: 0.5;
}

/**************************************** 1.2 CARRITO **********************************/
#carrito {
    position: fixed;
    top: 0;
    right: -500px;
    /* oculto al inicio */
    width: 450px;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    transition: right 0.4s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

#carrito.active {
    right: 0;
    /* se despliega */
}

#carrito-header {
    color: #73283E;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#carrito-header h2 {
    font-size: 20px;
    margin: 0;
}

#carrito-header button {
    background: none;
    border: none;
    color: #000;
    font-size: 22px;
    cursor: pointer;
    position: absolute;
    right: 20px;
}

#carrito-items {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
}

/* Personalización de la barra de scroll horizontal */
#carrito-items::-webkit-scrollbar {
    width: 6px;
    /* Altura de la barra de scroll horizontal */
}

#carrito-items::-webkit-scrollbar-thumb {
    background-color: #DF7DA6;
    border-radius: 10px;
    /* Bordes redondeados */
}

#carrito-items::-webkit-scrollbar-thumb:hover {
    background-color: #C1416D;
}

#carrito-items::-webkit-scrollbar-track {
    background-color: #ececec;
}

.carrito-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #ddd;
    padding: 15px;
    margin: 10px 0;
    border: 1px solid #ececec;
    border-radius: 25px;
}

.carrito-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    margin-right: 10px;
}

.carrito-item .datos {
    display: flex;
    flex-direction: column;
    width: 150px;
}

.carrito-item h4 {
    flex: 1;
    font-size: 14px;
    margin: 0;
    color: #73283E;
}

.carrito-item p {
    font-size: 16px;
    margin: 0 20px;
    font-weight: 600;
    color: rgba(115, 40, 62, 0.8);
}

.carrito-item button {
    background: none;
    border: none;
    color: #73283E;
    font-size: 18px;
    cursor: pointer;
    position: relative;
    top: -25px;
}

.carrito-item input[type="number"] {
    width: 50px;
    padding: 5px;
    margin: 5px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
}


#carrito-footer {
    padding: 15px;
    border-top: 1px solid #ddd;
}

#carrito-footer p {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 10px;
}

#carrito-footer button {
    width: 100%;
    padding: 10px;
    background: #A63055;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Badge del carrito */
.carrito-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #DF7DA6;
    color: #73283E;
    font-size: 12px;
    font-weight: bold;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    border-radius: 50%;
    display: none;
    /* oculto cuando no hay productos */
}

/**************************************** 1.3 perfil **********************************/
/* ------------------ Menú lateral ------------------ */
.vert {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
    border-right: 1px solid #e5e7eb;
    width: 250px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    padding: 130px 0;
    z-index: 800;
    transition: all 0.3s ease;
}

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

.vert li {
    margin: 0;
    /* sin márgenes, controlados en a */
}

/* Enlaces del menú */
.vert a {
    border: 1px solid #73283E;
    text-decoration: none;
    color: #73283E;
    padding: 16px 18px;
    margin: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    border-radius: 25px;
}

.vert a:hover {
    background-color: #A63055;
    color: #FFFFFF;
}

/* Activo */
.vert a.active {
    background-color: #A63055;
    color: #FFFFFF;
}

/* Íconos */
.vert a i {
    font-size: 18px;
    margin-right: 12px;
}

/* ------------------ Main ------------------ */
.main-content {
    flex: 1;
    margin-left: 250px;
    /* espacio para el menú */
    padding: 32px;
    min-height: 100vh;
    background-color: #FFFFFF;
    transition: all 0.3s ease;
}

/* ------------------ Formulario ------------------ */
.container-config {
    background: #fafafa;
    padding: 32px;
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
}

.container-config h1 {
    font-size: 30px;
    margin: 0 0 32px 0;
    color: #73283E;
    font-weight: 600;
}

.form-group-config {
    margin-bottom: 24px;
}

.ddos1 {
    display: flex;
    gap: 16px;
}

.label-form-config {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 16px;
    flex: 1;
    transition: border-color 0.2s ease;
}

.label-form-config:focus-within {
    border-color: #DF7DA6;
}

.label-form-config i {
    color: rgba(115, 40, 62, 0.6);
    font-size: 16px;
    flex-shrink: 0;
}

.input-form {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    font-size: 16px;
    color: #451221;
}

.input-form::placeholder {
    color: rgba(69, 18, 33, .5);
}

/* ------------------ Botones ------------------ */
.button-group {
    display: flex;
    justify-content: flex-end;
    margin-top: 25px;
}

.submit-button {
    background: #C1416D;
    color: #fff;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.submit-button:hover {
    background: #A63055;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.submit-button:active {
    transform: translateY(3px);
}

/**************************************** 1.4 compras **********************************/

/**************** Tabla ******************/
/* Sección de tabla de pedidos recientes */
.recent-orders {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
    max-width: 75vw;
}

/* Encabezado de cada sección con título y controles */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

/* Botón para agregar un nuevo pedido */
.add-btn {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    color: #A63055;
}

/* Contenedor con scroll horizontal para tablas */
.table-container {
    overflow-x: auto;
}

/* Contenedor con scroll horizontal para tablas */
.table-container {
    overflow-x: auto;
}

/* Personalización de la barra de scroll horizontal */
.table-container::-webkit-scrollbar {
    height: 6px;
    /* Altura de la barra de scroll horizontal */
}

.table-container::-webkit-scrollbar-thumb {
    background-color: #DF7DA6;
    border-radius: 10px;
    /* Bordes redondeados */
}

.table-container::-webkit-scrollbar-thumb:hover {
    background-color: #C1416D;
}

.table-container::-webkit-scrollbar-track {
    background-color: #ececec;
}


/* Estilo base de la tabla de pedidos */
.orders-table,
.orders-table2 {
    width: 100%;
    border-collapse: collapse;
}

/* Espaciado y alineación de celdas de tabla */
.orders-table th,
.orders-table td,
.orders-table2 th,
.orders-table2 td {
    padding: 16px;
    text-align: left;
}

.correo-desbordado {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Encabezado de la tabla con fondo rosa suave */
.orders-table thead,
.orders-table2 thead {
    background-color: rgba(237, 180, 205, 0.6);
}

/* Líneas divisorias entre filas de la tabla */
.orders-table tbody tr,
.orders-table2 tbody tr {
    border-bottom: 1px solid #eee;
}

/* Efecto al pasar el cursor sobre las filas de la tabla */
.orders-table tbody tr:hover {
    background-color: #f9f9f9;
}

.orders-table2 tbody tr:hover {
    background-color: #f1f0f0;
}

.btn-mas {
    min-width: 150px;
}

.btn-mas a {
    background-color: #D4608D;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
}

.btn-mas a:hover {
    background-color: #C1416D;
}

.btn-descargar {
    display: flex;
    align-items: center;
    color: #892b47;
    text-decoration: none;
}

.btn-descargar i {
    font-size: 20px;
    padding: 5px;
}

/**************** Factura ******************/

.factura-container {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.factura-container h1 {
    text-align: center;
    font-size: 26px;
    color: #333333;
    margin-bottom: 10px;
}

.factura-container .info-factura {
    text-align: center;
    margin-bottom: 20px;
    color: #555555;
    line-height: 1.6;
}

.factura-container table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.factura-container th,
.factura-container td {
    padding: 12px 8px;
    text-align: left;
}

.factura-container thead th {
    background-color: #C1416D;
    color: white;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 2px solid #A63055;
    text-align: center;
}

.factura-container thead th:last-child {
    text-align: left;
}

.factura-container tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.factura-container tbody td {
    color: #333333;
    font-size: 14px;
    text-align: center;
}

.factura-container tbody td:last-child {
    text-align: left;
}

.factura-container tfoot td {
    font-weight: bold;
    font-size: 16px;
    border-top: 2px solid #C1416D;
    text-align: right;
}

.factura-container tfoot td:first-child {
    text-align: left;
    padding-left: 25px;
}

.factura-container tfoot td:last-child {
    text-align: left;
}

.btn-atras {
    position: relative;
    top: -15px;
    background-color: #F4D6E4;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    color: #73283E;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-atras:hover {
    background-color: #EDB4CD;
}

/************************************** 2. BARRA DE MARCAS *********************************/
/*propiedades de la seccion*/
.barra-de-marcas {
    position: relative;
    background-color: #FBFAF7;
    z-index: 900;
}

.barra-de-marcas img {
    height: 35px;
    width: auto;
    padding: 0 20px;
    transition: all 0.2s ease-in-out;
}

.items-marcas:last-child img {
    padding-right: 0;
}

.barra-de-marcas img:hover {
    transform: scale(1.03);
}

.scroll-container {
    display: flex;
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 10px 20px 5px;
    gap: 0;
}

/* Personalización de la barra de scroll horizontal */
.scroll-container::-webkit-scrollbar {
    height: 6px;
    /* Altura de la barra de scroll horizontal */
}

.scroll-container::-webkit-scrollbar-thumb {
    background-color: #DF7DA6;
    border-radius: 10px;
    /* Bordes redondeados */
}

.scroll-container::-webkit-scrollbar-thumb:hover {
    background-color: #C1416D;
}

.scroll-container::-webkit-scrollbar-track {
    background-color: #F5D5E4;
}

.items-marcas {
    flex: 1;
    display: flex;
    justify-content: center;
    /* centra la imagen dentro de su caja */
    align-items: center;
    border-right: solid 2px #F5D5E4;
}

.items-marcas:last-child {
    border-right: none;
}

/***************************************** 3. CARRUSEL DE IMAGENES ***************************/

/*este modifica el tamaño del container el cual muestra las imagenes del carrusel*/
.container-carrusel {
    width: 100%;
    height: auto;
    margin: 0;
    overflow: hidden;
    border-radius: 0px;
    position: relative;
    box-shadow: rgba(166, 48, 85, .4);
}

/*establece las propiedades del container que se desplaza en width se pone segun
la cantidad de imagenes, cada imagen equivale a un 100% mas */
.carruseles {
    width: 300%;
    height: 100%;
    display: flex;
    text-align: center;
}

/*este modifica el tamaño de cada section, en el width se calcula el tamaño 
cogiendo el 100% de el .carruseles y dividiendo en la cantidad de imagenes 
que contiene el carrusel de imagenes */
.slider-section {
    width: calc(100%/3);
    height: 100%;
}

/*este modifica el tamaño solo de las imagenes y no del container donde se encuentran 
se deja al 100% para que el codigo sea adaptable y facil de modificar si se llega a agregar
o eliminar alguna imagen del carrusel*/
.slider-section img {
    width: 100%;
    height: 100vh;
    object-fit: contain;
    border-radius: 0px;
    transition: all 0.3s ease-in-out;
    /* Añadir transición suave */
}

/*este modifica las propiedades que tienen los botones para desplazarze por el 
carrusel de imagnes*/
.btn-right,
.btn-left {
    display: flex;
    position: absolute;
    top: 50%;
    font-size: 32px;
    background-color: rgba(255, 255, 255, 0.3);
    /* Fondo semi-transparente */
    border-radius: 50%;
    padding: 10px;
    font-weight: 600;
    cursor: pointer;
    color: #451221;
    transform: translate(0, -50%);
    transition: all 0.3s ease-in-out;
    user-select: none;
    box-shadow: 0 2px 5px rgba(69, 18, 33, 0.2);
    /* Sombra para profundidad */
}

/*modifica los hover de los botones para desplazarse en el carrusel de imagenes*/
.btn-left:hover,
.btn-right:hover {
    background-color: rgba(255, 255, 255, 0.6);
    /* Más opaco al pasar el mouse */
    color: #A63055;
    transform: translate(0, -50%) scale(1.1);
    /* Efecto de aumento */
}

/*modifica la posicion en la que se encuentran los botones dentro del container*/
.btn-left {
    left: 10px;
}

.btn-right {
    right: 10px;
}

/*********************************** 4. SECCION UNO ***********************************/

#t1 {
    color: #A63055;
    background-color: #F9EAF1;
    text-align: center;
    padding: 30px 0;
    font-size: 40px;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(69, 18, 33, 0.1);
    position: relative;
}

/* Añadir línea decorativa debajo del título */
#t1::after {
    content: "";
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: #C1416D;
    border-radius: 3px;
}

#p1 {
    color: #C1416D;
    text-align: center;
    position: relative;
    top: -25px;
    margin-bottom: 20px;
    font-style: italic;
}

.container-product-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    justify-items: center;
    gap: 30px;
    padding: 20px 20px 40px;
    background-color: #F9EAF1;
}

.product-card {
    background-color: #FBFAF7;
    width: 100%;
    height: 540px;
    border-radius: 10px;
    box-shadow: rgba(166, 48, 85, .4);
    text-align: center;
    position: relative;
    transition: all 0.3s ease-in-out;
    overflow: hidden;
    /* Para evitar que la imagen se salga al hacer hover */
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: rgba(166, 48, 85, 0.6);
}

.text-card {
    display: grid;
    grid-template-rows: auto 1fr auto auto;
    gap: 5px;
    padding: 20px;
    margin-top: -10px;
    border-radius: 0 0 10px 10px;
    background-color: #FAFAFA;
    color: #73283E;
    height: 270px;
}

.text-card h3 {
    font-size: 16px;
    font-weight: 500;
    text-align: left;
}

.text-cardown {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#text-precio,
#text-precio2 {
    font-weight: 600;
    font-size: 18px;
    color: #73283E;
    background-color: rgba(237, 180, 205, 0.6);
    border: none;
    border-radius: 30px;
    padding: 8px 60px;
}

#text-marca,
#text-marca2 {
    font-size: 12px;
    text-align: left;
    color: rgba(115, 40, 62, 0.6);
}

#btn-add {
    background-color: #C1416D;
    color: #FBFAF7;
    border: none;
    border-radius: 30px;
    padding: 10px 60px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 5px rgba(69, 18, 33, 0.2);
}

#btn-add:hover {
    background-color: #A63055;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(69, 18, 33, 0.3);
}

.image-container {
    background: #ffffff;
}

.image-container img {
    width: 100%;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
    height: 280px;
    object-fit: contain;
    /* Asegurar que las imágenes se recorten adecuadamente */
    transition: all 0.3s ease-in-out;
}

.image-container img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
    /*Ligeramente más brillante*/
}

/* Estilos para botones de favoritos */
.btn-fav {
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.btn-fav:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Iconos de favoritos */
.btn-fav i {
    font-weight: 100;
    font-size: 30px;
    transition: color 0.3s ease;
}

/* Color por defecto (vacío) */
.btn-fav i {
    color: #ccc;
}

button.btn-fav i.bx.bxs-heart,
.btn-fav i.bxs-heart {
    color: #ff6b6b !important;
}

button.btn-fav i.bx.bxs-star,
.btn-fav i.bxs-star {
    color: #C1416D !important;
}

button.btn-fav i.bx.bxs-leaf,
.btn-fav i.bxs-leaf {
    color: #3B472D !important;
}

.precio-original {
    text-decoration: line-through;
    color: rgba(115, 40, 62, .6);
    font-size: 14px;
}

.precio-descuento {
    color: #73283E;
    font-weight: 600;
    font-size: 18px;
}

/*********************************** 5. SECCION DOS ***********************************/

.cp-container {
    display: flex;
    width: 100%;
    overflow: hidden;
    padding: 30px;
    background: rgba(237, 180, 205, .9);
    box-shadow: inset 0 5px 10px rgba(69, 18, 33, 0.1);
    /* Sombra interna */
}

#t2 {
    align-content: center;
    padding: 0 15px 0;
    color: #FFFFFF;
    font-size: 36px;
    text-shadow: 1px 1px 3px rgba(69, 18, 33, 0.3);
}

.carousel-product {
    display: flex;
    flex-wrap: nowrap;
    /* No permite saltos de línea */
    justify-content: space-between;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding: 20px 20px 20px 50px;
}

/* Personalización de la barra de scroll horizontal */
.carousel-product::-webkit-scrollbar {
    height: 10px;
}

.carousel-product::-webkit-scrollbar-thumb {
    background-color: #C1416D;
    border-radius: 10px;
}

.carousel-product::-webkit-scrollbar-thumb:hover {
    background-color: #A63055;
}

.carousel-product::-webkit-scrollbar-track {
    background-color: rgba(115, 40, 62, .3);
    border-radius: 10px;
}

.product-card2 {
    flex: 0 0 auto;
    /*<factor-de-crecimiento> <factor-de-encogimiento> <tamaño-base>;*/
    scroll-snap-align: center;
    border-radius: 10px;
    overflow: hidden;
    background-color: #FBFAF7;
    width: 270px;
    height: 540px;
    box-shadow: 0 5px 15px rgba(69, 18, 33, 0.3);
    text-align: center;
    position: relative;
    transition: all 0.3s ease-in-out;
}

.product-card2:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.text-card2 {
    display: grid;
    grid-template-rows: auto 1fr auto auto;
    gap: 5px;
    padding: 20px;
    margin-top: -10px;
    border-radius: 0 0 10px 10px;
    background-color: #FAFAFA;
    color: #73283E;
    height: 270px;
}

.text-card2 h3 {
    font-size: 16px;
    font-weight: 500;
    text-align: left;
}

#btn-add2 {
    background-color: #C1416D;
    color: #FBFAF7;
    border: none;
    border-radius: 30px;
    padding: 10px 60px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 5px rgba(69, 18, 33, 0.2);
}

#btn-add2:hover {
    background-color: #A63055;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(69, 18, 33, 0.3);
}

/*********************************** 6. SECCION TRES ***********************************/

.section3-product {
    padding: 30px 60px 60px;
    background-color: #FBFAF7;
}

#t3 {
    color: #A63055;
    text-align: center;
    padding: 20px 0 50px;
    font-size: 40px;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(69, 18, 33, 0.1);
    position: relative;
}

/* Añadir línea decorativa debajo del título */
#t3::after {
    content: "";
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: #C1416D;
    border-radius: 3px;
}

#p3 {
    color: #C1416D;
    text-align: center;
    position: relative;
    top: -45px;
    margin-bottom: 20px;
    font-style: italic;
}

.container-product-cards3 {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.product-card3 {
    display: flex;
    flex-direction: row;
    padding: 20px;
    margin: 10px 60px;
    background-color: rgba(237, 180, 205, .4);
    border-radius: 10px;
    box-shadow: rgba(166, 48, 85, .4);
    transition: all 0.3s ease-in-out;
}

.product-card3:hover {
    transform: translateY(-5px);
    box-shadow: rgba(166, 48, 85, 0.6);
}

.text-card3 {
    align-content: center;
    text-align: justify;
    padding: 20px 20px 20px 40px;
}

.text-card3 h3 {
    color: #73283E;
    text-align: left;
    font-size: 26px;
    font-weight: 800;
}

#text-marca3 {
    position: relative;
    top: -5px;
    color: #73283E;
    font-weight: 600;
    padding-bottom: 10px;
}

.inverse {
    flex-direction: row-reverse;
}

.inverse-text {
    padding: 20px 40px 20px 20px;
}

.image-container3 {
    align-content: center;
    display: flex;
    align-items: center;
}

.image-container3 img {
    width: 25vw;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(69, 18, 33, 0.2);
    transition: all 0.3s ease-in-out;
}

.image-container3 img:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 12px rgba(69, 18, 33, 0.3);
}

.descripcion-corta {
    max-height: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.descripcion-completa {
    display: none;
    margin-top: 5px;
}

.descripcion-completa.mostrar {
    display: block;
}

.ver-mas-btn {
    background: none;
    border: none;
    color: #a10055;
    cursor: pointer;
    font-weight: bold;
    padding-bottom: 30px;
    font-size: 14px;
}

.ver-mas-btn:hover {
    text-decoration: underline;
}

.ver-mas3 {
    text-align: center;
    background-color: #7a003f;
    color: #e5e7eb;
    border: none;
    border-radius: 30px;
    margin: 10px 0;
    padding: 10px 60px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 5px rgba(69, 18, 33, 0.2);
    min-width: 250px;
}

/*********************************** 7. SECCION CUATRO ***********************************/

/* Estilos para la sección de productos */
.section4-product {
    width: 100%;
    margin: 0 auto;
    padding: 10px 20px 40px;
    position: relative;
}

/* Título principal */
#t4 {
    color: #A63055;
    background-color: #F9EAF1;
    text-align: center;
    padding: 30px 0;
    font-size: 40px;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(69, 18, 33, 0.1);
    position: relative;
}

/* Añadir línea decorativa debajo del título */
#t4::after {
    content: "";
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: #C1416D;
    border-radius: 3px;
}

#t4-2 {
    color: #A63055;
    background-color: #FBFAF7;
    text-align: center;
    padding: 30px 0;
    font-size: 40px;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(69, 18, 33, 0.1);
    position: relative;
}

/* Añadir línea decorativa debajo del título */
#t4-2::after {
    content: "";
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: #C1416D;
    border-radius: 3px;
}

/* Subtitulo */
#p4 {
    color: #C1416D;
    text-align: center;
    position: relative;
    top: -25px;
    margin-bottom: 20px;
    font-style: italic;
}

/* Contenedor del carrusel */
.carousel-prd-container,
.carousel-prd-container2 {
    background-color: #F9EAF1;
    border-radius: 30px 30px 0 0;
    padding: 10px 50px;
    position: relative;
    margin-top: -20px;
    overflow: hidden;
}

/* Carrusel de productos */
.carousel-product4,
.carousel-product4-2 {
    display: flex;
    overflow-x: hidden;
    scroll-behavior: smooth;
    position: relative;
    padding: 20px 0;
    gap: 30px;
}

/* Tarjeta de producto */
.product-card4,
.product-card4-2 {
    flex: 0 0 auto;
    /*<factor-de-crecimiento> <factor-de-encogimiento> <tamaño-base>;*/
    scroll-snap-align: center;
    border-radius: 10px;
    overflow: hidden;
    background-color: #FFFFFF;
    width: 270px;
    height: 540px;
    box-shadow: 0 5px 15px rgba(69, 18, 33, 0.3);
    text-align: center;
    position: relative;
    transition: all 0.3s ease-in-out;
}

/* Efecto hover para tarjetas */
.product-card4:hover,
.product-card4-2:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 8px 20px rgba(166, 48, 85, 0.5);
}

/* Efecto hover para imágenes */
.product-card4:hover,
.product-card4-2:hover .image-container img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Contenedor de texto */
.text-card4 {
    display: grid;
    grid-template-rows: auto 1fr auto auto;
    gap: 5px;
    padding: 20px;
    margin-top: -10px;
    border-radius: 0 0 10px 10px;
    background-color: #FAFAFA;
    color: #73283E;
    height: 270px;
}

/* Estilo para el nombre del producto */
.text-card4 h3 {
    font-size: 16px;
    font-weight: 500;
    text-align: left;
}

/* Botón de agregar al carrito */
#btn-add4,
#btn-add4-2 {
    background-color: #C1416D;
    color: #FBFAF7;
    border: none;
    border-radius: 30px;
    padding: 10px 60px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 5px rgba(69, 18, 33, 0.2);
}

/* Efecto hover para el botón */
#btn-add4:hover,
#btn-add4-2:hover {
    background-color: #A63055;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(69, 18, 33, 0.3);
}

/* Estilos para íconos Boxicons */
.bx {
    font-size: 20px;
    vertical-align: middle;
}

/* Botones de navegación */
.btn-right-prd,
.btn-left-prd,
.btn-right-prd2,
.btn-left-prd2 {
    position: absolute;
    top: 50%;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #A63055;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    z-index: 10;
    box-shadow: 0 3px 10px rgba(69, 18, 33, 0.3);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

/* Posicionamiento de botones de navegación */
.btn-left-prd,
.btn-left-prd2 {
    left: 10px;
}

.btn-right-prd,
.btn-right-prd2 {
    right: 10px;
}

/* Íconos de los botones de navegación */
.btn-right-prd .bx,
.btn-left-prd .bx,
.btn-right-prd2 .bx,
.btn-left-prd2 .bx {
    font-size: 30px;
}

/* Efecto hover para botones de navegación */
.btn-right-prd:hover,
.btn-left-prd:hover,
.btn-right-prd2:hover,
.btn-left-prd2:hover {
    background-color: #73283E;
    transform: translateY(-50%) scale(1.1);
}

/* Contenedor para los puntos indicadores */
.carousel-dots,
.carousel-dots2 {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
    width: 100%;
    padding: 0 20px;
    position: relative;
    bottom: 0;
    margin-top: 20px;
    margin-bottom: 5px;
}

/* Estilo para cada punto */
.carousel-dot,
.carousel-dot2 {
    width: 12px;
    height: 12px;
    background-color: #C1416D;
    opacity: 0.5;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

/* Estilo para el punto activo */
.carousel-dot.active,
.carousel-dot2.active {
    background-color: #A63055;
    opacity: 1;
    transform: scale(1.2);
}

/**************************** DETALLE PRODUCTO ********************************/

.detalle-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: #fff;
    padding: 20px 20px 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.detalle-imagen {
    display: flex;
    justify-content: center;
    align-items: center;
}

.detalle-imagen img {
    width: 100%;
    max-height: 100vh;
    border-radius: 10px;
    object-fit: contain;
}

.detalle-info {
    width: 100%;
}

.detalle-info h1 {
    font-size: 30px;
    margin-bottom: 15px;
}

.descripcion {
    text-align: justify;
    font-size: 15px;
    color: #555;
    margin-bottom: 20px;
}

.precio {
    font-size: 28px;
    font-weight: bold;
    color: #a10055;
    margin-bottom: 25px;
}

/* ----- Acciones ----- */
.acciones {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.text-cantidad {
    font-size: 14px;
    margin-top: 10px;
}

.cantidad {
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #000;
    border-radius: 25px;
    background: #fff;
    width: fit-content;
    padding: 5px 0;
}

.cantidad input {
    width: 50px;
    text-align: center;
    border: none;
    font-size: 16px;
    appearance: textfield;
}

.cantidad button {
    border: none;
    background: none;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    padding: 5px 10px;
}

.btn-principal {
    background: #a10055;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-principal:hover {
    background: #7a003f;
}

/* ----- Productos Relacionados ----- */
.titulo-relacionados {
    max-width: 1300px;
    margin: 20px auto;
    font-size: 20px;
    text-align: center;
    border-top: 1px solid #192013;
    padding-top: 20px;
}

.card-rel a {
    display: flex;
    align-items: center;
    background: #fbfaf7;
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    height: 100px;
    width: 280px;
    text-decoration: none;
}

.card-rel img {
    width: 40%;
    height: 80px;
    object-fit: contain;
    border-radius: 10px;
    margin-right: 10px;
}

.card-rel h3 {
    margin: 5px 0;
    font-size: 12px;
    color: #333;
}

.price {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #28a745;
    font-size: 14px;
}

#btn-add-rel {
    background: #a10055;
    color: #fff;
    border: none;
    padding: 5px;
    margin: 5px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
}

/* ----- Swiper ----- */
.swiper-container-externo {
    position: relative;
    width: 600px;
}

.swiper-button-prev,
.swiper-button-next {
    position: absolute;
    top: 65%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.swiper-button-prev {
    left: -20px;
}

.swiper-button-next {
    right: -20px;
}

.swiper-button-prev i,
.swiper-button-next i {
    font-size: 18px;
    color: #fff;
}

/* Ocultar flechas automáticas de Swiper */
.swiper-button-prev.swiper-button-disabled::after,
.swiper-button-next.swiper-button-disabled::after,
.swiper-button-prev::after,
.swiper-button-next::after {
    display: none;
}

/* ----- Paginación (puntitos) ----- */
.swiper-pagination-container {
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
    bottom: -35px;
}

.swiper-container-externo .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 1;
}

.swiper-container-externo .swiper-pagination-bullet-active {
    background-color: #000;
}

/**************************************** Pasarela Pago **********************************/
.panel {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
}

.list-cart {
    margin: 20px;
    padding: 20px;
    background-color: #fafafa;
    border-radius: 16px;
}

.list-cart h1 {
    text-align: center;
}

.list-cart h1 i {
    color: #892B47;
}

.total-box {
    padding-left: 20px;
    font-weight: 600;
}

.metodo-pago {
    max-width: 700px;
    margin: 20px 20px 20px 0;
    padding: 20px 16px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
}

.metodo-pago h2 {
    font-size: 28px;
    color: #451221;
    margin-bottom: 24px;
    text-align: center;
}

.metodo-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    transition: box-shadow 0.3s ease;
}

.metodo-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.metodo-card h3 {
    font-size: 20px;
    color: rgba(69, 18, 33, .8);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.metodo-card h3 i {
    color: #A63055;
    font-size: 21px;
}

.metodo-card p {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 18px;
}

.metodo-card form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.metodo-card label {
    font-weight: 600;
    color: #451221;
    margin-bottom: 4px;
}

.metodo-card input[type="text"] {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.metodo-card input[type="text"]:focus {
    outline: none;
    border-color: #C1416D;
    box-shadow: 0 0 0 3px rgba(193, 65, 109, 0.1);
}

.metodo-card button {
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mercado-btn {
    background: #A63055;
    color: #fff;
}

.mercado-btn:hover {
    background: #892b47;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(166, 48, 85, 0.6);
}

.cod-btn {
    background: #A63055;
    color: #fff;
}

.cod-btn:hover {
    background: #892b47;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(166, 48, 85, 0.6);
}

.metodo-card button:active {
    transform: translateY(0);
}

.btn-ped {
    display: flex;
    justify-content: center;
    margin: 20px;
    font-weight: 700;
}

.btn-ped a{
    font-size: 18px;
    text-decoration: underline;
    color: #a10055;
}

.mensaje-estado {
    max-width: 600px;
    margin: 40px auto;
    padding: 40px 24px;
    text-align: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.mensaje-estado i {
    font-size: 40px;
    color: #A63055;
}

.mensaje-estado h1 {
    font-size: 32px;
    color: #7a003f;
    margin-bottom: 16px;
    font-weight: 700;
}

.mensaje-estado p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.ref-box {
    background: #f8f9fa;
    border: 2px dashed #a10055;
    border-radius: 8px;
    padding: 16px 24px;
    margin: 24px 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    letter-spacing: 0.5px;
}

.mensaje-estado a {
    display: inline-block;
    margin: 15px 0;
    padding: 14px 32px;
    background: #C1416D;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.mensaje-estado a:hover {
    background: #A63055;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(166, 48, 85, 0.5);
}

.mensaje-estado a:active {
    transform: translateY(0);
}

.mensaje-estado p:last-child {
    font-size: 18px;
    color: #7f8c8d;
    margin-top: 20px;
    margin-bottom: 0;
    font-weight: 500;
}

/**************************************** Footer **********************************/
.footer {
    background: linear-gradient(to bottom, #892B47, #451221);
    color: #FBFAF7;
    padding: 20px 0;
    text-align: center;
    height: auto;
    box-shadow: inset 0 5px 10px rgba(69, 18, 33, 0.2);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    justify-content: space-around;
    padding: 20px;
    height: 200px;
}

.footer-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px;
    flex: 1;
    min-width: 200px;
}

.footer-section h4 {
    font-size: 25px;
    margin-bottom: 10px;
    position: relative;
}

/* Línea decorativa debajo de títulos de footer */
.footer-section h4::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background-color: #DF7DA6;
    border-radius: 2px;
}

.footer-section p {
    font-size: 18px;
    margin: 0;
    padding: 0;
}

.btn-conocenos {
    border: none;
    background-color: #451221;
    margin: 10px;
    padding: 10px;
    border-radius: 30px;
    box-shadow: 0 5px 10px rgba(69, 18, 33, 0.3);
    transition: all 0.2s ease-in-out;
}

.btn-conocenos a {
    color: #FBFAF7;
    font-weight: 500;
}

.btn-conocenos:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
    transform: translateY(-3px) scale(1.05);
    background-color: #A63055;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 20px;
    padding-top: 10px;
    font-size: 12px;
    opacity: 0.8;
}

.redes {
    list-style: none;
    display: flex;
    margin: 15px;
    gap: 10px;
    font-size: 28px;
    justify-content: center;
}

.redes a {
    color: #FBFAF7;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.redes a {
    color: #FbF4F7;
}

.redes a:hover {
    color: #DF7DA6;
    transform: translateY(-3px) scale(1.1);
    /* Efecto de elevación */
    background-color: rgba(255, 255, 255, 0.1);
}

/* PARA ALERTAS */
.alert {
    position: fixed;
    top: 20px;
    right: 20px;
    color: white;
    padding: 15px 40px 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    max-width: 300px;
    font-weight: normal;
    font-size: 14px;
    line-height: 1.4;
    opacity: 1;
    transform: translateX(0);
    transition: all 0.3s ease-in-out;
}

.alert.success {
    background-color: #6EC141;
}

.alert.error {
    background-color: #B61B1B;
    font-weight: normal;
}

.alert.warning {
    background-color: #C19441;

}

.alert.info {
    background-color: #33389e;
}

.alert-close {
    position: absolute;
    top: 5px;
    right: 10px;
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.alert-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.alert-hiding {
    opacity: 0;
    transform: translateX(100%);
}

.alert-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 0 0 8px 8px;
    width: 0%;
}


/******************************************** MEDIACUERIS **********************************************/

@media screen and (max-width: 980px) {

    /* Header y navegación */
    .nombre-empresa {
        width: 180px;
    }

    .nombre-empresa a {
        font-size: 32px;
    }

    /* Estilo para la lista de navegación */
    .nav-links {
        gap: 10px;
    }

    .nav-links i {
        font-size: 22px;
    }

    .nav-links .house i {
        font-size: 18px;
    }

    .nav-links .usuario-menu i {
        font-size: 18px;
    }

    .nav-links li {
        padding: 5px;
        border-radius: 50%;
    }

    .nav-links li:hover {
        padding: 5px;
    }

    .usuario-menu {
        width: 130px;
    }

    .nombre-user {
        display: inline-block;
        font-size: 16px;
        font-weight: normal;
        line-height: 1.2;
        text-align: center;
        padding: 0;
    }

    .usuario-dropdown {
        z-index: 900;
    }

    /* Contenedor del menú de usuario */
    .usuario-dropdown a {
        font-size: 15px;
        padding: 6px;
    }

    /**************** Barra de bus. ****************/
    /* Reposiciona el contenedor */
    .barra-de-busqueda {
        position: absolute;
        right: 210px;
        padding: 0;
    }

    /* Oculta el formulario por defecto */
    .barra-de-busqueda form {
        display: none;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
    }

    /* Muestra el botón toggle */
    .toggle-search {
        display: flex;
        justify-content: center;
        align-items: center;
        right: -45px;
    }


    /* Formulario activo (cuando se hace clic en la lupa) */
    .barra-de-busqueda.active form {
        display: flex;
        position: fixed;
        top: 65px;
        left: 0;
        right: 0;
        width: 100%;
        margin: 0 auto;
        padding: 15px 30px;
        background: #ccc;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        z-index: 200;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Input dentro del formulario activo */
    .barra-de-busqueda.active .buscar {
        width: 100%;
        padding: 0 50px 0 20px;
        font-size: 15px;
        background: #FFFFFF;
    }

    /* Botón de búsqueda dentro del formulario activo */
    .barra-de-busqueda.active .btn-serch button {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        background-color: #C1416D;
        color: #FBFAF7;
    }

    .barra-de-busqueda.active .btn-serch button:hover {
        background-color: #7a003f;
    }

    /* Grid del formulario */
    .form-busqueda-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .btn-buscar {
        width: 100%;
        margin-top: 10px;
    }

    .form-group label {
        font-size: 16px;
    }

    .form-busqueda-grid {
        grid-template-columns: 1fr;
    }

    .btn-buscar {
        width: 100%;
    }

    .resultado-info {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .paginacion {
        gap: 2px;
    }

    .paginacion button {
        padding: 6px 8px;
        min-width: 35px;
        font-size: 12px;
    }

    /***************** Carrito ****************/
    #carrito {
        width: 350px;
    }

    #carrito-header h2 {
        font-size: 18px;
        margin: 0;
    }

    .carrito-item {
        padding: 15px 15px 0;
    }

    .carrito-item img {
        min-width: 70px;
        max-width: 70px;
        height: 70px;
        object-fit: cover;
        margin-right: 10px;
    }

    .carrito-item h4 {
        font-size: 14px;
    }

    .carrito-item p {
        font-size: 14px;
    }

    .carrito-item button {
        font-size: 14px;
    }

    .carrito-item input[type="number"] {
        font-size: 12px;
    }

    #carrito-footer p {
        font-size: 14px;
    }

    #carrito-footer button {
        padding: 10px;
        font-size: 14px;
        font-weight: 600;
    }

    /* Badge del carrito */
    .carrito-badge {
        top: -7px;
        right: -7px;
        width: 18px;
        height: 18px;
    }

    /************** perfil ***************/
    /* Menú lateral más estrecho */
    .vert {
        width: 70px;
        padding: 100px 0;
    }

    .vert a {
        margin: 15px 10px;
        padding: 12px;
        justify-content: center;
        flex-direction: column;
        gap: 8px;
    }

    .vert a span {
        display: none;
    }

    .vert a i {
        margin-right: 0;
        font-size: 20px;
    }

    /* Ajustar contenido principal */
    .main-content {
        margin-left: 70px;
        padding: 24px 16px;
    }

    /* Formulario */
    .container-config {
        padding: 24px 16px;
        max-width: 100%;
    }

    .container-config h1 {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .ddos1 {
        flex-direction: column;
        gap: 24px;
    }

    /************** compras ***************/
    /* Tabla de pedidos */
    .recent-orders {
        max-width: 90vw;
        padding: 12px;
        border-radius: 12px;
    }

    .section-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
        margin-bottom: 24px;
    }

    .titulo-com {
        font-size: 26px;
        padding-left: 20px;
    }

    .add-btn {
        width: 100%;
        justify-content: flex-end;
        font-size: 14px;
    }

    .add-btn i {
        font-size: 20px;
    }

    .orders-table th,
    .orders-table td {
        padding: 12px 8px;
        font-size: 14px;
    }

    .btn-mas {
        min-width: 120px;
    }

    .btn-mas a {
        padding: 8px 16px;
        font-size: 13px;
    }

    /************* Factura **************/
    .factura-container {
        max-width: 90vw;
        padding: 20px;
        border-radius: 10px;
    }

    .factura-container h1 {
        font-size: 22px;
    }

    .factura-container th,
    .factura-container td {
        padding: 10px 6px;
        font-size: 13px;
    }

    .factura-container tfoot td {
        font-size: 14px;
    }

    .barra-de-marcas img {
        height: 30px;
        width: auto;
        padding: 0 20px;
        transition: all 0.2s ease-in-out;
    }

    /***************** SECCION UNO **************/

    #t1 {
        font-size: 32px;
        padding: 20px 0;
    }

    /* Añadir línea decorativa debajo del título */
    #t1::after {
        bottom: 20px;
    }

    #p1 {
        top: -20px;
        font-size: 16px;
        padding: 0 15px;
    }

    .container-product-cards {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 20px;
        padding: 15px;
    }

    .product-card {
        width: 100%;
        height: 500px;
    }

    .image-container img {
        height: 250px;
    }

    .text-card {
        height: 260px;
    }

    #text-precio,
    #text-precio2 {
        padding: 8px 40px;
        font-size: 16px;
    }

    .precio-original {
        font-size: 12px;
    }

    .precio-descuento {
        font-size: 16px;
    }

    #btn-add {
        padding: 10px 40px;
        font-size: 15px;
    }

    .btn-fav i {
        font-size: 26px;
    }

    /***************** SECCION DOS **************/

    #t2 {
        font-size: 32px;
    }

    .carousel-product {
        gap: 20px;
    }

    .product-card2 {
        width: 250px;
        height: 500px;
    }

    .text-card2 {
        height: 260px;
    }

    #btn-add2 {
        padding: 10px 40px;
        font-size: 15px;
    }


    /************* SECCION TRES ***************/
    .section3-product {
        padding: 30px 30px 30px;
    }

    .product-card3 {
        flex-direction: column;
        margin: 10px 50px;
    }

    .text-card3 {
        padding: 20px;
    }

    #inverse-text {
        padding: 20px;
    }

    #inverse {
        flex-direction: column;
    }

    .text-card3 h3 {
        text-align: center;
        margin-bottom: 0;
    }

    #text-marca3 {
        text-align: center;
    }

    .text-card3 p {
        font-size: 15px;
    }

    .image-container3 {
        display: flex;
        justify-content: center;
    }

    .image-container3 img {
        width: 40vw;
    }

    .ver-mas3 {
        width: 100%;
        ;
    }

    /***************** SECCION CUATRO **************/
    #t4,
    #t4-2 {
        font-size: 32px;
    }

    /* Añadir línea decorativa debajo del título */
    c {
        bottom: 20px;
    }

    #p4 {
        top: -20px;
        font-size: 16px;
        padding: 0 15px;
    }

    .product-card4,
    .product-card4-2 {
        width: 250px;
        height: 500px;
    }

    .text-card4 {
        height: 260px;
    }

    #btn-add4,
    #btn-add4-2 {
        padding: 10px 40px;
        font-size: 15px;
    }

    /***************** DETALLEs PRODUCTO ****************/
    .detalle-container {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
        padding: 15px;
    }

    .detalle-imagen img {
        max-height: 60vh;
    }

    .detalle-info h1 {
        font-size: 24px;
    }

    .descripcion {
        font-size: 14px;
    }

    .precio {
        font-size: 22px;
    }

    .swiper-container-externo {
        width: 100%;
        max-width: 450px;
    }

    .card-rel a {
        width: 100%;
        max-width: 280px;
        height: 90px;
    }

    .card-rel h3 {
        font-size: 11px;
    }

    /************* FOOTER ***************/
    .footer-container {
        height: 230px;
    }

}

@media screen and (max-width: 780px) {

    /* Header y navegación */
    .nombre-empresa {
        width: 180px;
    }

    .nombre-empresa a {
        font-size: 30px;
    }

    /* Estilo para la lista de navegación */
    .nav-links {
        gap: 5px;
    }

    .nav-links i {
        font-size: 20px;
    }

    .nav-links .house i {
        font-size: 16px;
    }

    .nav-links .usuario-menu i {
        font-size: 18px;
    }

    .nav-links li {
        padding: 5px;
        border-radius: 50%;
    }

    .nav-links li:hover {
        padding: 5px;
    }

    .usuario-menu {
        width: 120px;
    }

    .nombre-user {
        display: inline-block;
        font-size: 14px;
        font-weight: normal;
        line-height: 1.2;
        text-align: center;
    }

    /* Contenedor del menú de usuario */
    .usuario-dropdown a {
        font-size: 15px;
        padding: 6px;
    }

    /* Reposiciona el contenedor */
    .barra-de-busqueda {
        position: absolute;
        right: 180px;
        padding: 0;
    }

    .toggle-search {
        font-size: 16px;
    }

    /***************** Carrito ****************/
    #carrito {
        width: 350px;
    }

    #carrito-header h2 {
        font-size: 16px;
        margin: 0;
    }

    .carrito-item {
        padding: 15px 15px 0;
    }

    .carrito-item img {
        min-width: 60px;
        max-width: 60px;
        height: 60px;
        object-fit: cover;
        margin-right: 10px;
    }

    .carrito-item h4 {
        font-size: 12px;
    }

    .carrito-item p {
        font-size: 14px;
    }

    .carrito-item button {
        font-size: 12px;
    }

    .carrito-item input[type="number"] {
        font-size: 11px;
    }

    #carrito-footer p {
        font-size: 14px;
    }

    #carrito-footer button {
        padding: 10px;
        font-size: 12px;
        font-weight: 600;
    }

    /* Badge del carrito */
    .carrito-badge {
        top: -5px;
        right: -5px;
        width: 16px;
        height: 16px;
        line-height: 16px;
    }

    /***************** SECCION DOS ****************/

    .cp-container {
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    .carousel-product {
        padding: 20px 20px 20px 5px;
    }

    .product-card2 {
        width: 280px;
        height: 500px;
    }

    /************* SECCION TRES ***************/
    .product-card3 {
        padding: 10px;
        margin: 10px 20px;
    }

    .text-card3 h3 {
        text-align: center;
    }

    .descrption {
        font-size: 15px;
    }

    /**************** SECCION CUATRO ****************/
    .product-card4,
    .product-card4-2 {
        width: 300px;
        height: 500px;
    }

    .bx {
        font-size: 18px;
    }

    .btn-right-prd,
    .btn-left-prd {
        top: 42%;
        width: 40px;
        height: 40px;
    }

    /***************** DETALLEs PRODUCTO ****************/

    .detalle-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 15px 10px;
    }

    .detalle-columna {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .detalle-imagen img {
        max-height: 70vh;
    }

    .detalle-info {
        width: 100%;
        max-width: 600px;
    }

    .detalle-info h1 {
        font-size: 24px;
        text-align: center;
    }

    .descripcion {
        text-align: justify;
        font-size: 14px;
    }

    .precio {
        font-size: 22px;
        text-align: start;
        display: block;
    }

    .acciones {
        display: flex;
        flex-direction: row;
        gap: 30px;
        position: relative;
        left: -95px;
        width: 100%;
    }

    .text-cantidad {
        left: 130px;
        top: -30px;
        position: relative;
    }

    .btn-principal {
        width: 100%;
    }

    .titulo-relacionados {
        font-size: 18px;
    }

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

    .swiper-container-externo {
        width: 300px;
    }

    .card-rel a {
        max-width: 320px;
        height: 90px;
    }

    .card-rel h3 {
        font-size: 11px;
    }

    .price {
        font-size: 13px;
    }

    /************* FOOTER ***************/
    .footer-container {
        height: 170px;
    }

    .footer-section h4 {
        font-size: 16px;
    }

    .footer-section p {
        font-size: 10px;
    }

    .redes {
        font-size: 20px;
    }

}

@media screen and (max-width: 530px) {

    /* Header y navegación */
    .nombre-empresa {
        width: 150px;
    }

    .nombre-empresa a {
        font-size: 26px;
    }

    .nav-links {
        gap: 2px;
    }

    .nav-links i {
        font-size: 16px;
    }

    .nav-links .house i {
        font-size: 12px;
    }

    .nav-links .usuario-menu i {
        font-size: 12px;
    }

    .usuario-menu {
        width: 90px;
    }

    .nombre-user {
        display: inline-block;
        font-size: 12px;
        font-weight: normal;
        line-height: 1.2;
        text-align: center;
    }

    .nav-links li {
        padding: 5px;
    }

    /**************** Barra de bus. ****************/
    .barra-de-busqueda {
        position: absolute;
        right: 165px;
        padding: 0;
    }

    .toggle-search {
        right: -35px;
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    /* Cuando SÍ hay usuario - necesitas más espacio para el menú */
    body:has(.usuario-menu) .toggle-search {
        right: 20px;
    }

    .barra-de-busqueda.active .buscar {
        height: 30px;
        font-size: 14px;
    }

    /* Botón de búsqueda dentro del formulario activo */
    .barra-de-busqueda.active .btn-serch button {
        right: 30px;
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    /***************** SECCION UNO **************/

    #t1 {
        font-size: 26px;
        padding: 20px 0;
    }

    /* Añadir línea decorativa debajo del título */
    #t1::after {
        bottom: 22px;
        height: 2px;
    }

    #p1 {
        top: -20px;
        font-size: 14px;
        padding: 0 15px;
    }

    .container-product-cards {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 20px;
        padding: 15px;
    }

    .product-card {
        width: 100%;
        height: 380px;
    }

    .image-container img {
        height: 160px;
    }

    .text-card {
        height: 230px;
    }

    .text-card h3 {
        font-size: 12px;
    }

    .text-cardown {
        margin-top: 0;
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    #text-marca,
    #text-marca2 {
        font-size: 10px;
        text-align: left;
        color: rgba(115, 40, 62, 0.6);
    }

    #text-precio,
    #text-precio2 {
        padding: 8px 40px;
        font-size: 14px;
    }

    #btn-add {
        padding: 10px 30px;
        font-size: 12px;
    }

    .precio-original {
        font-size: 10px;
    }

    .precio-descuento {
        font-size: 14px;
    }

    /************* SECCION DOS ***************/
    .cp-container {
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    #t2 {
        font-size: 26px;
        padding: 0 30px;
    }

    .carousel-product {
        gap: 10px;
        padding: 20px 5px 20px 5px;
    }

    .product-card2 {
        width: 220px;
        height: 380px;
    }

    .text-card2 {
        height: 230px;
    }

    .text-card2 h3 {
        font-size: 12px;
    }

    #btn-add2 {
        padding: 10px 40px;
        font-size: 12px;
    }

    /************* SECCION TRES ***************/
    .section3-product {
        padding: 0;
    }

    #t3 {
        font-size: 25px;
    }

    #p3 {
        font-size: 12px;
    }

    .container-product-cards3 {
        padding-bottom: 20px;
        gap: 10px;
    }

    .product-card3,
    #inverse {
        display: flex;
        flex-direction: row;
        padding: 5px;
        width: auto;
        height: 150px;
    }

    .text-card3 {
        padding: 20px 10px;
    }

    #inverse-text {
        padding: 20px 10px;
    }

    .text-card3 h3 {
        text-align: center;
        font-size: 15px;
    }

    .descripcion-corta {
        display: none;
    }

    .descripcion-completa {
        display: none;
    }

    .ver-mas-btn {
        display: none;
    }

    .image-container3 {
        padding: 10px 10px;
    }

    .image-container3 img {
        height: 130px;
        width: auto;
        border-radius: 10px;
    }

    /************* SECCION cuatro ***************/

    #t4,
    #t4-2 {
        font-size: 26px;
    }

    /* Añadir línea decorativa debajo del título */
    #t4::after,
    #t4-2::after {
        bottom: 22px;
        height: 2px;
    }

    #p4 {
        top: -20px;
        font-size: 14px;
        padding: 0 15px;
    }

    .carousel-product4,
    .carousel-product4-2 {
        gap: 20px;
    }

    .product-card4,
    .product-card4-2 {
        width: 220px;
        height: 380px;
    }

    .text-card4 {
        height: 230px;
    }

    .text-card4 h3 {
        font-size: 12px;
    }

    #btn-add4,
    #btn-add4-2 {
        padding: 10px 40px;
        font-size: 12px;
    }

    /***************** DETALLEs PRODUCTO ****************/
    .detalle-container {
        gap: 15px;
        padding: 10px;
    }

    .detalle-imagen img {
        max-height: 40vh;
    }

    .detalle-info h1 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .descripcion {
        font-size: 13px;
        margin-bottom: 15px;
    }

    .precio {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .text-cantidad {
        font-size: 13px;
    }

    .cantidad input {
        width: 40px;
        font-size: 14px;
    }

    .cantidad button {
        font-size: 14px;
        padding: 5px 8px;
    }

    .btn-principal {
        padding: 10px 15px;
        font-size: 14px;
    }

    .titulo-relacionados {
        font-size: 16px;
        margin: 15px auto;
        padding-top: 15px;
    }

    .swiper-container-externo {
        max-width: 100%;
    }

    .card-rel a {
        width: 100%;
        max-width: 280px;
        height: 85px;
        padding: 8px;
    }

    .card-rel img {
        height: 70px;
    }

    .card-rel h3 {
        font-size: 10px;
    }

    .price {
        font-size: 12px;
    }

    #btn-add-rel {
        padding: 4px;
        font-size: 12px;
    }

    .swiper-pagination-container {
        bottom: -30px;
    }

    /************* FOOTER ***************/
    .footer-container {
        height: 300px;
    }

    .footer-section h4 {
        font-size: 15px;
    }

    .footer-section p {
        font-size: 12px;
    }

    .redes {
        font-size: 25px;
    }

    .alert {
        right: 10px;
        max-width: 300px;
        top: 10px;
    }
}

@media screen and (max-width: 400px) {

    /* Header y navegación */
    .nombre-empresa {
        width: 150px;
    }

    .nombre-empresa a {
        font-size: 18px;
    }

    /***************** SECCION UNO **************/

    .text-card h3 {
        font-size: 16px;
    }

    #text-marca,
    #text-marca2 {
        font-size: 12px;
        text-align: left;
        color: rgba(115, 40, 62, 0.6);
    }

    #text-precio,
    #text-precio2 {
        padding: 8px 40px;
        font-size: 16px;
    }

    .precio-original {
        font-size: 12px;
    }

    .precio-descuento {
        font-size: 16px;
    }

    #btn-add {
        padding: 10px 30px;
        font-size: 14px;
    }

    /************* SECCION DOS ***************/

    .product-card2 {
        width: 300px;
        height: 380px;
    }

    .text-card2 h3 {
        font-size: 16px;
    }

    #btn-add2 {
        padding: 10px 30px;
        font-size: 14px;
    }

    /***************** DETALLEs PRODUCTO ****************/
    .detalle-container {
        padding: 8px;
        gap: 10px;
    }

    .detalle-imagen img {
        max-height: 35vh;
        border-radius: 8px;
    }

    .detalle-info h1 {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .descripcion-corta {
        display: none;
        font-size: 12px;
        margin-bottom: 12px;
    }

    .descripcion-completa {
        display: none;
        font-size: 12px;
        margin-bottom: 12px;
    }

    .precio {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .text-cantidad {
        font-size: 12px;
        margin-top: 8px;
    }

    .cantidad {
        padding: 4px 0;
    }

    .cantidad input {
        width: 35px;
        font-size: 13px;
    }

    .cantidad button {
        font-size: 13px;
        padding: 4px 6px;
    }

    .btn-principal {
        padding: 8px 12px;
        font-size: 13px;
        max-width: 250px;
    }

    .titulo-relacionados {
        font-size: 15px;
        margin: 12px auto;
        padding-top: 12px;
    }

    .card-rel a {
        max-width: 100%;
        height: 75px;
        padding: 6px;
    }

    .card-rel img {
        height: 60px;
        width: 35%;
    }

    .rel-inf {
        flex: 1;
    }

    .card-rel h3 {
        font-size: 9px;
        margin: 3px 0;
    }

    .price {
        font-size: 11px;
        margin-bottom: 3px;
    }

    #btn-add-rel {
        padding: 3px;
        font-size: 11px;
        margin: 3px;
    }

    .swiper-pagination-container {
        bottom: -20px;
    }

    .swiper-container-externo .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
    }

}