/*==============================================================
  ASOL HAIR CARE
  Base + Layout + Header + Hero + Botones + Formularios
==============================================================*/


:root {
    /* Colores */

    --color-bg: #F3EDF4;
    --color-bg-alt: #ECE1EE;
    --color-card: #FFFFFF;
    --color-primario: #6B2F8C;
    --color-secundario: #9A5DB4;
    --color-acento: #D978A9;
    --color-texto: #2A1A30;
    --color-texto-suave: #66566C;
    --color-borde: #DACBE1;
    --color-whatsapp: #25D366;
    --color-error: #B84563;
    /* Tipografía */

    --font-display: "Fraunces",serif;
    --font-body: "Work Sans",sans-serif;
    --font-mono: "Space Mono",monospace;
    /* Medidas */

    --radio: 18px;
    --radio-pequeno: 12px;
    --sombra: 0 8px 30px rgba(53,25,75,.08);
    --transicion: .25s ease;
}


.nav-principal a.nav-activo {
    color: var(--color-primario);
    font-weight: 600;
}

    .nav-principal a.nav-activo::after {
        content: "";
        display: block;
        width: 100%;
        height: 2px;
        margin-top: 6px;
        background: var(--color-primario);
        border-radius: 10px;
    }


@media (max-width: 768px) {
    .selector-cantidad__boton:focus,
    .boton:focus {
        outline: none;
        box-shadow: none;
        border: 1px solid transparent;
    }

    .selector-cantidad__input {
        border-radius: 12px;
    }
}

/* ===========================
   ADMINISTRACIÓN
=========================== */

.admin-encabezado {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-card h2 img {
    width: 35px;
    height: 35px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: .5rem;
}


.acciones-admin {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .6rem;
    flex-wrap: nowrap;
}

    .acciones-admin .boton {
        padding: .45rem 1rem;
        font-size: .9rem;
        white-space: nowrap;
    }


.form-inline {
    display: inline-flex;
    margin: 0;
}


.logo-admin,
.logo-tabla {
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid var(--color-borde);
    background: #fff;
}

.logo-admin {
    width: 70px;
    height: 70px;
    padding: .4rem;
}

.logo-tabla {
    width: 70px;
    height: 70px;
    padding: .3rem;
}
/* ===========================
   BOTONES
=========================== */

.volver-contenedor {
    display: flex;
    justify-content: flex-start;
    margin-top: 2rem;
    padding-left: 1rem;
}

.boton.volver {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .75rem 1.4rem;
    border: 1px solid var(--color-primario);
    border-radius: 999px;
    background: transparent;
    color: var(--color-primario);
    font-weight: 600;
    transition: .25s ease;
}

    .boton.volver:hover {
        background: var(--color-primario);
        color: white;
        transform: translateX(-3px);
    }

    .boton.volver i {
        font-size: 1.1rem;
    }


.boton--centrado {
    display: flex;
    width: fit-content;
    margin: 1.5rem auto 0;
}

.boton--mapa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .6rem 1rem;
    font-size: .85rem;
    font-weight: 600;
    border-radius: 999px;
    border: 1px solid var(--color-primario);
    width: auto;
    min-width: 0;
    cursor: pointer;
    text-decoration: none;
    transition: .25s ease;
}

    .boton--mapa:hover {
        transform: translateY(-2px);
    }

    .boton--mapa img {
        width: 18px;
        height: 18px;
        object-fit: contain;
    }



.carrito-pagina {
    min-height: 80vh;
}

.boton-contenedor {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.carrito-resumen form {
    display: flex;
    justify-content: center;
}

.vacio + .boton {
    display: block;
    width: fit-content;
    margin: 1rem auto 0;
    text-align: center;
}

/* ===========================
   FORMULARIOS ADMIN
=========================== */

.admin-formulario {
    max-width: 1120px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--color-card);
    border: 1px solid var(--color-borde);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
}


.formulario-admin {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}


    .formulario-admin .campo {
        display: flex;
        flex-direction: column;
        gap: .5rem;
    }


    .formulario-admin label {
        font-weight: 600;
        color: var(--color-texto);
    }


    .formulario-admin input:not(.form-check-input),
    .formulario-admin textarea,
    .formulario-admin select {
        width: 100%;
        padding: .8rem 1rem;
        border: 1px solid var(--color-borde);
        border-radius: 10px;
        background: white;
        font-size: 1rem;
    }


        .formulario-admin input:not(.form-check-input):focus,
        .formulario-admin textarea:focus,
        .formulario-admin select:focus {
            outline: none;
            border-color: var(--color-principal);
        }
    /* CHECKBOX */

    .formulario-admin .form-check {
        display: flex;
        align-items: center;
        gap: .6rem;
    }


    .formulario-admin .form-check-input {
        width: auto;
        padding: 0;
        margin: 0;
        float: none;
    }


    .formulario-admin .form-check-label {
        margin: 0;
    }
/* BOTONES DEL FORMULARIO */

.acciones-formulario {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}


    .acciones-formulario .boton {
        margin-top: 0;
    }
/* RESPONSIVE */

@media (max-width:768px) {

    .admin-formulario {
        padding: 1.5rem;
    }


    .acciones-formulario .boton {
        width: 100%;
    }
}
/* ===========================
   CARRITO
=========================== */

