:root {
    --ink: #2c2d68;
    --ink-soft: #555978;
    --forest: #4b54a4;
    --forest-deep: #2c2d68;
    --copper: #8eb5e2;
    --copper-dark: #3d3e93;
    --linen: #f3f7fc;
    --linen-deep: #e5eff9;
    --paper: #fcfdff;
    --white: #fff;
    --line: rgba(61, 62, 147, .15);
    --shadow: 0 18px 48px rgba(44, 45, 104, .12);
    --primary-50: #f3f3fa;
    --primary-100: #e7e8f3;
    --primary-500: #9295c0;
    --primary-600: #777aac;
    --primary-700: #606499;
    --primary-800: #474a7d;
    --primary-900: #292b4d;
    --gold-400: #aeb1d3;
    --gold-500: #9295c0;
    --gold-600: #777aac;
    --neutral-50: #fbfbfe;
    --neutral-100: #f1f2f8;
    --neutral-200: #dfe1ee;
    --neutral-300: #c9cada;
    --neutral-400: #9294a8;
    --neutral-500: #73758b;
    --neutral-600: #5a5d76;
    --neutral-700: #444760;
    --neutral-800: #292b4d;
    --neutral-900: #1d1f39;
}

html { scroll-behavior: smooth; overflow-x: clip; }
body {
    overflow-x: clip;
    background: var(--paper);
    color: var(--ink);
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    line-height: 1.7;
}
h1, h2, h3, h4, h5 {
    color: var(--ink);
    font-family: 'Manrope', sans-serif;
    font-weight: 750;
    letter-spacing: -.045em;
    line-height: 1.06;
}
::selection { color: var(--white); background: var(--copper); }
* { scrollbar-color: var(--copper) var(--linen); }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--copper);
    outline-offset: 4px;
}
.skip-link {
    position: fixed;
    z-index: 1000;
    top: 1rem;
    left: 1rem;
    padding: .75rem 1rem;
    background: var(--ink);
    color: var(--white);
    transform: translateY(-180%);
    transition: transform .2s ease-out;
}
.skip-link:focus { transform: translateY(0); }
.container { max-width: 1240px; padding-inline: clamp(1.1rem, 4vw, 3rem); }

