:root {
  --bg: #f6f4ed;
  --bg-soft: #fbfaf5;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: #ffffff;
  --green-900: #183322;
  --green-800: #22462f;
  --green-700: #2f6141;
  --green-600: #3d7550;
  --green-500: #4e8a5c;
  --green-300: #a9c7a8;
  --gold: #c7a86c;
  --text: #233127;
  --muted: #5c695f;
  --line: rgba(24, 51, 34, 0.12);
  --shadow: 0 18px 45px rgba(20, 38, 28, 0.12);
  --shadow-strong: 0 24px 60px rgba(20, 38, 28, 0.18);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --max-width: 1240px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(169, 199, 168, 0.32), transparent 32%),
    radial-gradient(circle at top right, rgba(199, 168, 108, 0.18), transparent 24%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  overflow-x: hidden;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(24, 51, 34, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 51, 34, 0.018) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at center, black 48%, transparent 90%);
  z-index: -1;
}

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

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

ul {
  list-style: none;
}

section {
  padding: 90px 0;
}

.container {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.section-header {
  margin-bottom: 2.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-700);
  font-weight: 700;
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--green-700), transparent);
}

.section-title {
  font-size: clamp(2rem, 3vw, 3.4rem);
  line-height: 1.05;
  color: var(--green-900);
  margin-bottom: 1rem;
  max-width: 12ch;
}

.section-text {
  max-width: 65ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.85;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(24, 51, 34, 0.16);
}

.btn-primary {
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
  color: white;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.82);
  color: var(--green-900);
  border-color: rgba(24, 51, 34, 0.12);
}

/* NAVBAR */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(250, 249, 244, 0.7);
  border-bottom: 1px solid rgba(24, 51, 34, 0.08);
}

.navbar {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-weight: 800;
  color: var(--green-900);
  letter-spacing: 0.02em;
}

.logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--green-900), var(--green-500));
  box-shadow: 0 10px 25px rgba(34, 70, 47, 0.22);
  position: relative;
  overflow: hidden;
}

.logo-img {
  width: 46px !important;
  height: 46px !important;
  max-width: 46px !important;
  border-radius: 14px;
  object-fit: contain;
  flex-shrink: 0;
  box-shadow: 0 10px 25px rgba(34, 70, 47, 0.22);
}

.logo-mark::before,
.logo-mark::after {
  content: "";
  position: absolute;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.18);
}

.logo-mark::before {
  width: 16px;
  height: 28px;
  left: 12px;
  top: 9px;
  transform: rotate(-24deg);
}

.logo-mark::after {
  width: 10px;
  height: 22px;
  left: 22px;
  top: 14px;
  transform: rotate(18deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  color: var(--muted);
  font-weight: 600;
}

.nav-links a {
  position: relative;
  transition: color var(--transition);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 2px;
  background: var(--green-700);
  transition: width var(--transition);
}

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

.nav-links a:hover::after {
  width: 100%;
}

/* HERO */

.hero {
  padding: 70px 0 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 2rem;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.8rem, 5vw, 5.6rem);
  line-height: 0.96;
  color: var(--green-900);
  margin-bottom: 1.25rem;
  max-width: 10ch;
}

.hero-copy p {
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 1.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 720px;
}

.stat-card {
  padding: 1.2rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(24, 51, 34, 0.08);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.stat-card strong {
  display: block;
  font-size: 1.6rem;
  color: var(--green-900);
  margin-bottom: 0.25rem;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-visual {
  position: relative;
  min-height: 620px;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(24px);
  opacity: 0.5;
  animation: float 6s ease-in-out infinite;
}

.blob.one {
  width: 190px;
  height: 190px;
  right: 10%;
  top: 2%;
  background: rgba(169, 199, 168, 0.55);
}

.blob.two {
  width: 120px;
  height: 120px;
  left: 2%;
  bottom: 18%;
  background: rgba(199, 168, 108, 0.26);
  animation-delay: 1.2s;
}

.main-photo {
  position: absolute;
  inset: 8% 8% 8% 12%;
  border-radius: 36px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(34, 70, 47, 0.88), rgba(78, 138, 92, 0.7)),
    linear-gradient(180deg, #6d8f62 0%, #314d37 100%);
  box-shadow: 0 24px 70px rgba(24, 51, 34, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: float 7s ease-in-out infinite;
}

.main-photo::before {
  content: "Tu imagen principal";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.9);
  padding: 2rem;
}

.overlay-card,
.small-photo {
  position: absolute;
  background: var(--surface);
  border: 1px solid rgba(24, 51, 34, 0.08);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.overlay-card {
  left: 0;
  top: 12%;
  width: 250px;
  padding: 1.25rem;
  border-radius: 24px;
  animation: float 5.5s ease-in-out infinite;
}

.overlay-card h3 {
  color: var(--green-900);
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.overlay-card p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.95rem;
}

.badge {
  display: inline-flex;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(169, 199, 168, 0.22);
  color: var(--green-800);
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 0.85rem;
}

.small-photo {
  right: 0;
  bottom: 4%;
  width: 220px;
  height: 220px;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(199, 168, 108, 0.85), rgba(255, 255, 255, 0.55));
  animation: float 6.8s ease-in-out infinite;
  animation-delay: 0.8s;
}

.small-photo::before {
  content: "Imagen secundaria";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  color: var(--green-900);
  padding: 1.2rem;
}

/* PARTNERS */

.partners {
  padding: 20px 0 10px;
}

.partners-wrap {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.partner {
  min-height: 92px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(24, 51, 34, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.46);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ABOUT */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.image-panel {
  position: relative;
  min-height: 520px;
}

.image-card-large,
.image-card-small {
  position: absolute;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(24, 51, 34, 0.08);
  box-shadow: var(--shadow);
}

.image-card-large {
  inset: 0 12% 8% 0;
  background: linear-gradient(145deg, rgba(34, 70, 47, 0.92), rgba(120, 157, 97, 0.75));
}

.image-card-large::before {
  content: "Imagen de tu empresa";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.35rem;
  font-weight: 700;
}

.image-card-small {
  right: 0;
  bottom: 0;
  width: 220px;
  height: 220px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(169, 199, 168, 0.55));
}

.image-card-small::before {
  content: "Otra imagen";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-900);
  font-weight: 700;
}

.feature-list {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.feature-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(24, 51, 34, 0.08);
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--green-900), var(--green-500));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 900;
}

