@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;800&family=Open+Sans:wght@400;600&display=swap');

:root {
  --primary:#2a4b61;
  --secondary:#396785;
  --accent:#4982a8;
  --highlight:#5fd1ff;
  --dark:#1b2f3d;
  --text:#2b2b2b;
  --light:#f4f6f8;
  --soft:#eef7fb;
  --white:#ffffff;
}

/* Reset */
html,body {
  margin:0;
  padding:0;
  padding-top: 50px;
  width:100%;
  overflow-x:hidden;
}

body {
  font-family:'Open Sans',sans-serif;
  background:white;
  color:var(--text);
  line-height:1.6;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: white;
  box-shadow: 0 1px 6px rgba(0,0,0,.04);
}

/* Contenedor interno */
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: padding 0.3s ease;
  box-sizing: border-box;
}

/* Logo estado inicial */
.logo {
  height: 100px; /* antes 100px */
  transition: height 0.3s ease;
}

/* Navegación */
.header nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.header nav a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 600;
  white-space: nowrap;
}

/* CTA */
.header nav a.cta {
  background: var(--primary);
  color: #fff !important;
  padding: .5rem 1.2rem;
  border-radius: 30px;
}


.cta {
  background: var(--primary);
  color: white;
  padding: .5rem 1.2rem;
  border-radius: 30px;
}
.header-inner {
  padding-left: 0.15rem;   /* antes 2rem */
  padding-right: 0.5rem;  /* se mantiene */
}


/* ===== ESTADO AÚN MÁS PEQUEÑO AL SCROLL ===== */
.header.shrink .header-inner {
  padding: 0.15rem 2rem;
}

.header.shrink .logo {
  height: 55px;
}

.header.shrink nav a {
  font-size: 0.9rem;
}

/* Barra de progreso de scroll */
.scroll-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: rgba(0,0,0,0.05);
  overflow: hidden;
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(
    90deg,
    var(--accent),
    var(--highlight)
  );
  transition: width 0.1s linear;
}

/* Sections */
section {
  padding:6rem 2rem;
  position:relative;
  z-index:1;
}

/* Hero */
.hero {
  position: relative;
  background: url("../img/visual/dashboard.png") center / cover no-repeat;
  color: white;
  padding: 8rem 2rem 6rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(42,75,97,0.85),
    rgba(57,103,133,0.85)
  );
  z-index: 0;
}

.hero .container,
.hero .hero-split {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family:'Montserrat',sans-serif;
  font-size:clamp(3rem,6vw,4.5rem);
}
.hero p { font-size:1.25rem; opacity:.9; }

.hero-split {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:3rem;
  align-items:center;
}


/* Buttons */
.btn {
  display:inline-block;
  padding:1rem 2rem;
  border-radius:30px;
  font-weight:700;
  text-decoration:none;
  transition:.3s;
}
.btn.primary { background:var(--accent); color:white; }
.btn.outline { border:2px solid white; color:white; }
.btn:hover { transform:translateY(-3px); }

/* Problem */
.problem {
  position: relative;
  background: url("../img/visual/desorden.png") center / cover no-repeat;
  color: white;
  text-align: center;
}

.problem::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.85),
    rgba(2,75,97,0.85)
  );
  z-index: 0;
}

.problem .container {
  position: relative;
  z-index: 1;
}

.problem h2 {
  color: white;
}

.problem-list li {
  color: rgba(255,255,255,0.9);
}


/* Split layout */
.split {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:3rem;
  align-items:center;
}

.illus {
  max-width:100%;
  border-radius:16px;
  animation:float 6s ease-in-out infinite;
}

/* Solution */
.solution { background:var(--soft); }

/* Services */
.services {
  background: var(--soft);
  padding-bottom: 4rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  cursor: pointer;
  transition: .3s;
}

.service-card:hover {
  transform: translateY(-6px);
}

.service-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: .4s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  margin: 0;
  color: var(--dark);
}

.service-card p {
  margin: 0;
  color: #555;
}

