/* =============================================
   Crear Construcciones & Mantenimientos S.A.
   ============================================= */

@font-face {
  font-family: 'Work Sans';
  src: url('Work_Sans/static/WorkSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Work Sans';
  src: url('Work_Sans/static/WorkSans-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Work Sans';
  src: url('Work_Sans/static/WorkSans-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Work Sans';
  src: url('Work_Sans/static/WorkSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- Variables --- */
:root {
  --green: #0F4F40;
  --green-dark: #0d4d33;
  --green-light: #1a6b58;
  --bg-light: #F6F8F7;
  --text: #333333;
  --text-muted: #666666;
  --white: #ffffff;
  --pagination-bg: #242B38;
  --container: 1208px;
  --header-h: 110px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.08);
  --transition: 0.25s ease;
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Work Sans', 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'kern' 1;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

fieldset {
  border: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 48px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  font-size: 18px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background var(--transition), opacity var(--transition);
}

.btn--primary {
  background: var(--green);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--green-light);
}

/* =============================================
   HEADER
   ============================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  height: var(--header-h);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo__img {
  height: 90px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 48px;
}

.nav__link {
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
  transition: color var(--transition);
}

.nav__link:hover {
  color: var(--green);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 255, 255, 0.94) 20%,
    rgba(255, 255, 255, 0.72) 36%,
    rgba(255, 255, 255, 0.38) 52%,
    rgba(255, 255, 255, 0.08) 68%,
    transparent 82%
  );
  pointer-events: none;
  z-index: 1;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 80px 24px;
}

.hero__title {
  max-width: 620px;
  font-size: 48px;
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 32px;
}

/* =============================================
   EXPERIENCE
   ============================================= */
.experience {
  background: var(--bg-light);
  padding: 80px 0;
}

.experience__title {
  font-size: 56px;
  font-weight: 700;
  color: var(--green);
  text-align: left;
  margin-bottom: 48px;
}

.experience__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.experience-card {
  background: var(--white);
  padding: 32px 28px;
  border-left: 4px solid var(--green);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.experience-card__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 12px;
}

.experience-card__text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  flex: 1;
}

/* =============================================
   ABOUT
   ============================================= */
.about {
  background: var(--bg-light);
  padding: 80px 0;
}

.about__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
  position: relative;
}

.about__image-wrap {
  position: relative;
  z-index: 1;
}

.about__image {
  width: 100%;
  height: 456px;
  object-fit: cover;
  border-radius: 0;
}

.about__panel {
  background: var(--green);
  color: var(--white);
  padding: 45px 38px;
  margin-left: -48px;
  position: relative;
  z-index: 2;
  min-height: 224px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about__title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 24px;
}

.about__text {
  font-size: 16px;
  line-height: 1.65;
  opacity: 0.95;
}

/* =============================================
   CLIENTS
   ============================================= */
.clients {
  padding: 80px 0;
  background: var(--white);
}

.clients__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: nowrap;
}

.clients__logo {
  height: 100px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
}

/* =============================================
   SERVICES
   ============================================= */
.services {
  padding: 80px 0;
  background: var(--white);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  background: var(--green);
  color: var(--white);
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  padding: 24px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.service-card:hover {
  background: var(--green-light);
}

/* =============================================
   PROJECTS
   ============================================= */
.projects {
  padding: 80px 0;
  background: var(--white);
}

.projects__layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}

.projects__title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 32px;
}

.projects__filters {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.projects__filter {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
  text-align: left;
  padding-left: 16px;
  border-left: 3px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  line-height: 1.4;
}

.projects__filter:hover,
.projects__filter.is-active {
  color: var(--green);
  font-weight: 600;
  border-left-color: var(--green);
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 0;
}

.project-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.project-card.is-hidden {
  display: none;
}

.projects__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
}

.pagination-btn img {
  height: 40px;
  width: auto;
}

.pagination-dots {
  display: flex;
  gap: 10px;
}

.pagination-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  padding: 0;
  transition: background var(--transition);
}

.pagination-dot.is-active {
  background: var(--green);
}

/* =============================================
   ADVISORY / CONTACTO (segn captura)
   ============================================= */
.advisory {
  background: var(--green-dark);
  padding: 64px 0 72px;
}

.advisory__inner {
  max-width: 680px;
  margin: 0 auto;
}

