/* ==========================================
   Proyecto ConsultorIA - Static Styles
   ========================================== */

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

:root {
  --background: #ffffff;
  --foreground: #0a1628;
  --card: #ffffff;
  --card-foreground: #0a1628;
  --primary: #0a1628;
  --primary-foreground: #ffffff;
  --secondary: #f0f7ff;
  --secondary-foreground: #0a1628;
  --muted: #f0f4f8;
  --muted-foreground: #475569;
  --accent: #0ea5e9;
  --accent-foreground: #ffffff;
  --border: #e2e8f0;
  --navy: #0a1628;
  --navy-light: #1a2d4a;
  --cyan: #0ea5e9;
  --cyan-light: #38bdf8;
  --cyan-dark: #0284c7;
  --radius: 0.625rem;
}

html {
  scroll-behavior: smooth;
}

 body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  overflow-x: hidden; /* 👈 AÑADIR ESTA LÍNEA */
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* ==========================================
   NAVBAR
   ========================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: #ffffff;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}


.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .navbar-inner {
    padding: 1rem 2rem;
  }
}

.navbar-logo img {
  height: 86px;
  width: auto;
}

.navbar-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .navbar-links {
    display: flex;
  }
}

.navbar-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(10, 22, 40, 0.7);
  transition: color 0.2s;
}

.navbar-links a:hover {
  color: var(--cyan);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: var(--cyan);
  color: var(--accent-foreground);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: var(--cyan-dark);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: white;
}

.btn-large {
  padding: 0.875rem 1.75rem;
}

.mobile-menu-btn {
  display: block;
  color: var(--foreground);
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  padding: 1rem 1.5rem;
}

.mobile-menu.open {
  display: block;
}

@media (min-width: 1024px) {
  .mobile-menu {
    display: none !important;
  }
}

.mobile-menu a {
  display: block;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(10, 22, 40, 0.7);
  border-radius: 0.375rem;
  transition: all 0.2s;
}

.mobile-menu a:hover {
  background: var(--secondary);
  color: var(--cyan);
}

.mobile-menu .btn-primary {
  display: block;
  text-align: center;
  margin-top: 0.5rem;
  padding: 0.625rem 1.25rem;
}

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

.hero-canvas {
  position: absolute;
  inset: 0;
  opacity: 0.4;
}

.hero-canvas canvas {
  width: 100%;
  height: 100%;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(14, 165, 233, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1280px;
  margin: 0 auto;
  padding: 6rem 1.5rem;
}

@media (min-width: 1024px) {
  .hero-content {
    padding: 8rem 1.5rem 6rem;
  }
}


.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  background: rgba(14, 165, 233, 0.05);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.hero-badge span {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cyan-light);
}

.hero h1 {
  max-width: 48rem;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--primary-foreground);
  text-wrap: balance;
}

.hero h2 {
  max-width: 48rem;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: white;
  text-wrap: balance;
}

@media (min-width: 640px) {
  .hero h2 {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3.2rem;
    line-height: 1.15;
  }
}

.hero-description {
  max-width: 42rem;
  margin-top: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
}

@media (min-width: 1024px) {
  .hero-description {
    font-size: 1.1rem;
  }
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2.5rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
    align-items: center;
  }
}

.hero-bottom-fade {
  /*position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8rem;
  background: linear-gradient(to top, #ffffff, transparent);
  pointer-events: none; */
  display: none;
}

/* ==========================================
   SECTION BASE STYLES
   ========================================== */
.section {
  padding: 2.5rem 0;
}

@media (min-width: 1024px) {
  .section {
    padding: 3rem 0;
  }
}

.section-label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
}

.section-title {
  margin-top: 0.75rem;
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--foreground);
}

@media (min-width: 1024px) {
  .section-title {
    white-space: nowrap;
  }
}

@media (max-width:768px){

.section-title{
white-space: normal;
}

}

@media (min-width: 640px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.section-title.light {
  color: var(--primary-foreground);
}

.section-description {
  margin-top: 1rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.section-description.light {
  color: rgba(255, 255, 255, 0.6);
}

.text-center {
  text-align: center;
}

.max-w-2xl {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================
   PROBLEMS SECTION
   ========================================== */
.problems {
  background: var(--background);
}

.problems-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 4rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 640px) {
  .problems-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .problems-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.problem-card {
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  transition: all 0.2s;
}

.problem-card:hover {
  border-color: rgba(14, 165, 233, 0.3);
  box-shadow: 0 10px 40px -10px rgba(14, 165, 233, 0.1);
}

.problem-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--secondary);
  border-radius: 0.5rem;
  color: var(--cyan);
}

.problem-icon svg {
  width: 20px;
  height: 20px;
}

.problem-card h3 {
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--card-foreground);
}