.carrito-lista {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}


.carrito-item {
    display: grid;
    grid-template-columns: 90px 1fr auto auto auto;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem;
    background: var(--color-card);
    border: 1px solid var(--color-borde);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
}


.carrito-item__imagen {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid var(--color-borde);
    background: white;
}


.carrito-item__imagen--vacia {
    display: block;
}


.carrito-item__info {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}


.carrito-item__nombre {
    font-weight: 700;
    font-size: 1.1rem;
}


.carrito-item__precio-unitario {
    color: #666;
}




.carrito-item__quitar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: #eee;
    cursor: pointer;
    font-size: 1.1rem;
}


    .carrito-item__quitar:hover {
        background: #ddd;
    }

.boton--whatsapp {
    background: #25D366;
    color: white;
    gap: 8px;
    border: none;
    flex-shrink: 0
}

    .boton--whatsapp:hover {
        background: #1ebe5d;
        color: white;
    }


.boton--bloque {
    width: 100%;
}
/* RESUMEN */

.carrito-resumen {
    margin-top: 2rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    background: var(--color-card);
    border: 1px solid var(--color-borde);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
}


.carrito-resumen__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.3rem;
}


    .carrito-resumen__total strong {
        font-size: 1.5rem;
    }
/* BOTÓN WHATSAPP */


.vacio {
    padding: 2rem;
    background: var(--color-card);
    border-radius: 18px;
    border: 1px solid var(--color-borde);
    text-align: center;
}


@media(max-width:768px) {

    .carrito-item {
        grid-template-columns: 1fr;
        text-align: center;
    }


    .carrito-item__imagen-envoltorio {
        display: flex;
        justify-content: center;
    }


    .carrito-item__cantidad input {
        width: 100%;
    }


    .carrito-resumen__total {
        flex-direction: column;
        gap: .5rem;
    }
}
/* ==========================================================
   HERO (PÁGINA DE INICIO)
   ========================================================== */

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

    .hero__logo img {
        width: 220px;
        max-width: 100%;
        height: auto;
    }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 768px) {

    .hero {
        padding: 3rem 0;
    }


    .hero__interior {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }


    .hero__texto {
        text-align: center;
    }


    .hero__titulo {
        font-size: 2.2rem;
        line-height: 1.2;
    }


    .hero__descripcion {
        max-width: 90%;
        margin: 0 auto;
        font-size: 1rem;
    }


    .hero__logo img {
        width: 150px;
        margin: 0 auto;
    }


    .hero .boton {
        width: 90%;
        max-width: 320px;
        margin: 1rem auto 0;
    }
}


@media (max-width: 480px) {

    .hero {
        padding: 2rem 0;
    }


    .hero__interior {
        gap: 1.8rem;
    }


    .hero__titulo {
        font-size: 1.8rem;
    }


    .hero__descripcion {
        max-width: 100%;
        font-size: .95rem;
    }


    .hero__logo img {
        width: 160px;
    }
}
/*==============================================================
 RESET
==============================================================*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    background: var(--color-bg);
    color: var(--color-texto);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    max-width: 100%;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    min-height: 70vh;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}
/*==============================================================
 CONTENEDOR
==============================================================*/

.contenedor {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}
/* Contenedor de la tabla: si la tabla es más ancha que la pantalla,
   el scroll horizontal queda encerrado aquí — la página (header/footer)
   nunca se mueve. */
.admin-tabla {
    width: 100%;
    margin-top: 1.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 18px;
}

.tabla-admin {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--sombra);
}

    .tabla-admin th {
        background: var(--color-primario);
        color: #fff;
        text-align: center;
        padding: 1rem 1.2rem;
        font-weight: 600;
    }

    .tabla-admin td {
        padding: 1rem 1.2rem;
        border: 1px solid var(--color-borde);
        vertical-align: middle;
    }

    .tabla-admin tbody tr:nth-child(even) {
        background: var(--color-bg-alt);
    }

    .tabla-admin tbody tr:hover {
        background: #f5eefc;
        transition: .2s;
    }

.boton--verde {
    background: #35a853;
    color: #fff;
    border: none;
}

    .boton--verde:hover {
        background: #2d9248;
    }

.boton--rojo {
    background: #d9534f;
    color: #fff;
    border: none;
}

    .boton--rojo:hover {
        background: #c53d39;
    }
/*==============================================================
 HEBRA
==============================================================*/

/*==============================================================
 HEADER
==============================================================*/

