:root {
  --dark: #262626;
  --mid: #414141;
  --overlay: rgba(65, 65, 65, 0.8);
  --panel: rgba(38, 38, 38, 0.85);
  --white: #fff;
  --sand: #b3a89a;
  --sand-dark: #6b5e4e;
  --sand-quote: #9a8a78;
  --paper: #ebe9e6;
  --grey: #999997;
  --font: "Raleway", "Helvetica Neue", Arial, sans-serif;
  --font-alt: "Avenir Next", "Avenir", "Nunito Sans", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1340px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--white);
  background: var(--dark);
  -webkit-font-smoothing: antialiased;
  line-height: 1.4;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* Fons fix de Barcelona (efecte parallax de Wix) */
.bg-city {
  background: var(--mid) url("/img/barcelona.jpg") center / cover no-repeat fixed;
}
@media (hover: none), (max-width: 900px) {
  .bg-city { background-attachment: scroll; }
}

/* ---------- Capçalera ---------- */
/* Mesures preses de la web de Wix a 1920px: el bloc va de centre-505px a centre+617px */
.site-header {
  background: var(--dark);
  position: relative;
  z-index: 10;
}
.site-header .inner {
  height: 150px;
  width: min(1122px, calc(100% - 48px));
  margin-left: max(24px, calc(50% - 505px));
  display: flex;
  align-items: center;
  gap: 24px;
}
.page-services .site-header .inner { height: 142px; }
.page-contact .site-header .inner { height: 124px; }
.home .site-header .inner { height: 149px; width: min(1294px, calc(100% - 48px)); margin-left: max(24px, calc(50% - 677px)); }

.brand { display: flex; align-items: center; flex: none; align-self: flex-start; }
/* El PNG del logo és de 1000x500 amb molt de marge. Cada pàgina de Wix en mostra
   un retall i una mida diferents: aquí es reprodueixen exactament (mesurat a 1920px). */
.brand .logo {
  max-width: none;
  width: 319.2px; height: 159.6px;
  margin: -9.67px -45.7px -49.93px -25.5px;
  clip-path: inset(9.67px 45.7px 49.93px 25.5px);
}
.brand { padding-top: 7px; }
.page-services .brand { padding-top: 11px; }
.page-services .brand .logo {
  width: 300.8px; height: 150.4px;
  margin: -6.92px -33.13px -23.48px -27.67px;
  clip-path: inset(6.92px 33.13px 23.48px 27.67px);
}
.page-contact .brand { padding-top: 6px; margin-left: 15px; }
.page-contact .brand .logo {
  width: 296px; height: 148px;
  margin: -17.46px -38.63px -19.54px -35.37px;
  clip-path: inset(17.46px 38.63px 19.54px 35.37px);
}
.brand .tagline { display: none; font-size: 16px; white-space: nowrap; }
/* A la portada només es veu "a–ú–n–o", seguit del lema */
.home .brand { padding-top: 45px; }
.home .brand .logo {
  width: 359px; height: 179.5px;
  margin: -44.9px -47.1px -84.6px -40.9px;
  clip-path: inset(44.9px 47.1px 84.6px 40.9px);
}
.home .brand .tagline { display: block; margin: 16px 0 0 0; }

.main-nav { display: flex; align-items: center; margin-left: auto; }
.main-nav a {
  font-size: 22px;
  line-height: 28px;
  padding: 11px 29px;
  white-space: nowrap;
  transition: opacity .2s;
}
.main-nav a + a { border-left: 1px solid var(--white); }
.home .main-nav a { padding: 0 11px; }
.main-nav a:hover { opacity: .7; }
.lang {
  margin-left: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 104px; height: 45px;
  background: var(--grey);
  color: var(--dark);
  border-radius: 10px;
  font-family: var(--font-alt);
  font-size: 16px;
}
.lang img { width: 18px; height: 18px; border-radius: 50%; }
.lang svg { width: 12px; height: 6px; }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--white);
  width: 44px; height: 44px;
  cursor: pointer;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 26px; height: 2px; background: currentColor; margin: 0 auto; position: relative; transition: transform .25s, opacity .25s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -8px; }
