/* Clave Pymes · cbtendenciapymes.com.ar. Mismo diseño que la web anterior (Elementor), con animaciones suaves. */
@font-face { font-family: 'Montserrat'; src: url('/fuentes/montserrat.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Roboto'; src: url('/fuentes/roboto.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --verde: #20601e;
  --verde-claro: #39b54a;
  --gris-oscuro: #3a3a3a;
  --titulo: #333;
  --texto: #777;
  --suave: cubic-bezier(.22, .61, .36, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; background: #f5f5f5; color: var(--texto); font: 400 17px/1.65 'Roboto', sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: 'Montserrat', sans-serif; font-weight: 500; color: var(--titulo); margin: 0; line-height: 1.2; }
.contenedor { width: min(1180px, 100% - 40px); margin-inline: auto; }
.saltar { position: absolute; left: -9999px; }
.saltar:focus { left: 10px; top: 10px; background: #fff; padding: 8px 12px; z-index: 100; }
.barra { display: block; height: 4px; background: var(--verde); transform-origin: left; }

/* ---------- encabezado */
.encabezado { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 92px; background: rgba(58, 58, 58, .97); transition: height .35s var(--suave), background .35s, box-shadow .35s; }
.encabezado.chico { height: 70px; background: rgba(40, 40, 40, .97); box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
.encabezado .contenedor { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.encabezado .marca img { width: 96px; transition: width .35s var(--suave); }
.encabezado.chico .marca img { width: 80px; }
.menu { display: flex; gap: 30px; list-style: none; margin: 0 auto; padding: 0; transform: translateX(-48px); }
.menu a { position: relative; text-decoration: none; font: 500 15px 'Montserrat', sans-serif; text-transform: uppercase; color: #1f8a2b; padding: 6px 0; transition: color .25s; }
.menu a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--verde-claro); transform: scaleX(0); transition: transform .3s var(--suave); }
.menu a:hover, .menu a[aria-current] { color: var(--verde-claro); }
.menu a:hover::after, .menu a[aria-current]::after { transform: scaleX(1); }
.abrir-menu { display: none; background: none; border: 0; padding: 8px; color: #fff; cursor: pointer; }
.abrir-menu svg { width: 26px; height: 26px; }

/* ---------- portada */
.portada { position: relative; height: 600px; margin-top: 92px; display: grid; place-items: center; overflow: hidden; text-align: center; color: #fff; }
.portada .fondo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: acercar 18s ease-out both; }
.portada::after { content: ''; position: absolute; inset: 0; background: rgba(20, 20, 20, .72); }
.portada .texto { position: relative; z-index: 1; padding: 0 20px; }
.portada h1 { color: #fff; font-weight: 400; font-size: clamp(32px, 4.4vw, 62px); text-transform: uppercase; line-height: 1.25; max-width: 1040px; animation: subir 1s var(--suave) .15s both; }
.portada .barra { width: 112px; margin: 54px auto 46px; animation: trazar .9s var(--suave) .6s both; }
.portada p { margin: 0 auto; max-width: 560px; font: 500 21px/1.5 'Montserrat', sans-serif; animation: subir 1s var(--suave) .8s both; }
.portada .bajar { position: absolute; z-index: 1; bottom: 26px; left: 50%; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255, 255, 255, .55); border-radius: 14px; animation: aparecer 1s 1.4s both; }
.portada .bajar::before { content: ''; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: rueda 1.8s ease-in-out infinite; }

/* ---------- quiénes somos */
.quienes { padding: 125px 0 75px; background: #f5f5f5; }
.quienes .contenedor { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; width: min(1150px, 100% - 40px); }
.quienes h2 { font-size: 46px; line-height: 1.25; }
.quienes .barra { width: 87px; margin: 30px 0 34px; }
.foto { overflow: hidden; }
.foto img { width: 100%; transition: transform .9s var(--suave); }
.foto:hover img { transform: scale(1.05); }
.quienes .centro p { text-align: center; margin: 30px 10px 0; }
.quienes .tercera { margin-top: 143px; }

/* ---------- qué hacemos */
.hacemos { padding: 60px 0 100px; background: #ddd; }
.hacemos h2 { font-size: 46px; }
.hacemos .barra { width: 153px; margin: 30px 0 90px; }
.servicios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding: 0 10px; }
.servicio .icono { width: 250px; margin: -20px auto 20px 40px; transition: transform .5s var(--suave); }
.servicio:nth-child(2) .icono { margin-left: 60px; }
.servicio:nth-child(3) .icono { margin-left: 60px; }
.servicio:hover .icono { transform: translateY(-6px) scale(1.04); }
.servicio h3 { font-size: 31px; margin-bottom: 30px; }
.servicio p { margin: 0; font-size: 16.5px; line-height: 1.7; }

/* ---------- estado de tu pyme */
.estado { position: relative; padding: 140px 0 130px; color: #fff; overflow: hidden; background: #222 url('/img/estado-1920.webp') center / cover fixed; }
.estado::before { content: ''; position: absolute; inset: 0; background: rgba(30, 30, 30, .55); }
.estado .contenedor { position: relative; }
.estado .caja { max-width: 600px; text-align: center; margin-left: 10px; }
.estado h2 { color: #fff; font-size: 31px; text-transform: uppercase; line-height: 1.25; margin-bottom: 30px; }
.estado p { margin: 0 0 54px; font-size: 16.5px; }
.boton { display: inline-block; background: #333; color: #fff; text-decoration: none; font: 500 15px 'Roboto', sans-serif; padding: 14px 30px; border-radius: 3px; transition: background .3s, transform .3s var(--suave), box-shadow .3s; }
.boton:hover { background: var(--verde); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .3); }

/* ---------- contacto */
.contacto { background: #000; color: #fff; padding: 105px 0 90px; }
.contacto h2 { color: #fff; font-size: 46px; padding-left: 50px; }
.contacto .barra { width: 253px; margin: 34px 0 30px 50px; }
.mapa { display: block; width: 100%; height: 300px; border: 0; filter: grayscale(.25) brightness(.9); }
.fila-contacto { display: grid; grid-template-columns: 207px 253px repeat(3, 1fr); gap: 0 28px; margin-top: 60px; align-items: start; }
.llamado { font: 600 18px/1.7 'Montserrat', sans-serif; color: #7a7a7a; margin: 0; padding-left: 10px; }
.formulario { display: grid; gap: 0; }
.formulario input, .formulario textarea { width: 100%; background: transparent; border: 0; border-bottom: 2px solid #fff; color: #fff; font: 15px 'Roboto', sans-serif; padding: 9px 16px; outline: none; transition: border-color .3s; }
.formulario textarea { height: 76px; resize: vertical; padding-top: 6px; }
.formulario input::placeholder, .formulario textarea::placeholder { color: #ddd; }
.formulario input:focus, .formulario textarea:focus { border-color: var(--verde-claro); }
.formulario [aria-invalid=true] { border-color: #e05a5a; }
.formulario button { margin-top: 2px; background: var(--verde); color: #fff; border: 0; border-radius: 3px; font: 500 15px 'Roboto', sans-serif; padding: 11px; cursor: pointer; transition: background .3s; }
.formulario button:hover { background: #2a7d27; }
.formulario button:disabled { opacity: .7; cursor: wait; }
.formulario .aviso { margin: 12px 0 0; font-size: 14px; color: #ddd; }
.oculto { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dato { text-align: center; }
.dato h3 { color: #fff; font-size: 26px; margin: 10px 0 36px; }
.dato p { margin: 0; font-size: 16px; color: #ddd; }
.dato a { text-decoration: none; }
.dato a:hover { color: var(--verde-claro); }
.redes { display: flex; justify-content: center; gap: 46px; margin-top: 110px; }
.redes a { color: #bbb; display: grid; transition: color .25s, transform .25s var(--suave); }
.redes a:hover { color: #fff; transform: translateY(-3px); }
.redes svg { width: 22px; height: 22px; fill: currentColor; }
.pie { background: #555; border-top: 1px solid #777; color: #bfbfbf; font-size: 15px; }
.pie .contenedor { display: flex; justify-content: space-around; align-items: center; gap: 20px; flex-wrap: wrap; min-height: 100px; padding: 20px 0; width: min(1200px, 100% - 40px); }
.pie a { text-decoration: none; }
.pie a:hover { color: #fff; }

/* ---------- WhatsApp flotante */
.whatsapp { position: fixed; right: 28px; bottom: 28px; z-index: 60; display: flex; align-items: center; gap: 14px; text-decoration: none; }
.whatsapp .burbuja { background: #fff; color: #333; font-size: 15px; padding: 6px 14px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, .2); opacity: 0; transform: translateX(10px); transition: opacity .35s, transform .35s var(--suave); }
.whatsapp.visible .burbuja, .whatsapp:hover .burbuja { opacity: 1; transform: none; }
.whatsapp .boton-wa { position: relative; width: 60px; height: 60px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); transition: transform .3s var(--suave); }
.whatsapp .boton-wa::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #25d366; animation: latido 2.6s ease-out infinite; z-index: -1; }
.whatsapp:hover .boton-wa { transform: scale(1.08); }
.whatsapp svg { width: 32px; height: 32px; fill: #fff; }

/* ---------- política de privacidad */
.legal { background: #fff; padding: 150px 0 80px; }
.legal .contenedor { width: min(900px, 100% - 40px); }
.legal h1 { font-size: 40px; margin-bottom: 30px; }
.legal h2 { font-size: 20px; margin: 34px 0 10px; }
.legal p { color: #555; font-size: 16px; }

/* ---------- animaciones al bajar (solo si hay JavaScript y el usuario no pidió menos movimiento) */
.js .revelar { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--suave), transform .9s var(--suave); transition-delay: var(--demora, 0s); }
.js .revelar.desde-izq { transform: translateX(-40px); }
.js .revelar.zoom { transform: scale(.85); }
.js .revelar.visto { opacity: 1; transform: none; }
.js .barra.revelar { opacity: 1; transform: scaleX(0); }
.js .barra.revelar.visto { transform: scaleX(1); }
@keyframes acercar { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes subir { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes trazar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes aparecer { from { opacity: 0; } to { opacity: 1; } }
@keyframes rueda { 0% { opacity: 1; transform: translateY(0); } 70% { opacity: 0; transform: translateY(12px); } 100% { opacity: 0; } }
@keyframes latido { 0% { transform: scale(1); opacity: .5; } 70%, 100% { transform: scale(1.6); opacity: 0; } }
.portada .barra { transform-origin: center; }

/* ---------- tablet y celular */
@media (max-width: 1100px) {
  .fila-contacto { grid-template-columns: 1fr 1fr; gap: 40px; }
  .servicio .icono, .servicio:nth-child(2) .icono, .servicio:nth-child(3) .icono { margin: 0 auto 40px; }
  .servicio { text-align: center; }
}
@media (max-width: 880px) {
  html { scroll-padding-top: 70px; }
  .encabezado, .encabezado.chico { height: 70px; }
  .portada { margin-top: 70px; height: 520px; }
  .encabezado .marca img { width: 80px; }
  .abrir-menu { display: block; }
  .menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: #333; transform: none; padding: 6px 0; }
  .menu.abierto { display: flex; animation: aparecer .25s; }
  .menu a { display: block; padding: 14px 20px; }
  .menu a::after { display: none; }
  .quienes { padding: 70px 0 50px; }
  .quienes .contenedor { grid-template-columns: 1fr; max-width: 520px; gap: 30px; }
  .quienes .tercera { margin-top: 0; }
  .servicios { grid-template-columns: 1fr; gap: 60px; }
  .hacemos .barra { margin-bottom: 60px; }
  .estado { background-attachment: scroll; padding: 90px 0; }
  .estado .caja { margin: 0 auto; }
  .contacto h2, .contacto .barra { margin-left: 0; padding-left: 0; }
  .fila-contacto { grid-template-columns: 1fr; margin-top: 50px; }
  .llamado { padding: 0; }
  .redes { margin-top: 60px; }
  .whatsapp { right: 16px; bottom: 16px; }
  .whatsapp .burbuja { display: none; }
}
@media (max-width: 560px) {
  .portada p { font-size: 17px; }
  .portada .barra { margin: 34px auto 30px; }
  .quienes h2, .hacemos h2, .contacto h2 { font-size: 36px; }
  .servicio h3 { font-size: 26px; }
  .estado h2 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .revelar { opacity: 1; transform: none; }
}