.encabezado {
    background: linear-gradient( 135deg, #6B2F8C 0%, #7F4CC4 45%, #9A5DB4 75%, #C38CE6 100% );
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 8px 25px rgba(53, 25, 75, .20);
}

.encabezado__interior {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    padding: 1rem 0 .8rem;
    position: relative;
}

    .encabezado__interior .marca {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        text-decoration: none;
    }

.encabezado .marca__eyebrow {
    color: rgba(255, 255, 255, .85);
    font-size: .75rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.encabezado .marca__nombre {
    color: #f06cd1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

    .encabezado .marca__nombre em {
        color: #f06cd1;
    }

.encabezado__interior .nav-principal {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.encabezado .nav-principal a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: .25s ease;
}

    .encabezado .nav-principal a:hover {
        opacity: .8;
        transform: translateY(-1px);
    }


.encabezado__interior .carrito-boton {
    position: absolute;
    right: 1.5rem;
    bottom: 1rem;
}

.encabezado .carrito-boton {
    color: #fff;
}

.hebra {
    height: 3px;
    background: linear-gradient( 90deg, #6B2F8C, #D8A7E8, #6B2F8C );
    opacity: .6;
}

@media (max-width: 768px) {

    .encabezado__interior {
        padding: 1rem 4.5rem .8rem;
    }

        .encabezado__interior .nav-principal {
            width: 100%;
        }

        .encabezado__interior .salir-edicion {
            width: 100%;
            display: flex;
            justify-content: center;
        }

        .encabezado__interior .boton-salir {
            white-space: nowrap;
        }

        .encabezado__interior .carrito-boton {
            position: absolute;
            right: .7rem;
            bottom: 1rem;
        }
}
/*==============================================================
 LOGO
==============================================================*/

.marca {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    white-space: nowrap;
    order: 1;
}

.marca__eyebrow {
    font-family: var(--font-mono);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-secundario);
}

.marca__nombre {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--color-primario);
}

    .marca__nombre em {
        font-style: italic;
        color: var(--color-acento);
    }
/*==============================================================
 NAV PÚBLICO (siempre visible, fila 1)
==============================================================*/

.nav-publico {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex: 0 0 auto;
    order: 2;
}

    .nav-publico a {
        color: white;
        font-weight: 600;
    }
/*==============================================================
 MENU
==============================================================*/

.encabezado__admin-nav {
    order: 4;
    flex: 1 1 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem 1.5rem;
}

.salir-edicion {
    margin: 0;
}

.nav-principal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
    justify-content: center;
}

    .nav-principal a {
        position: relative;
        font-weight: 600;
        transition: var(--transicion);
    }

        .nav-principal a:hover {
            color: var(--color-primario);
        }

        .nav-principal a::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -6px;
            width: 0;
            height: 2px;
            background: var(--color-acento);
            transition: .3s;
        }

        .nav-principal a:hover::after {
            width: 100%;
        }
/*==============================================================
 CARRITO
==============================================================*/

.carrito-boton {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: .25s;
    flex: 0 0 auto;
    flex-shrink: 0;
    order: 3;
    margin-left: auto;
    margin-right: 10px;
}

    .carrito-boton:hover {
        background: #EFE2F8;
        transform: translateY(-2px);
    }

.carrito-boton__contador {
    position: absolute;
    margin-left: 28px;
    margin-top: -28px;
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--color-primario);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: .72rem;
    font-weight: bold;
}

/*==============================================================
 HERO
==============================================================*/

.hero {
    position: relative;
    padding: 5rem 0;
    background: linear-gradient( 135deg, #FCF7FD, #F6ECFB, #FFF3F8 );
}

    .hero::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: -1px;
        height: 50px;
        pointer-events: none;
        background: linear-gradient( to bottom, transparent 0%, var(--color-bg) 100% );
    }

.hero__interior {
    display: flex;
    justify-content: center;
    text-align: center;
}

.hero__texto {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.hero__titulo {
    font-family: var(--font-display);
    font-size: 3.4rem;
    line-height: 1.15;
    margin-top: .5rem;
    margin-bottom: 1rem;
}

    .hero__titulo em {
        color: var(--color-primario);
        font-style: italic;
    }

.hero__descripcion {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
    text-align: center;
    color: var(--color-texto-suave);
}
/*==============================================================
 TITULOS
==============================================================*/

.seccion {
    padding: 5rem 0;
}

.seccion__titulo {
    text-align: center;
    font-size: 2.5rem;
    font-family: var(--font-display);
    margin-bottom: 3rem;
}
/*==============================================================
 BOTONES
==============================================================*/


.boton {
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

    .boton:hover {
        transform: translateY(-2px);
    }

    .boton:active {
        transform: translateY(0);
    }

.boton--primario,
.boton--linea {
    flex-shrink: 0;
    width: 180px;
    box-sizing: border-box;
}


.boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    padding: .9rem 1.8rem;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: .25s;
    font-weight: 600;
    font-size: 1rem;
}

    .boton:hover {
        transform: translateY(-2px);
    }

.boton--primario {
    min-width: 140px;
    background: var(--color-primario);
    border: 1px solid #500174;
    color: white;
}

    .boton--primario:hover {
        background: #7347AF;
    }

.boton--linea {
    min-width: 140px;
    background: whiteboton--primario
    border: 1px solid var(--color-primario);
    color: var(--color-primario);
}

    .boton--linea.boton--pequeno {
        min-width: auto;
        width: auto;
        padding: .6rem 1rem;
    }

    .boton--linea:hover {
        background: var(--color-primario);
        color: white;
    }
/* ===========================
   SERVICIOS
=========================== */

.tarjeta-servicio {
    background: #fff;
    border: 1px solid var(--color-borde);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: .25s ease;
}

    .tarjeta-servicio:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0,0,0,.08);
    }

.tarjeta-servicio__imagen-envoltorio {
    display: block;
    width: 100%;
    aspect-ratio: 9 / 16;
    overflow: hidden;
}

