﻿

/* ===== CURSOR PERSONALIZADO ===== */
.cursor {
  position:fixed;
  width:10px;
  height:10px;
  background:var(--maiz);
  border-radius:50%;
  pointer-events:none;
  z-index:9999;
  transform:translate(-50%,-50%);
  transition:width .3s,height .3s,background .3s
}

.cursor-ring {
  position:fixed;
  width:36px;
  height:36px;
  border:1px solid rgba(var(--maiz-rgb),0.6);
  border-radius:50%;
  pointer-events:none;
  z-index:9998;
  transform:translate(-50%,-50%);
  transition:transform .12s ease,width .3s,height .3s,border-color .3s
}

.cursor.hover {
  width:6px;
  height:6px;
  background:var(--arena)
}

.cursor-ring.hover {
  width:56px;
  height:56px;
  border-color:var(--maiz)
}

/* ===== NAVBAR ===== */
nav {
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:100;
  padding:0 var(--padding-x);
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  height:76px;
  transition:background .5s ease,backdrop-filter .5s ease,height .4s ease,border-color .5s ease;
  border-bottom:1px solid transparent;
}

nav.scrolled {
  background:rgba(var(--verde-rgb),0.97);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  height:62px;
  border-bottom:1px solid rgba(var(--arena-rgb),0.07);
}

.nav-left {
  display:flex;
  align-items:center;
  gap:2.2rem;
  list-style:none
}

.nav-right {
  display:flex;
  align-items:center;
  gap:2.2rem;
  list-style:none;
  justify-content:flex-end
}

.nav-left a,.nav-right a {
  font-size:0.72rem;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:rgba(var(--arena-rgb),0.65);
  text-decoration:none;
  transition:color var(--transition);
  font-weight:400;
  white-space:nowrap;
}

.nav-left a:hover,.nav-right a:hover {
  color:var(--arena)
}

.nav-logo {
  font-family:var(--font-secondary);
  font-size:1.55rem;
  font-weight:600;
  letter-spacing:0.22em;
  color:var(--arena);
  text-decoration:none;
  text-transform:uppercase;
  text-align:center;
  justify-self:center;
  transition:opacity var(--transition);
}

.nav-logo:hover {
  opacity:0.8
}

.nav-logo span {
  color:var(--maiz)
}

.nav-cta {
  background:transparent;
  border:1px solid rgba(var(--arena-rgb),0.3);
  color:rgba(var(--arena-rgb),0.8);
  padding:0.5rem 1.2rem;
  border-radius:100px;
  font-size:0.68rem;
  letter-spacing:0.12em;
  text-transform:uppercase;
  cursor:pointer;
  transition:all var(--transition);
  font-family:var(--font-primary);
  white-space:nowrap;
}

.nav-cta:hover {
  background:var(--maiz);
  color:var(--verde-hero);
  border-color:var(--maiz)
}

.nav-hamburger {
  display:none;
  flex-direction:column;
  gap:5px;
  cursor:pointer;
  background:none;
  border:none;
  padding:4px
}

.nav-hamburger span {
  display:block;
  width:22px;
  height:1px;
  background:var(--arena);
  transition:all .3s
}

/* ============================================
   FOOTER UNIFICADO - Responsive (un solo archivo)
   ============================================ */

footer {
  background: var(--negro);
  padding: 5rem var(--padding-x) 2.5rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(300px, 1.2fr) repeat(3, minmax(150px, 0.7fr));
  column-gap: clamp(2.5rem, 4vw, 5rem);
  row-gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(var(--blanco-rgb), 0.07);
}

.footer-grid > div:not(:first-child) {
  justify-self: center;
  min-width: 150px;
}

