/* ============================================
   GRUPAAR SAS — Global Stylesheet
   Design: Organic Modern / Industrial Nature
   Font: Poppins (uniform across all elements)
   ============================================ */

/* === RESET & BASE === */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Primary Greens */
  --green-950: #0A1F0A;
  --green-900: #0F2A0F;
  --green-800: #1B3A1B;
  --green-700: #2D5A27;
  --green-600: #3A7D32;
  --green-500: #4A9E3F;
  --green-400: #6BBF5E;
  --green-100: #E8F0E4;
  --green-50: #F2F7F0;

  /* Neutrals */
  --dark: #1A1A1A;
  --dark-700: #333333;
  --gray-600: #555555;
  --gray-400: #999999;
  --gray-200: #E0E0E0;
  --cream: #F7F5F0;
  --white: #FFFFFF;

  /* Accents */
  --amber: #C8960C;
  --amber-light: #FFF8E7;
  --red: #C0392B;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 0.3s var(--ease-out);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  color: var(--dark);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

/* === TYPOGRAPHY === */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--green-800);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 600;
}

h4 {
  font-size: 1.1rem;
  font-weight: 600;
}

p {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--gray-600);
}

/* === LAYOUT === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.section-header h2 {
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1.05rem;
}

.section--alt {
  background: var(--green-50);
}

.section--dark {
  background: var(--green-900);
}

.section--dark h2,
.section--dark h3,
.section--dark p,
.section--dark span {
  color: var(--white);
}

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 0;
  transition: all var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  display: flex;
  align-items: center;
  height: 48px;
}

.navbar__logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.navbar__logo-icon {
  fill: var(--green-400);
  transition: fill var(--transition);
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar__links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  transition: color var(--transition);
}

.navbar.scrolled .navbar__links a {
  color: var(--gray-600);
}

.navbar__links a:hover,
.navbar__links a.active {
  color: var(--white);
}

.navbar.scrolled .navbar__links a:hover,
.navbar.scrolled .navbar__links a.active {
  color: var(--green-700);
}

.navbar__links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--green-400);
  border-radius: 2px;
}

.navbar__cta {
  padding: 10px 24px !important;
  background: var(--green-600) !important;
  color: var(--white) !important;
  border-radius: 8px;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  transition: all var(--transition) !important;
}

.navbar__cta:hover {
  background: var(--green-700) !important;
  transform: translateY(-1px);
}

/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 1002;
}

.navbar__hamburger span {
  width: 26px;
  height: 2.5px;
  background: var(--white);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.navbar.scrolled .navbar__hamburger span {
  background: var(--green-800);
}

.navbar__hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
  background: var(--white);
}

.navbar__hamburger.open span:nth-child(2) {
  opacity: 0;
}

.navbar__hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  background: var(--white);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--green-900);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.mobile-menu.open a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.open a:nth-child(1) {
  transition-delay: 0.1s;
}

.mobile-menu.open a:nth-child(2) {
  transition-delay: 0.15s;
}

.mobile-menu.open a:nth-child(3) {
  transition-delay: 0.2s;
}

.mobile-menu.open a:nth-child(4) {
  transition-delay: 0.25s;
}

.mobile-menu.open a:nth-child(5) {
  transition-delay: 0.3s;
}

.mobile-menu.open a:nth-child(6) {
  transition-delay: 0.35s;
}

.mobile-menu.open a:nth-child(7) {
  transition-delay: 0.4s;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  line-height: 1.4;
}

.btn--primary {
  background: var(--green-600);
  /* Use a darker green for better contrast with white text */
  color: var(--white);
  box-shadow: 0 4px 15px rgba(58, 125, 50, 0.4);
}

.btn--primary:hover {
  background: var(--green-700);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(58, 125, 50, 0.6);
}

.btn--outline {
  background: transparent;
  color: var(--green-700);
  border: 2px solid var(--green-700);
}

.btn--outline:hover {
  background: var(--green-700);
  color: var(--white);
}

.btn--white {
  background: var(--white);
  color: var(--green-800);
}

.btn--white:hover {
  background: var(--green-100);
  transform: translateY(-2px);
}

