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

:root {
    --color-bg: #fff8f2;
    --color-white: #ffffff;
    --color-surface: #fffdf9;
    --color-surface-soft: #fff7ef;
    --color-surface-warm: #fff1ec;
    --color-surface-sage: #f6f7ed;
    --color-surface-rose: #fdf2f4;
    --color-text: #332820;
    --color-nav: #4a392e;
    --color-muted: #6d5a4d;
    --color-muted-soft: #7c6a5d;
    --color-accent: #b96a52;
    --color-accent-dark: #95513f;
    --color-accent-soft: #ffe8dc;
    --color-border: #efd8c8;
    --color-border-soft: #f3dfd0;
    --color-border-strong: #e6bfa6;
    --color-sage: #9aae78;
    --color-gold: #d8a067;
    --color-rose: #c98998;
    --color-success: #5f9868;
    --color-success-dark: #426f48;
    --color-nav-bg: rgba(255, 255, 255, 0.86);
    --color-white-glow: rgba(255, 255, 255, 0.72);
    --color-white-clear: rgba(255, 255, 255, 0);
    --color-inner-surface: rgba(255, 255, 255, 0.58);
    --color-inner-surface-hover: rgba(255, 255, 255, 0.86);
    --color-inner-border: rgba(117, 78, 49, 0.08);
    --color-petal-rose-strong: rgba(201, 137, 152, 0.78);
    --color-petal-rose: rgba(201, 137, 152, 0.64);
    --color-petal-rose-soft: rgba(201, 137, 152, 0.56);
    --color-petal-rose-light: rgba(201, 137, 152, 0.50);
    --color-petal-accent: rgba(190, 104, 79, 0.64);
    --color-petal-accent-soft: rgba(190, 104, 79, 0.50);
    --color-petal-accent-light: rgba(190, 104, 79, 0.38);
    --color-petal-sage: rgba(154, 174, 120, 0.70);
    --color-petal-sage-soft: rgba(154, 174, 120, 0.65);
    --color-petal-sage-light: rgba(154, 174, 120, 0.58);
    --color-petal-gold: rgba(216, 160, 103, 0.58);
    --shadow-nav: rgba(117, 78, 49, 0.14);
    --shadow-soft: rgba(117, 78, 49, 0.06);
    --shadow-medium: rgba(117, 78, 49, 0.10);
    --shadow-photo: rgba(117, 78, 49, 0.12);
    --shadow-strong: rgba(117, 78, 49, 0.14);
    --shadow-image: rgba(117, 78, 49, 0.15);
    --shadow-floating: rgba(117, 78, 49, 0.16);
    --focus-ring: rgba(185, 106, 82, 0.18);
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    overflow-x: clip;
    max-width: 100%;
}

body.modal-abierto {
    overflow: hidden;
}

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

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

/* HEADER */

.cabecera {
    width: 100%;
    padding: 20px 18px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    max-width: 1120px;
    margin: 0 auto;
    background: var(--color-nav-bg);
    backdrop-filter: blur(18px) saturate(1.12);
    -webkit-backdrop-filter: blur(18px) saturate(1.12);
    border: 1px solid var(--color-border-soft);
    border-radius: 999px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 14px 34px var(--shadow-nav);
}

.logo {
    font-weight: 700;
    font-family: Arial, Helvetica, sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text);
    letter-spacing: 0;
}

.logo-imagen {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex: 0 0 auto;
}

.logo-texto {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-texto small {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: normal;
    color: var(--color-muted-soft);
    margin-top: 3px;
}

.menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 15px;
}

.menu a {
    color: var(--color-nav);
    transition: color 0.2s;
}

.menu a:hover {
    color: var(--color-accent);
}

.boton-nav {
    background: var(--color-accent);
    color: var(--color-white) !important;
    padding: 11px 20px;
    border-radius: 999px;
    font-weight: bold;
    transition: 0.25s;
}

.boton-nav:hover {
    background: var(--color-accent-dark);
    transform: translateY(-2px);
}

.boton-menu {
    display: none;
    width: 44px;
    height: 44px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.boton-menu span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--color-accent-dark);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: transform 0.25s, opacity 0.2s, top 0.25s;
}

.boton-menu span:nth-child(1) {
    top: 14px;
}

.boton-menu span:nth-child(2) {
    top: 21px;
}

.boton-menu span:nth-child(3) {
    top: 28px;
}

