@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&display=swap');

:root {
  --green-dark: #234b3a;
  --green-medium: #3f6b57;
  --green-light: #e8f0ea;
  --cream: #f7f3eb;
  --brown-soft: #8b6b4c;
  --text-dark: #1f2a24;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: var(--cream);
}

img {
  max-width: 100%;
  display: block;
}

/* -------------------- LAYOUT -------------------- */

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.nav-container {
  width: 100%;
  padding-left:100px;
  padding-right: 130px;
}

/* -------------------- HEADER -------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 78px;
  border-bottom: none;

  background-image:
    linear-gradient(rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.28)),
    url("assets/images/fotosFoulards.jpeg");

  background-repeat: no-repeat;
  background-size: cover;
  background-position: 78% center;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
}

/* -------------------- LOGO -------------------- */

.logo {
  color: white;
  text-decoration: none;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: 0;
  line-height: 1;
}

/* -------------------- MENU -------------------- */

.menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 52px;
  margin: 0;
  padding: 0;
}

.menu a,
.dropdown-toggle {
  color: white;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: opacity 0.2s ease;
}

.menu a:hover,
.dropdown-toggle:hover {
  opacity: 0.8;
}

/* -------------------- DROPDOWN -------------------- */

.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 140%;
  left: 0;
  min-width: 220px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 10px 0;
  list-style: none;
  margin: 0;
}

.dropdown-menu li a {
  display: block;
  padding: 12px 16px;
  color: var(--text-dark);
  font-size: 1rem;
  font-weight: 400;
}

.dropdown-menu li a:hover {
  background: var(--green-light);
}

.dropdown.open .dropdown-menu {
  display: block;
}

/* -------------------- HERO -------------------- */

.hero,
.hero2,
.hero3 {
  height: 70vh;
  display: flex;
  align-items: center;
  color: white;
}

.hero {
  background:
    linear-gradient(rgba(0,0,0,0.62), rgba(0,0,0,0.58)),
    url("assets/images/img1.jpeg") center/cover no-repeat;
}

.hero2 {
  background:
    linear-gradient(rgba(0,0,0,0.62), rgba(0,0,0,0.58)),
    url("assets/images/fotoPasosRutllana.jpg") center/cover no-repeat;
}

.hero3 {
  background:
    linear-gradient(rgba(0,0,0,0.62), rgba(0,0,0,0.58)),
    url("assets/images/fotoCapsEdit.jpeg") center/cover no-repeat;
}

.hero-content {
  padding: 80px 0;
  max-width: 700px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  margin-bottom: 14px;
  opacity: 0.9;
}

.hero-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.1;
  margin: 0 0 18px;
  font-weight: 500;
}

.hero-text {
  font-size: 1.32rem;
  line-height: 1.8;
  max-width: 760px;
  margin-bottom: 28px;
  font-weight: 400;
  text-align: justify;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.section-divider {
  height: 8px;
  background: #b8b8b8;
}

/* -------------------- BUTTONS -------------------- */

.btn {
  display: inline-block;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.btn-primary {
  background: var(--white);
  color: var(--green-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.8);
}

/* -------------------- INTRO -------------------- */

.intro {
  padding: 40px 0;
  background: var(--cream);
  background-color: #b8b8b8;
}

.intro-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 65px;

  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

.intro-image {
  flex: 0 0 210px;
}

.intro-image img {
  width: 210px;
  height: auto;
  object-fit: contain;
}

.intro-text {
  flex: 1;
}

.intro-text p {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.85;
  color: var(--text-dark);
  text-align: center;
}

/* -------------------- CARDS -------------------- */

.highlights {
  padding: 30px 0 80px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 12px;
  color: var(--green-dark);
}

.card p {
  margin: 0;
  line-height: 1.7;
}

/* -------------------- FOOTER -------------------- */

.site-footer {
  background: var(--green-dark);
  color: var(--white);
  text-align: center;
  padding: 24px 0;
}

.site-footer a {
  color: white;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.site-footer a:hover {
  color: #d8e7dd;
  opacity: 0.95;
}

.footer-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.footer-row p {
  margin: 0;
}

/* -------------------- RESPONSIVE -------------------- */

@media (max-width: 900px) {
  .menu {
    gap: 18px;
  }

  .cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 0;
    gap: 16px;
  }

  .menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .hero {
    min-height: 65vh;
  }

  .hero-content {
    padding: 56px 0;
  }
}

.page-hero {
  height: 36vh;
  display: flex;
  align-items: center;
  color: white;
  background:
    linear-gradient(rgba(0,0,0,0.58), rgba(0,0,0,0.52)),
    url("../../assets/images/unitats-hero.jpg") center/cover no-repeat;
}

.page-hero-content {
  width: 94%;
  max-width: 1700px;
  margin: 0 auto;
}

.page-title {
  font-size: 3rem;
  font-weight: 400;
  margin: 0 0 12px;
}

.page-subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 720px;
  margin: 0;
}

.units-section {
  padding: 70px 0;

  background:
    repeating-linear-gradient(
      -45deg,

      #f8f8f8 0px,
      #f8f8f8 150px,

      #e8eefc 150px,
      #e8eefc 300px,

      #f5e7e7 300px,
      #f5e7e7 450px
    );
}

.units-list {
  width: 94%;
  max-width: 1700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 46px;
}

.unit-block {
  display: grid;
  grid-template-columns: minmax(380px, 34%) 1fr;

  gap: 36px;
  align-items: center;

  min-height: 440px;

  background: rgba(248, 248, 247, 0.94);
  backdrop-filter: blur(4px);

  border-radius: 22px;

  padding: 24px;

  box-shadow:
    0 8px 22px rgba(0,0,0,0.05),
    0 2px 6px rgba(0,0,0,0.03);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;

  overflow: hidden;
}

.unit-block:hover {
  transform: translateY(-4px);

  box-shadow:
    0 16px 34px rgba(0,0,0,0.08),
    0 4px 10px rgba(0,0,0,0.04);
}

.unit-block.reverse {
  grid-template-columns: 1fr minmax(400px, 34%);
}

.unit-block.reverse .unit-image {
  order: 2;
}

.unit-block.reverse .unit-content {
  order: 1;
}

.unit-image {
  height: 360px;
}

.unit-image img {
  width: 100%;
  height: 360px;

  object-fit: cover;
  object-position: center;

  border-radius: 18px;
}

.unit-content {
  display: flex;
  flex-direction: column;

  height: 100%;

  padding: 34px 20px;
}

.unit-content h2 {
  font-size: 2.6rem;
  font-weight: 500;

  margin: 0 0 24px;
}

.unit-content p {
  font-size: 1.28rem;
  line-height: 1.95;
  color: var(--text-dark);

  margin: auto 0;

  max-width: none;
}

.follets h2 {
  color: orange;
}

.llops h2 {
  color: rgb(238, 238, 9);
}

.raiers h2 {
  color: blue;
}

.pioners h2 {
  color: red;
}

.clan h2 {
  color: rgb(7, 88, 7);
}