.problem-card p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.problems-quote {
  margin-top: 4rem;
  padding: 2rem 2.5rem;
  background: var(--secondary);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 0.75rem;
}

.problems-quote p {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  text-wrap: balance;
}

@media (min-width: 1024px) {
  .problems-quote p {
    font-size: 1.5rem;
  }
}

.problems-quote .highlight {
  color: var(--cyan);
}

/* ==========================================
   SERVICES SECTION
   ========================================== */
.services {
  background: var(--secondary);
}

.services-grid {
  display: grid;
  gap: 2rem;
  margin-top: 4rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  transition: all 0.2s;
  height: 100%;
}

.service-card:hover {
  border-color: rgba(14, 165, 233, 0.3);
  box-shadow: 0 20px 60px -15px rgba(14, 165, 233, 0.1);
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--navy);
  border-radius: 0.75rem;
  color: var(--cyan);
}

.service-icon svg {
  width: 24px;
  height: 24px;
}

.service-card h3 {
  margin-top: 1.25rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--card-foreground);
}

.service-card > p {
  margin-top: 0.75rem;
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.service-features {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  list-style: none;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: rgba(10, 22, 40, 0.7);
}

.service-features li:first-child {
  margin-top: 0;
}

.feature-dot {
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ==========================================
   PROCESS SECTION
   ========================================== */
.process {
  background: var(--background);
}

.process-grid {
  display: grid;
  gap: 2rem;
  margin-top: 4rem;
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

@media (min-width: 640px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .process-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.process-grid::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 10%;
  width: 80%;
  height: 2px;
  background: linear-gradient(
    to right,
    rgba(14,165,233,0.2),
    rgba(14,165,233,0.6),
    rgba(14,165,233,0.2)
  );
  z-index: 0;
}

.process-step {
  position: relative;
  text-align: center;
}

.process-connector {
  display: none;
  position: absolute;
  top: 2rem;
  left: 100%;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, rgba(14, 165, 233, 0.3), rgba(14, 165, 233, 0.05));
}

@media (min-width: 1024px) {
  .process-step:not(:last-child) .process-connector {
    display: block;
  }
}

.process-icon-wrapper {
  position: relative;
  display: inline-flex;
  justify-content: center;
  z-index: 2;
}

.process-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: var(--navy);
  border-radius: 1rem;
  color: var(--cyan);
  box-shadow: 0 0 0 6px var(--background);
}

.process-icon svg {
  width: 28px;
  height: 28px;
}

.process-number {
  position: absolute;
  top: -8px;
  right: -8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--cyan);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-foreground);
}

.process-step h3 {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
}

.process-step p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

/* ==========================================
   USE CASES SECTION
   ========================================== */
.use-cases {
  background: var(--navy);
}

.use-cases-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 4rem;
}

@media (min-width: 640px) {
  .use-cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .use-cases-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.use-case-card {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  backdrop-filter: blur(8px);
  transition: all 0.2s;
}

.use-case-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(14, 165, 233, 0.3);
}

.use-case-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(14, 165, 233, 0.1);
  border-radius: 0.5rem;
  color: var(--cyan);
}

.use-case-icon svg {
  width: 20px;
  height: 20px;
}

.use-case-card h3 {
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-foreground);
}

.use-case-card p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
}

/* ==========================================
   RESULTS SECTION
   ========================================== */
.results {
  background: var(--secondary);
}

.results-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 4rem;
}

@media (min-width: 640px) {
  .results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .results-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.result-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  text-align: center;
  transition: all 0.2s;
}

.result-card:hover {
  border-color: rgba(14, 165, 233, 0.3);
  box-shadow: 0 10px 40px -10px rgba(14, 165, 233, 0.1);
}

.result-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(14, 165, 233, 0.1);
  border-radius: 50%;
  color: var(--cyan);
}

.result-icon svg {
  width: 20px;
  height: 20px;
}

.result-card h3 {
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--card-foreground);
}

.result-card p {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--muted-foreground);
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about {
  background: var(--secondary);
}

.about-grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

.about-content p {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.about-content p:first-of-type {
  margin-top: 1.5rem;
}

.about-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cyan);
  transition: color 0.2s;
}

.about-link:hover {
  color: var(--cyan-dark);
}

.about-link svg {
  width: 16px;
  height: 16px;
}

.about-visual {
  position: relative;
}

.about-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow:
  0 18px 35px rgba(0,0,0,0.18),
  0 3px 8px rgba(0,0,0,0.12);
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.about-card img {
  height: 96px;
  width: auto;
  opacity: 0.6;
}