.boton-menu:hover,
.boton-menu:focus-visible {
    background: var(--color-accent-soft);
    border-color: var(--color-border);
    box-shadow: 0 10px 22px var(--shadow-medium);
    outline: none;
}

.boton-menu.activo span:nth-child(1) {
    top: 21px;
    transform: translateX(-50%) rotate(45deg);
}

.boton-menu.activo span:nth-child(2) {
    opacity: 0;
}

.boton-menu.activo span:nth-child(3) {
    top: 21px;
    transform: translateX(-50%) rotate(-45deg);
}

/* SECCIONES GENERALES */

.inicio,
.sobre-mi,
.servicios,
.precios,
.formacion,
.faq,
.resenas,
.contacto {
    max-width: 1120px;
    margin: 0 auto;
    scroll-margin-top: 44px;
}

.sobre-mi,
.servicios,
.precios,
.formacion,
.faq,
.resenas,
.contacto {
    padding: 58px 20px;
}

.etiqueta,
.titulo-seccion span {
    display: inline-block;
    background: var(--color-accent-soft);
    color: var(--color-accent-dark);
    border-radius: 999px;
    padding: 8px 15px;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 18px;
}

.titulo-seccion {
    max-width: 760px;
    margin-bottom: 38px;
}

.titulo-seccion h2,
.contacto h2 {
    font-size: 42px;
    line-height: 1.1;
    letter-spacing: 0;
    margin-bottom: 18px;
}

.titulo-seccion p,
.contacto p {
    color: var(--color-muted);
    font-size: 17px;
    line-height: 1.7;
}

.centrado {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* INICIO */

.inicio {
    padding: 64px 20px 32px;
    display: grid;
    grid-template-columns: 1fr 0.95fr;
    gap: 54px;
    align-items: center;
}

.inicio h1 {
    font-size: 58px;
    line-height: 1.02;
    letter-spacing: 0;
    margin-bottom: 24px;
}

.inicio p {
    max-width: 560px;
    color: var(--color-muted);
    font-size: 18px;
    line-height: 1.75;
    margin-bottom: 30px;
}

.acciones {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.boton-principal,
.boton-secundario,
.whatsapp {
    display: inline-block;
    padding: 15px 26px;
    border-radius: 999px;
    font-weight: bold;
    transition: 0.25s;
}

.boton-principal {
    background: var(--color-accent);
    color: var(--color-white);
}

.boton-secundario {
    background: var(--color-white);
    color: var(--color-accent-dark);
    border: 1px solid var(--color-border);
}

.boton-principal:hover,
.whatsapp:hover {
    background: var(--color-accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 24px var(--focus-ring);
}

.boton-secundario:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px var(--shadow-medium);
}

.inicio-imagen {
    position: relative;
    max-width: 100%;
}

.inicio-imagen img {
    height: 470px;
    object-fit: cover;
    border-radius: 34px;
    box-shadow: 0 24px 50px var(--shadow-image);
    position: relative;
    z-index: 2;
}

/* CÍRCULOS ORIGINALES */

.circulo {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
}

.circulo-uno {
    width: 160px;
    height: 160px;
    background: var(--color-accent-soft);
    top: -35px;
    right: -25px;
}

.circulo-dos {
    width: 110px;
    height: 110px;
    background: var(--color-surface-sage);
    bottom: -25px;
    left: -35px;
}

.nota-flotante {
    position: absolute;
    z-index: 3;
    left: -25px;
    bottom: 38px;
    background: var(--color-white);
    border-radius: 22px;
    padding: 18px 20px;
    max-width: 230px;
    box-shadow: 0 16px 35px var(--shadow-floating);
}

.nota-flotante strong {
    display: block;
    color: var(--color-accent);
    margin-bottom: 4px;
}

.nota-flotante span {
    color: var(--color-muted);
    font-size: 14px;
}

/* SOBRE MÍ */

.sobre-contenido {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 28px;
    align-items: stretch;
}

.foto-sobre img {
    height: 100%;
    min-height: 440px;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 18px 40px var(--shadow-photo);
}

.bloques-sobre {
    display: grid;
    gap: 18px;
}

.bloque,
.servicio,
.formulario {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 28px;
    box-shadow: 0 12px 28px var(--shadow-soft);
}

.bloque {
    padding: 28px;
}

.bloque span {
    color: var(--color-accent);
    font-weight: bold;
}

.bloque h3,
.servicio h3 {
    margin: 10px 0;
    font-size: 24px;
}

.bloque p,
.servicio p {
    color: var(--color-muted);
    line-height: 1.65;
}

/* SERVICIOS */

.servicios-accion {
    display: flex;
    justify-content: center;
    margin-bottom: 26px;
    position: relative;
}

.boton-servicios {
    border: 1px solid var(--color-border-strong);
    border-radius: 999px;
    background: var(--color-white);
    color: var(--color-accent-dark);
    box-shadow: 0 12px 28px var(--shadow-soft);
    padding: 14px 24px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    z-index: 1;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, background 0.2s;
}

.boton-servicios:hover,
.boton-servicios:focus-visible {
    background: var(--color-surface-warm);
    border-color: var(--color-accent);
    box-shadow: 0 18px 34px var(--shadow-strong);
    transform: translateY(-2px);
    outline: none;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.servicios-grid[hidden] {
    display: none;
}

.servicio {
    padding: 28px;
    min-height: 100%;
    position: relative;
    overflow: hidden;
    background: var(--color-surface);
    transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s, background 0.25s;
    will-change: transform;
}

.servicio::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 7px;
    background: var(--color-accent);
}

.servicio::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at var(--brillo-x, 50%) var(--brillo-y, 0%),
        var(--color-white-glow),
        var(--color-white-clear) 34%
    );
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}