/* Value */
.value {
  background:var(--dark);
  color:white;
  text-align:center;
  padding:8rem 2rem;
}
.value-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:4rem;
  max-width:900px;
  margin:0 auto;
}
.value-grid div {
  padding:3rem 2rem;
  border-radius:24px;
  background:rgba(255,255,255,0.05);
  transition:.3s ease;
}
.value-grid span {
  font-size:4rem;
  font-weight:800;
  display:block;
}
.value-grid p {
  font-size:1.2rem;
  margin-top:.5rem;
}
.value-grid div.highlight {
  box-shadow:0 0 0 4px var(--highlight);
  background:rgba(255,255,255,0.12);
  transform:scale(1.06);
}

/* Process */
.process-steps {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:2rem;
  margin-top:3rem;
}
.process-steps div {
  background:var(--light);
  padding:2rem;
  border-radius:20px;
  box-shadow:0 6px 18px rgba(0,0,0,.05);
}

/* Tech */
.tech {
  background:var(--light);
  text-align:center;
  .tech {
  padding: 3rem 2rem; /* antes era 6rem */
}

/* Hacer la franja gris de Tecnologías más angosta */
.tech {
  padding-top: 1rem;

}

.carousel-wrapper {
  padding: 0.5rem 0;
}

.tech-logo {
  height: 100px; /* antes 120px */
}

.tech-logo img {
  max-height: 100px;
}
}
.tech h2 { 
  margin-bottom:4rem; 
 font-size: clamp(3rem, 6vw, 3.6rem);
}
.tech .container {
  max-width: 900px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.carousel-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 1rem 0;
  background: linear-gradient(to right,
    rgba(244,246,248,1),
    rgba(244,246,248,0) 10%,
    rgba(244,246,248,0) 90%,
    rgba(244,246,248,1)
  );
}

.carousel {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  gap: 6rem;
  width: max-content;
  animation: scroll 35s linear infinite;
}


.tech-logo {
  width: 160px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: white;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.tech-logo img {
  max-width: 120px;
  max-height: 90px;
  object-fit: contain;
  opacity: .9;
  filter: brightness(0) saturate(100%) invert(27%) sepia(19%) saturate(1200%) hue-rotate(170deg) brightness(95%) contrast(95%);
  transition: .3s;
}

.tech-logo img:hover {
  filter: none;
  opacity: 1;
  transform: scale(1.1);
}

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}


/* Sectors */
.sectors {
  background:white;
  text-align:center;
}
.sector-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:2rem;
  margin-top:3rem;
}
.sector-grid div {
  background:var(--light);
  padding:2rem;
  border-radius:20px;
  box-shadow:0 6px 18px rgba(0,0,0,.05);
}

/* Final CTA */
.final-cta {
  background:linear-gradient(135deg,var(--primary),var(--secondary));
  color:white;
  text-align:center;
}

/* Footer */
.footer {
  background:var(--dark);
  color:white;
  text-align:center;
  padding:2rem;
}

/* Modals */
.modal {
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.5);
  z-index:1000;
  justify-content:center;
  align-items:center;
}
.modal-content {
  background:white;
  padding:2.5rem;
  border-radius:20px;
  max-width:500px;
  width:90%;
  text-align:center;
  position:relative;
  animation:pop .4s ease;
}
.close {
  position:absolute;
  top:1rem;
  right:1rem;
  font-size:1.8rem;
  cursor:pointer;
  color:#999;
}
@keyframes pop {
  from { transform:scale(.8); opacity:0; }
  to { transform:scale(1); opacity:1; }
}
/* Responsive */
@media(max-width:768px) {
  .split,
  .hero-split { grid-template-columns:1fr; text-align:center; }
  section { padding:4rem 1.5rem; }
  .hero-img { margin-top:2rem; }
  .value-grid { grid-template-columns:1fr; gap:2rem; }
}
/* ===== WORK + SECTORS UNIFIED ===== */
.work-sectors {
  background: white;
  padding: 6rem 2rem;
}

.work-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: flex-start;
}

/* ---- Timeline ---- */
.work-process h2,
.work-sectors-list h2 {
  margin-bottom: 2rem;
}

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
}

.timeline-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item .dot {
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(79,209,255,0.25);
}

.timeline-item h4 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--dark);
}

.timeline-item p {
  margin: .3rem 0 0;
  color: #555;
}