.tarjeta-servicio__imagen {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tarjeta-servicio__imagen--vacia {
    width: 100%;
    height: 100%;
    background: var(--color-bg-alt);
}

.tarjeta-servicio__cuerpo {
    display: flex;
    flex-direction: column;
    gap: .8rem;
    padding: 1.25rem;
}

.tarjeta-servicio__nombre {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-texto);
    text-decoration: none;
}

.tarjeta-servicio__precio {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-primario);
    white-space: nowrap;
}

.tarjeta-servicio .boton {
    margin-top: .5rem;
}

.grid-servicios {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}


/* ===========================
   DETALLE DE SERVICIO
=========================== */

.detalle-servicio {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    gap: 3rem;
    align-items: start;
}

.detalle-servicio__galeria {
    width: 100%;
}

.detalle-servicio__imagen-envoltorio {
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border-radius: 16px;
    background: #f8f2fb;
}

.detalle-servicio__imagen {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.detalle-servicio__imagen--vacia {
    width: 100%;
    height: 100%;
    background: var(--color-bg-alt);
}

.detalle-servicio__miniaturas {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    margin-top: 1rem;
}

.detalle-servicio__miniatura {
    width: 80px;
    height: 105px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    background: #f8f2fb;
    cursor: pointer;
    transition: .2s ease;
}

    .detalle-servicio__miniatura:hover {
        border-color: var(--color-secundario);
        transform: translateY(-2px);
    }

    .detalle-servicio__miniatura img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.detalle-servicio__info {
    padding-top: 1rem;
}


/* ===========================
   IMÁGENES EN ADMINISTRACIÓN
=========================== */

.campo__vista-previa {
    display: block;
    width: 180px;
    height: 240px;
    object-fit: cover;
    border-radius: 12px;
    margin-top: .75rem;
}

.imagenes-referencia-admin {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: .75rem;
}

.imagen-referencia-admin {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
}

    .imagen-referencia-admin .campo__vista-previa {
        width: 160px;
        height: 220px;
        object-fit: cover;
    }


/* ===========================
   FORMULARIOS
=========================== */

.campo {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-bottom: 1.5rem;
}

    .campo label {
        font-weight: 600;
    }

    .campo input,
    .campo select,
    .campo textarea {
        padding: .9rem 1rem;
        border-radius: 12px;
        border: 1px solid var(--color-borde);
        background: white;
        transition: .2s;
    }

        .campo input:focus,
        .campo select:focus,
        .campo textarea:focus {
            outline: none;
            border-color: var(--color-secundario);
            box-shadow: 0 0 0 4px rgba(185,122,217,.15);
        }


/* ===========================
   MÓVIL
=========================== */

@media (max-width: 768px) {

    .grid-servicios {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
        width: 100%;
    }

    .tarjeta-servicio {
        width: 100%;
        min-width: 0;
    }

    .tarjeta-servicio__cuerpo {
        padding: 1rem;
        gap: .5rem;
    }

    .tarjeta-servicio__nombre {
        font-size: 1rem;
    }

    .tarjeta-servicio__precio {
        font-size: .85rem;
        white-space: normal;
        line-height: 1.3;
    }


    /* DETALLE */

    .detalle-servicio {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .detalle-servicio__imagen-envoltorio {
        max-width: 100%;
        aspect-ratio: 9 / 16;
        border-radius: 16px;
    }

    .detalle-servicio__miniatura {
        width: 65px;
        height: 85px;
    }

    .detalle-servicio__info {
        padding-top: 0;
    }
}
/*==============================================================
 CATÁLOGO Y TARJETAS
==============================================================*/


.catalogo {
    padding: 4rem 0 5rem;
}
/* ===========================
   FILTROS DEL CATÁLOGO
=========================== */

.filtros {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin: 2.5rem 0;
}
/* ===========================
   BÚSQUEDA
=========================== */

.filtros__busqueda {
    width: 100%;
    max-width: 520px;
    display: flex;
    justify-content: center;
}

    .filtros__busqueda input {
        width: 100%;
        padding: .95rem 1.3rem;
        border: 1px solid var(--color-borde);
        border-radius: 999px;
        background: #fff;
        font-size: 1rem;
    }

        .filtros__busqueda input:focus {
            outline: none;
            border-color: var(--color-primario);
            box-shadow: 0 0 0 4px rgba(135,86,200,.12);
        }
/* ===========================
   CATEGORÍA Y MARCA
=========================== */

.filtros__selects {
    width: 100%;
    max-width: 520px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

    .filtros__selects .campo {
        margin: 0;
    }

    .filtros__selects select {
        width: 100%;
    }
/* ===========================
   PRECIOS
=========================== */

.filtros__precios {
    width: 100%;
    max-width: 520px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

    .filtros__precios .campo {
        margin: 0;
    }

    .filtros__precios input {
        width: 100%;
    }
/* ===========================
   BOTONES
=========================== */

.filtros__botones {
    display: flex;
    gap: 1rem;
    justify-content: center;
}
/* ===========================
   RESPONSIVE
=========================== */

@media (max-width: 768px) {

    .filtros {
        margin-left: .5rem;
        margin-right: .5rem;
    }

    .filtros__busqueda {
        width: 100%;
        max-width: 100%;
    }

    .filtros__selects,
    .filtros__precios {
        width: 100%;
        max-width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: .75rem;
    }

    .filtros .campo {
        min-width: 0;
    }

    .filtros input,
    .filtros select {
        width: 100%;
        box-sizing: border-box;
    }

    .filtros__botones {
        flex-direction: row;
        justify-content: center;
        gap: .75rem;
        width: 100%;
    }

        .filtros__botones .boton {
            width: 120px;
            height: 42px;
            box-sizing: border-box;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: .4rem;
            padding: 0;
        }
}

.precio-input {
    position: relative;
    width: 100%;
}

    .precio-input span {
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1;
        color: #777;
        font-weight: 500;
        pointer-events: none;
    }

    .precio-input input {
        width: 100%;
        box-sizing: border-box;
        padding: .75rem .8rem .75rem 2rem;
        border: 1px solid var(--color-borde);
        border-radius: 8px;
        background: #fff;
        outline: none;
    }

        .precio-input input:focus {
            border-color: var(--color-primario);
            box-shadow: 0 0 0 4px rgba(135,86,200,.12);
        }
/*==============================================================
 BADGES
==============================================================*/

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .45rem .9rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
}

.badge--rosa {
    background: #FFE3EF;
    color: #C84E8E;
}

.badge--lila {
    background: #EFE5FC;
    color: #8257C3;
}
/*==============================================================
 TITULO CATALOGO
==============================================================*/

.catalogo__titulo {
    font-family: var(--font-display);
    font-size: 2.8rem;
    margin-bottom: 1rem;
    text-align: center;
}

.catalogo__descripcion {
    max-width: 700px;
    margin: auto;
    text-align: center;
    color: var(--color-texto-suave);
    margin-bottom: 3rem;
}
/*==============================================================
 ANIMACION
==============================================================*/

@keyframes aparecer {

    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}
/* ==========================================================
   CATÁLOGO
========================================================== */

.grid-productos {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 2rem;
    margin: 2.5rem 0;
}

.producto__imagen {
    overflow: hidden;
}

    .producto__imagen img {
        transition: transform 0.35s ease;
    }

.producto:hover .producto__imagen img {
    transform: scale(1.05);
}

.tarjeta-producto {
    background: var(--color-card);
    border-radius: 22px;
    overflow: hidden;
    transition: .25s;
    box-shadow: 0 10px 30px rgba(122,76,154,.08);
    border: 1px solid rgba(182,140,212,.18);
}

    .tarjeta-producto:hover {
        transform: translateY(-8px);
        box-shadow: 0 22px 40px rgba(122,76,154,.16);
    }

.tarjeta-producto__enlace {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.tarjeta-producto__imagen-envoltorio {
    position: relative;
    aspect-ratio: 1;
    background: linear-gradient(180deg,#fff,#f8f2fb);
    overflow: hidden;
}

.tarjeta-producto__imagen {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1.5rem;
    transition: .35s;
}

.tarjeta-producto:hover .tarjeta-producto__imagen {
    transform: scale(1.05);
}

.tarjeta-producto__imagen--vacia {
    width: 100%;
    height: 100%;
    background: #f2edf7;
}

.tarjeta-producto__logo-marca {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: contain;
    background: white;
    padding: 6px;
    border: 2px solid #f0d8ff;
    box-shadow: 0 6px 16px rgba(0,0,0,.15);
}

.tarjeta-producto__cuerpo {
    padding: 1.2rem;
    text-align: center;
}

.tarjeta-producto__nombre {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #53355f;
    line-height: 1.4;
    min-height: 2.8em;
}

.tarjeta-producto__precio {
    display: block;
    margin-top: .8rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #9a55c8;
}

.servicio__descripcion {
    margin-top: .4rem;
    font-size: .88rem;
    line-height: 1.5;
    color: var(--color-texto-suave);
}

/* ==========================================
   TRANSICIÓN AL ABRIR PRODUCTO
   ========================================== */

.tarjeta-producto__enlace {
    transition: opacity 0.25s ease;
}

/* Estado al hacer clic */
.tarjeta-producto.saliendo {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 25px 50px rgba(122, 76, 154, .20);
    transition: transform 0.35s ease, box-shadow 0.35s ease, opacity 0.35s ease;
}

    .tarjeta-producto.saliendo .tarjeta-producto__imagen {
        transform: scale(1.08);
        transition: transform 0.35s ease;
    }

    .tarjeta-producto.saliendo .tarjeta-producto__cuerpo {
        opacity: .85;
        transition: opacity 0.25s ease;
    }

/* ---------- Responsive ---------- */

@media (max-width:1100px) {

    .grid-productos {
        grid-template-columns: repeat(3,1fr);
    }
}

@media (max-width:850px) {

    .grid-productos {
        grid-template-columns: repeat(2,1fr);
        gap: 1.5rem;
    }
}

@media (max-width:520px) {

    .grid-productos {
        grid-template-columns: repeat(2,1fr);
        gap: 0.8rem;
    }

    .tarjeta-producto__logo-marca {
        width: 40px;
        height: 40px;
    }

    .tarjeta-producto__cuerpo {
        padding: 0.8rem;
    }

    .tarjeta-producto__nombre {
        font-size: 0.85rem;
        min-height: 2.4em;
    }

    .tarjeta-producto__precio {
        font-size: 1.05rem;
        margin-top: 0.4rem;
    }
}
/*==============================================================
 PARTE 4/4
 DETALLE DEL PRODUCTO + FOOTER
==============================================================*/


.detalle-producto {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 5rem;
    align-items: center;
    padding: 5rem 0;
}


/*==============================================================
 IMAGEN
==============================================================*/

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

.detalle-producto__imagen {
    width: 100%;
    max-width: 560px;
    border-radius: 26px;
    background: white;
    padding: 2rem;
    object-fit: contain;
    box-shadow: 0 20px 45px rgba(0,0,0,.08);
}

.detalle-producto__imagen--vacia {
    width: 100%;
    aspect-ratio: 1;
    background: #EFEAF5;
    border-radius: 26px;
}


/*==============================================================
 INFORMACION
==============================================================*/

.detalle-producto__info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}


.detalle-producto__titulo {
    margin: .6rem 0 1rem;
    font-size: 3rem;
    line-height: 1.15;
    font-family: var(--font-display);
    color: var(--color-texto);
}

.etiqueta {
    display: inline-flex;
    padding: .45rem 1rem;
    border-radius: 999px;
    background: #F2E6FD;
    color: var(--color-primario);
    font-weight: 600;
    margin-bottom: 1.3rem;
}

.detalle-producto__precio {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-primario);
    margin-bottom: 1.5rem;
}

.detalle-producto__descripcion {
    color: var(--color-texto-suave);
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 520px;
}


/*==============================================================
 FORMULARIO
==============================================================*/

.detalle-producto__formulario {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
}


/*==============================================================
 SELECTOR
==============================================================*/

.selector-cantidad {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-borde);
    border-radius: 999px;
    overflow: hidden;
    background: white;
}

.selector-cantidad__boton {
    width: 46px;
    height: 46px;
    border: none;
    background: #F8F2FC;
    color: var(--color-primario);
    font-size: 1.3rem;
    cursor: pointer;
    transition: .2s;
}

    .selector-cantidad__boton:hover {
        background: #ECDCF8;
    }

.selector-cantidad__input {
    width: 70px;
    border: none;
    text-align: center;
    font-size: 1rem;
    outline: none;
    -moz-appearance: textfield;
    appearance: textfield;
}

    .selector-cantidad__input::-webkit-outer-spin-button,
    .selector-cantidad__input::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

.carrito-item__cantidad .selector-cantidad {
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .15rem;
    border: none;
    border-radius: 999px;
    background: transparent;
    overflow: visible;
}

.carrito-item__cantidad .selector-cantidad__boton {
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--color-primario);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .2s;
}

    .carrito-item__cantidad .selector-cantidad__boton:hover {
        background: #EFE2F8;
    }

.carrito-item__cantidad .selector-cantidad__input {
    width: 32px;
    height: 36px;
    padding: 0;
    border: none;
    background: transparent;
    text-align: center;
    font-size: .95rem;
    font-weight: 600;
    color: var(--color-texto);
    outline: none;
}

/* ==========================================
   MODAL DE CONFIRMACIÓN
   ========================================== */

.modal-confirmacion {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

    .modal-confirmacion.activo {
        display: flex;
    }

.modal-confirmacion__contenido {
    width: 100%;
    max-width: 420px;
    background: var(--color-bg, #fff);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
}

    .modal-confirmacion__contenido h3 {
        margin: 0 0 10px;
    }

    .modal-confirmacion__contenido p {
        margin: 0 0 22px;
    }

.modal-confirmacion__acciones {
    display: flex;
    justify-content: center;
    gap: 10px;
}

    .modal-confirmacion__acciones .boton {
        min-width: 100px;
    }

/* Versión compacta: cuando el selector vive dentro de la tarjeta
   chica del catálogo (no en la página de detalle), para que no
   desborde el ancho de la tarjeta en 2 columnas en móvil. */
.tarjeta-producto .selector-cantidad__boton {
    width: 28px;
    height: 28px;
    font-size: 1rem;
}

.tarjeta-producto .selector-cantidad__input {
    width: 32px;
    font-size: 0.85rem;
}

.tarjeta-producto__cuerpo form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 0.7rem;
}

    .tarjeta-producto__cuerpo form .boton {
        width: auto;
        min-width: 0;
        padding: 0.5rem 0.9rem;
        font-size: 0.8rem;
    }


/*==============================================================
 BOTON AGREGAR
==============================================================*/

.detalle-producto__formulario .boton {
    width: auto;
    min-width: 220px;
    padding: .9rem 2rem;
}


/*==============================================================
 VOLVER
==============================================================*/

.detalle-producto__volver {
    margin-top: 2rem;
    color: var(--color-primario);
    font-weight: 600;
    transition: .2s;
}

    .detalle-producto__volver:hover {
        color: var(--color-secundario);
    }


/*==============================================================
 FOOTER
==============================================================*/

.pie {
    margin-top: 6rem;
    background: linear-gradient( 135deg, #7F4CC4, #9F69D4, #C38CE6 );
    color: white;
}

.pie__interior {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
    padding: 3rem 0;
}

.pie__texto {
    opacity: .9;
    margin-top: .8rem;
}

.pie__enlaces {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

    .pie__enlaces a {
        opacity: .95;
        transition: .2s;
    }

        .pie__enlaces a:hover {
            opacity: 1;
            color: #FFD9F2;
        }


/*==============================================================
 RESPONSIVE
==============================================================*/
/* ===========================
   TABLET / PANTALLAS MEDIANAS
=========================== */

@media(max-width:1000px) {

    /* DETALLE PRODUCTO */

    .detalle-producto {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }


    .detalle-producto__info {
        align-items: center;
    }


    .detalle-producto__descripcion {
        max-width: 100%;
    }


    .detalle-producto__formulario {
        align-items: center;
    }


    /* FOOTER */

    .pie__interior {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }


    /* ADMIN */

    .admin-encabezado {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }


    .admin-formulario {
        max-width: 95%;
    }


    /* CARRITO */

    .carrito-item {
        grid-template-columns: 80px 1fr auto;
    }


    .carrito-item__cantidad {
        grid-column: 2;
    }


    .carrito-item__subtotal {
        grid-column: 3;
    }
}

.carrito-boton__contador--animado {
    animation: carritoPop .3s ease;
}

@keyframes carritoPop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}


/* ===========================
   TELÉFONOS
=========================== */

@media(max-width:600px) {


    /* DETALLE PRODUCTO */


    @media (max-width: 600px) {

        .detalle-producto .selector-cantidad {
            width: auto;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0;
            border: 1px solid var(--color-borde);
            border-radius: 999px;
            background: white;
            overflow: hidden;
        }

        .detalle-producto .selector-cantidad__boton {
            width: 36px;
            height: 36px;
            padding: 0;
            border: none;
            border-radius: 0;
            background: transparent;
            color: var(--color-primario);
            font-size: 1.1rem;
        }

        .detalle-producto .selector-cantidad__input {
            width: 36px;
            padding: 0;
            border: none;
            background: white;
            text-align: center;
            font-weight: 600;
            color: var(--color-texto);
        }
    }


    /* BOTONES GENERALES */

    .boton {
        width: 100%;
    }


    /* FORMULARIOS ADMIN */

    .admin-formulario {
        padding: 1.2rem;
        border-radius: 14px;
    }


    .formulario-admin {
        gap: 1rem;
    }


    .acciones-formulario {
        width: 100%;
    }


        .acciones-formulario .boton {
            width: 100%;
        }

    .campo-fila {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: .8rem;
    }

        .campo-fila .campo:first-child {
            grid-column: 1 / -1;
        }


    /* TABLAS ADMIN */

    .tabla-admin {
        font-size: .85rem;
    }


    .acciones-admin {
        flex-direction: column;
        gap: .4rem;
    }


        .acciones-admin .boton {
            width: 100%;
        }


    /* CARRITO */

    .carrito-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }


    .carrito-item__imagen-envoltorio {
        display: flex;
        justify-content: center;
    }


    .carrito-item__cantidad {
        width: 100%;
    }


        .carrito-item__cantidad input {
            width: 100%;
        }


    .carrito-item__subtotal {
        font-size: 1.3rem;
    }


    .carrito-resumen {
        padding: 1.3rem;
    }


    .carrito-resumen__total {
        flex-direction: column;
        gap: .5rem;
        text-align: center;
    }
}
/* ==========================
   PAGINACIÓN
========================== */

.paginacion {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 3rem 0;
}

    .paginacion a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 46px;
        height: 46px;
        background: white;
        color: #8b5cf6;
        border: 2px solid #8b5cf6;
        border-radius: 12px;
        text-decoration: none;
        font-weight: 700;
    }

        .paginacion a.activo {
            background: #8b5cf6;
            color: white;
        }




/* PAGINACIÓN MOBILE */

@media(max-width:600px) {

    .paginacion {
        gap: .45rem;
        margin-top: 2rem;
    }

        .paginacion a {
            width: 40px;
            height: 40px;
            font-size: .9rem;
        }
}

/* REDES SOCIALES */

.redes-flotantes {
    position: fixed;
    right: 25px;
    bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 1000;
}

.red-social {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 25px;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0,0,0,.18);
    transition: transform .25s ease, box-shadow .25s ease;
}

    .red-social:hover {
        transform: translateY(-5px) scale(1.05);
        box-shadow: 0 10px 22px rgba(0,0,0,.25);
        color: white;
    }