.about-divider {
  width: 64px;
  height: 1px;
  margin-top: 1.5rem;
  background: rgba(14, 165, 233, 0.3);
}

.about-card p {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.about-decoration {
  position: absolute;
  z-index: -1;
  bottom: -14px;
  right: -14px;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(14,165,233,0.18);
  border-radius: 1rem;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact {
  background: var(--navy);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: stretch;
}

/* FIX: permite que los hijos se encojan correctamente en móvil */
.contact-grid > div {
  min-width: 0;
}

@media (max-width: 768px){
  .contact-grid{
    grid-template-columns:1fr !important;
    gap:2rem;
  }
}

@media (max-width: 1023px){
  .contact-grid{
    grid-template-columns:1fr;
    gap:2rem;
  }
}

@media (min-width: 1024px) {
  .contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 640px) 420px;
    gap: 4rem;
    justify-content: space-between;
  }
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 2.5rem;
}

.contact-info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(14, 165, 233, 0.1);
  border-radius: 0.5rem;
  color: var(--cyan);
}

.contact-info-icon svg {
  width: 16px;
  height: 16px;
}

.contact-info-item h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-foreground);
}

.contact-info-item p {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.contact-form-wrapper {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  backdrop-filter: blur(8px);
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box; /* 👈 CLAVE */
}

@media (max-width:768px){

.contact-form-wrapper{
padding:1.5rem;
}

}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--primary-foreground);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px var(--cyan);
}

.form-group textarea {
  resize: none;
  min-height: 100px;
}

.contact-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.875rem 1.5rem;
  width: 100%;
  background: var(--cyan);
  color: var(--accent-foreground);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: background 0.2s;
}

.contact-submit:hover {
  background: var(--cyan-dark);
}

.contact-submit svg {
  width: 16px;
  height: 16px;
}

.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 0;
  text-align: center;
}

.form-success.show {
  display: flex;
}

.contact-form.hidden {
  display: none;
}

.form-success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: rgba(14, 165, 233, 0.1);
  border-radius: 50%;
  color: var(--cyan);
}

.form-success-icon svg {
  width: 28px;
  height: 28px;
}

.form-success h3 {
  margin-top: 1.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-foreground);
}

.form-success p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  border-top: 1px solid var(--border);
  background: var(--background);
}

.footer-inner {
  padding: 3rem 0;
}

@media (min-width: 1024px) {
  .footer-inner {
    padding: 4rem 0;
  }
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .footer-grid {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-brand {
  max-width: 20rem;
}

.footer-brand img {
  height: 32px;
  width: auto;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.footer-nav h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--foreground);
}

.footer-nav ul {
  margin-top: 1rem;
  list-style: none;
}

.footer-nav li {
  margin-top: 0.5rem;
}

.footer-nav li:first-child {
  margin-top: 0;
}

.footer-nav a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--cyan);
}

.footer-cta {
  max-width: 16rem;
}

.footer-cta h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--foreground);
}

