:root {
  --green: #165a22;
  --green-dark: #11471b;
  --black: #111111;
  --white: #ffffff;
  --text: #1b1b1b;
  --muted: #5f5f5f;
  --light: #f7f7f7;
  --border: #dedede;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  --radius: 18px;
  --max: 1180px;
  --transition: 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font: inherit;
}

.container {
  width: min(92%, var(--max));
  margin: 0 auto;
}

/* =========================
   TOP BARS
   ========================= */
.topbar {
  background: linear-gradient(90deg, var(--green-dark), var(--green));
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  text-align: center;
}

.topbar p {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.service-strip {
  background: var(--black);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.service-strip-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 58px;
  text-align: center;
}

.service-strip p {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.2px;
}

/* =========================
   HEADER
   ========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 108px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  flex: 1;
}

.brand-logo {
  width: 92px;
  height: 92px;
  object-fit: contain;
  background: transparent;
  border: none;
  box-shadow: none;
  flex-shrink: 0;
}

.brand-text {
  min-width: 0;
}

.brand-text h1 {
  color: var(--green);
  font-size: 2rem;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.brand-text span {
  display: block;
  margin-top: 4px;
  color: var(--green);
  font-size: 1.08rem;
  font-weight: 500;
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 34px;
}

.main-nav a {
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 500;
  transition: var(--transition);
}

.main-nav a:hover {
  color: var(--green);
}

.header-cta {
  flex-shrink: 0;
}

/* =========================
   HAMBURGUESA
   ========================= */
.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--green);
  border-radius: 999px;
  transition: 0.25s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-call-item {
  display: none;
}

/* =========================
   BOTONES
   ========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  border: 2px solid transparent;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--green-dark);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--green-dark);
}

.btn-light {
  background: var(--white);
  color: var(--green-dark);
  border-color: var(--white);
}

.btn-light:hover {
  opacity: 0.92;
}

.btn-white-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-white-outline:hover {
  background: var(--white);
  color: var(--green-dark);
}

/* =========================
   HERO / CAROUSEL
   ========================= */
/* ===== CORRECCION FUERTE DEL HERO / CAROUSEL ===== */

.hero {
  position: relative;
  overflow: hidden;
  height: 620px;
  min-height: 620px;
  background: #8f939b;
}

.hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: stretch;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.58) 0%,
    rgba(0, 0, 0, 0.42) 38%,
    rgba(0, 0, 0, 0.20) 68%,
    rgba(0, 0, 0, 0.08) 100%
  );
  z-index: 0;
}

.hero-slide > .container {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-content {
  width: min(100%, 560px);
  max-width: 560px;
  padding: 40px 0 60px;
  color: var(--white);
}

.hero-badge {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--white);
}

.hero h2 {
  font-size: clamp(2.5rem, 4.1vw, 4.2rem);
  line-height: 1.02;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 18px;
  max-width: 9ch;
  letter-spacing: -0.03em;
}

.hero p {
  font-size: 1rem;
  line-height: 1.7;
  color: #f3f3f3;
  max-width: 520px;
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero .btn {
  min-width: 190px;
}

/* FLECHAS */
.hero-controls {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 58px;
  height: 58px;
  border: none;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.72);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  cursor: pointer;
  pointer-events: auto;
  transition: var(--transition);
}

.hero-arrow:hover {
  background: rgba(17, 17, 17, 0.88);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

/* DOTS */
.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 5;
}

.hero-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: var(--transition);
}

.hero-dot.active {
  background: var(--white);
  transform: scale(1.06);
}

/* ===== TABLET ===== */
@media (max-width: 1150px) {
  .hero {
    height: 580px;
    min-height: 580px;
  }

  .hero-content {
    max-width: 520px;
  }

  .hero h2 {
    font-size: clamp(2.3rem, 4.5vw, 3.8rem);
    max-width: 9ch;
  }

  .hero p {
    font-size: 0.98rem;
    max-width: 500px;
  }
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .hero {
    height: auto;
    min-height: 0;
  }

  .hero-slides {
    height: auto;
  }

  .hero-slide {
    min-height: 620px;
    position: absolute;
    inset: 0;
  }

  .hero-slide.active {
    position: relative;
  }

  .hero-slide::before {
    background: linear-gradient(
      180deg,
      rgba(20, 20, 20, 0.34) 0%,
      rgba(20, 20, 20, 0.42) 42%,
      rgba(20, 20, 20, 0.54) 100%
    );
  }

  .hero-slide > .container {
    min-height: 620px;
    height: auto;
    align-items: flex-start;
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
    padding: 46px 0 118px;
  }

  .hero-badge {
    font-size: 0.92rem;
    margin-bottom: 12px;
  }

  .hero h2 {
    font-size: clamp(2rem, 8vw, 3rem);
    line-height: 1.05;
    max-width: 8ch;
    margin-bottom: 16px;
  }

  .hero p {
    font-size: 0.96rem;
    line-height: 1.65;
    max-width: 100%;
    margin-bottom: 22px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero .btn {
    width: 100%;
    min-width: 0;
  }

  .hero-arrow {
    display: none !important;
  }

  .hero-dots {
    bottom: 22px;
  }
}

@media (max-width: 480px) {
  .hero-slide {
    min-height: 650px;
  }

  .hero-slide > .container {
    min-height: 650px;
  }

  .hero-content {
    padding: 40px 0 122px;
  }

  .hero h2 {
    font-size: 1.9rem;
  }

  .hero p {
    font-size: 0.93rem;
  }
}
/* =========================
   SECCIONES GENERALES
   ========================= */
section {
  padding: 82px 0;
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 42px;
}

.section-head h3 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--green);
  margin-bottom: 12px;
  font-weight: 800;
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
}