/* ---- Sectores ---- */
.work-sectors-list .sector-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.work-sectors-list .sector-grid div {
  background: var(--light);
  padding: 1.5rem;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
  font-weight: 600;
  text-align: center;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .work-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}
/* ===== ANIMACIONES DE ENTRADA POR SCROLL ===== */

/* Estado inicial (fuera de pantalla) */
.reveal {
  opacity: 0;
  transition: all 0.8s ease;
}

/* Desde la izquierda */
.reveal-left {
  transform: translateX(-80px);
}

/* Desde la derecha */
.reveal-right {
  transform: translateX(80px);
}

/* Desde abajo (opcional) */
.reveal-bottom {
  transform: translateY(60px);
}

/* Estado visible */
.reveal.visible {
  opacity: 1;
  transform: translateX(0) translateY(0);
}
/* TEAM / NOSOTROS */
.team {
  background: white;
  padding: 6rem 2rem;
  text-align: center;
}

.team h2 {
  margin-bottom: 4rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
  max-width: 900px;
  margin: 0 auto;
}

.team-card {
  background: var(--light);
  padding: 3rem 2rem;
  border-radius: 32px;
  box-shadow: 0 12px 30px rgba(0,0,0,.06);
  transition: .4s ease;
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0,0,0,.12);
}

.team-photo {
  width: 180px;
  height: 180px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid var(--soft);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

.team-card ul {
  list-style: none;
  padding: 0;
}

.team-card li {
  margin: .4rem 0;
  color: var(--text);
}

/* Responsive */
@media(max-width:768px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  z-index: 9999;
  background: #25D366;
  border-radius: 50%;
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .3s ease;
}

.whatsapp-float img {
  width: 32px;
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 15px 35px rgba(0,0,0,.35);
}

/* CONTACT */
.contact-section {
  min-height: 100vh;
  background: linear-gradient(135deg, #1b2f3d, #396785);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
}

.contact-wrapper {
  background: white;
  border-radius: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1000px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.3);
}

.contact-info {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 4rem;
}

.contact-info h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.contact-form {
  padding: 4rem;
}

.contact-form label {
  font-weight: 600;
  display: block;
  margin-top: 1rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: .8rem 1rem;
  border-radius: 12px;
  border: 1px solid #ddd;
  margin-top: .3rem;
  font-size: 1rem;
}

.contact-form textarea {
  min-height: 120px;
  resize: none;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.checkbox {
  margin: 1.5rem 0;
  font-size: .9rem;
}

@media(max-width:768px){
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}
/* ===== PAGE LOADER ===== */
#page-loader {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .6s ease, visibility .6s ease;
}

#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
}

.loader-content img {
  width: 150px;
  margin-bottom: 1.5rem;
  animation: pulse 1.5s ease-in-out infinite;
}

.loader-content span {
  display: block;
  width: 60px;
  height: 4px;
  background: rgba(255,255,255,.3);
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
}

.loader-content span::after {
  content: "";
  display: block;
  height: 100%;
  width: 0%;
  background: white;
  animation: loadingBar 1.5s infinite;
}

@keyframes loadingBar {
  0% { width: 0%; }
  50% { width: 100%; }
  100% { width: 0%; }
}

@keyframes pulse {
  0%,100% { opacity: .6; }
  50% { opacity: 1; }
}
/* ==============================
   ADMIN DASHBOARD (FINAL)
============================== */

/* RESET SOLO ADMIN */
.admin-header,
.admin-container,
.admin-table-section {
  box-sizing: border-box;
  max-width: 100%;
}

/* ===== HEADER ===== */
.admin-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background: var(--dark);
  z-index: 1000;
}

.admin-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding: 0 1rem;

  display: flex;
  justify-content: space-between;
  align-items: center;

  color: white;
}

.admin-header h2 {
  font-size: 1.2rem;
  margin: 0;
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-user span {
  font-size: 0.9rem;
  opacity: 0.85;
}

.admin-user .btn {
  padding: 0.4rem 1.1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  white-space: nowrap;
}

/* ===== CONTENEDOR PRINCIPAL ===== */
.admin-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 1rem 2rem; /* espacio real bajo header */
}

/* ===== KPIs ===== */
.admin-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.admin-cards .card {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 1.6rem;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  transition: 0.3s ease;
}