.instagram {
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
}

.facebook {
    background: #1877f2;
}

.whatsapp {
    background: #25d366;
}

.tiktok {
    background: #000;
}

@media (max-width: 600px) {

    .redes-flotantes {
        right: 10px;
        bottom: 100px;
        gap: 10px;
    }

    .red-social {
        width: 45px;
        height: 45px;
        font-size: 21px;
        border-radius: 12px;
    }
}

.saludo-admin {
    color: white;
    font-size: .9rem;
    font-weight: 500;
    white-space: nowrap;
}

.salir-edicion button {
    background: transparent;
    color: white;
    border: 2px solid white;
    border-radius: 10px;
    padding: .5rem 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: .25s;
}

    .salir-edicion button:hover {
        background: white;
        color: #7F4CC4;
    }


.admin-card {
    background: #fff;
    border: 1px solid #e7dff3;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
    transition: .25s;
}

    .admin-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 14px 28px rgba(0, 0, 0, .12);
    }

.informacion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
    justify-content: center;
    gap: 2rem;
    font-size: 0.85rem;
    margin-top: 10rem;
}

.admin-contenedor {
    min-height: 65vh;
}

.informacion-grid .admin-card {
    display: flex;
    flex-direction: column;
    width: 320px;
    min-height: 260px;
    text-align: center;
}