/* =========================
   ABOUT
   ========================= */
.about {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 34px;
  align-items: center;
}

.about-box {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}

.about-box h3 {
  color: var(--green);
  margin-bottom: 14px;
  font-size: 1.7rem;
}

.about-box p {
  color: var(--muted);
  margin-bottom: 16px;
}

.about-box ul {
  padding-left: 20px;
  color: var(--muted);
}

.about-box li + li {
  margin-top: 8px;
}

.about-image {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: 430px;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================
   SERVICES
   ========================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: stretch;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card-content {
  padding: 28px;
}

.service-card h4 {
  color: var(--green);
  font-size: 1.45rem;
  margin-bottom: 10px;
  font-weight: 800;
}

.service-card p {
  color: var(--muted);
  font-size: 1rem;
}

/* =========================
   GALLERY
   ========================= */
.gallery {
  background: var(--light);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.gallery-item {
  background: transparent;
}

/* =========================
   IMAGE FRAME PREMIUM
   ========================= */
.image-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  background: #e9e9e9;
  border-top: 1px solid var(--border);
}

.gallery-item .image-frame {
  border-top: none;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

/* capa suave encima del blur */
.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.18);
  z-index: 1;
}

.frame-bg {
  position: absolute;
  inset: -12%;
  width: 124%;
  height: 124%;
  object-fit: cover;
  filter: blur(30px) saturate(1.2) brightness(0.9);
  transform: scale(1.12);
  opacity: 0.95;
  z-index: 0;
}