.menu-toggle span::after { top: 8px; }
.nav-open .menu-toggle span { background: transparent; }
.nav-open .menu-toggle span::before { transform: translateY(8px) rotate(45deg); }
.nav-open .menu-toggle span::after { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Botons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 50px;
  background: var(--white);
  color: var(--dark);
  font-family: var(--font-alt);
  font-size: 15px;
  letter-spacing: .25em;
  padding: 0 14px 0 18px;
  height: 40px;
  border: 1px solid var(--white);
  transition: background .2s, color .2s;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn:hover { background: var(--dark); color: var(--white); }
.btn-ghost { background: rgba(255,255,255,.66); border-color: var(--mid); font-weight: 700; }
.btn-raleway { font-family: var(--font); font-size: 14px; font-weight: 700; height: 42px; }

/* ---------- Portada ---------- */
.hero {
  position: relative;
  height: min(802px, 80vh);
  min-height: 520px;
  overflow: hidden;
  background: var(--mid) url("/img/hero-poster.jpg") center / cover;
}
.hero video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.35) 100%);
}
.hero .content {
  position: absolute; left: 0; right: 0; bottom: 54px;
  margin: 0 auto;
  width: min(905px, 90%);
  text-align: center;
  z-index: 1;
}
.hero h1 {
  font-weight: 600;
  font-size: 40px;
  line-height: 1.4;
  margin-bottom: 19px;
}

.vision { position: relative; }
.vision .veil {
  background: var(--overlay);
  padding: 82px 24px 58px;
}
.vision .inner { max-width: 718px; margin: 0 auto; text-align: center; }
.vision h2 { font-weight: 600; font-size: 56px; line-height: 84px; margin-bottom: 29px; }
.vision p {
  font-weight: 600; font-style: italic; font-size: 22px; line-height: 1.4;
  text-align: justify;
  margin-bottom: 59px;
}

.founder { padding: 55px 24px 60px; }
.founder .inner {
  max-width: 1330px;
  margin-left: max(0px, min(calc(50% - 466px), calc(100% - 1330px)));
  position: relative;
  min-height: 720px;
}
.founder .photo {
  position: absolute; left: 0; top: 0;
  width: 590px; height: 483px;
  background: var(--white);
  overflow: hidden;
}
.founder .photo img { width: 100%; height: 100%; object-fit: cover; }
.founder .card {
  position: absolute; right: 0; top: 149px;
  width: 840px; min-height: 570px;
  background: var(--dark);
  padding: 92px 220px 60px 199px;
}
.founder h3 { font-weight: 600; font-size: 30px; line-height: 1.5; margin-bottom: 26px; }
.founder p { font-size: 16px; line-height: 1.8; margin-bottom: 30px; max-width: 453px; }
.founder .btn { background: rgba(255,255,255,.93); border-color: var(--grey); }
.founder .btn:hover { background: var(--dark); }

.reviews { background: var(--dark); padding: 80px 24px 90px; text-align: center; }
.reviews h2 { font-weight: 600; font-size: 30px; margin-bottom: 50px; }
.reviews .grid {
  max-width: 980px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
}
.reviews h4 { font-size: 20px; font-weight: 700; line-height: 1.4; margin-bottom: 20px; }
.reviews p { font-size: 16px; line-height: 1.8; max-width: 280px; margin: 0 auto; }

.home-contact { padding: 127px 24px 35px; }
.home-contact .inner {
  max-width: 1610px;
  margin-left: max(0px, calc(50% - 816px));
  display: grid; grid-template-columns: 840px 1fr;
  position: relative;
}
.home-contact .panel {
  background: var(--dark);
  padding: 37px 60px 44px;
  min-height: 767px;
  display: flex; flex-direction: column; align-items: center;
  position: relative; z-index: 1;
}
.home-contact .visual {
  margin-left: -150px;
  margin-top: 0;
  background: var(--white);
  height: 770px;
  overflow: hidden;
}
.home-contact .visual img { width: 100%; height: 100%; object-fit: cover; }
.home-contact h2 { font-weight: 600; font-size: 30px; text-align: center; line-height: 1.25; margin-bottom: 24px; }
.home-contact .form { width: 450px; max-width: 100%; margin-top: 59px; gap: 22px 30px; }
.home-contact .form label { line-height: 14px; margin-bottom: 9px; }
.home-contact .form button { margin-top: -3px; }
.partners { display: flex; align-items: center; gap: 40px; margin-top: auto; padding-top: 40px; align-self: flex-start; margin-left: 143px; }
.partners .api { width: 221px; }
.partners .colegio { width: 131px; }

.socials { display: flex; gap: 26px; justify-content: center; }
.socials img { width: 55px; height: 55px; transition: transform .2s; }
.socials a:hover img { transform: scale(1.06); }