.btn--white-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn--white-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.btn--lg {
  padding: 16px 40px;
  font-size: 1rem;
}

.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Pulse animation for primary CTA */
@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 4px 15px rgba(45, 90, 39, 0.3);
  }

  50% {
    box-shadow: 0 4px 30px rgba(45, 90, 39, 0.5);
  }
}

.btn--pulse {
  animation: pulse 3s infinite;
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 140px 0 140px;
  /* Mayor padding para no cruzar el scroll indicator */
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--green-950) 0%, var(--green-800) 50%, var(--green-700) 100%);
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(74, 158, 63, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(107, 191, 94, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(45, 90, 39, 0.2) 0%, transparent 50%);
}

/* Leaf pattern overlay */
.hero__pattern {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5 C35 15 45 20 50 30 C45 40 35 45 30 55 C25 45 15 40 10 30 C15 20 25 15 30 5Z' fill='%23ffffff' fill-opacity='0.5'/%3E%3C/svg%3E");
  background-size: 80px 80px;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

/* New Hero Grid Container */
.hero__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

@media (min-width: 992px) {
  .hero__container {
    grid-template-columns: 1.1fr 1fr;
    /* Más cercano al 50/50 para mejor equilibrio */
    gap: 60px;
    align-items: center;
  }
}

/* Carousel Component */
.hero__carousel-wrapper {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 4/3;
  margin-top: 30px;
}

@media (min-width: 992px) {
  .hero__carousel-wrapper {
    margin-top: 0;
    aspect-ratio: 4/4;
    /* formato cuadrado-reducido para no afectar visibilidad */
    max-height: 520px;
  }
}

.hero__carousel {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero__carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

.hero__carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.hero__carousel-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all var(--transition);
}

.hero__carousel-indicator.active {
  background: var(--white);
  transform: scale(1.2);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(255, 248, 231, 0.15);
  border: 1px solid rgba(200, 150, 12, 0.3);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #F0D060;
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}

.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
  font-weight: 700;
}

.hero p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.08rem;
  margin-bottom: 32px;
  max-width: 560px;
  font-weight: 300;
}

.hero__stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero__stat {
  text-align: left;
}

.hero__stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--green-400);
}

.hero__stat-label {
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
}

/* Decorative shapes */
.hero__shape {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  opacity: 0.06;
  background: var(--white);
}

.hero__shape--1 {
  width: 500px;
  height: 500px;
  right: -100px;
  top: -100px;
}

.hero__shape--2 {
  width: 300px;
  height: 300px;
  right: 15%;
  bottom: 10%;
}

.hero__shape--3 {
  width: 150px;
  height: 150px;
  left: 50%;
  bottom: 20%;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), transparent);
  animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
  }

  51% {
    transform: scaleY(1);
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* === TRUST BAR === */
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 20px 0;
}

.trust-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.trust-bar__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--green-700);
  white-space: nowrap;
}

.trust-bar__item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* === CARDS === */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: 16px;
  padding: 32px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--green-500);
  transition: height var(--transition);
  border-radius: 0 0 4px 0;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.card:hover::before {
  height: 100%;
}

.card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--green-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
  transition: all var(--transition);
}

.card:hover .card__icon {
  background: var(--green-700);
  color: var(--white);
  transform: scale(1.05);
}

.card h3 {
  margin-bottom: 12px;
  font-size: 1.15rem;
}

.card p {
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.card__link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green-700);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}

.card__link:hover {
  gap: 10px;
}

/* === COUNTERS === */
.counters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.counter {
  text-align: center;
  padding: 24px;
}

.counter__number {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--green-700);
  line-height: 1;
  margin-bottom: 8px;
}

.section--dark .counter__number {
  color: var(--green-400);
}

.counter__label {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--gray-600);
}

.section--dark .counter__label {
  color: rgba(255, 255, 255, 0.7);
}

/* === PROCESS STEPS === */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.process::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 10%;
  width: 80%;
  height: 2px;
  background: linear-gradient(to right, var(--green-100), var(--green-500), var(--green-100));
  z-index: 0;
}

