@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,600;0,700;0,800;1,800&family=Barlow+Condensed:wght@500;600&family=Work+Sans:wght@400;500;600&display=swap');

:root {
  --color-background: #FFFFFF;
  --color-background-2: #F3F5F8;
  --color-background-3: #121826;
  --color-background-error: #FDECEC;
  --color-background-success: #E3F4EE;
  --color-main-1: #121826;
  --color-main-2: #1F5BD8;
  --color-main-2-dark: #123E9C;
  --color-main-2-light: #8FB2FF;
  --color-cta: #0A7F62;
  --color-cta-dark: #086B52;
  --color-cta-dot: #7CF0C8;
  --color-line: #E4E7EC;
  --color-line-2: #D5D9E0;
  --font-main: 'Work Sans', sans-serif;
  --font-title: 'Montserrat', sans-serif;
  --font-mono: 'Barlow Condensed', sans-serif;
  --color-text: #121826;
  --color-text-2: #3A4250;
  --color-muted: #6B7380;
  --color-link: #1F5BD8;
  --color-label: #121826;
  --color-error: #B42318;
  --color-success: #0A7F62;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  font-style: normal;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-link);
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-main-2-dark);
}

ul, ol {
  padding-left: 30px;
}

::selection {
  background: var(--color-main-2);
  color: var(--color-background);
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-text);
  text-wrap: balance;
}

h1 {
  font-size: 76px;
  letter-spacing: -0.035em;
  @media (max-width: 1024px) {
    font-size: 54px;
  }
  @media (max-width: 767px) {
    font-size: 42px;
  }
}

h2 {
  font-size: 56px;
  @media (max-width: 1024px) {
    font-size: 42px;
  }
  @media (max-width: 767px) {
    font-size: 36px;
  }
}

h3 {
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  @media (max-width: 1024px) {
    font-size: 32px;
  }
  @media (max-width: 767px) {
    font-size: 28px;
  }
}

h4 {
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  @media (max-width: 1024px) {
    font-size: 24px;
  }
}

h5 {
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  @media (max-width: 1024px) {
    font-size: 20px;
  }
}

h6 {
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  @media (max-width: 1024px) {
    font-size: 16px;
  }
}

/* Accent words inside headings: the universal reset would otherwise
   force the body font onto them (CONVENTIONS §11 gotcha). */
h1 em, h2 em, h3 em, h4 em, h5 em, h6 em {
  font-family: var(--font-title);
  font-style: italic;
  color: var(--color-main-2);
}

p, span, li {
  font-size: 17px;
  font-weight: 400;
  line-height: 155%;
  color: var(--color-text-2);
}

/* Small tracked condensed label - eyebrows, tags, captions */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-main-2);
}

/* ==========================================================================
   SPACING SYSTEM
   Unified top/bottom rhythm for sections and blocks. Main sections should
   share the same vertical padding unless the design calls for something
   different. The 1340px tier is the container's own edge (1280 + 30 + 30).
   ========================================================================== */

.mt-120 {
  margin-top: 120px;
  @media (max-width: 1340px) {
    margin-top: 90px;
  }
  @media (max-width: 767px) {
    margin-top: 60px;
  }
}

.mt-60 {
  margin-top: 60px;
  @media (max-width: 1340px) {
    margin-top: 42px;
  }
  @media (max-width: 767px) {
    margin-top: 30px;
  }
}

.mb-120 {
  margin-bottom: 120px;
  @media (max-width: 1340px) {
    margin-bottom: 90px;
  }
  @media (max-width: 767px) {
    margin-bottom: 60px;
  }
}

.mb-60 {
  margin-bottom: 60px;
  @media (max-width: 1340px) {
    margin-bottom: 42px;
  }
  @media (max-width: 767px) {
    margin-bottom: 30px;
  }
}

/* Standard gap between a section's title block (heading ± intro paragraph)
   and whatever content follows it (button, form, cards, etc.) */
.mb-36 {
  margin-bottom: 36px;
  @media (max-width: 767px) {
    margin-bottom: 24px;
  }
}

.pt-120 {
  padding-top: 120px;
  @media (max-width: 1340px) {
    padding-top: 90px;
  }
  @media (max-width: 767px) {
    padding-top: 60px;
  }
}

.pt-60 {
  padding-top: 60px;
  @media (max-width: 1340px) {
    padding-top: 42px;
  }
  @media (max-width: 767px) {
    padding-top: 30px;
  }
}

.pb-120 {
  padding-bottom: 120px;
  @media (max-width: 1340px) {
    padding-bottom: 90px;
  }
  @media (max-width: 767px) {
    padding-bottom: 60px;
  }
}

.pb-60 {
  padding-bottom: 60px;
  @media (max-width: 1340px) {
    padding-bottom: 42px;
  }
  @media (max-width: 767px) {
    padding-bottom: 30px;
  }
}

/* ==========================================================================
   BUTTON
   Squared-off, tool-like buttons (4px radius) rather than soft pills.
   .btn-whatsapp is this project's primary CTA - the only place the green
   accent is used. The arrow icon slides forward on hover.
   ========================================================================== */

