/* Procuida — Figma mobile design */

:root {
  --color-navy: #1B2332;
  --color-navy-light: #252F42;
  --color-green: #3D9B40;
  --color-green-hover: #358A38;
  --color-green-pale: #E8F4E8;
  --color-green-tint: #F0F7F0;
  --color-bg: #FFFFFF;
  --color-text: #1B2332;
  --color-text-muted: #5A6474;
  --color-text-light: #8B95A5;
  --color-border: rgba(27, 35, 50, 0.1);
  --color-shadow: rgba(27, 35, 50, 0.08);
  --font: 'Inter', system-ui, sans-serif;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --transition: 0.3s ease;
  --header-height: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

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

body.menu-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--header-height);
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.header--scrolled {
  border-color: var(--color-border);
  box-shadow: 0 2px 12px var(--color-shadow);
}

.header--transparent.header--scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header--transparent:not(.header--scrolled) {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.header--transparent:not(.header--scrolled) .nav__logo {
  color: #fff;
}

.header--transparent:not(.header--scrolled) .nav__link:not(.nav__link--cta):not(.nav__link--active) {
  color: rgba(255, 255, 255, 0.9);
}

.header--transparent:not(.header--scrolled) .nav__link--active:not(.nav__link--cta) {
  color: #fff;
}

.header--transparent:not(.header--scrolled) .nav__toggle span {
  background: #fff;
}

.header--transparent.header--scrolled .nav__logo {
  color: var(--color-navy);
}

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

.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-navy);
  letter-spacing: -0.02em;
}

.nav__logo-icon { width: 32px; height: 32px; }

.nav__desktop {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.nav__link:hover,
.nav__link--active { color: var(--color-navy); }

.nav__link--cta {
  background: var(--color-green);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  transition: background var(--transition);
}

.nav__link--cta:hover {
  background: var(--color-green-hover);
  color: #fff !important;
}

.nav__drawer-links a.nav__link--cta {
  margin-top: 16px;
  text-align: center;
  background: var(--color-green);
  border-radius: var(--radius-pill);
  border-bottom: none;
  color: #fff !important;
}

.nav__drawer-links a.nav__link--cta:hover {
  background: var(--color-green-hover);
  color: #fff !important;
}

.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 210;
}

.nav__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-navy);
  margin: 6px 0;
  transition: transform var(--transition), opacity var(--transition);
}

.nav__toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(27, 35, 50, 0.6);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.nav__overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.nav__drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(300px, 85vw);
  height: 100vh;
  background: var(--color-navy);
  z-index: 160;
  padding: calc(var(--header-height) + 24px) 28px 32px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition);
}

.nav__drawer.active { transform: translateX(0); }

.nav__drawer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.nav__drawer-links a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  font-weight: 500;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: color var(--transition);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

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

.btn--primary:hover {
  background: var(--color-green-hover);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--color-green);
  border: 2px solid var(--color-green);
}

.btn--outline:hover { background: var(--color-green-pale); }

.btn--block { width: 100%; }

.btn--sm { padding: 10px 20px; font-size: 0.85rem; }

.text-link {
  color: var(--color-green);
  font-weight: 600;
  font-size: 0.9rem;
  transition: opacity var(--transition);
}

.text-link:hover { opacity: 0.8; }

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-height) + 48px) 0 64px;
  overflow: hidden;
  color: #fff;
}

.hero--compact {
  min-height: 100vh;
  min-height: 100svh;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(27, 35, 50, 0.92) 0%,
    rgba(27, 35, 50, 0.55) 45%,
    rgba(27, 35, 50, 0.25) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 640px;
}