.informacion-grid .boton {
    margin-top: auto;
    align-self: center;
}

.redes-contacto {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: center;
}


.redes-lista {
    display: flex;
    flex-direction: column;
    gap: .7rem;
}


    .redes-lista a,
    .whatsapp-contacto a {
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: .5rem;
    }


.whatsapp-contacto a {
    justify-content: center;
    font-size: 1.2rem;
}


.tiendas-encabezado {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
}

    .tiendas-encabezado h1 {
        margin: 0;
    }

    .tiendas-encabezado p {
        margin: 0;
    }

.horario-tienda {
    min-height: 125px;
}

    .horario-tienda > p:first-child {
        margin-bottom: .8rem;
    }

    .horario-tienda > p:not(:first-child) {
        margin-bottom: .6rem;
    }

    .horario-tienda span {
        font-weight: 500;
    }

/* ===========================
   DETALLE DE SERVICIO
=========================== */

.detalle-servicio {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    gap: 3rem;
    margin-top: 100px;
    align-items: start;
    padding-top: 3rem;
}


/* GALERÍA */

.detalle-servicio__galeria {
    width: 100%;
}

.detalle-servicio__imagen-envoltorio {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 16px;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-borde);
}

.detalle-servicio__imagen {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.detalle-servicio__imagen--vacia {
    background: var(--color-bg-alt);
}

/* MINIATURAS */

.detalle-servicio__miniaturas {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1rem;
}

.detalle-servicio__miniatura {
    width: 78px;
    height: 78px;
    padding: 0;
    border: 1px solid var(--color-borde);
    border-radius: 10px;
    overflow: hidden;
    background: var(--color-bg-alt);
    cursor: pointer;
    transition: .2s ease;
}

    .detalle-servicio__miniatura:hover {
        transform: translateY(-2px);
        border-color: var(--color-primario);
    }

    .detalle-servicio__miniatura img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

/* INFORMACIÓN */

.detalle-servicio__info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding-top: .5rem;
}