/* ---------- Formularis ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 30px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-family: var(--font-alt); font-size: 14px; margin-bottom: 9px; }
.form input, .form textarea {
  width: 100%;
  background: var(--dark);
  border: 1px solid var(--white);
  color: var(--white);
  font: 16px var(--font);
  padding: 8px 10px;
  height: 37px;
}
.form textarea { height: 87px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--sand); outline-offset: 1px; }
.form button {
  grid-column: 1 / -1;
  height: 36px;
  border-radius: 20px;
  border: 3px solid var(--white);
  background: var(--white);
  color: var(--dark);
  font: 200 24px "Work Sans", var(--font);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.form button:hover { background: transparent; color: var(--white); }
.form .status { grid-column: 1 / -1; font-size: 14px; min-height: 1em; }

/* ---------- Pàgines interiors ---------- */
.page { padding: 90px 60px 0; }
.page > .block { max-width: 1800px; margin: 0 auto; }

.about-intro { background: var(--overlay); padding: 90px 24px 86px; text-align: center; }
.about-intro h1 { font-weight: 600; font-size: 56px; line-height: 1.4; margin-bottom: 40px; }
.about-intro .photos { position: relative; width: 842px; max-width: 100%; margin: 0 auto; }
.about-intro .photos .wide { width: 706px; height: 446px; object-fit: cover; }
.about-intro .photos .tall {
  position: absolute; right: 0; top: 225px;
  width: 282px; height: 385px; object-fit: cover;
}

.about-story { background: var(--dark); padding: 74px 24px 120px; margin-top: 79px; }
.about-story .grid {
  max-width: 1064px; margin-left: max(0px, calc(50% - 733px));
  display: grid; grid-template-columns: 390px 674px; gap: 0;
}
.about-story h2 { font-weight: 600; font-size: 38px; line-height: 1.4; }
.about-story .text p { font-size: 16px; line-height: 1.6; margin-bottom: 18px; }
.about-story .text p.first { line-height: 1.8; }
.about-story .text p.justify { text-align: justify; line-height: 1.4; }
.brandword { font-size: 24px; font-weight: 700; line-height: 1; }

.quote {
  background: var(--paper);
  color: var(--sand-dark);
  position: relative;
  padding: 58px 70px 64px;
  margin: 26px 0 52px;
  text-align: center;
  font-style: italic;
  font-size: 22px;
  line-height: 1.4;
}
.quote p + p { margin-top: 0; }
.quote .mark {
  position: absolute;
  font: 700 176px/1 "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--sand-quote);
  font-style: normal;
}
.quote .open { left: 34px; top: 4px; }
.quote .close { right: 34px; bottom: -84px; }

.portrait {
  width: 515px; height: 515px; max-width: 100%;
  border-radius: 50%; object-fit: cover;
  margin: 40px auto 76px;
}

.about-footer { background: var(--overlay); padding: 45px 24px 60px; }
.about-footer .grid {
  margin-left: max(0px, calc(50% - 429px));
  display: grid; grid-template-columns: 672px 412px; gap: 0; align-items: start;
}
.about-footer .card .logo { width: 500px; max-width: 100%; height: 250px; object-fit: contain; margin-bottom: 13px; }
.about-footer address, .about-footer .lines, .about-footer .card .socials { margin-left: 146px; }
.about-footer .form { width: 292px; margin: 79px 0 0 60px; column-gap: 40px; row-gap: 41px; }
.about-footer address { font-style: normal; font-size: 16px; font-weight: 700; line-height: 1.4; margin-bottom: 18px; }
.about-footer .lines p { font-size: 18px; font-weight: 700; line-height: 1.4; margin-bottom: 14px; }
.about-footer .socials { justify-content: flex-start; margin-top: 30px; }
.form.big label { font: 700 22px/22px var(--font); margin-bottom: 8px; }
.form.big input { height: 44px; }
.form.big textarea { background: var(--white); color: var(--dark); }
.form.big button {
  grid-column: 2; justify-self: end;
  width: auto; padding: 0 22px; height: 38px;
  background: transparent; color: var(--white); border: 1px solid var(--white);
}
.form.big button:hover { background: var(--white); color: var(--dark); }