.hero__title {
  font-size: clamp(1.85rem, 5.5vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 14px;
}

.hero__desc {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
  margin-bottom: 28px;
  max-width: 520px;
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.hero .text-link {
  color: #fff;
}

.hero .text-link:hover {
  color: var(--color-green);
  opacity: 1;
}

/* Sections */
.section {
  padding: 48px 0;
}

.section__title {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  color: var(--color-navy);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  line-height: 1.25;
}

.section--tint { background: var(--color-green-tint); }
.section--navy { background: var(--color-navy); color: #fff; }
.section--navy .section__title { color: #fff; }

/* Service list (home) */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.service-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 8px var(--color-shadow);
  transition: box-shadow var(--transition);
}

.service-item:hover { box-shadow: 0 6px 20px var(--color-shadow); }

.service-item__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-green-pale);
  color: var(--color-green);
  border-radius: var(--radius);
}

.service-item__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 4px;
}

.service-item__desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Why us / Profesionales */
.why-us {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.why-us__photo {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 16/10;
  object-fit: cover;
}

.why-us__points {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.why-us__point {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.why-us__point-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-green);
}

.why-us__point-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.why-us__point-desc {
  font-size: 0.85rem;
  opacity: 0.75;
}

.section--navy .why-us__point-desc { opacity: 0.7; }

/* Location */
.location__info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.location__row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.location__row svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-green);
}

/* Testimonials */
.testimonials__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.testimonials__rating {
  display: flex;
  align-items: center;
  gap: 8px;
}

.testimonials__stars { color: #F5A623; letter-spacing: 2px; font-size: 1rem; }

.testimonial-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 2px 12px var(--color-shadow);
}

.testimonial-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-card__name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-navy);
}

.testimonial-card__meta {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.testimonial-card__text {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* Service detail (servicios page) */
.service-block {
  margin-bottom: 40px;
}

.service-block__image {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 16/10;
  object-fit: cover;
  margin-bottom: 16px;
}

.service-block__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.service-block__icon {
  width: 32px;
  height: 32px;
  color: var(--color-green);
}

.service-block__title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-navy);
}

.service-block__desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 12px;
  line-height: 1.6;
}

/* CTA box */
.cta-box {
  background: var(--color-navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  margin: 40px 0;
}

.cta-box__title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.3;
}

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

.value-card {
  text-align: center;
  padding: 20px 16px;
}

.value-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-green);
}

.value-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 6px;
}

.value-card__desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 16px;
}

.team-card { text-align: center; }

.team-card__photo {
  width: 100%;
  max-width: 120px;
  margin: 0 auto 10px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
}

.team-card__name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 2px;
}

.team-card__role {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* Contact */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contact-row__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-green-pale);
  color: var(--color-green);
  border-radius: var(--radius);
}

.contact-row__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-light);
  margin-bottom: 2px;
}

.contact-row__value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-navy);
}

.contact-form {
  background: var(--color-green-tint);
  padding: 24px 20px;
  border-radius: var(--radius-lg);
}

.contact-form__title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 20px;
}

.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--color-text);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-green);
}

.form-group textarea {
  min-height: 110px;
  resize: vertical;
}

/* Map */
.map-section { padding: 0 0 48px; }

.map {
  width: 100%;
  height: 280px;
  border: none;
  border-radius: var(--radius-lg);
}

/* Footer */
.footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 40px 0 28px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.footer__links a {
  font-size: 0.9rem;
  opacity: 0.85;
  transition: color var(--transition);
}

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

.footer__social {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
}

.footer__social a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  transition: background var(--transition);
}

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

.footer__copy {
  font-size: 0.8rem;
  opacity: 0.55;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Desktop */
@media (min-width: 769px) {
  .hero {
    align-items: center;
  }

  .hero__actions {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }

  .service-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .why-us {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .values-grid { grid-template-columns: repeat(3, 1fr); }

  .team-grid { grid-template-columns: repeat(4, 1fr); }

  .contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: start;
  }

  .map { height: 360px; }

  .footer__inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
  }

  .footer__links { margin-bottom: 0; }
}

@media (max-width: 768px) {
  .nav__desktop { display: none; }
  .nav__toggle { display: block; }

  .hero__actions .btn { width: 100%; }
}