.process__step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.process__number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--green-700);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 auto 16px;
  box-shadow: 0 4px 15px rgba(45, 90, 39, 0.3);
}

.process__step h4 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.process__step p {
  font-size: 0.85rem;
}

/* === TIMELINE / PROJECTS === */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.project-card {
  background: var(--white);
  border-radius: 16px;
  padding: 28px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all var(--transition);
  position: relative;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.project-card__badge {
  display: inline-block;
  padding: 4px 14px;
  background: var(--green-100);
  color: var(--green-700);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.project-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.project-card p {
  font-size: 0.88rem;
}

.project-card__image {
  width: 100%;
  aspect-ratio: 1/1;
  height: auto;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.project-card:hover .project-card__image img {
  transform: scale(1.05);
}

.project-card__meta {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--gray-200);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gray-400);
}

/* === GUARANTEES === */
.guarantees-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.guarantee {
  text-align: center;
  padding: 24px;
}

.guarantee__icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--green-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.6rem;
}

.guarantee h4 {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.guarantee p {
  font-size: 0.85rem;
}

/* === CTA BANNER === */
.cta-banner {
  background: linear-gradient(135deg, var(--green-900), var(--green-800));
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(74, 158, 63, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(107, 191, 94, 0.08) 0%, transparent 50%);
}

.cta-banner .container {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 12px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 28px;
  font-size: 1.05rem;
}

.cta-banner .btn-group {
  justify-content: center;
}

/* === FAQ ACCORDION === */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: all var(--transition);
}

.faq-item:hover {
  border-color: var(--green-500);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--green-600);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-item.open .faq-question::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer__inner {
  padding: 0 24px 20px;
}

.faq-answer p {
  font-size: 0.9rem;
}

/* === CONTACT FORM === */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
}

.form-card {
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.form-card h3 {
  margin-bottom: 6px;
}

.form-card>p {
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--dark-700);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--dark);
  background: var(--cream);
  transition: all var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(74, 158, 63, 0.1);
  background: var(--white);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group input.error,
.form-group select.error {
  border-color: var(--red);
}

.form-privacy {
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-info__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--green-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-info__item h4 {
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.contact-info__item p {
  font-size: 0.88rem;
}

.contact-info__item a {
  color: var(--green-700);
  font-weight: 500;
}

.contact-info__item a:hover {
  color: var(--green-500);
}

.contact-map {
  width: 100%;
  height: 220px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--green-100);
  border: 1px solid var(--gray-200);
  margin-top: 10px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* === AUDIENCE GRID === */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.audience-item {
  text-align: center;
  padding: 28px 20px;
  background: var(--white);
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all var(--transition);
}

.audience-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.audience-item__icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.audience-item h4 {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.audience-item p {
  font-size: 0.83rem;
}

/* === COMPARISON TABLE === */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.comparison__col {
  background: var(--white);
  border-radius: 16px;
  padding: 32px;
  border: 2px solid transparent;
}

.comparison__col--us {
  border-color: var(--green-500);
  position: relative;
}

.comparison__col--us::before {
  content: 'Recomendado';
  position: absolute;
  top: -12px;
  left: 24px;
  padding: 4px 16px;
  background: var(--green-700);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 50px;
}

.comparison__col h3 {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.comparison__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--gray-600);
  border-bottom: 1px solid var(--gray-200);
}

.comparison__item:last-child {
  border-bottom: none;
}

.comparison__check {
  color: var(--green-500);
  font-weight: 700;
  flex-shrink: 0;
}

.comparison__x {
  color: var(--red);
  font-weight: 700;
  flex-shrink: 0;
}

/* === ABOUT PAGE SPECIFIC === */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-intro__visual {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--green-100), var(--green-50));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.about-intro__visual::before {
  content: '🌳';
  font-size: 6rem;
  opacity: 0.3;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  background: var(--white);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all var(--transition);
}

.value-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.value-card__icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.value-card h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.value-card p {
  font-size: 0.88rem;
}

/* === BREADCRUMB === */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb a:hover {
  color: var(--white);
}

.breadcrumb span {
  color: rgba(255, 255, 255, 0.4);
}

.breadcrumb .current {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* === WHATSAPP FLOAT === */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.5s var(--ease-out);
}

.whatsapp-float.visible {
  opacity: 1;
  transform: scale(1);
}

.whatsapp-float__btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all var(--transition);
}