/* ---------- MOBILE OVERRIDES (< 768px) ---------- */
@media (max-width: 767px) {
  footer {
    padding: 3.6rem var(--padding-x) 1.55rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.7rem 1.15rem;
    padding-bottom: 2.25rem;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }

  /* Evita que los bloques de links se centren en mobile */
  .footer-grid > div:not(:first-child) {
    justify-self: start;
    min-width: auto;
  }

  .footer-brand-name {
    font-size: 1.38rem;
    margin-bottom: 0.7rem;
  }

  .footer-brand-desc {
    max-width: none;
    font-size: 0.78rem;
    line-height: 1.65;
    color: rgba(var(--blanco-rgb), 0.72);
    margin-bottom: 1.2rem;
  }

  .footer-socials {
    gap: 0.65rem;
  }

  .footer-social {
    width: 34px;
    height: 34px;
  }

  .footer-col-title {
    font-size: 0.6rem;
    letter-spacing: 0.16em;
    color: rgba(var(--blanco-rgb), 0.7);
    margin-bottom: 0.8rem;
  }

  .footer-links {
    gap: 0.48rem;
  }

  .footer-links a {
    font-size: 0.76rem;
    line-height: 1.35;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.85rem;
    padding-top: 1.35rem;
  }

  .footer-copy {
    font-size: 0.7rem;
    line-height: 1.5;
  }

  .footer-legal {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .footer-legal a {
    font-size: 0.7rem;
  }

  .footer-credit {
    padding-top: 1rem;
    font-size: 0.68rem;
    text-align: left;
  }
}

/* ---------- ESTILOS COMUNES / DESKTOP ---------- */

.footer-brand-name {
  font-family: var(--font-secondary);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--arena);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-brand-name span {
  color: var(--maiz);
}

.footer-brand-desc {
  font-size: 0.85rem;
  line-height: 1.75;
  color: rgba(var(--blanco-rgb), 0.72);
  margin-bottom: 2rem;
}

.footer-socials {
  display: flex;
  gap: 0.8rem;
}

.footer-social {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(var(--blanco-rgb), 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition), background var(--transition);
  cursor: pointer;
}

.footer-social:hover {
  border-color: var(--maiz);
  background: rgba(var(--maiz-rgb), 0.08);
}

.footer-social svg {
  width: 15px;
  height: 15px;
  stroke: rgba(var(--blanco-rgb), 0.5);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke var(--transition);
}

.footer-social:hover svg {
  stroke: var(--maiz);
}

.footer-col-title {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(var(--blanco-rgb), 0.7);
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(var(--blanco-rgb), 0.5);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--arena);
}

.footer-bottom {
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(var(--blanco-rgb), 0.62);
}

.footer-legal {
  display: flex;
  gap: 2rem;
}

.footer-legal a {
  font-size: 0.75rem;
  color: rgba(var(--blanco-rgb), 0.62);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-legal a:hover {
  color: rgba(var(--blanco-rgb), 0.5);
}

.footer-credit {
  padding-top: 1.25rem;
  font-size: 0.72rem;
  color: rgba(var(--blanco-rgb), 0.58);
  text-align: center;
}

.footer-credit a {
  color: rgba(var(--arena-rgb), 0.82);
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--maiz-rgb), 0.38);
}

.footer-credit a:hover {
  color: var(--maiz);
  border-bottom-color: var(--maiz);
}

/* Footer: social como links */
.footer-social {
  text-decoration: none;
}

/* Footer: CUCICBA badge */
.footer-cucicba {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(var(--maiz-rgb), 0.65);
}

.footer-cucicba svg {
  width: 14px;
  height: 14px;
  stroke: rgba(var(--maiz-rgb), 0.65);
  flex-shrink: 0;
}