.advisory__title {
  font-size: 36px;
  font-weight: 700;
  color: var(--white);
  text-align: center;
  margin-bottom: 12px;
}

.advisory__subtitle {
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  margin-bottom: 32px;
}

.advisory-form__radios {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  margin-bottom: 28px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: var(--white);
  font-size: 15px;
  font-weight: 400;
}

.radio-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-option__circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--white);
  flex-shrink: 0;
  position: relative;
  transition: background var(--transition);
}

.radio-option input:checked + .radio-option__circle {
  background: #4ade80;
  border-color: #4ade80;
}

.radio-option input:checked + .radio-option__circle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--white);
}

.advisory-form__fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.advisory-form__input,
.advisory-form__textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  border: none;
  border-radius: var(--radius-md);
  outline: none;
}

.advisory-form__input::placeholder,
.advisory-form__textarea::placeholder {
  color: #999;
}

.advisory-form__textarea {
  resize: vertical;
  min-height: 120px;
}

.advisory-form__actions {
  display: flex;
  justify-content: flex-end;
}

.advisory-form__submit {
  padding: 13px 32px;
  font-size: 15px;
  font-weight: 600;
  color: var(--green-dark);
  background: var(--white);
  border-radius: var(--radius-md);
  transition: opacity var(--transition);
  min-width: 160px;
}

.advisory-form__submit:hover {
  opacity: 0.9;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--white);
  padding-top: 48px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  padding-bottom: 48px;
}

.footer__info {
  text-align: left;
  font-size: 14px;
  line-height: 2.1;
  margin-left: auto;
  max-width: 540px;
}

.footer__label {
  display: inline-block;
  min-width: 168px;
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer__value {
  color: var(--text-muted);
  font-weight: 400;
}

.footer__info a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer__info a:hover {
  color: var(--green);
}

.footer__social-label {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer__social {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 8px;
}

.footer__social img {
  width: 32px;
  height: 32px;
}

.footer__bar {
  background: var(--green);
  padding: 16px;
  text-align: center;
}

.footer__bar p {
  font-size: 14px;
  color: var(--white);
}

/* =============================================
   WHATSAPP FLOAT
   ============================================= */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* =============================================
   RESPONSIVE  MOBILE
   ============================================= */
@media (max-width: 1024px) {
  .about__panel {
    margin-left: -40px;
  }

  .projects__layout {
    grid-template-columns: 180px 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 90px;
  }

  .logo__img {
    height: 72px;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.is-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Hero mobile: card overlay */
  .hero {
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
  }

  .hero__bg {
    position: relative;
    height: 320px;
  }

  .hero__bg::after {
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.55) 0%,
      rgba(255, 255, 255, 0.85) 55%,
      rgba(255, 255, 255, 0.95) 100%
    );
  }

  .hero__content {
    background: var(--white);
    margin: -48px 16px 0;
    padding: 32px 24px;
    box-shadow: var(--shadow-card);
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero__title {
    font-size: 24px;
    max-width: 100%;
    margin-bottom: 24px;
  }

  .experience {
    padding: 64px 0;
  }

  .experience__title {
    font-size: 28px;
  }

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

  .about {
    padding: 48px 0;
  }

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

  .about__image {
    height: 320px;
  }

  .about__panel {
    margin-left: 0;
    margin-top: 0;
    padding: 32px 24px;
  }

  .about__title {
    font-size: 28px;
  }

  .section-title {
    font-size: 28px;
    margin-bottom: 32px;
  }

  .clients__logos {
    flex-direction: column;
    gap: 32px;
  }

  .clients__logo {
    height: 72px;
    max-width: 180px;
  }

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

  .service-card {
    min-height: 72px;
    font-size: 18px;
  }

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

  .projects__filters {
    flex-direction: column;
    margin-bottom: 24px;
  }

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

  .project-card img {
    height: 220px;
  }

  .advisory {
    padding: 48px 0 56px;
  }

  .advisory__title {
    font-size: 28px;
  }

  .advisory-form__radios {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 0 8px;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .footer__info {
    text-align: left;
    margin-left: 0;
    max-width: 100%;
  }

  .footer__label {
    min-width: 0;
    display: block;
    margin-bottom: 2px;
  }

  .footer__social {
    justify-content: flex-start;
  }

  .whatsapp-float {
    bottom: 16px;
    right: 16px;
    width: 52px;
    height: 52px;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 22px;
  }

  .container {
    padding: 0 16px;
  }
}