.detalle-servicio__titulo {
    margin: 0;
}

.detalle-servicio__precio {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-primario);
}

.detalle-servicio__descripcion {
    margin: .5rem 0 1rem;
    line-height: 1.7;
    color: var(--color-texto);
}

.detalle-servicio__volver {
    margin-top: .5rem;
    color: var(--color-texto);
    text-decoration: none;
}

    .detalle-servicio__volver:hover {
        text-decoration: underline;
    }


/* ===========================
   MÓVIL
=========================== */

@media (max-width: 768px) {

    .detalle-servicio {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .detalle-servicio__imagen-envoltorio {
        aspect-ratio: 4 / 3;
    }

    .detalle-servicio__miniaturas {
        gap: .5rem;
    }

    .detalle-servicio__miniatura {
        width: 64px;
        height: 64px;
    }

    .detalle-servicio__info {
        padding-top: 0;
    }
}



/* Icono principal de cada tarjeta */
.informacion-imagen {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .informacion-imagen img {
        width: 55px;
        height: 55px;
        object-fit: contain;
    }


/* Iconos de redes sociales */
.redes-lista a {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.redes-lista img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}
/* DESPLAZAMIENTO MARCAS */

.marcas {
    padding: 2rem 0;
    overflow: hidden;
}

.marcas__titulo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.marcas__carrusel {
    display: flex;
    align-items: center;
    width: max-content;
    animation: desplazamiento-marcas 140s linear infinite;
}


@keyframes desplazamiento-marcas {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Difuminado en los extremos del carrusel */

.marcas__contenedor {
    position: relative;
    width: 100%;
    overflow: hidden;
}

    .marcas__contenedor::before,
    .marcas__contenedor::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        width: 120px;
        z-index: 2;
        pointer-events: none;
    }

    .marcas__contenedor::before {
        left: 0;
        background: linear-gradient( to right, var(--color-bg), transparent );
    }

    .marcas__contenedor::after {
        right: 0;
        background: linear-gradient( to left, var(--color-bg), transparent );
    }


.marca-item {
    width: 220px;
    height: 120px;
    margin: 0 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .marca-item img {
        max-width: 195px;
        max-height: 100px;
        width: auto;
        height: auto;
        object-fit: contain;
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 7%, black 93%, transparent 100%), linear-gradient(to bottom, transparent 0%, black 7%, black 93%, transparent 100%);
        -webkit-mask-composite: source-in;
        mask-image: linear-gradient(to right, transparent 0%, black 7%, black 93%, transparent 100%), linear-gradient(to bottom, transparent 0%, black 7%, black 93%, transparent 100%);
        mask-composite: intersect;
    }


/* MÓVIL */

@media (max-width: 768px) {

    .marca-item {
        width: 150px;
        height: 80px;
        margin: 0 15px;
    }

        .marca-item img {
            max-width: 130px;
            max-height: 65px;
        }
}