/* Footer: datos de contacto en columna Empresa */
.footer-contact-data {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-contact-item {
  font-size: 0.78rem;
  color: rgba(var(--blanco-rgb), 0.68);
  text-decoration: none;
  transition: color var(--transition);
  line-height: 1.4;
}

a.footer-contact-item:hover {
  color: var(--arena);
}

/* Footer: WhatsApp social icon fill */
.footer-social--wa svg {
  stroke: none;
  fill: rgba(var(--blanco-rgb), 0.5);
}

.footer-social--wa:hover svg {
  fill: #25D366;
  stroke: none;
}

/* ===== TRUST STRIP ===== */
.trust-strip {
  background: var(--verde-hero);
  border-bottom: 1px solid rgba(var(--maiz-rgb), 0.12);
  padding: 0.9rem var(--padding-x);
}

.trust-strip-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: rgba(var(--arena-rgb), 0.62);
  padding: 0.35rem 2rem;
  white-space: nowrap;
}

.trust-item strong {
  color: var(--maiz);
  font-weight: 500;
}

.trust-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  stroke: rgba(var(--maiz-rgb), 0.6);
  fill: none;
}

.trust-icon[fill="currentColor"] {
  fill: rgba(var(--maiz-rgb), 0.6);
  stroke: none;
}

.trust-sep {
  width: 1px;
  height: 18px;
  background: rgba(var(--maiz-rgb), 0.18);
  flex-shrink: 0;
}

.trust-wa-link {
  color: rgba(var(--arena-rgb), 0.62);
  text-decoration: none;
  transition: color 0.25s;
}

.trust-wa-link:hover {
  color: #25D366;
}

/* ===== WHATSAPP FAB ===== */
.whatsapp-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  padding: 0.75rem 1.25rem 0.75rem 0.9rem;
  border-radius: 100px;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: transform 0.25s, box-shadow 0.25s;
  animation: wabounce 2.5s ease 2s infinite;
}

.whatsapp-fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(37,211,102,0.5);
  animation: none;
}

.whatsapp-fab-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.whatsapp-fab-label {
  text-transform: uppercase;
  color: var(--verde-hero);
  font-weight: 600;
}

@keyframes wabounce {
  0%,100% { transform: translateY(0) }
  50% { transform: translateY(-5px) }
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity:0;
  transform:translateY(40px);
  transition:opacity 0.7s cubic-bezier(0.25,0.46,0.45,0.94),transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94);
}

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

.reveal-left {
  opacity:0;
  transform:translateX(-50px);
  transition:opacity 0.7s cubic-bezier(0.25,0.46,0.45,0.94),transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94);
}

.reveal-left.visible {
  opacity:1;
  transform:translateX(0)
}

.reveal-right {
  opacity:0;
  transform:translateX(50px);
  transition:opacity 0.7s cubic-bezier(0.25,0.46,0.45,0.94),transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94);
}

.reveal-right.visible {
  opacity:1;
  transform:translateX(0)
}

.reveal-delay-1 {
  transition-delay:.1s
}

.reveal-delay-2 {
  transition-delay:.2s
}

.reveal-delay-3 {
  transition-delay:.3s
}

.reveal-delay-4 {
  transition-delay:.4s
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  position:fixed;
  inset:0;
  z-index:200;
  background:var(--verde-hero);
  display:flex;
  flex-direction:column;
  padding:2rem var(--padding-x);
  transform:translateX(100%);
  transition:transform .45s cubic-bezier(0.77,0,0.175,1);
}

.mobile-menu.open {
  transform:translateX(0)
}

.mobile-menu-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:4rem
}

.mobile-close {
  background:none;
  border:1px solid rgba(var(--arena-rgb),0.2);
  border-radius:50%;
  width:42px;
  height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  color:var(--arena);
  font-size:1.4rem;
  transition:border-color var(--transition)
}

.mobile-close:hover {
  border-color:var(--maiz)
}

.mobile-nav-links {
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:2rem
}

.mobile-nav-links a {
  font-family:var(--font-secondary);
  font-size:2.4rem;
  font-weight:300;
  color:rgba(var(--arena-rgb),0.7);
  text-decoration:none;
  transition:color var(--transition);
  display:block;
}

.mobile-nav-links a:hover {
  color:var(--arena)
}