.frame-main {
  position: relative;
  z-index: 2;
  max-width: calc(100% - 28px);
  max-height: calc(100% - 28px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

/* =========================
   CTA
   ========================= */
.cta {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: var(--white);
  border-radius: 28px;
  padding: 54px 28px;
  text-align: center;
  box-shadow: var(--shadow);
}

.cta h3 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 12px;
  font-weight: 800;
}

.cta p {
  max-width: 720px;
  margin: 0 auto 26px;
  color: #f2f2f2;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* =========================
   CONTACT
   ========================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.contact-card h4 {
  color: var(--green);
  font-size: 1.5rem;
  margin-bottom: 16px;
  font-weight: 800;
}

.contact-card p {
  color: var(--muted);
}

.contact-list {
  display: grid;
  gap: 16px;
}

.contact-list strong {
  color: var(--text);
  display: block;
  margin-bottom: 3px;
}

.contact-list a {
  color: var(--green);
  font-weight: 700;
}

/* =========================
   FOOTER
   ========================= */
footer {
  background: #121212;
  color: #e8e8e8;
  text-align: center;
  padding: 28px 0;
  font-size: 0.96rem;
}

/* =========================
   BOTON FLOTANTE
   ========================= */
.floating-call {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
  z-index: 1200;
  transition: transform 0.2s ease, background 0.2s ease;
}

.floating-call:hover {
  background: var(--green-dark);
  transform: scale(1.05);
}

.floating-call svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 1150px) {
  .nav {
    min-height: 96px;
    gap: 18px;
  }

  .brand-logo {
    width: 80px;
    height: 80px;
  }

  .brand-text h1 {
    font-size: 1.65rem;
  }

  .brand-text span {
    font-size: 1rem;
  }

  .main-nav ul {
    gap: 24px;
  }

  .main-nav a {
    font-size: 1rem;
  }

  .hero {
    height: 600px;
    min-height: 600px;
  }

  .hero-content {
    width: min(100%, 580px);
  }

  .hero h2 {
    font-size: clamp(2.6rem, 6vw, 4.2rem);
    max-width: 11ch;
  }

  .hero p {
    max-width: 520px;
    font-size: 1rem;
  }
}

@media (max-width: 980px) {
  .about,
  .services-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .nav {
    min-height: 84px;
    padding: 12px 0;
    gap: 12px;
  }

  .brand {
    gap: 12px;
    align-items: center;
  }

  .brand-logo {
    width: 58px;
    height: 58px;
  }

  .brand-text h1 {
    font-size: 1.1rem;
    line-height: 1.1;
  }

  .brand-text span {
    font-size: 0.84rem;
    margin-top: 2px;
  }

  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    flex-shrink: 0;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    padding: 10px;
    display: none;
  }

  .main-nav.active {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .main-nav li {
    width: 100%;
  }

  .main-nav a {
    display: block;
    width: 100%;
    padding: 11px 12px;
    font-size: 0.95rem;
    border-radius: 10px;
  }

  .main-nav a:hover {
    background: #f4f7f4;
  }

  .mobile-call-item {
    display: block;
    margin-top: 4px;
  }

  .mobile-call-link {
    background: var(--green);
    color: var(--white) !important;
    text-align: center;
    font-weight: 700;
  }

  .mobile-call-link:hover {
    background: var(--green-dark) !important;
  }

  .floating-call {
    display: flex;
  }
}

@media (max-width: 768px) {
  .topbar-inner {
    min-height: 46px;
    padding: 8px 0;
  }

  .topbar p {
    font-size: 0.92rem;
    line-height: 1.4;
  }

  .service-strip-inner {
    min-height: 54px;
    padding: 10px 0;
  }

  .service-strip p {
    font-size: 0.95rem;
    line-height: 1.4;
  }

  .hero {
    height: auto;
    min-height: 0;
  }

  .hero-slides {
    height: auto;
  }

  .hero-slide {
    min-height: 600px;
    position: absolute;
    inset: 0;
  }

  .hero-slide.active {
    position: relative;
  }

  .hero-slide > .container {
    min-height: 600px;
    align-items: flex-start;
  }

  .hero-slide::before {
    background: linear-gradient(
      180deg,
      rgba(20, 20, 20, 0.32) 0%,
      rgba(20, 20, 20, 0.4) 40%,
      rgba(20, 20, 20, 0.52) 100%
    );
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
    padding: 46px 0 120px;
  }

  .hero-badge {
    font-size: 0.94rem;
    margin-bottom: 12px;
  }

  .hero h2 {
    font-size: clamp(2.2rem, 8vw, 3.2rem);
    line-height: 1.06;
    max-width: 9ch;
    margin-bottom: 16px;
  }

  .hero p {
    font-size: 0.98rem;
    line-height: 1.65;
    max-width: 100%;
    margin-bottom: 22px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .hero .btn {
    width: 100%;
    min-width: 0;
  }

  .hero-arrow {
    display: none !important;
  }

  .hero-dots {
    bottom: 26px;
    gap: 8px;
  }

  .hero-dot {
    width: 13px;
    height: 13px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .image-frame {
    aspect-ratio: 4 / 3;
  }

  .frame-bg {
    filter: blur(30px) saturate(1.2) brightness(0.9);
  }

  section {
    padding: 68px 0;
  }
}

@media (max-width: 520px) {
  .nav {
    min-height: 78px;
  }

  .brand-logo {
    width: 50px;
    height: 50px;
  }

  .brand-text h1 {
    font-size: 1rem;
  }

  .brand-text span {
    font-size: 0.78rem;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
  }

  .menu-toggle span {
    width: 18px;
  }

  .hero-slide {
    min-height: 640px;
  }

  .hero-slide > .container {
    min-height: 640px;
  }

  .hero-content {
    padding: 42px 0 126px;
  }

  .hero h2 {
    font-size: 2rem;
    max-width: 8.5ch;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .floating-call {
    width: 54px;
    height: 54px;
    right: 14px;
    bottom: 14px;
  }

  .floating-call svg {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(94%, var(--max));
  }

  .topbar p,
  .service-strip p {
    font-size: 0.9rem;
  }

  .hero-slide {
    min-height: 670px;
  }

  .hero-slide > .container {
    min-height: 670px;
  }

  .hero-content {
    padding: 40px 0 130px;
  }

  .hero-badge {
    font-size: 0.88rem;
  }

  .hero h2 {
    font-size: 1.9rem;
    max-width: 8ch;
  }

  .hero p {
    font-size: 0.93rem;
    line-height: 1.62;
  }

  .hero-dots {
    bottom: 24px;
  }

  .btn {
    width: 100%;
    padding: 13px 20px;
  }

  .contact-card,
  .about-box,
  .service-card-content {
    padding: 24px;
  }
}