/* Navigation: precise, compact, anchored */
.site-header { padding: 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.site-header .inner { min-height: 84px; gap: 1.5rem; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.site-header.scrolled {
    background: rgba(251, 251, 254, .97);
    border-bottom-color: var(--line);
    box-shadow: 0 12px 28px rgba(23, 32, 29, .08);
    padding: 0;
}
.site-header .logo { gap: .75rem; color: var(--white); font-family: 'Manrope', sans-serif; }
.site-header .logo img, .site-header.scrolled .logo img {
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 50%;
    box-shadow: none;
}
.site-header .logo-copy { display: grid; line-height: 1; }
.site-header .logo-copy strong { font-size: 1rem; letter-spacing: .12em; }
.site-header .logo-copy small { margin-top: .3rem; color: inherit; font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; }
.site-header.scrolled .logo { color: var(--ink); }
.site-header nav { gap: clamp(.85rem, 1.4vw, 1.35rem); }
.site-header nav > a, .site-header nav > .nav-item > a {
    color: rgba(255,255,255,.88);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .015em;
}
.site-header nav > a::after, .site-header nav > .nav-item > a::after {
    bottom: -.72rem;
    height: 1px;
    background: var(--copper);
}
.site-header nav > a:hover, .site-header nav > a.active, .site-header nav > .nav-item > a:hover, .site-header nav > .nav-item > a.active { color: #cbdcf1; }
.site-header.scrolled nav > a, .site-header.scrolled nav > .nav-item > a { color: var(--ink-soft); }
.site-header.scrolled nav > a:hover, .site-header.scrolled nav > a.active, .site-header.scrolled nav > .nav-item > a:hover, .site-header.scrolled nav > .nav-item > a.active { color: var(--copper-dark); }
.site-header nav .dropdown {
    top: calc(100% + 1.1rem);
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--paper);
    box-shadow: var(--shadow);
    backdrop-filter: none;
}
.site-header nav .dropdown a { color: var(--ink-soft); }
.site-header nav .dropdown a:hover, .site-header nav .dropdown a.active { padding-left: 1rem; background: var(--linen); color: var(--forest); }

/* Controls */
.btn {
    min-height: 48px;
    padding: .78rem 1.35rem;
    border-radius: 10px;
    box-shadow: none;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .025em;
    transition: background .2s ease-out, color .2s ease-out, transform .2s ease-out;
}
.btn:hover { transform: translateY(-2px); box-shadow: none; }
.btn-primary { background: var(--forest); color: var(--white); }
.btn-primary:hover { background: var(--forest-deep); }
.btn-gold { background: var(--copper); color: var(--white); }
.btn-gold:hover { background: var(--copper-dark); }
.btn-outline { border: 1px solid rgba(255,255,255,.58); background: rgba(0,0,0,.12); }
.btn-outline:hover { background: var(--paper); color: var(--ink); }

/* Hero: editorial hospitality workshop */
.hero-slider { height: min(760px, 88vh); min-height: 620px; background: var(--ink); }
.hero-slider .swiper { position: relative; width: 100%; height: 100%; overflow: hidden; }
.hero-slider .swiper-wrapper { display: flex; width: 100%; height: 100%; box-sizing: content-box; }
.hero-slider .swiper-slide { position: relative; flex: 0 0 100%; width: 100%; height: 100%; }
.hero-slider .swiper-fade .swiper-slide { pointer-events: none; }
.hero-slider .swiper-fade .swiper-slide:not(.swiper-slide-active) { opacity: 0 !important; }
.hero-slider .swiper-fade .swiper-slide-active { pointer-events: auto; opacity: 1 !important; }
.hero-slider .swiper-slide::after {
    background:
        linear-gradient(90deg, rgba(35,37,73,.78) 0%, rgba(50,53,94,.46) 48%, rgba(50,53,94,.1) 78%),
        linear-gradient(0deg, rgba(35,37,73,.32), transparent 45%);
}
.hero-slider .swiper-slide img, .hero-slider .swiper-slide video { filter: saturate(.82) contrast(1.04); }
.hero-slider .slide-content {
    left: max(6vw, calc((100vw - 1240px) / 2 + 3rem));
    top: 53%;
    width: min(720px, 78vw);
    transform: translateY(-50%);
}
.hero-slider .slide-content .eyebrow, .section-title .eyebrow, .trust-kicker { display: none; }
.hero-slider .slide-content h1 {
    max-width: 760px;
    margin: 0 0 1.45rem;
    color: var(--white);
    font-size: clamp(3.35rem, 6vw, 4.9rem);
    line-height: .96;
    text-wrap: balance;
}
.hero-slider .slide-content p {
    max-width: 620px;
    margin-bottom: 2rem;
    color: rgba(255,255,255,.8);
    font-size: clamp(1rem, 1.5vw, 1.16rem);
}
.hero-signature { margin-top: 2.25rem; gap: 1.5rem; color: rgba(255,255,255,.78); font-size: .78rem; font-weight: 700; }
.hero-signature i { border-color: #8eb5e2; background: #8eb5e2; color: #2c2d68; }
.hero-slider .swiper-button-next, .hero-slider .swiper-button-prev {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 0;
    background: transparent;
}
.hero-slider .swiper-pagination { bottom: 2.25rem !important; }
.hero-slider .swiper-pagination-bullet { width: 22px; height: 2px; border-radius: 0; background: rgba(255,255,255,.65); }
.hero-slider .swiper-pagination-bullet-active { width: 52px; background: var(--copper); }

/* Proof strip */
.trust-strip { z-index: 5; margin-top: -1px; padding: 0; background: var(--forest); }
.trust-strip .container { max-width: none; padding: 0; }
.trust-panel {
    display: grid;
    grid-template-columns: 1.45fr repeat(3, 1fr);
    margin: 0;
    border: 0;
    border-radius: 0;
    background: var(--forest);
    box-shadow: none;
    color: var(--white);
}
.trust-intro, .trust-item { min-height: 132px; padding: 1.8rem clamp(1.2rem, 3vw, 3rem); border-right: 1px solid rgba(255,255,255,.16); }
.trust-intro { justify-content: center; }
.trust-intro strong { color: var(--white); font-family: 'Manrope', sans-serif; font-size: clamp(1.35rem, 2vw, 1.85rem); line-height: 1.12; }
.trust-item { gap: 1rem; }
.trust-icon { width: auto; height: auto; border: 0; background: transparent; color: #d4d6e9; font-size: 1.2rem; }
.trust-item strong { color: var(--white); font-size: 1.45rem; font-variant-numeric: tabular-nums; }
.trust-item small { color: rgba(255,255,255,.68); }

.urgent-notices { border-block: 1px solid #d5d7e7; background: #e9eaf3; color: var(--ink); }
.urgent-notices-label { background: var(--copper); }
.urgent-notice { color: var(--ink); }
.urgent-notice-type { color: var(--copper-dark); }

/* Sections */
.section { padding: clamp(5rem, 8vw, 8.5rem) 0; background: var(--paper); }
.section:nth-of-type(even), .section-soft, .section[style*="background:var(--neutral-50)"] { background: var(--linen) !important; }
.section-title { display: grid; grid-template-columns: minmax(250px, .8fr) minmax(320px, 1.2fr); gap: 3rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); text-align: left; }
.section-title h2 { max-width: 620px; margin: 0; font-size: clamp(2.65rem, 4.2vw, 4rem); }
.section-title p { max-width: 580px; margin: 0 0 .45rem; color: var(--ink-soft); font-size: 1rem; }
.cards-grid { grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.formation-card, .testimonial-card {
    overflow: hidden;
    border: 0;
    border-radius: 12px;
    background: var(--paper);
    box-shadow: none;
}
.formation-card:hover, .testimonial-card:hover { box-shadow: none; transform: none; }
.formation-card .img-wrap { height: 260px; }
.img-wrap.media-fallback, .facility-card.media-fallback, .gallery-item.media-fallback {
    background: var(--forest-deep);
}
.img-wrap.media-fallback::before, .facility-card.media-fallback::before, .gallery-item.media-fallback::before {
    content: 'ANCILLA';
    position: absolute;
    inset: 0;
    z-index: 0;
    display: grid;
    place-items: center;
    color: rgba(255,255,255,.36);
    font-family: 'Manrope', sans-serif;
    font-size: clamp(1.3rem, 3vw, 2.2rem);
    font-weight: 700;
    letter-spacing: .18em;
}
.media-fallback > img { visibility: hidden; }
.formation-card .img-wrap::after { background: linear-gradient(0deg, rgba(41,43,77,.46), transparent 65%); }
.formation-card:hover .img-wrap img, .formation-card:hover .img-wrap video { transform: scale(1.025); }
.formation-card .body, .testimonial-card .body { padding: 1.75rem; }
.formation-card h3 { font-size: 1.8rem; line-height: 1.02; }
.formation-card .body > p { color: var(--ink-soft); }
.level-badge { top: 1rem; right: 1rem; border-radius: 8px; background: var(--paper); color: var(--forest-deep); box-shadow: none; }
.formation-card .meta { color: var(--ink-soft); }
.formation-card .price { border-top-color: var(--line); }
.formation-card .price a { color: var(--copper-dark); }

.modules-grid { grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); }
.module-card {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    column-gap: 1.2rem;
    align-items: start;
    padding: 1.65rem 1.2rem;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.module-card:nth-child(odd) { border-right: 1px solid var(--line); }
.module-card:hover { background: rgba(255,255,255,.55); box-shadow: none; transform: none; }
.module-card .icon { grid-row: 1 / 4; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--copper); }
.module-card .formation-name { grid-column: 2; color: var(--forest); font-size: .67rem; }
.module-card h3 { grid-column: 2; font-size: 1.55rem; }
.module-card p { grid-column: 2; color: var(--ink-soft); }
.module-card .hours { grid-column: 3; grid-row: 1 / 3; color: var(--ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }

.facilities-grid { grid-template-columns: repeat(12, 1fr); grid-auto-rows: 220px; gap: .65rem; }
.facility-card { width: 100%; min-width: 0; aspect-ratio: auto; grid-column: span 4; border-radius: 12px; }
.facility-card:nth-child(1), .facility-card:nth-child(6) { grid-column: span 8; }
.facility-card:nth-child(1) { grid-row: span 2; }
.facility-card .overlay { padding: 1.6rem; background: linear-gradient(0deg, rgba(35,37,73,.9), transparent 75%); }
.facility-card .overlay i { display: none; }
.facility-card h3 { color: var(--white); font-size: 2rem; }

.gallery-grid { grid-template-columns: repeat(12, 1fr); grid-auto-rows: 180px; gap: .65rem; }
.gallery-item { width: 100%; min-width: 0; aspect-ratio: auto; grid-column: span 3; border-radius: 12px; }
.gallery-item:nth-child(1), .gallery-item:nth-child(6) { grid-column: span 6; grid-row: span 2; }
.gallery-item:nth-child(3), .gallery-item:nth-child(7) { grid-column: span 5; }
.gallery-item:nth-child(4), .gallery-item:nth-child(8) { grid-column: span 4; }
.gallery-item .overlay { background: linear-gradient(0deg, rgba(35,37,73,.88), transparent 70%); }

.testimonial-card { position: relative; padding-top: 1.25rem; }
.testimonial-quote { position: static; margin: 0 1.75rem; color: var(--copper); font-size: 1.4rem; }
.testimonial-text { color: var(--ink); font-family: 'Manrope', sans-serif; font-size: 1.12rem; line-height: 1.6; }
.testimonial-stars { font-size: .72rem; }
.testimonial-author img { width: 48px; height: 48px; }

.newsletter { border: 0; border-radius: 16px; background: var(--forest-deep); box-shadow: none; }
.newsletter h2 { color: var(--white); font-size: clamp(2.25rem, 3.5vw, 3.5rem); }
.newsletter p { color: rgba(255,255,255,.72); }
.newsletter input { min-height: 50px; border-radius: 2px; }

/* Inner pages */
.page-hero { min-height: 400px; padding: 10rem 0 4.5rem; background: var(--forest-deep); }
.page-hero::after { background: linear-gradient(90deg, rgba(35,37,73,.96), rgba(61,64,111,.58)); }
.page-hero h1 { max-width: 900px; color: var(--white); font-size: clamp(3rem, 6vw, 5rem); }
.page-hero p { color: rgba(255,255,255,.72); }
.breadcrumb { color: #d4d6e9; font-size: .78rem; }
.breadcrumb a { color: rgba(255,255,255,.7); }
.prose { max-width: 72ch; }
.prose h2, .prose h3 { color: var(--ink); }
.form-card, .contact-info, .formation-detail .sidebar, .modules-list .item {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
    box-shadow: none;
}
.form-group input, .form-group select, .form-group textarea {
    border: 1px solid #bfc1d3;
    border-radius: 10px;
    background: var(--white);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(119,122,172,.16); }
.pagination a, .pagination span { border-radius: 8px; }

/* Footer */
.site-footer { padding-top: 5rem; background: #232549; color: rgba(255,255,255,.72); }
.site-footer::before { display: none; }
.site-footer .grid { gap: clamp(2rem, 5vw, 5rem); }
.site-footer .brand { color: var(--white); font-family: 'Manrope', sans-serif; font-size: 1.55rem; }
.site-footer h4 { color: #d4d6e9; font-family: 'Manrope', sans-serif; font-size: .72rem; letter-spacing: .12em; }
.site-footer a:hover { color: #d4d6e9; }
.site-footer .social a { border-radius: 50%; }
.site-footer .bottom { border-top-color: rgba(255,255,255,.12); }
.whatsapp-float { min-height: 50px; border-radius: 10px; background: var(--forest-deep); box-shadow: 0 14px 30px rgba(41,43,77,.24); }

.reveal-item { transform: translateY(18px); transition-duration: .7s; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .reveal-item { opacity: 1; transform: none; }
}

@media (max-width: 1060px) {
    .site-header nav { gap: .75rem; }
    .site-header nav > a, .site-header nav > .nav-item > a { font-size: .75rem; }
    .trust-panel { grid-template-columns: repeat(3, 1fr); }
    .trust-intro { grid-column: 1 / -1; min-height: 90px; border-bottom: 1px solid rgba(255,255,255,.16); }
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .site-header { background: rgba(41,43,77,.97); }
    .site-header.scrolled { background: rgba(251,251,254,.98); }
    .site-header .inner { min-height: 72px; }
    .site-header nav { top: 72px; padding: .6rem 1.2rem 1.3rem; background: var(--paper); }
    .site-header nav > a, .site-header nav > .nav-item > a { min-height: 48px; padding: .85rem 0; color: var(--ink); }
    .site-header nav .dropdown { border: 0; border-left: 1px solid var(--line); border-radius: 0; background: transparent; }
    .menu-toggle { min-width: 48px; min-height: 48px; }
    .section-title { grid-template-columns: 1fr; gap: 1.25rem; }
    .section-title p { margin: 0; }
    .modules-grid { grid-template-columns: 1fr; }
    .module-card:nth-child(odd) { border-right: 0; }
    .facilities-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
    .facility-card, .facility-card:nth-child(1), .facility-card:nth-child(6), .gallery-item, .gallery-item:nth-child(1), .gallery-item:nth-child(3), .gallery-item:nth-child(4), .gallery-item:nth-child(6), .gallery-item:nth-child(7), .gallery-item:nth-child(8) { grid-column: span 1; grid-row: span 1; }
}

@media (max-width: 640px) {
    body { font-size: 15px; }
    .container { padding-inline: 1.15rem; }
    .hero-slider { min-height: 690px; height: 94svh; }
    .hero-slider .slide-content { left: 1.2rem; top: 51%; width: calc(100vw - 2.4rem); }
    .hero-slider .slide-content h1 { font-size: clamp(2.7rem, 12vw, 3.7rem); }
    .slide-actions { align-items: stretch; }
    .slide-actions .btn { justify-content: center; }
    .hero-signature { display: grid; gap: .5rem; }
    .hero-slider .swiper-button-next, .hero-slider .swiper-button-prev { display: none; }
    .trust-panel { grid-template-columns: 1fr; }
    .trust-intro, .trust-item { min-height: auto; padding: 1.25rem; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.16); }
    .urgent-notices { grid-template-columns: 1fr; }
    .urgent-notices-label { justify-content: center; min-height: 48px; }
    .section { padding: 4.5rem 0; }
    .section-title { margin-bottom: 2.3rem; }
    .section-title h2 { font-size: clamp(2.3rem, 11vw, 3.15rem); }
    .cards-grid { grid-template-columns: 1fr; }
    .formation-card .img-wrap { height: 240px; }
    .module-card { grid-template-columns: 40px 1fr; padding-inline: 0; }
    .module-card .hours { grid-column: 2; grid-row: auto; margin-top: .4rem; }
    .facilities-grid, .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 250px; }
    .page-hero { min-height: 370px; padding-top: 8.5rem; }
    .page-hero h1 { font-size: clamp(2.7rem, 13vw, 3.8rem); }
    .whatsapp-float span { display: none; }
    .whatsapp-float { width: 52px; height: 52px; padding: 0; justify-content: center; border-radius: 50%; }
}