.footer-cta p {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.footer-cta .btn-primary {
  margin-top: 1rem;
}

.footer-bottom {
  padding-top: 2rem;
  margin-top: 3rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* ==========================================
   SVG ICONS
   ========================================== */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  fill: currentColor;
  vertical-align: middle;
}

/* ==========================================
   DEMO FULLSCREEN + BLOQUEO MÓVIL
   ========================================== */

.demo-fullscreen {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.demo-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.demo-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}


/* BLOQUEAR DEMO EN MÓVIL */
@media (max-width: 768px){

  body {
    display: none;
  }

  html::before {
    content: "Esta demo está disponible solo en ordenador";
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    font-size: 1.2rem;
    text-align: center;
    padding: 2rem;
    background: #0a1628;
    color: white;
  }

}

/* ==========================================
   DEMO LIVE (CORREGIDO Y LIMPIO)
   ========================================== */

.live-container{
  max-width:1100px;
  margin:40px auto;
}

.live-header{
  margin-bottom:20px;
}

/* LOGO (UNIFICADO) */
.logo{
  display:flex;
  align-items:center;
}

.logo-img{
  height:42px;
  object-fit:contain;
}

.logo-badge{
  font-family: "Georgia", "Times New Roman", serif;
  font-size:18px;
  font-weight:600;
  color:#111;
  letter-spacing:0.5px;
}

.logo-icon{
  width:36px;
  height:36px;
  background:linear-gradient(135deg, #1ea7ff, #0a6cff);
  border-radius:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  font-size:16px;
  color:#fff;
}

/* =========================
   LOGO ADMIN PROFESIONAL
========================= */

.logo-admin{
  position:relative;
  width:260px;
  height:auto;
}

.logo-admin-img{
  width:100%;
  display:block;
}

/* TEXTO DENTRO DEL LOGO */
.logo-admin-text{
  position:absolute;
  bottom:8px;
  left:50%;
  transform:translateX(-50%);
  width:85%;

  text-align:center;
  font-family:"Georgia","Times New Roman",serif;
  font-style:italic;
  font-size:14px;
  color:#000;
  line-height:1.2;
}

.live-subtitle{
  font-size:14px;
  opacity:0.7;
  color:#0a1628;
}

/* TARJETA */
.live-card{
  background:#08243c;
  padding:25px;
  border-radius:12px;
  position:relative;
  margin-top:20px;
}

/* TÍTULO */
.live-title{
  font-size:18px;
  margin-bottom:10px;
  color:#ffffff;
  font-weight:600;
}

.live-status{
  display:block;              /* 🔥 clave */
  width:100%;                 /* 🔥 clave */
  padding:6px 10px;
  border-radius:6px;
  font-size:13px;
  margin-bottom:10px;
  letter-spacing:0.3px;
  box-sizing:border-box;      /* 🔥 evita desbordes */
}

/* FIX ancho consistente botones */
.live-card .live-status{
  display:block;
  width:fit-content;
  min-width:260px;
  max-width:100%;
}

.live-status.red{
  background:#ff3b30;
}

.live-status.green{
  background:#34c759;
}

/* ==========================================
   WHATSAPP REAL (FLOTANTE CORRECTO)
   ========================================== */

.whatsapp-real{
  position:absolute;
  right:-60px;
  top:30px;
  width:300px;
  background:#e5ddd5;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 25px 60px rgba(0,0,0,0.6);
  transform:rotate(-2deg) scale(0.98);
  z-index:20;
}

/* CABECERA */
.wa-header{
  background:#075e54;
  color:white;
  padding:10px;
  font-size:14px;
  font-weight:600;
}

/* CHAT */
.wa-chat{
  padding:10px;
}

/* MENSAJES (UNIFICADO - SIN DUPLICADOS) */
.msg{
  max-width:75%;
  padding:8px 10px;
  margin:6px 0;
  border-radius:10px;
  font-size:13px;
  opacity:0;
  transform:translateY(10px);
}

/* RECIBIDO */
.received{
  background:white;
  color:#000;
}

/* ENVIADO */
.sent{
  background:#dcf8c6;
  margin-left:auto;
  color:#000;
}

/* ANIMACIÓN */
.msg.visible{
  opacity:1;
  transform:translateY(0);
  transition:all 0.4s ease;
}

.live-explanation{
  margin-top:25px;
  padding:25px 30px;
  background:#f5f7fb;
  border-radius:10px;
  text-align:left;
  display:none;
  max-width:720px;     /* 👈 limita ancho */
}

.explicacion-texto{
  color:#fff;
  font-size:15px;
  line-height:1.6;
  margin-bottom:20px;
  max-width:600px;     /* 👈 fuerza varias líneas */
}

.explicacion-btn{
  background:#1ea7ff;
  color:#fff;
  border:none;
  padding:11px 20px;
  border-radius:6px;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
  transition:0.2s;
}

.explicacion-btn:hover{
  background:#0a6cff;
}

.explicacion-btn:hover{
  background:#0a6cff;
}

.explicacion-impacto{
  color:#ffffff;
  font-size:18px;
  font-weight:600;
  margin-bottom:15px;
}

/* --- AIRTABLE CRM SYSTEM --- */
.crm-wrapper {
  background: white;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Pestañas superiores */
.crm-nav {
  display: flex;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  padding: 0 10px;
}

.crm-tab {
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}

.crm-tab.active {
  color: #0ea5e9;
  border-bottom-color: #0ea5e9;
  background: white;
  font-weight: 600;
}

/* Barra de herramientas (Search, Filter, Group) */
.crm-toolbar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 20px;
  background: white;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
  color: #475569;
}

/* La Cuadrícula (Grid) */
.crm-grid {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.crm-grid th {
  background: #f8fafc;
  padding: 8px 12px;
  text-align: left;
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.crm-grid td {
  padding: 10px 12px;
  border-right: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Badges de Prioridad y Categoría */
.prio-badge { padding: 2px 6px; border-radius: 3px; font-weight: 700; font-size: 11px; }
.prio-1 { background: #fee2e2; color: #991b1b; } /* Urgente */
.prio-2 { background: #fef9c3; color: #854d0e; }

.cat-badge { 
  background: #f1f5f9; 
  border: 1px solid #cbd5e1; 
  padding: 2px 6px; 
  border-radius: 3px; 
  font-size: 11px; 
}

.status-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  color: #166534;
}

