
@import url('./landing.css');
:root{
  --bg:#ffffff; --fg:#0a0a0a; --muted:#6b7280; --line:#e5e7eb; --card:#f9fafb;
  --brand:#10b981; --brand-700:#0e9f76; --maxw:1180px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg); color:var(--fg); font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial}
a{color:inherit;text-decoration:none}
a:hover{text-decoration:underline}
.container{max-width:var(--maxw); margin:0 auto; padding:0 16px}
.site-header{position:sticky; top:0; z-index:50; background:rgba(255,255,255,.92);  border-bottom:1px solid var(--line)}
.topbar{display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 0}
.brand img{height:28px}
.navlinks{display:flex; gap:18px; list-style:none; margin:0; padding:0}
.navlinks a{font-weight:600}
.cta-bar{display:flex; gap:10px}
.btn{display:inline-flex; align-items:center; justify-content:center; border-radius:999px; padding:10px 14px; border:1px solid var(--fg)}
.btn.primary{background:var(--brand); color:#fff; border-color:var(--brand)}
.btn.primary:hover,.btn.primary:focus{background:var(--brand-700); border-color:var(--brand-700)}
.btn.ghost{border:1px solid var(--brand); color:var(--brand); background:transparent}
.btn.ghost:hover,.btn.ghost:focus{background:var(--brand); color:#fff}
.hero-home{padding:64px 0 24px; display:grid; gap:28px; grid-template-columns: 1.2fr .8fr}
.hero-home h1{font-size: clamp(36px, 4.2vw, 54px); margin:0}
.hero-home p.sub{font-size: clamp(16px, 2.2vw, 20px); color:var(--muted); margin:10px 0 16px}
.hero-stats{display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap:12px; margin-top:8px}
.hero-stats .item{border:1px dashed var(--line); border-radius:12px; padding:12px; text-align:center}
.hero-visual{border:1px solid var(--line); border-radius:18px; overflow:hidden}
.slice{padding:36px 0; border-top:1px solid var(--line)}
.section-title{display:flex; align-items:center; justify-content:space-between; gap:8px}
.cards{display:grid; gap:16px; grid-template-columns: repeat(3, minmax(0,1fr))}
.card{background:var(--card); border:1px solid var(--line); border-radius:16px; padding:18px}
.cards .card{border-color: rgba(16,185,129,.28)}
.cards .card:hover{border-color: rgba(16,185,129,.45)}
.card h3{margin:0 0 6px}
.card .small{color:var(--muted)}
.grid-2{display:grid; gap:16px; grid-template-columns: repeat(2, minmax(0,1fr))}
.process{display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap:12px}
.process .step{border:1px solid var(--line); border-radius:14px; padding:16px}
.logos{display:flex; flex-wrap:wrap; gap:16px; align-items:center}
.logos img{height:28px; filter: grayscale(100%)}
.newsletter{display:flex; gap:8px; flex-wrap:wrap}
input[type="email"]{padding:12px 14px; border-radius:999px; border:1px solid var(--line); min-width:260px}
.site-footer{border-top:1px solid var(--line); padding:32px 0 24px; color:var(--muted)}
.footer-grid{display:grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap:20px}
.footer-grid h4{margin:0 0 10px; color:#111; font-size:14px; text-shadow: 0.5px 0.5px 0 #fff}
.footer-grid ul{list-style: disc inside; padding:0; margin:0; display:grid; gap:8px}
.small.emboss, .mini-list.emboss li { color:#6b7280; text-shadow: 0.5px 0.5px 0 #ffffff, -0.5px -0.5px 0 #d1d5db; font-size:13px; }
.divider-emboss{height:1px; background:linear-gradient(90deg, rgba(0,0,0,0.08), rgba(0,0,0,0.02)); margin:12px 0 8px; border-radius:1px; box-shadow: inset 0 1px 0 rgba(255,255,255,.5)}
.mini-form{display:grid; gap:8px}
.mini-form input, .mini-form textarea{ border:1px solid var(--line); border-radius:12px; padding:10px 12px; font-size:14px; background:#fff; color:var(--fg); box-shadow: inset 0 1px 0 rgba(255,255,255,.6); }
.mini-form button{align-self:start}
.socials{display:flex; gap:10px; margin:8px 0 6px; color:#0a0a0a}
.socials a{display:inline-flex; padding:6px; border:1px solid var(--line); border-radius:10px}
.socials a:hover{color:var(--brand); border-color:var(--brand)}
.footer-grid > div:not(:first-child){border-left: 1px solid rgba(0,0,0,0.06); padding-left: 18px}
@media (max-width: 980px){
  .hero-home{grid-template-columns: 1fr}
  .hero-stats{grid-template-columns: repeat(2, minmax(0,1fr))}
  .cards{grid-template-columns: 1fr}
  .grid-2{grid-template-columns: 1fr}
  .process{grid-template-columns: 1fr 1fr}
  .footer-grid{grid-template-columns: 1fr 1fr}
  .footer-grid > div:not(:first-child){border-left: none; padding-left:0}
}


/* Footer V6 Styles - Matching Image Design */
.footer-grid-v6 {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 48px;
  padding: 40px 0 24px;
}

/* Columna 1: Brand */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-brand .brand img {
  height: 32px;
  margin-bottom: 8px;
}

.footer-description {
  font-size: 14px;
  line-height: 1.6;
  color: #374151;
  margin: 0;
  max-width: 280px;
}

.vcard-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vcard-label {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
  font-weight: 500;
}

.qr-code {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin: 0;
  margin-top: 12px;
}

.contact-detail {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
  line-height: 1.4;
}

.footer-brand .socials {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.footer-brand .socials a {
  color: #6b7280;
  transition: color 0.2s ease;
  border: none;
  padding: 0;
}

.footer-brand .socials a:hover {
  color: var(--brand);
}

/* Columna 2: Services */
.footer-services {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-services h4 {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 16px 0;
}

.resources-title {
  margin-top: 8px !important;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links li {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.4;
}

.footer-links a {
  color: #6b7280;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: all 0.2s ease;
}

.footer-links a:hover {
  color: var(--brand);
  text-decoration-color: var(--brand);
}

/* Columna 3: Contact Form */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact h4 {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.contact-subtitle {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
}

.contact-form-v6 {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
}

.contact-form-v6 input,
.contact-form-v6 select {
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  background: #f9fafb;
  color: #374151;
  transition: all 0.2s ease;
}

.contact-form-v6 input:focus,
.contact-form-v6 select:focus {
  outline: none;
  border-color: var(--brand);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.contact-form-v6 input::placeholder {
  color: #9ca3af;
  font-size: 13px;
}

.contact-form-v6 select {
  cursor: pointer;
}

.btn-submit {
  background: var(--brand);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
  margin-top: 8px;
}

.btn-submit:hover {
  background: var(--brand-700);
}

/* Responsive Design */
@media (max-width: 768px) {
  .footer-grid-v6 {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 0 20px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .footer-description {
    max-width: none;
  }
}

@media (max-width: 1024px) {
  .footer-grid-v6 {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  
  .footer-contact {
    grid-column: 1 / -1;
    max-width: 400px;
  }
}


/* Footer V7 Styles - Exact Match to Image with All Corrections */
.footer-grid-v7 {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 48px;
  padding: 40px 0 32px;
  position: relative;
}

/* Líneas difuminadas entre columnas - VERDES y más a la izquierda */
.footer-grid-v7::before,
.footer-grid-v7::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, 
    rgba(16, 185, 129, 0) 0%,
    rgba(16, 185, 129, 0.4) 20%,
    rgba(16, 185, 129, 0.6) 50%,
    rgba(16, 185, 129, 0.4) 80%,
    rgba(16, 185, 129, 0) 100%
  );
}

.footer-grid-v7::before {
  left: calc(35%);
}

.footer-grid-v7::after {
  left: calc(62%);
}

/* Columna 1: Brand con sub-columnas */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-brand .brand img {
  height: 32px;
  margin-bottom: 8px;
}

.footer-description {
  font-size: 14px;
  line-height: 1.6;
  color: #374151;
  margin: 0;
  max-width: 320px;
}

/* 2 Sub-columnas: QR + Dirección */
.footer-subcols {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  margin-top: 8px;
}

.qr-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vcard-label {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
  font-weight: 500;
}

.qr-code {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.contact-column {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  margin: 0;
  margin-top: 12px;
}

.contact-label:first-child {
  margin-top: 0;
}

.contact-detail {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
  line-height: 1.4;
}

/* Redes sociales debajo de sub-columnas */
.footer-brand .socials {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-brand .socials a {
  color: #6b7280;
  transition: color 0.2s ease;
  border: none;
  padding: 6px;
  border-radius: 6px;
  background: #f3f4f6;
}

.footer-brand .socials a:hover {
  color: var(--brand);
  background: #ecfdf5;
}

/* Columna 2: Servicios y Recursos con viñetas */
.footer-services {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-services h4 {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 16px 0;
}

.resources-title {
  margin-top: 8px !important;
}

/* Listas con viñetas */
.footer-links-bullets {
  list-style: disc;
  list-style-position: inside;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links-bullets li {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.4;
}

.footer-links-bullets a {
  color: #6b7280;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: all 0.2s ease;
}

.footer-links-bullets a:hover {
  color: var(--brand);
  text-decoration-color: var(--brand);
}

/* Columna 3: Contact Form */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact h4 {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.contact-subtitle {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
}

.contact-form-v7 {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
}

.contact-form-v7 input,
.contact-form-v7 select {
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  background: #f9fafb;
  color: #374151;
  transition: all 0.2s ease;
}

.contact-form-v7 input:focus,
.contact-form-v7 select:focus {
  outline: none;
  border-color: var(--brand);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.contact-form-v7 input::placeholder {
  color: #9ca3af;
  font-size: 13px;
}

.contact-form-v7 select {
  cursor: pointer;
}

.btn-submit {
  background: var(--brand);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
  margin-top: 8px;
}

.btn-submit:hover {
  background: var(--brand-700);
}

/* Copyright Section */
.footer-copyright {
  background: #f9fafb;
  border-top: 1px solid var(--line);
  padding: 16px 0;
  margin-top: 24px;
}

.footer-copyright p {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
  text-align: center;
}

/* Responsive Design V7 */
@media (max-width: 768px) {
  .footer-grid-v7 {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 0 20px;
  }
  
  .footer-grid-v7::before,
  .footer-grid-v7::after {
    display: none;
  }
  
  .footer-subcols {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .footer-description {
    max-width: none;
  }
}

@media (max-width: 1024px) {
  .footer-grid-v7 {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  
  .footer-contact {
    grid-column: 1 / -1;
    max-width: 400px;
  }
  
  .footer-grid-v7::after {
    display: none;
  }
}



/* ===== HERO ROTATIVO INTEGRADO ===== */

/* Hero Section Principal con imágenes rotativas */
.hero-rotativo-integrado {
  position: relative;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Imágenes de fondo rotativas */
.hero-backgrounds {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-bg.active {
  opacity: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 2;
}

/* Contenido superpuesto */
.hero-content-overlay {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 5% 0 8%;
  min-height: 50vh;
}

.hero-text-content {
  max-width: 700px;
}

.hero-main-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.2s forwards;
}

.hero-main-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: #e5e7eb;
  line-height: 1.6;
  margin-bottom: 32px;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.7);
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.4s forwards;
}

.hero-main-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.6s forwards;
}

/* Botones del hero rotativo */
.hero-main-cta .btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: #10B981;
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Chips flotantes superpuestos */
.floating-chips-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
}

.chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 25px;
  
  -webkit-
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: all 0.5s ease;
  opacity: 0;
  pointer-events: auto;
  cursor: pointer;
}

.chip:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
  background: rgba(16, 185, 129, 0.25);
}

.chip-dot {
  width: 8px;
  height: 8px;
  background: #10B981;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* Posiciones de chips adaptables por hero */
.chip-1 {
  top: 25%;
  left: 15%;
  animation: chipFloat1 3s ease-in-out infinite, fadeInChip 0.6s ease 0.8s forwards;
}

.chip-2 {
  top: 35%;
  left: 35%;
  animation: chipFloat2 3.5s ease-in-out infinite, fadeInChip 0.6s ease 1s forwards;
}

.chip-3 {
  top: 45%;
  left: 55%;
  animation: chipFloat3 4s ease-in-out infinite, fadeInChip 0.6s ease 1.2s forwards;
}

/* Posiciones específicas para Hero 2 (smartphone) */
.hero-bg[data-hero="2"].active ~ .floating-chips-overlay .chip-1 {
  top: 30%;
  left: 25%;
}

.hero-bg[data-hero="2"].active ~ .floating-chips-overlay .chip-2 {
  top: 50%;
  left: 45%;
}

.hero-bg[data-hero="2"].active ~ .floating-chips-overlay .chip-3 {
  top: 40%;
  left: 65%;
}

/* Posiciones específicas para Hero 3 (rutas) */
.hero-bg[data-hero="3"].active ~ .floating-chips-overlay .chip-1 {
  top: 20%;
  left: 20%;
}

.hero-bg[data-hero="3"].active ~ .floating-chips-overlay .chip-2 {
  top: 60%;
  left: 30%;
}

.hero-bg[data-hero="3"].active ~ .floating-chips-overlay .chip-3 {
  top: 35%;
  left: 70%;
}

/* 4 secciones en la parte inferior */
.hero-bottom-sections {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: transparent;
  
  
}

.section-item {
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.7;
}

.section-item:last-child {
  border-right: none;
}

.section-item.active {
  background: rgba(16, 185, 129, 0.15);
  opacity: 1;
  border-top: 3px solid #10B981;
}

.section-item:hover {
  background: rgba(255, 255, 255, 0.05);
  opacity: 1;
}

.section-item h3 {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  line-height: 1.3;
}

/* Animaciones */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInChip {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes chipFloat1 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes chipFloat2 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(6px); }
}

@keyframes chipFloat3 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-4px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Transiciones de contenido */
.fade-out {
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.5s ease;
}

.fade-in {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.5s ease;
}

/* Responsive Design para Hero Rotativo */
@media (max-width: 1024px) {
  .hero-content-overlay {
    padding: 0 5%;
    text-align: center;
  }
  
  .hero-main-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
  }
  
  .hero-bottom-sections {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-content-overlay {
    padding: 30px 5%;
    min-height: 60vh;
  }
  
  .hero-main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }
  
  .hero-main-subtitle {
    font-size: 1rem;
  }
  
  .chip {
    font-size: 12px;
    padding: 8px 12px;
  }
  
  .hero-main-cta .btn {
    padding: 12px 24px;
    font-size: 14px;
  }
  
  .hero-main-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-bottom-sections {
    grid-template-columns: 1fr;
  }
  
  .section-item {
    padding: 15px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .section-item:last-child {
    border-bottom: none;
  }
}

/* Reducir movimiento para usuarios que lo prefieren */
@media (prefers-reduced-motion: reduce) {
  .hero-bg {
    transition: opacity 0.3s ease !important;
  }
  
  .chip {
    animation: fadeInChip 0.6s ease forwards !important;
  }
  
  .chip-dot {
    animation: none !important;
  }
}




/* === Overrides solicitados === */
/* Quitar posicionamiento absoluto de chips y alinearlos a la derecha en fila */
.floating-chips-overlay{
  position: absolute;
  top: 50%;
  right: clamp(12px, 3vw, 48px);
  left: auto;
  transform: translateY(-50%);
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  width: auto;
  height: auto;
  pointer-events: none;
}
.floating-chips-overlay .chip{ position: static; }
@media (max-width: 768px){
  .floating-chips-overlay{ top: auto; bottom: 24px; transform: none; right: 16px; }
  .floating-chips-overlay .chip{ font-size: 12px; padding: 8px 12px; }
}

/* Fondo del nav inferior transparente */
.hero-bottom-sections{ background: transparent; }
.section-item{ background: transparent; }
.section-item.active{ background: rgba(16,185,129,0.18); }

/* === MOBILE-ONLY v2: menu, hero 1:1, chips off, vCard/WA relocation === */
@media (max-width: 768px){
  /* Menu móvil */
  nav.nav-primary ul li { display: none; }
  nav.nav-primary ul li.nav-nosotros,
  nav.nav-primary ul li.nav-servicios,
  nav.nav-primary ul li.nav-contacto { display: inline-flex; }
  nav.nav-primary ul li.nav-contacto > a { display:inline-flex; align-items:center; padding:8px 12px; border-radius:999px; }

  /* Hero: sin chips + cuadrado */
  .pain-chips, [class*="chip"] { display: none !important; }
  .hero-picture { display:block; aspect-ratio: 1/1; }
  .hero-picture img { width:100%; height:100%; object-fit:cover; object-position:center; }
  .hero-rotativo-integrado img:not(:first-child){ display:none !important; }

  /* Footer: vCard visible con descarga en móvil */
  .vcard-actions { margin-top: 8px; }
  .vcard-mobile { display:inline-flex; }
  .vcard-desktop { display:none; }

  /* WhatsApp compacto bajo Teléfonos */
  .wa-btn.wa-sm { display:inline-flex; align-items:center; padding:6px 10px; border-radius:999px; margin-top:6px; }
}

/* Desktop */
@media (min-width: 769px){
  .vcard-mobile { display:none; }
  .vcard-desktop { display:inline-flex; }
}

html { scroll-behavior:smooth; }
#porque-analitix, #svc-v5, #contacto { scroll-margin-top: 80px; }


}

/* === Mobile patch (user request: hero=4 squares, link vCard, hide demo/agendar) === */
@media (max-width: 768px){
  .pain-chips, [class*="chips"], [class*="chip"], .chips-strip, .tag-group { 
    display: none !important; border: 0 !important; box-shadow: none !important; background: transparent !important;
  }
  nav ul li.nav-hide-mobile { display: none !important; }
  .vcard-link-text { display:inline-block; margin-top:8px; text-decoration: underline; }
}

/* === Mobile hero rotator crossfade (v2) === */
@media (max-width: 768px){
  .hero-picture{ position:relative; aspect-ratio:1/1; overflow:hidden; }
  .hero-picture img{ width:100%; height:100%; object-fit:cover; }
  .hero-overlay{ position:absolute; inset:0; opacity:0; transition:opacity .6s ease; }
  .hero-overlay.active{ opacity:1; }
}


/* === Mobile/Tablet: hide top CTAs outside nav === */
@media (max-width: 1024px){
  .cta-bar { display: none !important; }
}


/* === Hero mobile/tablet up to 1024px === */
@media (max-width: 1024px){
  .hero-picture{ position:relative; aspect-ratio: 1/1; overflow:hidden; }
  .hero-picture img{ width:100%; height:100%; object-fit:cover; object-position:center; }
  .floating-chips-overlay{ display:none !important; background:transparent !important; border:0 !important; box-shadow:none !important; }
}


/* === Footer mobile layout & visibility (≤1024px) === */
@media (max-width: 1024px){
  .footer-grid-v7, .footer-grid, .footer-content { display:grid; grid-template-columns: 1fr; gap: 16px; }
  .wa-number { display: none !important; }      /* ocultar número en móvil */
  .wa-btn.wa-sm { display: inline-flex; align-items:center; padding:6px 10px; border-radius:999px; }
  .vcard-link-text { display:inline-block; text-decoration: underline; margin-top:8px; }
}
@media (min-width: 1025px){
  .wa-btn.wa-sm { display:none !important; }    /* solo número en desktop */
}


/* === Service cards: full-surface clickable & focus-visible === */
.svc-card{ display:block; position:relative; text-decoration:none; color:inherit; }
.svc-card:focus-visible{ outline: 2px solid currentColor; outline-offset: 3px; border-radius: 14px; }


/* === Hero móvil ≤1024px: cuadrado + crossfade === */
@media (max-width:1024px){
  .hero-picture{ position:relative; aspect-ratio:1/1; overflow:hidden; }
  .hero-picture img{ width:100%; height:100%; object-fit:cover; object-position:center; }
  .hero-overlay{ position:absolute; inset:0; opacity:0; transition:opacity .6s ease; }
  .hero-overlay.active{ opacity:1; }
}


/* === Nav móvil ≤1024px: solo Nosotros, Servicios, Contacto (CTA) === */
@media (max-width:1024px){
  nav ul{ display:flex; gap:14px; align-items:center; }
  nav ul li.nav-hide-mobile{ display:none !important; }
  nav ul li.nav-keep-mobile{ display:inline-flex !important; }
  nav ul li.nav-keep-mobile a{ padding:8px 10px; }
  nav ul li.nav-cta-li a.nav-cta-contacto,
  nav ul li.nav-cta-li a.cta-primary{ 
    display:inline-flex; align-items:center; padding:8px 14px; border-radius:999px;
  }
}


/* === Tarjetas de Servicios: clic completo + focus visible === */
.svc-card{ display:block; position:relative; text-decoration:none; color:inherit; }
.svc-card:focus-visible{ outline:2px solid currentColor; outline-offset:3px; border-radius:14px; }


/* ===== CORRECCIONES RESPONSIVE DESIGN - ANALITIX ===== */

/* Menú hamburguesa para móviles */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  z-index: 60;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--fg);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Navegación móvil mejorada */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  .nav-primary {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    transition: left 0.3s ease;
    z-index: 55;
    padding-top: 80px;
  }
  
  .nav-primary.active {
    left: 0;
  }
  
  .navlinks {
    flex-direction: column;
    gap: 0;
    padding: 20px;
    align-items: center;
  }
  
  .navlinks li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--line);
  }
  
  .navlinks a {
    display: block;
    padding: 20px;
    font-size: 18px;
    color: var(--fg);
  }
  
  .navlinks a:hover {
    background: var(--brand);
    color: white;
    text-decoration: none;
  }
  
  /* Ocultar botones CTA en móvil */
  .cta-bar {
    display: none !important;
  }
  
  /* Ajustar topbar para móvil */
  .topbar {
    padding: 12px 0;
    position: relative;
  }
}

/* Hero responsive mejorado */
@media (max-width: 1024px) {
  .hero-rotativo-integrado {
    min-height: 60vh;
  }
  
  .hero-picture {
    aspect-ratio: 1/1 !important;
    overflow: hidden;
  }
  
  .hero-picture img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
  }
  
  /* Ocultar chips flotantes en móvil */
  .floating-chips-overlay {
    display: none !important;
  }
  
  .hero-content-overlay {
    padding: 20px 5%;
    text-align: center;
  }
  
  .hero-main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem) !important;
    line-height: 1.2;
    margin-bottom: 16px;
  }
  
  .hero-main-subtitle {
    font-size: clamp(14px, 4vw, 18px) !important;
    line-height: 1.4;
    margin-bottom: 24px;
  }
  
  .hero-main-cta {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
  
  .hero-main-cta .btn {
    width: 100%;
    max-width: 280px;
    padding: 14px 24px;
    font-size: 16px;
  }
}

/* Servicios responsive mejorado */
@media (max-width: 768px) {
  .svc-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
  
  .svc-card {
    padding: 24px 20px !important;
  }
  
  .svc-title {
    font-size: 20px !important;
    margin-bottom: 12px;
  }
  
  .svc-list {
    font-size: 16px !important;
    line-height: 1.6;
  }
  
  .svc-list li {
    margin: 6px 0;
  }
}

/* Grid responsive mejorado */
@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
  
  .process {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  
  .process .step {
    padding: 20px;
  }
  
  .cards {
    grid-template-columns: 1fr !important;
  }
}

/* Footer responsive mejorado */
@media (max-width: 768px) {
  .footer-grid-v7 {
    grid-template-columns: 1fr !important;
    gap: 30px;
  }
  
  .footer-subcols {
    flex-direction: column;
    gap: 20px;
  }
  
  .qr-column {
    text-align: center;
  }
  
  .contact-column {
    text-align: left;
  }
  
  .socials {
    justify-content: center;
    margin-top: 20px;
  }
}

/* Mejoras de tipografía móvil */
@media (max-width: 768px) {
  body {
    font-size: 16px;
    line-height: 1.6;
  }
  
  h1 {
    font-size: clamp(24px, 6vw, 32px) !important;
  }
  
  h2 {
    font-size: clamp(20px, 5vw, 28px) !important;
  }
  
  h3 {
    font-size: clamp(18px, 4vw, 24px) !important;
  }
  
  .container {
    padding: 0 20px;
  }
  
  .slice {
    padding: 24px 0;
  }
}

/* Mejoras de accesibilidad */
@media (max-width: 768px) {
  /* Aumentar área de toque para botones */
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Mejorar contraste en móvil */
  .hero-overlay {
    background: rgba(0, 0, 0, 0.4);
  }
  
  /* Espaciado mejorado */
  .hero-bottom-sections {
    grid-template-columns: 1fr !important;
    gap: 0;
  }
  
  .section-item {
    padding: 20px;
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  .section-item:last-child {
    border-bottom: none;
  }
}

/* Optimizaciones de performance móvil */
@media (max-width: 768px) {
  /* Reducir animaciones en móvil */
  * {
    animation-duration: 0.3s !important;
    transition-duration: 0.3s !important;
  }
  
  /* Optimizar imágenes */
  img {
    max-width: 100%;
    height: auto;
  }
}

/* Landscape móvil */
@media (max-width: 768px) and (orientation: landscape) {
  .hero-rotativo-integrado {
    min-height: 80vh;
  }
  
  .hero-content-overlay {
    padding: 15px 5%;
  }
  
  .hero-main-title {
    font-size: clamp(1.5rem, 5vw, 2rem) !important;
  }
}

/* Tablet específico */
@media (min-width: 769px) and (max-width: 1024px) {
  .svc-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .navlinks {
    gap: 12px;
  }
  
  .navlinks a {
    font-size: 14px;
    padding: 8px 12px;
  }
  
  .cta-bar .btn {
    padding: 8px 12px;
    font-size: 14px;
  }
}

/* ===== FIN CORRECCIONES RESPONSIVE DESIGN ===== */



/* ===== FOOTER RESPONSIVE - 3 COLUMNAS EN DESKTOP, 1 EN MÓVIL ===== */

/* Desktop: Mantener footer original con 3 columnas */
@media (min-width: 769px) {
  .footer-grid-v7 {
    display: grid !important;
    grid-template-columns: 1.5fr 1fr 1.2fr !important;
    gap: 48px !important;
    padding: 40px 0 24px !important;
  }
  
  .footer-services,
  .footer-contact {
    display: block !important;
  }
  
  .wa-btn.wa-sm {
    display: none !important;
  }
}

/* Móvil: Solo columna izquierda */
@media (max-width: 768px) {
  /* Ocultar columnas 2 y 3 del footer */
  .footer-services,
  .footer-contact {
    display: none !important;
  }

  /* Ocultar enlaces de WhatsApp del final */
  .wa-btn.wa-sm {
    display: none !important;
  }

  /* Ajustar grid del footer para mostrar solo 1 columna */
  .footer-grid-v7 {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    max-width: 400px !important;
    margin: 0 auto !important;
    text-align: left !important;
  }

  /* Centrar contenido de la columna principal */
  .footer-brand {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    align-items: flex-start !important;
    max-width: 100% !important;
  }

  /* Ajustar subcolunas (QR + Contacto) */
  .footer-subcols {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    align-items: center !important;
    text-align: center !important;
  }

  .contact-column {
    text-align: center !important;
  }
  
  .socials {
    justify-content: center !important;
  }
}
/* Estilos generales para labels y detalles de contacto */
.contact-label {
  font-weight: 600 !important;
  color: var(--brand) !important;
  margin: 12px 0 4px 0 !important;
  font-size: 14px !important;
}

.contact-label:first-child {
  margin-top: 0 !important;
}

.contact-detail {
  margin: 0 0 8px 0 !important;
  color: var(--muted) !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
}

/* QR Code styling */
.qr-code {
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

.vcard-label {
  display: inline-block !important;
  margin-bottom: 8px !important;
  color: var(--brand) !important;
  font-size: 13px !important;
  text-decoration: underline !important;
}

/* Copyright styling */
.footer-copyright {
  border-top: 1px solid var(--line) !important;
  padding: 16px 0 !important;
  margin-top: 30px !important;
  text-align: center !important;
}

.footer-copyright p {
  margin: 0 !important;
  color: var(--muted) !important;
  font-size: 13px !important;
}

/* ===== FIN FOOTER RESPONSIVE ===== */


/* ===== HERO RESPONSIVE ROBUSTO ===== */

/* Estilos base para el hero */
.hero-image {
  width: 100% !important;
  height: 100% !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  z-index: 1 !important;
}

/* Imágenes desktop por defecto */
.hero-bg[data-hero="1"] .hero-image {
  background-image: url('../img/hero1-hd.png') !important;
}

.hero-bg[data-hero="2"] .hero-image {
  background-image: url('../img/hero2-hd.png') !important;
}

.hero-bg[data-hero="3"] .hero-image {
  background-image: url('../img/hero3-hd.png') !important;
}

.hero-bg[data-hero="4"] .hero-image {
  background-image: url('../img/hero4-hd.png') !important;
}

/* Imágenes móviles - Media Queries múltiples para máxima compatibilidad */
@media screen and (max-width: 768px) {
  .hero-bg[data-hero="1"] .hero-image {
    background-image: url('../img/hero-mobile/hero-m-1-analitixgo.jpeg') !important;
  }
  
  .hero-bg[data-hero="2"] .hero-image {
    background-image: url('../img/hero-mobile/hero-m-2-consultoria.jpeg') !important;
  }
  
  .hero-bg[data-hero="3"] .hero-image {
    background-image: url('../img/hero-mobile/hero-m-3-dashboard.jpeg') !important;
  }
  
  .hero-bg[data-hero="4"] .hero-image {
    background-image: url('../img/hero-mobile/hero-m-4-magento2.jpeg') !important;
  }
}

@media screen and (max-width: 1024px) and (orientation: portrait) {
  .hero-bg[data-hero="1"] .hero-image {
    background-image: url('../img/hero-mobile/hero-m-1-analitixgo.jpeg') !important;
  }
  
  .hero-bg[data-hero="2"] .hero-image {
    background-image: url('../img/hero-mobile/hero-m-2-consultoria.jpeg') !important;
  }
  
  .hero-bg[data-hero="3"] .hero-image {
    background-image: url('../img/hero-mobile/hero-m-3-dashboard.jpeg') !important;
  }
  
  .hero-bg[data-hero="4"] .hero-image {
    background-image: url('../img/hero-mobile/hero-m-4-magento2.jpeg') !important;
  }
}

/* Clases específicas para forzar imágenes móviles */
.mobile-device .hero-bg[data-hero="1"] .hero-image {
  background-image: url('../img/hero-mobile/hero-m-1-analitixgo.jpeg') !important;
}

.mobile-device .hero-bg[data-hero="2"] .hero-image {
  background-image: url('../img/hero-mobile/hero-m-2-consultoria.jpeg') !important;
}

.mobile-device .hero-bg[data-hero="3"] .hero-image {
  background-image: url('../img/hero-mobile/hero-m-3-dashboard.jpeg') !important;
}

.mobile-device .hero-bg[data-hero="4"] .hero-image {
  background-image: url('../img/hero-mobile/hero-m-4-magento2.jpeg') !important;
}

/* ===== FIN HERO RESPONSIVE ROBUSTO ===== */