/* Serveis */
.services { background: var(--mid); padding: 40px 24px 50px; }
.services .banner {
  max-width: 1760px; margin: 0 auto 0;
  position: relative; height: 434px;
}
.services .banner .photo {
  position: absolute; left: 0; top: 0;
  width: 1110px; height: 342px;
  background: url("/img/barcelona.jpg") center / cover;
}
.services .banner .text {
  position: absolute; right: 0; top: 80px;
  width: 1110px; height: 354px;
  background: rgba(38, 38, 38, 0.8);
  padding: 86px 40px 0 268px;
}
.services h1 { font-weight: 600; font-size: 56px; line-height: 1.4; margin-bottom: 8px; }
.services .banner p { font-size: 22px; line-height: 1.4; }
.service-grid {
  max-width: 939px; margin: 14px 0 0 max(0px, calc(50% - 446px));
  display: grid; grid-template-columns: 424px 424px; gap: 0 91px;
  align-items: start;
}
.service-grid .col { display: grid; gap: 91px; }
.service-grid .col:nth-child(2) { padding-top: 0; }
.service {
  background: var(--dark);
  padding: 22px 20px 34px;
}
.service h2 {
  font-size: 20px; font-weight: 700; line-height: 1.4;
  min-height: 84px;
  display: flex; align-items: flex-end;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.55);
  margin-bottom: 30px;
}
.service img { width: 380px; height: 248px; object-fit: cover; margin-bottom: 28px; max-width: 100%; }
.service p { font-size: 16px; line-height: 1.8; text-align: justify; }

/* Contacte */
.contact-page { padding: 98px 24px 0; }
.contact-page .wrap { max-width: 980px; margin: 0 auto; }
.contact-head {
  background: var(--dark);
  height: 303px;
  display: flex; align-items: center; justify-content: center; gap: 36px;
}
.contact-head h1 { font-weight: 600; font-size: 40px; }
.contact-head img { width: 400px; height: 200px; object-fit: contain; }
.contact-info {
  background: var(--panel);
  margin-top: 13px;
  padding: 57px 32px 56px;
  display: grid; grid-template-columns: 250px 300px 1fr;
}
.contact-info h2 { color: var(--sand); font-size: 26px; font-weight: 700; line-height: 36px; margin-bottom: 17px; }
.contact-info .strong { font-size: 19px; font-weight: 700; line-height: 1.4; }
.contact-info .hours { display: grid; grid-template-columns: 103px auto; row-gap: 34px; font-size: 16px; line-height: 28.8px; margin-top: 21px; }
.contact-info .mid { display: flex; flex-direction: column; align-items: center; text-align: center; }
.contact-info .mid h2 { margin-bottom: 31px; }
.contact-info .mid a { font-size: 18px; font-weight: 700; line-height: 32px; }
.contact-info .mid .mail { margin-top: 78px; }
.contact-info .mid .socials { margin-top: 31px; }
.contact-info .mid .follow { font-size: 18px; line-height: 32px; margin-top: 25px; white-space: nowrap; }
.contact-info > div:last-child { padding-left: 83px; }
.contact-info .cita { font-weight: 600; font-size: 18px; margin-top: 50px; padding-left: 47px; }
.contact-form {
  background: var(--panel);
  margin-top: 38px;
  padding: 46px 18px 47px;
  display: grid; grid-template-columns: 455px 1fr; gap: 40px;
  margin-bottom: 0;
}
.contact-form .form label { font: 600 17px var(--font); }
.contact-form .form input, .contact-form .form textarea { background: var(--white); color: var(--dark); border: 0; }
.contact-form .form textarea { height: 100px; }
.contact-form .form button {
  grid-column: 1; justify-self: start;
  width: 132px; height: 32px; font-size: 17px; font-weight: 400;
  background: var(--mid); color: var(--white); border: 0;
}
.contact-form .form button:hover { background: var(--white); color: var(--dark); }
.contact-form iframe { width: 100%; height: 100%; min-height: 344px; border: 0; filter: grayscale(.85); }

