/* =====================================================
   NAIL SUITE v3 - BASE
*/

:root {
    /* Paleta clara de Nail Suite */
    --fondo: #fcf9fb;          /* blanco con un toque rosa */
    --rosa-polvo: #f6e9ef;     /* fondo de "Nosotros" */
    --lila-niebla: #f1ecf7;    /* fondo de la galería */
    --malva: #ece1ec;          /* fondo de "Visítanos" */
    --ciruela: #2f2340;        /* botones oscuros y títulos */
    --violeta: #4a22a0;        /* color del logo: detalles */
    --texto: #3a3046;
    --texto-suave: #6f6479;
    --linea: rgba(47, 35, 64, 0.12);

    --fuente-titulo: "Cormorant", "Cormorant Garamond", Georgia, serif;
    --fuente-texto: "Jost", "Avenir Next", "Segoe UI", sans-serif;

    --ancho: 1200px;
    --margen: clamp(20px, 5vw, 56px);
    --espacio-seccion: clamp(80px, 11vw, 136px);
    --radio: 14px;
    --alto-encabezado: 76px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--alto-encabezado);
}

body {
    margin: 0;
    font-family: var(--fuente-texto);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--texto);
    background: var(--fondo);
    -webkit-font-smoothing: antialiased;
}

/* Lo que tiene el atributo hidden nunca se muestra,
   aunque su clase diga display: flex o inline-flex */
[hidden] {
    display: none !important;
}

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

a {
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--violeta);
    outline-offset: 3px;
    border-radius: 4px;
}

.contenedor {
    width: min(var(--ancho), 100% - 2 * var(--margen));
    margin-inline: auto;
}

.saltar {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 300;
    padding: 10px 16px;
    background: var(--ciruela);
    color: #fff;
    border-radius: 8px;
}

.saltar:focus {
    top: 12px;
}

/* =====================================================
   TIPOGRAFÍA
   ===================================================== */
h1,
h2,
h3 {
    margin: 0;
    font-family: var(--fuente-titulo);
    font-style: italic;
    font-weight: 500;
    color: var(--ciruela);
}

h1 {
    font-size: clamp(2.9rem, 5.4vw, 5rem);
    line-height: 1;
    letter-spacing: -0.01em;
}

h2 {
    font-size: clamp(2.4rem, 4.6vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.55rem;
    line-height: 1.2;
}

p {
    margin: 0 0 1em;
}

/* Etiqueta pequeña sobre los títulos, como en la referencia */
.antetitulo {
    margin-bottom: 14px;
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--violeta);
}

.titulo-seccion {
    max-width: 720px;
    margin: 0 auto clamp(44px, 6vw, 72px);
    text-align: center;
}

.titulo-seccion > p:not(.antetitulo) {
    margin: 18px auto 0;
    max-width: 52ch;
    color: var(--texto-suave);
}

.enlace {
    color: var(--violeta);
    text-underline-offset: 3px;
}

/* =====================================================
   BOTONES
   ===================================================== */
.boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    /* Espacio entre el ícono SVG y el texto */
    min-height: 50px;
    padding: 0 28px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-family: var(--fuente-texto);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

/* Alineación precisa para cualquier ícono SVG dentro de los botones */
.boton svg {
    display: block;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.boton-oscuro {
    color: #fff;
    background: var(--ciruela);
}

.boton-oscuro:hover {
    background: var(--violeta);
    transform: translateY(-1px);
}

.boton-contorno {
    color: var(--ciruela);
    background: transparent;
    border-color: color-mix(in srgb, var(--ciruela) 30%, transparent);
}

.boton-contorno:hover {
    border-color: var(--ciruela);
    background: #fff;
    transform: translateY(-1px);
}

.boton-chico {
    min-height: 42px;
    padding: 0 20px;
}

.boton-chico svg {
    width: 16px;
    height: 16px;
}
/* =====================================================
   SECCIONES
   ===================================================== */
main > section:not(.hero) {
    padding-block: var(--espacio-seccion);
}

/* =====================================================
   ESTADO INICIAL DE LO QUE ENTRA ANIMADO
   La clase .con-animacion la pone index.html solo si
   la persona no pidió "reducir movimiento".
   GSAP lo vuelve visible (animaciones.js).
   ===================================================== */
.con-animacion [data-entrada],
.con-animacion [data-revelar],
.con-animacion [data-titulo],
.con-animacion [data-cualidad],
.con-animacion .hero-titulo {
    visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