.admin-cards .card:hover {
  transform: translateY(-4px);
}

/* ===== TABLA ===== */
.admin-table-section {
  width: 100%;
  background: white;
  padding: 1.5rem;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

.admin-table th {
  background: var(--soft);
  padding: 0.9rem;
  text-align: center;
  font-weight: 600;
}

.admin-table td {
  padding: 0.8rem;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.admin-table tr:hover {
  background: #f9fbfd;
}

/* ===== MOBILE UX (CLAVE) ===== */
@media (max-width: 768px) {

  /* HEADER */
  .admin-header-inner {
    padding: 0 0.75rem;
  }

  .admin-header h2 {
    font-size: 1rem;
  }

  .admin-user span {
    display: none;
  }

  /* CONTENEDOR */
  .admin-container {
    padding: 5.5rem 0.75rem 1.5rem;
  }

  /* KPIs */
  .admin-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* TABLA */
  .admin-table-section {
    padding: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .admin-table {
    min-width: 900px;
  }
}
/* ===== AJUSTE FINO DE CENTRADO ADMIN ===== */

/* Contenedor principal perfectamente centrado */
.admin-container {
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Caja blanca de la tabla sin desbalance */
.admin-table-section {
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* En móvil: quitar cualquier empuje a la derecha */
@media (max-width: 768px) {

  .admin-container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .admin-table-section {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}


/* Badges */
.badge {
  padding: .4rem .9rem;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
}

.badge.pending {
  background: #ffe9c7;
  color: #b36b00;
}

.badge.done {
  background: #d4f8e8;
  color: #1a7f5a;
}

.actions {
  display:flex;
  gap:.5rem;
  justify-content:center;
}

.btn.small {
  padding:.3rem .8rem;
  font-size:.75rem;
  border-radius:20px;
}

.btn.small.danger {
  background:#ff4d4d;
  color:white;
}

.badge.pending {
  background:#ffe9c7;
  color:#b36b00;
}

.badge.done {
  background:#d4f8e8;
  color:#1a7f5a;
}
.status-select {
  padding:.4rem .8rem;
  border-radius:20px;
  border:none;
  font-weight:600;
  cursor:pointer;
}

.status-select.pendiente {
  background:#ffe9c7;
  color:#b36b00;
}

.status-select.contactado {
  background:#dbeafe;
  color:#1d4ed8;
}

.status-select.cliente {
  background:#d4f8e8;
  color:#1a7f5a;
}
/* MODAL LATERAL CRM */
.lead-modal {
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.4);
  display:none;
  justify-content:flex-end;
  z-index:3000;
}

.lead-modal-content {
  background:white;
  width:40%;
  height:100%;
  padding:2rem;
  overflow-y:auto;
  animation:slideIn .4s ease;
}

@keyframes slideIn {
  from { transform:translateX(100%); }
  to { transform:translateX(0); }
}

.close-modal {
  font-size:2rem;
  cursor:pointer;
  float:right;
}
.lead-actions {
  display:flex;
  gap:1rem;
  margin:1rem 0;
}
.thanks-container {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--soft);
}

.thanks-card {
  background: white;
  padding: 3rem;
  border-radius: 24px;
  max-width: 520px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,.08);
}

.thanks-card h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.thanks-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.simple-header {
  box-shadow: none;
}

.simple-footer {
  text-align: center;
  padding: 2rem;
}
/* ===== CONTACTO MOBILE FIX ===== */
@media (max-width: 768px) {

  .contact-form {
    padding: 1.5rem;
  }

  .form-grid {
    grid-template-columns: 1fr; /* una sola columna */
    gap: 1.2rem;
  }

  .contact-form label {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    padding: 0.9rem 1rem;
    font-size: 1rem;
    border-radius: 14px;
  }

  .contact-form textarea {
    min-height: 120px;
  }

  .contact-form button {
    margin-top: 1.5rem;
    width: 100%;
  }
}
/* ===== HEADER MOBILE FIX ===== */
@media (max-width: 768px) {

  .header {
    padding: 0.6rem 1rem;
  }

  .header-inner {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .logo {
    height: 60px; /* antes 100px */
  }

  .header nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
  }

  .header nav a {
    margin: 0;
    font-size: 0.9rem;
  }
}

/* ===== HERO BUTTONS MOBILE FIX ===== */
@media (max-width: 768px) {

  .hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* 🔥 ESTO es lo clave */
    margin-top: 1.8rem;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }
}
/* ===== FIX DEFINITIVO TEXTO CONTACTO MOBILE ===== */
@media (max-width: 768px) {

  /* CONTENEDOR DEL TÍTULO */
  .contact,
  .contact-header,
  .contact-section,
  .contact-container {
    width: 100%;
    max-width: 100%;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    overflow: visible;
  }

  /* TÍTULO */
  .contact h2,
  .contact-title,
  .contact-header h2 {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 1rem auto;
    text-align: center;
    font-size: 1.8rem;
    line-height: 1.35;
    white-space: normal;
    overflow: visible;
    word-break: keep-all;
  }

}
/* ===============================
   MOBILE ALIGN FIX — DATIFY
   Sin romper diseño
================================ */
@media (max-width: 768px) {

  html, body {
    width: 100%;
    overflow-x: hidden;
  }

  /* SOLO el contenedor, no sections */
  .container {
    max-width: 100%;
    margin: 0 auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    box-sizing: border-box;
  }

  /* Hero: evitar corte de títulos */
  .hero h1,
  .hero p {
    text-align: center;
    word-break: normal;
    overflow-wrap: break-word;
  }

  /* Botones del hero */
  .hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  /* Formularios */
  .contact-form,
  form {
    margin: 0 auto;
    width: 100%;
  }

}
.legal {
  padding: 6rem 1.5rem;
  background: #fff;
}

.legal h1 {
  margin-bottom: 2rem;
  color: var(--dark);
}

.legal h2 {
  margin-top: 2rem;
  color: var(--primary);
}

.legal p, .legal li {
  line-height: 1.7;
  margin-bottom: 0.8rem;
}
/* ==============================
   COOKIE BANNER
============================== */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 900px;
  width: calc(100% - 2rem);
  background: rgba(27, 47, 61, 0.95);
  color: white;
  padding: 1.2rem 1.5rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  z-index: 9999;
  display: none;
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-content p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
}

.cookie-content a {
  color: var(--highlight);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
}

.cookie-actions .btn {
  padding: 0.4rem 1.2rem;
  font-size: 0.85rem;
  border-radius: 20px;
}

/* Mobile */
@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-actions {
    width: 100%;
    justify-content: flex-end;
  }
}
/* Botón rechazar cookies */
.cookie-actions .btn.outline {
  color: var(--highlight);
  border-color: var(--highlight);
}