.button {
  width: fit-content;
  min-height: 54px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 4px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.button span {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.button:disabled {
  opacity: 0.5;
  pointer-events: none;
}

.button i {
  font-size: 20px;
  line-height: 1;
  transition: transform 0.35s var(--ease-out-expo);
}

.button:hover .ri-arrow-right-line {
  transform: translateX(6px);
}

.button.btn-primary {
  background: var(--color-main-2);
  border-color: var(--color-main-2);
  color: var(--color-background);
}

.button.btn-primary:hover {
  background: var(--color-main-2-dark);
  border-color: var(--color-main-2-dark);
  color: var(--color-background);
}

.button.btn-whatsapp {
  background: var(--color-cta);
  border-color: var(--color-cta);
  color: var(--color-background);
}

.button.btn-whatsapp:hover {
  background: var(--color-cta-dark);
  border-color: var(--color-cta-dark);
  color: var(--color-background);
}

/* Transparent + outlined - uses the current text color, so it reads
   correctly both on a light section and over a dark/image background. */
.button.btn-ghost {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}

.button.btn-ghost:hover {
  background: var(--color-background);
  border-color: var(--color-background);
  color: var(--color-main-1);
}

.button.btn-lg {
  min-height: 66px;
  padding: 0 30px;
  font-size: 18px;
}

/* Small pulsing "online" dot used inside WhatsApp buttons */
.live-dot {
  position: relative;
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--color-cta-dot);
}

.live-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--color-cta-dot);
  animation: live-dot-pulse 2.4s ease-out infinite;
}

@keyframes live-dot-pulse {
  0% { transform: scale(1); opacity: 0.7; }
  70%, 100% { transform: scale(2.6); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .live-dot::after { animation: none; }
}

/* ==========================================================================
   NAV TOGGLE
   Hamburger button for collapsed nav (hidden on desktop - the breakpoint
   that shows it is defined per-project in style.css, next to that nav's own
   markup). main.js swaps the icon between ri-menu-line / ri-close-line and
   toggles .is-open on the nav it controls.
   ========================================================================== */

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--color-line-2);
  border-radius: 4px;
  font-size: 22px;
  color: var(--color-text);
  cursor: pointer;
}

/* ==========================================================================
   SCROLL TO TOP
   Hidden until the page is scrolled past a threshold, then faded in.
   Toggled via .is-visible by main.js.
   ========================================================================== */

.scroll-top-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-main-1);
  color: var(--color-background);
  border: none;
  border-radius: 4px;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.4s var(--ease-out-expo), background-color 0.2s ease;
  z-index: 98;
}

.scroll-top-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: var(--color-main-2);
}

/* ==========================================================================
   LINK ARROW
   A text link with an underline that draws in from the left and an arrow
   that nudges forward on hover. Markup:
   <a class="link-arrow"><span>Label</span><i class="ri-arrow-right-line"></i></a>
   ========================================================================== */

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.link-arrow span {
  color: inherit;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px;
  transition: background-size 0.35s var(--ease-out-expo);
}

.link-arrow i {
  display: inline-block;
  font-size: 16px;
  line-height: 1;
  transition: transform 0.35s var(--ease-out-expo);
}

.link-arrow:hover span {
  background-size: 100% 1px;
}

.link-arrow:hover i {
  transform: translateX(4px);
}

/* ==========================================================================
   CONTACT ITEM
   Pairs an icon with a contact detail (phone, area, ...). Markup:
   <a class="contact-item"><i class="ri-phone-line"></i><span>+34 ...</span></a>
   ========================================================================== */

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-item span {
  color: inherit;
}

.contact-item i {
  font-size: 18px;
  line-height: 1;
  color: var(--color-main-2-light);
}

/* ==========================================================================
   ACCORDION
   Single-open FAQ list, hand-rolled in main.js (initFaqAccordion). Ruled
   editorial rows rather than boxed cards: closed items are just a hairline
   and a title, the active one turns the title blue and rotates the plus.
   ========================================================================== */

.accordion-wrapper {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--color-line-2);
}

.accordion-item {
  border-top: 1px solid var(--color-line-2);
}

.item-title-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  cursor: pointer;
}

.item-title-wrapper span {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.3;
  color: var(--color-text);
  transition: color 0.25s ease;
  @media (max-width: 767px) {
    font-size: 18px;
  }
}

.item-title-wrapper i {
  flex: none;
  font-size: 28px;
  line-height: 1;
  color: var(--color-main-2);
  transition: transform 0.4s var(--ease-out-expo);
}

.item-title-wrapper:hover span {
  color: var(--color-main-2);
}

.item-description-wrapper {
  display: none;
}

.item-content {
  padding: 0 48px 30px 0;
  max-width: 720px;
  @media (max-width: 767px) {
    padding-right: 0;
  }
}

.item-content p {
  line-height: 1.65;
}

.accordion-item.active .item-title-wrapper span {
  color: var(--color-main-2);
}

.accordion-item.active .item-title-wrapper i {
  transform: rotate(45deg);
}
