/* =============================================
   Masel construcción · estilos.css
   Fuentes: Cormorant Garamond (títulos) + Outfit (cuerpo) + Poppins (logo)
   Paleta: Verde tierra #2C5F2E · Beige #F5F3EF · Casi-negro #1A1A18
============================================= */

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

:root {
  --verde:       #2C5F2E;
  --verde-claro: #3d7a40;
  --verde-fondo: #e8f0e8;
  --beige:       #F5F3EF;
  --beige-dark:  #E8E4DC;
  --negro:       #1A1A18;
  --gris:        #4A4A47;
  --gris-claro:  #8A8A87;
  --blanco:      #FFFFFF;
  --wa-green:    #25D366;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Outfit', system-ui, sans-serif;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  --shadow-sm:  0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:  0 8px 32px rgba(0,0,0,0.10);
  --shadow-lg:  0 20px 60px rgba(0,0,0,0.14);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-h: 72px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--negro);
  background: var(--blanco);
  line-height: 1.7;
  overflow-x: hidden;
}

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

/* ---- UTILIDADES ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-pad { padding: 96px 0; }
.bg-light { background: var(--beige); }
.text-center { text-align: center; }

/* ---- TIPOGRAFÍA SECCIONES ---- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--verde);
  margin-bottom: 14px;
}
.eyebrow-light { color: rgba(255,255,255,0.7); }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--negro);
}
.section-title em {
  font-style: italic;
  color: var(--verde);
}
.section-desc {
  margin-top: 16px;
  font-size: 17px;
  color: var(--gris);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- BOTONES ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn-sm { padding: 9px 20px; font-size: 14px; }

.btn-primary {
  background: var(--verde);
  color: var(--blanco);
  border-color: var(--verde);
}
.btn-primary:hover {
  background: var(--verde-claro);
  border-color: var(--verde-claro);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(44, 95, 46, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--blanco);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--blanco);
}

.btn-ghost {
  background: transparent;
  color: var(--verde);
  border-color: var(--verde);
}
.btn-ghost:hover {
  background: var(--verde);
  color: var(--blanco);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: var(--wa-green);
  color: var(--blanco);
  border-color: var(--wa-green);
}
.btn-whatsapp:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

/* ---- NAVBAR ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  color: var(--negro);
  text-decoration: none;
  transition: opacity 0.2s;
}
.logo:hover { opacity: 0.8; }
.navbar.scrolled .logo { color: var(--negro); }

.logo-wordmark {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.05em;
  line-height: 1;
  color: inherit;
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.logo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--verde);
  flex-shrink: 0;
  margin-top: 4px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.logo:hover .logo-dot { transform: scale(1.5); }

.logo-tagline {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: 7px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gris-claro);
  line-height: 1;
  margin-top: 3px;
}
.logo-light .logo-tagline { color: rgba(255,255,255,0.45); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 400;
  color: var(--gris);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.navbar.scrolled .nav-link { color: var(--gris); }
.nav-link:hover,
.nav-link.active { color: var(--verde); background: var(--verde-fondo); }
.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active { color: var(--verde); background: var(--verde-fondo); }

.nav-cta {
  margin-left: 12px;
  padding: 9px 22px;
  background: var(--verde);
  color: var(--blanco) !important;
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}
.nav-cta:hover {
  background: var(--verde-claro);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(44,95,46,0.3);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--negro);
  border-radius: 2px;
  transition: var(--transition);
}
.navbar.scrolled .hamburger span { background: var(--negro); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--negro);
}

.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 26, 24, 0.75) 0%,
    rgba(44, 95, 46, 0.4) 100%
  );
}

/* Fallback visual cuando no hay imagen */
.hero-bg:not(:has(.hero-img[style])) {
  background: linear-gradient(135deg, #1a2e1a 0%, #2C5F2E 50%, #1A1A18 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: calc(var(--nav-h) + 48px) 24px 80px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 40px;
  margin-bottom: 28px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 84px);
  font-weight: 700;
  line-height: 1.08;
  color: var(--blanco);
  margin-bottom: 24px;
}
.hero-title em {
  font-style: italic;
  color: rgba(255,255,255,0.75);
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: rgba(255,255,255,0.8);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.65;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  z-index: 2;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.5; }
  50% { transform: scaleY(0.6); opacity: 1; }
}