.cookie-actions .btn.outline:hover {
  background: rgba(95, 209, 255, 0.1);
}
/* ==============================
   BLOQUE DE PREGUNTAS
============================== */

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.problem-card {
  background: white;
  padding: 1.5rem;
  border-radius: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
  transition: 0.3s ease;
}

.problem-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
  color: var(--primary);
}
/* ===== FIX PROBLEMAS VISIBILIDAD TEXTO ===== */

.problem {
  background: #ffffff;
  color: var(--dark);
}

.problem h2 {
  color: var(--dark);
}

.problem-card {
  color: var(--dark);
}
.lead-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 3000;
  justify-content: flex-end;
}

.lead-modal-content {
  background: white;
  width: 420px;
  height: 100%;
  padding: 2rem;
  overflow-y: auto;
  animation: slideIn .3s ease;
}

.close-modal {
  font-size: 2rem;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

.lead-detail h3 {
  margin-bottom: .2rem;
}

.lead-company {
  color: #777;
  margin-bottom: 1.5rem;
}

.lead-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.lead-message {
  background: #f6f9fc;
  padding: 1rem;
  border-radius: 12px;
}

@keyframes slideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
.lead-actions {
  margin-top: 1.5rem;
}

.lead-actions label {
  display: block;
  font-weight: 600;
  margin-bottom: .4rem;
}

.modal-status-select {
  width: 100%;
  padding: .6rem;
  border-radius: 12px;
  border: 1px solid #ccc;
  font-size: .95rem;
}
.modal-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.modal-buttons .btn {
  flex: 1;
}