.servicio:nth-child(1) {
    background: var(--color-surface-soft);
}

.servicio:nth-child(2) {
    background: var(--color-surface-warm);
}

.servicio:nth-child(3) {
    background: var(--color-surface-sage);
}

.servicio:nth-child(4) {
    background: var(--color-surface-rose);
}

.servicio:nth-child(1)::before {
    background: var(--color-gold);
}

.servicio:nth-child(2)::before {
    background: var(--color-accent);
}

.servicio:nth-child(3)::before {
    background: var(--color-sage);
}

.servicio:nth-child(4)::before {
    background: var(--color-rose);
}

.servicio:hover {
    border-color: var(--color-border-strong);
    transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(-6px);
    box-shadow: 0 22px 42px var(--shadow-strong);
}

.servicio:hover::after {
    opacity: 1;
}

.servicio > * {
    position: relative;
    z-index: 1;
}

.servicio-etiqueta {
    display: inline-block;
    color: var(--color-accent-dark);
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 14px;
}

.servicio h3 {
    font-size: 26px;
    margin: 0 0 12px;
}

.servicio-frase {
    margin-bottom: 24px;
    color: var(--color-muted);
    font-size: 17px;
    line-height: 1.6;
}

.servicio-lista {
    list-style: none;
    display: grid;
    gap: 12px;
}

.servicio-lista li {
    background: var(--color-inner-surface);
    border: 1px solid var(--color-inner-border);
    border-radius: 18px;
    padding: 14px 15px;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: transform 0.2s, background 0.2s, border-color 0.2s;
}

.servicio-lista li::before,
.servicio-lista li::after {
    content: "";
    position: absolute;
    left: var(--flor-x, 82%);
    top: var(--flor-y, 28%);
    pointer-events: none;
    opacity: 0;
}

.servicio-lista li::before {
    width: 54px;
    height: 54px;
    background:
        radial-gradient(circle at 50% 50%, var(--color-gold) 0 4px, transparent 5px),
        radial-gradient(ellipse at 50% 18%, var(--color-petal-rose-strong) 0 8px, transparent 9px),
        radial-gradient(ellipse at 82% 50%, var(--color-petal-rose) 0 8px, transparent 9px),
        radial-gradient(ellipse at 50% 82%, var(--color-petal-accent) 0 8px, transparent 9px),
        radial-gradient(ellipse at 18% 50%, var(--color-petal-sage) 0 8px, transparent 9px);
    transform: translate(-50%, -50%) scale(0.35) rotate(-12deg);
}

.servicio-lista li::after {
    width: 74px;
    height: 42px;
    background:
        radial-gradient(circle at 16% 62%, var(--color-petal-sage-soft) 0 4px, transparent 5px),
        radial-gradient(circle at 32% 34%, var(--color-petal-gold) 0 3px, transparent 4px),
        radial-gradient(circle at 70% 26%, var(--color-petal-rose-light) 0 4px, transparent 5px),
        radial-gradient(circle at 84% 68%, var(--color-petal-accent-light) 0 3px, transparent 4px);
    transform: translate(-50%, -50%) scale(0.4);
}