.feature-item h4 {
  color: var(--green-900);
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

.feature-item p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.96rem;
}

/* SERVICES */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.service-card {
  padding: 1.4rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(24, 51, 34, 0.08);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-strong);
}

.service-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green-700), var(--gold));
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover::after {
  opacity: 1;
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: rgba(169, 199, 168, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: var(--green-900);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.service-card h3 {
  color: var(--green-900);
  margin-bottom: 0.75rem;
  font-size: 1.18rem;
}

.service-card p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 0.97rem;
}

/* GALLERY */

.gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 1rem;
  margin-top: 2rem;
}

.gallery-item {
  min-height: 220px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(34, 70, 47, 0.85), rgba(169, 199, 168, 0.72));
  border: 1px solid rgba(24, 51, 34, 0.08);
  box-shadow: var(--shadow);
  position: relative;
  transform: translateY(0);
  transition: transform 0.35s ease;
}

.gallery-item:hover {
  transform: translateY(-8px);
}

.gallery-item:nth-child(1) {
  min-height: 470px;
  grid-row: span 2;
}

.gallery-item::before {
  content: "Espacio para imagen";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 1rem;
}

/* CTA */

.cta {
  padding-top: 10px;
}

.cta-box {
  padding: 2rem;
  border-radius: 32px;
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: 0 24px 50px rgba(20, 38, 28, 0.2);
}

.cta-box h3 {
  font-size: clamp(1.8rem, 2.5vw, 2.8rem);
  line-height: 1.1;
  margin-bottom: 0.7rem;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 60ch;
  line-height: 1.75;
}

.cta-box .btn-secondary {
  background: white;
  color: var(--green-900);
}

/* CONTACT */

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2rem;
  align-items: start;
}

.contact-card,
.form-card {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(24, 51, 34, 0.08);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.contact-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact-item {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(169, 199, 168, 0.12);
  border: 1px solid rgba(24, 51, 34, 0.06);
}

.contact-item h4 {
  color: var(--green-900);
  margin-bottom: 0.3rem;
}

.contact-item p,
.contact-item a {
  color: var(--muted);
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.input-group {
  display: grid;
  gap: 0.45rem;
}

.input-group label {
  color: var(--green-900);
  font-weight: 700;
  font-size: 0.95rem;
}

.input-group input,
.input-group select,
.input-group textarea {
  width: 100%;
  border: 1px solid rgba(24, 51, 34, 0.12);
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  padding: 0.95rem 1rem;
  border-radius: 16px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  font: inherit;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  border-color: var(--green-500);
  box-shadow: 0 0 0 4px rgba(78, 138, 92, 0.14);
}

.input-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* FOOTER */

.footer {
  padding: 60px 0 40px;
  background: linear-gradient(180deg, var(--green-900), #102417);
  color: rgba(255, 255, 255, 0.86);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-brand .logo {
  margin-bottom: 1rem;
  display: inline-flex;
  color: #ffffff;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.93rem;
  line-height: 1.75;
  max-width: 28ch;
}

.footer-nav-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav-title {
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.footer-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-nav-links a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.96rem;
  transition: color var(--transition);
}

.footer-nav-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 1.6rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
}

/* mantener compatibilidad con footer-box y footer-links por si acaso */
.footer-box {
  border-top: 1px solid rgba(24, 51, 34, 0.1);
  padding-top: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* REVEAL */

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

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

/* ANIMACIONES */

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* RESPONSIVE */

@media (max-width: 1100px) {
  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .gallery-item:nth-child(1) {
    grid-row: auto;
    min-height: 280px;
  }

  .hero-visual,
  .image-panel {
    min-height: 520px;
  }

  .cta-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 45px;
  }

  .hero-copy h1 {
    max-width: 100%;
  }

  .hero-stats,
  .cards-grid,
  .partners-wrap,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 480px;
  }

  .main-photo {
    inset: 10% 5% 10% 5%;
  }

  .overlay-card {
    width: 220px;
    top: 6%;
  }

  .small-photo {
    width: 180px;
    height: 180px;
  }

  .image-panel {
    min-height: 460px;
  }

  .image-card-large {
    inset: 0 8% 10% 0;
  }

  .image-card-small {
    width: 180px;
    height: 180px;
  }

  .footer-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: span 2;
  }

  section {
    padding: 75px 0;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(calc(100% - 1.2rem), var(--max-width));
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: span 1;
  }

  .navbar {
    min-height: 74px;
  }

  .hero-copy h1 {
    font-size: clamp(2.3rem, 11vw, 3.2rem);
  }

  .section-title {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }

  .hero-copy p,
  .section-text,
  .service-card p,
  .feature-item p,
  .cta-box p {
    font-size: 0.98rem;
  }

  .overlay-card {
    position: relative;
    width: 100%;
    left: auto;
    top: auto;
    margin-top: 1rem;
  }

  .small-photo {
    display: none;
  }

  .hero-visual {
    min-height: 420px;
  }

  .image-card-small {
    display: none;
  }

  .cta-box,
  .contact-card,
  .form-card,
  .service-card {
    padding: 1.2rem;
  }
}