/* ---------- Animacions d'entrada ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1400px) {
  .main-nav a, .page-about .main-nav a, .home .main-nav a { font-size: 19px; padding: 6px 14px; }
  .home .brand .tagline { font-size: 14px; }
  .founder .inner { min-height: 0; display: grid; grid-template-columns: 45% 1fr; }
  .founder .photo { position: relative; width: 100%; height: 483px; }
  .founder .card { position: relative; width: auto; top: 149px; margin-left: -90px; padding: 80px 60px 60px 120px; margin-bottom: 149px; }
  .home-contact .inner { grid-template-columns: 1fr 1fr; }
  .services .banner .photo { width: 63%; }
  .services .banner .text { width: 63%; padding-left: 120px; }
}

@media (max-width: 1100px) {
  .site-header .inner, .home .site-header .inner, .page-services .site-header .inner, .page-contact .site-header .inner { height: 96px; width: auto; margin: 0 24px; justify-content: space-between; }
  .menu-toggle { display: block; margin-left: auto; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--dark);
    padding: 8px 24px 24px;
    display: none;
  }
  .nav-open .main-nav { display: flex; }
  .main-nav a, .page-about .main-nav a, .home .main-nav a { padding: 14px 0; font-size: 22px; border-left: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .main-nav a[aria-current="page"] { color: var(--sand); }
  .lang { margin: 18px 0 0; align-self: flex-start; }
  .home .brand .tagline { display: none; }
  .brand, .home .brand, .page-services .brand, .page-contact .brand { align-self: center; padding-top: 0; margin-left: 0; }
  .brand .logo, .home .brand .logo, .page-services .brand .logo, .page-contact .brand .logo {
    width: 260px; height: 130px;
    margin: -35px -45px -49px -42px;
    clip-path: inset(35px 45px 49px 42px);
  }

  .about-story .grid { grid-template-columns: 1fr; max-width: 674px; margin: 0 auto; }
  .about-story h2 { margin-bottom: 30px; }
  .about-footer .grid { grid-template-columns: 1fr; gap: 50px; margin: 0 auto; max-width: 500px; }
  .about-footer .card { text-align: center; }
  .about-footer .card .logo { margin: 0 auto; }
  .about-footer address, .about-footer .lines, .about-footer .card .socials { margin-left: 0; }
  .about-footer .socials { justify-content: center; }
  .about-footer .form { max-width: 412px; margin: 0 auto; width: 100%; }
  .founder .inner, .home-contact .inner, .service-grid { margin-left: auto; margin-right: auto; }
  .partners { align-self: center; margin-left: 0; }

  .service-grid { grid-template-columns: 1fr 1fr; gap: 40px; max-width: 900px; }
  .service-grid .col { gap: 40px; }
  .service img { width: 100%; }

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

@media (max-width: 800px) {
  .hero { height: 70vh; min-height: 460px; }
  .hero h1 { font-size: 26px; margin-bottom: 32px; }
  .hero .content { bottom: 48px; }
  .vision h2 { font-size: 34px; }
  .vision p { font-size: 18px; text-align: left; }

  .founder { padding: 40px 16px; }
  .founder .inner { grid-template-columns: 1fr; }
  .founder .photo { height: auto; aspect-ratio: 590 / 483; }
  .founder .card { margin: -40px 16px 0; top: 0; padding: 44px 26px; min-height: 0; }
  .founder h3 { font-size: 24px; }

  .reviews .grid { grid-template-columns: 1fr; gap: 46px; }
  .reviews h2 { font-size: 26px; }

  .home-contact { padding: 60px 16px; }
  .home-contact .inner { grid-template-columns: minmax(0, 1fr); }
  .home-contact .form { width: 100%; }
  .home-contact .panel { min-height: 0; padding: 40px 22px; }
  .home-contact .visual { margin: 0; height: 320px; }
  .partners { flex-wrap: wrap; justify-content: center; }

  .page, .contact-page { padding: 40px 16px 0; }
  .about-intro { padding: 50px 16px; }
  .about-intro h1 { font-size: 34px; }
  .about-intro .photos .wide { width: 100%; height: auto; aspect-ratio: 706/446; }
  .about-intro .photos .tall { position: relative; top: 0; width: 60%; height: auto; aspect-ratio: 282/385; margin: -60px 0 0 auto; }
  .about-story { padding: 50px 16px 60px; }
  .about-story h2 { font-size: 30px; }
  .quote { padding: 70px 26px 70px; font-size: 18px; }
  .quote .mark { font-size: 110px; }
  .quote .close { bottom: -48px; }
  .portrait { width: 280px; height: 280px; }

  .services { padding: 24px 16px 60px; }
  .services .banner { height: auto; }
  .services .banner .photo { position: relative; width: 100%; height: 200px; }
  .services .banner .text { position: relative; width: auto; height: auto; top: 0; margin: -50px 12px 0; padding: 36px 24px; }
  .services h1 { font-size: 34px; }
  .services .banner p { font-size: 18px; }
  .service-grid { grid-template-columns: 1fr; margin-top: 40px; }

  .contact-head { flex-direction: column; height: auto; padding: 40px 16px; gap: 10px; }
  .contact-head img { width: 260px; height: 130px; }
  .contact-info { grid-template-columns: 1fr; padding: 36px 22px; row-gap: 36px; }
  .contact-info > div:last-child { padding-left: 0; }
  .contact-info .mid { align-items: flex-start; text-align: left; }
  .contact-info .mid h2, .contact-info .mid .mail, .contact-info .mid .socials, .contact-info .mid .follow { margin-top: 0; margin-bottom: 12px; }
  .contact-info .mid .follow { white-space: normal; }
  .contact-info .cita { padding-left: 0; margin-top: 24px; }
  .contact-form { padding: 30px 18px; }
  .form { grid-template-columns: 1fr; }
  .form.big button { grid-column: 1; }
  .form > div:not(.full) { grid-column: 1 / -1; }
}