.servicio-lista li:hover {
    background: var(--color-inner-surface-hover);
    border-color: var(--focus-ring);
    transform: translateX(4px);
}

.servicio-lista li:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 3px;
}

.servicio-lista li.florece::before {
    animation: florecerServicio 0.9s ease-out;
}

.servicio-lista li.florece::after {
    animation: brotesServicio 0.9s ease-out;
}

.servicio-lista strong {
    display: block;
    color: var(--color-text);
    margin-bottom: 5px;
}

.servicio-lista span {
    color: var(--color-muted);
    line-height: 1.55;
    font-size: 15px;
}

.flor-ambiente {
    width: 58px;
    height: 58px;
    position: absolute;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    background:
        radial-gradient(circle at 50% 50%, var(--color-gold) 0 4px, transparent 5px),
        radial-gradient(ellipse at 50% 18%, var(--color-petal-rose) 0 8px, transparent 9px),
        radial-gradient(ellipse at 82% 50%, var(--color-petal-rose-soft) 0 8px, transparent 9px),
        radial-gradient(ellipse at 50% 82%, var(--color-petal-accent-soft) 0 8px, transparent 9px),
        radial-gradient(ellipse at 18% 50%, var(--color-petal-sage-light) 0 8px, transparent 9px);
    animation: florAmbienteServicio 1.7s ease-out forwards;
}

.flor-boton-servicios {
    width: 46px;
    height: 46px;
    z-index: 0;
}

.flor-boton-servicios.izquierda {
    left: calc(50% - 142px);
    top: -12px;
}

.flor-boton-servicios.derecha {
    right: calc(50% - 142px);
    bottom: -16px;
}

.flor-boton-servicios.arriba {
    left: calc(50% + 82px);
    top: -18px;
}

.flor-ambiente.arriba-izquierda {
    left: 18px;
    top: 22px;
}

.flor-ambiente.arriba-derecha {
    right: 18px;
    top: 22px;
}

.flor-ambiente.abajo-derecha {
    right: 18px;
    bottom: 18px;
}

.flor-ambiente.abajo-izquierda {
    left: 18px;
    bottom: 18px;
}

@keyframes florecerServicio {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.25) rotate(-16deg);
    }

    34% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.9) rotate(0deg);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -70%) scale(1.12) rotate(10deg);
    }
}

@keyframes brotesServicio {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.35);
    }

    40% {
        opacity: 0.9;
        transform: translate(-50%, -52%) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -76%) scale(1.08);
    }
}