.whatsapp-float__btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float__btn svg {
  width: 32px;
  height: 32px;
  fill: var(--white);
}

.whatsapp-float__tooltip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--white);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--dark);
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.whatsapp-float__tooltip.show {
  opacity: 1;
}

.whatsapp-float__tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid var(--white);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

/* === FOOTER === */
.footer {
  background: var(--green-950);
  padding: 60px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer__brand p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 12px;
  margin-bottom: 16px;
}

.footer__social {
  display: flex;
  gap: 12px;
}

.footer__social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all var(--transition);
}

.footer__social a:hover {
  background: var(--green-700);
}

.footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul li a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}

.footer ul li a:hover {
  color: var(--green-400);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* === SCROLL ANIMATIONS === */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* === SERVICE PAGE HERO (shorter) === */
.hero--service {
  min-height: 70vh;
  padding: 140px 0 60px;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .process {
    grid-template-columns: repeat(2, 1fr);
  }

  .process::before {
    display: none;
  }

  .counters {
    grid-template-columns: repeat(2, 1fr);
  }

  .guarantees-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .audience-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-intro {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .comparison {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 17px;
  }

  .navbar__links {
    display: none;
  }

  .navbar__hamburger {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding: 130px 0 60px;
  }

  .hero--service {
    min-height: auto;
    padding: 130px 0 50px;
  }

  .hero h1,
  .hero--service h1 {
    font-size: 2.2rem;
  }

  .hero__content {
    text-align: center;
    align-items: center;
  }

  .hero__stats {
    gap: 20px;
    flex-wrap: wrap;
  }

  .hero__scroll {
    display: none;
  }

  .section {
    padding: 50px 0;
  }

  .section-header {
    margin-bottom: 30px;
    text-align: center;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .section-header p {
    font-size: 0.95rem;
  }

  .btn-group {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .trust-bar__inner {
    gap: 30px;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
  }

  .trust-bar__item {
    flex-shrink: 0;
    text-align: center;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .counters {
    grid-template-columns: 1fr;
    /* Cambiar a 1 columna para centrar mejor en movil */
    gap: 20px;
    text-align: center;
  }

  .guarantees-grid {
    grid-template-columns: 1fr;
  }

  .audience-grid {
    grid-template-columns: 1fr;
  }

  .process {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .process__step {
    text-align: center;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .form-card {
    padding: 24px;
    text-align: center;
  }

  .form-card form {
    text-align: left;
  }

  .contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .contact-info__item {
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  .contact-info__icon {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .breadcrumb {
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
    width: 100%;
  }

  .footer {
    text-align: center;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer__social {
    justify-content: center;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .value-card {
    text-align: center;
  }

  .project-card {
    text-align: center;
  }

  .project-card__meta {
    justify-content: center;
  }

  .card {
    text-align: center;
  }

  .counter__number {
    font-size: 2.2rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 16.5px;
  }

  .hero h1,
  .hero--service h1 {
    font-size: 1.8rem;
  }

  .container {
    padding: 0 16px;
  }

  .card {
    padding: 24px;
  }

  .whatsapp-float {
    bottom: 16px;
    right: 16px;
  }

  .whatsapp-float__btn {
    width: 56px;
    height: 56px;
  }
}

/* === GALLERY / NUESTROS TRABAJOS === */
.nuestros-trabajos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.gallery-media {
  border-radius: 12px;
  overflow: hidden;
  background: var(--dark-700);
  box-shadow: var(--shadow-md);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  aspect-ratio: 1/1;
  /* Default to square for photos */
}

.gallery-media--video {
  aspect-ratio: 9/16;
  /* Vertical video format */
  max-width: 350px;
  margin: 0 auto;
}

.gallery-media iframe,
.gallery-media video,
.gallery-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  /* Ensure image is above any background layer */
}

@media (max-width: 992px) {
  .nuestros-trabajos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .nuestros-trabajos-grid {
    grid-template-columns: 1fr;
  }
}