/* ---- TRUST BAND ---- */
.trust-band {
  padding: 56px 0;
  background: var(--blanco);
  border-bottom: 1px solid var(--beige-dark);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: center;
}
.trust-item {
  text-align: center;
  padding: 24px 16px;
}
.trust-item + .trust-item {
  border-left: 1px solid var(--beige-dark);
}
.trust-number {
  display: block;
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 700;
  color: var(--verde);
  line-height: 1;
}
.trust-plus {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: var(--verde);
}
.trust-label {
  font-size: 15px;
  color: var(--gris);
  margin-top: 8px;
}
.trust-icon {
  display: flex;
  justify-content: center;
  color: var(--verde);
  margin-bottom: 12px;
}
.trust-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--negro);
  margin-bottom: 6px;
}
.trust-desc {
  font-size: 14px;
  color: var(--gris-claro);
  line-height: 1.5;
}

/* ---- WHY US ---- */
.why-us { background: var(--blanco); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.why-card {
  padding: 36px;
  border: 1px solid var(--beige-dark);
  border-radius: var(--radius-lg);
  background: var(--blanco);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.why-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--verde);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.why-card:hover::before { transform: scaleX(1); }
.why-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: transparent;
}
.why-icon-wrap {
  width: 56px; height: 56px;
  background: var(--verde-fondo);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--verde);
  margin-bottom: 20px;
}
.why-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--negro);
  margin-bottom: 12px;
  line-height: 1.3;
}
.why-card p {
  font-size: 15px;
  color: var(--gris);
  line-height: 1.7;
}
.why-cta { text-align: center; }

/* ---- PROJECTS ---- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--blanco);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.project-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--beige-dark);
}
.project-img-wrap.no-img {
  background: linear-gradient(135deg, var(--verde-fondo), var(--beige-dark));
}
.project-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.project-card:hover .project-img-wrap img {
  transform: scale(1.06);
}
/* Placeholder si no hay imagen */
.project-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,26,24,0.5), transparent);
}
.project-tag {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 1;
  background: var(--verde);
  color: var(--blanco);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
}
.project-info {
  padding: 20px 24px;
}
.project-info h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  color: var(--negro);
  margin-bottom: 4px;
}
.project-info p {
  font-size: 14px;
  color: var(--gris-claro);
  margin-bottom: 8px;
}
.project-location {
  display: inline-block;
  font-size: 12px;
  color: var(--gris-claro);
  margin-bottom: 12px;
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--verde);
  transition: gap var(--transition), color var(--transition);
}
.project-link:hover {
  color: var(--verde-claro);
  gap: 8px;
}

/* ---- PROCESO ---- */
.process { background: var(--blanco); }
.process-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
}
.process-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.process-line {
  flex: 0 0 60px;
  height: 2px;
  background: var(--beige-dark);
  margin-top: 28px;
  position: relative;
}
.process-line::after {
  content: '';
  position: absolute;
  top: -4px;
  right: -5px;
  width: 10px; height: 10px;
  border-top: 2px solid var(--verde);
  border-right: 2px solid var(--verde);
  transform: rotate(45deg);
}
.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--verde);
  color: var(--blanco);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  flex-shrink: 0;
}
.step-body { max-width: 200px; }
.step-body h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--negro);
  margin-bottom: 8px;
}
.step-body p {
  font-size: 14px;
  color: var(--gris);
  line-height: 1.6;
}

/* ---- TESTIMONIOS ---- */
.testimonials { background: var(--beige); }
.testimonials-slider { position: relative; overflow: hidden; }
.testimonial-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 24px;
  will-change: transform;
}
.testimonial-card {
  flex: 0 0 calc((100% - 48px) / 3);
  background: var(--blanco);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.stars {
  color: #F59E0B;
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 20px;
}
.testimonial-card blockquote {
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
  color: var(--negro);
  line-height: 1.6;
  margin-bottom: 24px;
}
.testimonial-card cite {
  display: flex;
  flex-direction: column;
  font-style: normal;
}
.testimonial-card cite strong {
  font-weight: 600;
  color: var(--negro);
  font-size: 15px;
}
.testimonial-card cite span {
  font-size: 13px;
  color: var(--gris-claro);
  margin-top: 2px;
}
.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}
.slider-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--beige-dark);
  background: var(--blanco);
  color: var(--negro);
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.slider-btn:hover {
  background: var(--verde);
  color: var(--blanco);
  border-color: var(--verde);
}
.slider-dots { display: flex; gap: 8px; }
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--beige-dark);
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}
.dot.active {
  background: var(--verde);
  width: 24px;
  border-radius: 4px;
}