@keyframes florAmbienteServicio {
    0% {
        opacity: 0;
        transform: scale(0.28) rotate(-14deg);
    }

    24% {
        opacity: 0.72;
        transform: scale(0.82) rotate(0deg);
    }

    72% {
        opacity: 0.46;
        transform: scale(0.98) rotate(6deg);
    }

    100% {
        opacity: 0;
        transform: scale(1.08) rotate(12deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .servicio {
        transform: none !important;
        transition: none;
    }

    .servicio:hover,
    .servicio-lista li:hover {
        transform: none;
    }

    .servicio-lista li.florece::before,
    .servicio-lista li.florece::after {
        animation: none;
    }

    .flor-ambiente {
        display: none;
    }

}

/* PRECIOS */

.precios-panel {
    max-width: 860px;
    margin: 0 auto;
    display: grid;
    gap: 14px;
}

.precio-linea {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    padding: 24px 28px;
    box-shadow: 0 12px 28px var(--shadow-soft);
}

.precio-linea:nth-child(2) {
    background: var(--color-surface-soft);
}

.precio-linea span {
    display: block;
    color: var(--color-accent-dark);
    font-weight: bold;
    margin-bottom: 6px;
}

.precio-linea p {
    color: var(--color-muted);
    line-height: 1.6;
}

.precio-linea strong {
    display: block;
    color: var(--color-text);
    font-size: 44px;
    line-height: 1;
    white-space: nowrap;
}

.precios-nota {
    text-align: center;
    padding-top: 6px;
}

.precios-nota p {
    color: var(--color-muted);
    line-height: 1.6;
}

/* FORMACIÓN */

.formacion-contenido {
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: 24px;
    align-items: start;
}

.formacion-nota,
.formacion-lista {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 28px;
    box-shadow: 0 12px 28px var(--shadow-soft);
}

.formacion-nota {
    padding: 34px;
    background: var(--color-surface-warm);
    position: sticky;
    top: 110px;
}

.formacion-nota span {
    display: inline-block;
    color: var(--color-accent-dark);
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 16px;
}

.formacion-nota h3 {
    font-size: 30px;
    line-height: 1.18;
    margin-bottom: 16px;
}

.formacion-nota p {
    color: var(--color-muted);
    line-height: 1.7;
}

.formacion-lista {
    padding: 24px;
    display: grid;
    gap: 14px;
}

.formacion-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 18px;
    align-items: start;
    background: var(--color-surface);
    border: 1px solid var(--color-border-soft);
    border-radius: 20px;
    padding: 18px;
    transition: transform 0.22s, border-color 0.22s, background 0.22s;
}

.formacion-item:hover {
    background: var(--color-surface-soft);
    border-color: var(--color-border-strong);
    transform: translateX(4px);
}

.formacion-item strong {
    color: var(--color-accent);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    padding: 8px 12px;
    text-align: center;
    font-size: 13px;
}

.formacion-item h3 {
    font-size: 19px;
    margin-bottom: 6px;
}

.formacion-item p {
    color: var(--color-muted);
    line-height: 1.6;
}

/* FAQ */

.faq-lista {
    max-width: 920px;
    margin: 0 auto;
    display: grid;
    gap: 14px;
}

.faq-item {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 28px var(--shadow-soft);
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.faq-item:hover,
.faq-item.activo {
    border-color: var(--color-border-strong);
    box-shadow: 0 18px 38px var(--shadow-medium);
}

.faq-item.activo {
    transform: translateY(-2px);
}

.faq-pregunta {
    width: 100%;
    border: none;
    background: transparent;
    color: var(--color-text);
    font-size: 20px;
    font-weight: bold;
    text-align: left;
    padding: 24px 28px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    font-family: inherit;
}

.faq-pregunta:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: -6px;
}

.faq-pregunta > span:first-child {
    line-height: 1.35;
}

.faq-icono {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.faq-icono::before,
.faq-icono::after {
    content: "";
    width: 14px;
    height: 2px;
    border-radius: 999px;
    background: var(--color-accent);
    position: absolute;
    transition: transform 0.25s, background 0.25s;
}

.faq-icono::after {
    transform: rotate(90deg);
}

.faq-respuesta {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease;
    opacity: 0;
}

.faq-respuesta p {
    padding: 0 28px 26px;
    color: var(--color-muted);
    line-height: 1.75;
    font-size: 17px;
    max-width: 760px;
}

.faq-item.activo .faq-respuesta {
    max-height: 600px;
    opacity: 1;
}

.faq-item.activo .faq-icono {
    background: var(--color-accent);
    border-color: var(--color-accent);
    transform: rotate(180deg);
}

.faq-item.activo .faq-icono::before,
.faq-item.activo .faq-icono::after {
    background: var(--color-white);
}

.faq-item.activo .faq-icono::after {
    transform: rotate(0deg);
}

/* RESEÑAS */

.resenas-grid {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    max-width: 100%;
    padding: 4px 4px 18px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: auto;
    scroll-behavior: auto;
    overscroll-behavior-inline: contain;
}

.resenas-grid.arrastrando {
    cursor: grabbing;
}

@media (hover: none) {
    .resenas-grid {
        cursor: auto;
    }
}

.resenas-grid::-webkit-scrollbar {
    display: none;
}

.resena {
    flex: 0 0 min(360px, 86vw);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 26px;
    padding: 26px;
    box-shadow: 0 12px 28px var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 18px;
    cursor: pointer;
}

.resena:nth-child(even) {
    background: var(--color-surface-soft);
}

.resena-estrellas {
    color: var(--color-gold);
    font-size: 20px;
    letter-spacing: 2px;
}

.resena p {
    color: var(--color-muted);
    line-height: 1.7;
    font-size: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.resena-persona {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--color-border-soft);
}

.resena-persona strong {
    display: block;
    color: var(--color-text);
    margin-bottom: 4px;
}

.resena-persona span {
    color: var(--color-muted-soft);
    font-size: 14px;
}

.resenas-accion {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* CONTACTO */

.contacto {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
    align-items: start;
}

.contacto-texto {
    padding-top: 10px;
}

.contacto-puntos {
    display: grid;
    gap: 14px;
    margin-top: 26px;
}

.contacto-puntos div {
    background: var(--color-white);
    border: 1px solid var(--color-inner-border);
    border-radius: 20px;
    padding: 16px 18px;
    box-shadow: 0 10px 22px var(--shadow-soft);
}

.contacto-puntos strong {
    display: block;
    color: var(--color-text);
    margin-bottom: 5px;
}

.contacto-puntos span {
    color: var(--color-muted);
    line-height: 1.55;
    font-size: 15px;
}

.whatsapp {
    margin-top: 24px;
    background: var(--color-success);
    color: var(--color-white);
    box-shadow: 0 14px 26px var(--shadow-medium);
}

.whatsapp:hover {
    background: var(--color-success-dark);
}

.formulario {
    padding: 34px;
    display: grid;
    gap: 16px;
    border-radius: 30px;
    box-shadow: 0 22px 46px var(--shadow-strong);
    position: relative;
    overflow: hidden;
}

.formulario::before {
    content: "";
    position: absolute;
    left: 34px;
    right: 34px;
    top: 0;
    height: 6px;
    border-radius: 0 0 999px 999px;
    background: var(--color-accent);
}

.formulario-cabecera {
    margin-bottom: 4px;
}

.formulario-cabecera span {
    color: var(--color-accent-dark);
    font-size: 13px;
    font-weight: bold;
}

.formulario-cabecera h3 {
    font-size: 26px;
    line-height: 1.2;
    margin-top: 8px;
}

.formulario input,
.formulario select,
.formulario textarea {
    width: 100%;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    border-radius: 18px;
    padding: 17px 18px;
    font-family: inherit;
    font-size: 15px;
    color: var(--color-text);
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

#servicio {
    min-height: 52px;
    border-radius: 40px;
    color: var(--color-muted);
    background-color: var(--color-surface);
}

#servicio option {
    color: var(--color-muted);
}

.formulario input:focus,
.formulario select:focus,
.formulario textarea:focus {
    outline: none;
    background: var(--color-white);
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px var(--focus-ring);
}

.checkbox-privacidad {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.45;
}

.checkbox-privacidad input {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: var(--color-accent);
    flex: 0 0 auto;
}

.checkbox-privacidad label {
    cursor: pointer;
}

.formulario button {
    border: none;
    font-size: 15px;
    background: var(--color-accent);
    color: var(--color-white);
    border-radius: 999px;
    padding: 17px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
    box-shadow: 0 14px 26px var(--focus-ring);
}

.formulario button:hover {
    background: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 18px 32px var(--shadow-medium);
}

.mensaje-formulario {
    color: var(--color-success-dark);
    font-weight: bold;
}

/* FOOTER */

.footer {
    text-align: center;
    color: var(--color-muted-soft);
    padding: 34px 20px;
}

.footer-contacto {
    display: grid;
    gap: 6px;
    line-height: 1.5;
}

.footer-legal {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.footer-legal button {
    border: none;
    background: transparent;
    color: var(--color-accent-dark);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.footer-legal button:hover {
    color: var(--color-accent);
}

.modal-resena,
.modal-legal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-resena.activo,
.modal-legal.activo {
    display: flex;
}

.modal-resena-fondo,
.modal-legal-fondo {
    position: absolute;
    inset: 0;
    background: rgba(51, 40, 32, 0.42);
}

.modal-resena-contenido,
.modal-legal-contenido {
    width: min(720px, 100%);
    max-height: min(760px, 86vh);
    overflow-y: auto;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 28px;
    box-shadow: 0 24px 60px var(--shadow-strong);
    padding: 34px;
    position: relative;
}

.modal-resena-cerrar,
.modal-legal-cerrar {
    position: absolute;
    top: 18px;
    right: 18px;
    width: auto;
    height: auto;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--color-accent-dark);
    font-size: 30px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.modal-resena-contenido .resena-estrellas {
    margin-bottom: 12px;
}

.modal-resena-contenido h2 {
    font-size: 32px;
    line-height: 1.15;
    margin-bottom: 16px;
}

.modal-resena-contenido p {
    color: var(--color-muted);
    line-height: 1.75;
    margin-bottom: 18px;
}

.modal-resena-contenido > span {
    color: var(--color-muted-soft);
    font-size: 14px;
}

.legal-panel {
    display: none;
}

.legal-panel.activo {
    display: block;
}

.legal-panel span {
    display: inline-block;
    background: var(--color-accent-soft);
    color: var(--color-accent-dark);
    border-radius: 999px;
    padding: 8px 15px;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 18px;
}

.legal-panel h2 {
    font-size: 34px;
    line-height: 1.1;
    margin-bottom: 18px;
}

.legal-panel p {
    color: var(--color-muted);
    line-height: 1.75;
    margin-bottom: 14px;
}

/* ANIMACIONES */

.animar {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animar.visible {
    opacity: 1;
    transform: translateY(0);
}

.inicio-imagen.visible .circulo-uno {
    animation: flotar 4s ease-in-out infinite;
}

.inicio-imagen.visible .circulo-dos {
    animation: flotar 5s ease-in-out infinite;
}

@keyframes flotar {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }

    100% {
        transform: translateY(0);
    }
}

/* RESPONSIVE TABLET */

@media (max-width: 900px) {
    .cabecera {
        padding: 14px 12px 0;
    }

    .nav {
        border-radius: 24px;
    }

    .boton-menu {
        display: block;
    }

    .menu {
        display: flex;
        position: absolute;
        left: 18px;
        right: 18px;
        top: 78px;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        border: 1px solid var(--color-border);
        border-radius: 24px;
        padding: 24px;
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        box-shadow: 0 16px 35px var(--shadow-strong);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
        visibility: hidden;
        transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
    }

    .menu.activo {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
        visibility: visible;
    }

    .menu li,
    .menu a {
        width: 100%;
    }

    .menu a {
        display: block;
        padding: 3px 0;
    }

    .menu .boton-nav {
        text-align: center;
        padding: 13px 18px;
    }

    .inicio,
    .sobre-contenido,
    .formacion-contenido,
    .contacto {
        grid-template-columns: 1fr;
    }

    .formacion-nota {
        position: static;
    }

    .inicio {
        padding-top: 38px;
        gap: 36px;
    }

    .inicio h1 {
        font-size: 40px;
        letter-spacing: 0;
    }

    .inicio-imagen img {
        height: 360px;
    }

    .nota-flotante {
        left: 18px;
        bottom: 18px;
    }

    .servicios-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .titulo-seccion h2,
    .contacto h2 {
        font-size: 34px;
    }

    .contacto {
        gap: 24px;
    }

    .contacto-texto {
        padding-top: 0;
    }

    .formulario {
        margin: 0 24px 30px;
    }
}

/* RESPONSIVE MÓVIL */

@media (max-width: 600px) {
    .inicio,
    .sobre-mi,
    .servicios,
    .formacion,
    .faq,
    .precios,
    .resenas,
    .contacto {
        padding-left: 16px;
        padding-right: 16px;
        scroll-margin-top: 40px;
    }

    .inicio h1 {
        font-size: 34px;
    }

    .inicio p {
        font-size: 16px;
    }

    .acciones {
        flex-direction: column;
    }

    .boton-principal,
    .boton-secundario {
        text-align: center;
    }

    .servicios-grid {
        grid-template-columns: 1fr;
    }

    .precio-linea {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .precio-linea strong {
        font-size: 40px;
    }

    .foto-sobre img {
        min-height: 320px;
    }

    .contacto-texto {
        padding: 0;
    }

    .contacto-puntos {
        gap: 12px;
    }

    .formulario {
        margin: 0 0 28px;
        padding: 26px 20px 22px;
        border-radius: 24px;
    }

    .formulario::before {
        left: 20px;
        right: 20px;
    }

    .formulario-cabecera h3 {
        font-size: 22px;
    }

    .checkbox-privacidad {
        align-items: center;
        font-size: 12px;
        gap: 8px;
        line-height: 1.35;
    }

    .checkbox-privacidad input {
        width: 11px;
        height: 11px;
        margin-top: 0;
    }

    .formacion-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .formacion-nota,
    .formacion-lista {
        padding: 22px;
    }

    .formacion-nota h3 {
        font-size: 25px;
    }

    .formacion-item strong {
        width: fit-content;
    }

    .faq-pregunta {
        font-size: 17px;
        padding: 20px;
        gap: 14px;
    }

    .faq-respuesta p {
        padding: 0 20px 22px;
        font-size: 16px;
    }

    .faq-icono {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }
}