/* ---- CTA FINAL ---- */
.cta-section {
  position: relative;
  padding: 112px 0;
  background: var(--negro);
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(44,95,46,0.4) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(44,95,46,0.2) 0%, transparent 50%);
}
.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 700;
  color: var(--blanco);
  line-height: 1.15;
  margin-bottom: 20px;
}
.cta-desc {
  font-size: 17px;
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
  margin-bottom: 40px;
}
.cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 24px;
}
.cta-micro {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.5px;
}

/* ---- FAQ ACORDEÓN ---- */
.faq-section { background: var(--blanco); }
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.faq-item {
  border-bottom: 1px solid var(--beige-dark);
}
.faq-item:first-child { border-top: 1px solid var(--beige-dark); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  color: var(--negro);
  padding: 22px 48px 22px 0;
  position: relative;
  transition: color var(--transition);
  line-height: 1.4;
}
.faq-q:hover { color: var(--verde); }
.faq-q::after {
  content: '';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232C5F2E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  transition: transform var(--transition);
}
.faq-q[aria-expanded="true"]::after {
  transform: translateY(-50%) rotate(180deg);
}
.faq-q[aria-expanded="true"] { color: var(--verde); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}
.faq-a.open {
  grid-template-rows: 1fr;
}
.faq-a > p {
  overflow: hidden;
  font-size: 16px;
  color: var(--gris);
  line-height: 1.75;
  padding-bottom: 22px;
}

/* ---- FOOTER ---- */
.footer {
  background: #111110;
  color: rgba(255,255,255,0.7);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.logo-light { color: var(--blanco); }
.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  margin-top: 16px;
  margin-bottom: 24px;
  color: rgba(255,255,255,0.5);
  max-width: 280px;
}
.footer-social { display: flex; gap: 12px; }
.social-link {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
}
.social-link:hover {
  border-color: var(--verde);
  color: var(--verde);
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blanco);
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--blanco); }
.footer-contact { gap: 12px; }
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
}
.footer-contact svg { flex-shrink: 0; margin-top: 2px; }
.footer-contact a:hover { color: var(--verde); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a {
  color: rgba(255,255,255,0.3);
  font-size: 13px;
  transition: color var(--transition);
}
.footer-legal a:hover { color: rgba(255,255,255,0.7); }

/* ---- WHATSAPP FLOTANTE ---- */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 50;
  width: 58px; height: 58px;
  background: var(--wa-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blanco);
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  transition: var(--transition);
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37,211,102,0.6);
}
.whatsapp-float:hover .wa-tooltip { opacity: 1; transform: translateX(0); }
.wa-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  background: var(--negro);
  color: var(--blanco);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(6px);
  transition: var(--transition);
  pointer-events: none;
}
.wa-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--negro);
}

/* Pulso animado en el botón de WA */
.whatsapp-float::before {
  content: '';
  position: absolute;
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--wa-green);
  opacity: 0.4;
  animation: waPulse 2s ease-out infinite;
}
@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ---- ANIMACIONES DE ENTRADA ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--delay, 0s);
}
.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item + .trust-item { border-left: none; }
  .trust-grid .trust-item:nth-child(odd) { border-right: 1px solid var(--beige-dark); }

  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }

  .process-steps { flex-direction: column; gap: 24px; align-items: flex-start; }
  .process-step { flex-direction: row; text-align: left; }
  .process-line { display: none; }
  .step-body { max-width: unset; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .section-pad { padding: 64px 0; }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--blanco);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 0 24px;
    box-shadow: var(--shadow-md);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-link {
    color: var(--gris) !important;
    padding: 14px 24px;
    border-radius: 0;
    font-size: 15px;
  }
  .nav-cta {
    margin: 12px 24px 0;
    text-align: center;
  }
  .hamburger { display: flex; }

  .hero-btns { flex-direction: column; align-items: center; }
  .why-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }

  .testimonial-track { flex-direction: column; }
  .testimonial-card { flex: 0 0 100%; }

  .cta-btns { flex-direction: column; align-items: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-legal { flex-wrap: wrap; justify-content: center; }

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

@media (max-width: 480px) {
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item + .trust-item { border-left: none; border-top: 1px solid var(--beige-dark); }
  .footer-social { justify-content: flex-start; }
}