:root {
--bg: #0b1f3b;
--bg-alt: #112d54;
--text: #ffffff;
--muted: #c0d3f7;
--secondary: #8ca9ca;
--card: rgba(17, 45, 84, 0.6);
--stroke: rgba(255, 255, 255, 0.15);
--accent: #F8A968;
--accent-text: #061121;
--glow: rgba(248, 169, 104, 0.3);
--radius-xl: 36px;
--radius-md: 22px;
--shadow-soft: 0 24px 60px rgba(44, 40, 34, 0.06);
--spacing-xs: 8px;
--spacing-sm: 16px;
--spacing-md: 24px;
--spacing-lg: 32px;
--spacing-xl: 40px;
--spacing-2xl: 60px;
--spacing-3xl: 80px;
/* Colores vibrant */
--citron: #F4D03F;
--peche: #F8A968;
--dragon: #E85D75;
--menthe: #45B577;
}

* {
box-sizing: border-box;
}

html {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body {
  margin: 0;
  padding: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background: #0b1f3b;
  color: #ffffff;
  scroll-behavior: smooth;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ===== Estilos del Popup de Cookies ===== */

  /* Fondo oscuro (overlay) */

/* Fondo oscuro (overlay) */
  .cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none !important;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .cookie-overlay.active {
    display: flex !important;
    opacity: 1;
  }

  /* Caja del popup */
  .cookie-popup {
    background: #ffffff;
    border-radius: 12px;
    max-width: 520px;
    width: 90%;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
  }

  .cookie-overlay.active .cookie-popup {
    transform: translateY(0);
  }

  .cookie-popup h2 {
    margin: 0 0 15px 0;
    color: #1a1a1a;
    font-size: 22px;
  }

  .cookie-popup p {
    color: #555;
    line-height: 1.6;
    font-size: 14px;
    margin-bottom: 20px;
  }

  /* Opciones de cookies (checkboxes apilados) */
  .cookie-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
  }

  .cookie-option {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: #f7f7f9;
    border: 1px solid #e5e5ea;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
  }

  .cookie-option:hover {
    background: #f0f0f3;
  }

  .cookie-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: #2563eb;
  }

  .cookie-option label {
    font-size: 15px;
    color: #1a1a1a;
    cursor: pointer;
    user-select: none;
    flex: 1;
  }

  .cookie-option input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.6;
  }

  .cookie-option .badge {
    font-size: 11px;
    color: #888;
    margin-left: 8px;
  }

  /* Botones */
  .cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }

  .cookie-btn {
    flex: 1;
    min-width: 140px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
  }

  .cookie-btn-accept {
    background: #2563eb;
    color: #ffffff;
  }

  .cookie-btn-accept:hover {
    background: #1d4ed8;
  }

  .cookie-btn-reject {
    background: #f3f4f6;
    color: #1a1a1a;
    border: 1px solid #d1d5db;
  }

  .cookie-btn-reject:hover {
    background: #e5e7eb;
  }

  .cookie-btn-customize {
    background: transparent;
    color: #2563eb;
    border: 1px solid #2563eb;
  }

  .cookie-btn-customize:hover {
    background: #eff6ff;
  }

  /* ===== Segundo Popup: Personalización con switches ===== */
  .cookie-category {
    padding: 16px;
    background: #f7f7f9;
    border: 1px solid #e5e5ea;
    border-radius: 8px;
    margin-bottom: 12px;
  }

  .cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
  }

  .cookie-category-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
  }

  .cookie-category-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin: 0;
  }

  /* Switch (toggle) */
  .switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
  }

  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }

  .slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
  }

  .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
  }

  .switch input:checked + .slider {
    background-color: #2563eb;
  }

  .switch input:checked + .slider:before {
    transform: translateX(20px);
  }

  .switch input:disabled + .slider {
    background-color: #93c5fd;
    cursor: not-allowed;
  }

  /* Estilos de demostración (puedes borrarlos al integrar) */
  body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 20px;
  }

  .demo-content h1 {
    font-size: 2.5rem;
  }

/* Background Animations - Animated Gradient Effect */
.bg-animations {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 0;
overflow: hidden;
pointer-events: none;
/* Dégradé animé sur des nuances profondes de bleu marine (#0b1f3b) */
background: linear-gradient(-45deg, #0b1f3b, #112d54, #061121, #1a4278);
background-size: 400% 400%;
animation: gradientFlow 15s ease-in-out infinite;
opacity: 1; 
}

@keyframes gradientFlow {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}

.blob {
position: absolute;
border-radius: 50%;
filter: blur(70px);
opacity: 1;
mix-blend-mode: multiply;
animation: floatBlob 25s infinite ease-in-out;
}

.blob-1 {
width: 800px;
height: 800px;
background: rgba(248, 169, 104, 0.6);
top: -10%;
left: -5%;
animation: floatBlob1 25s infinite ease-in-out;
}

.blob-2 {
width: 900px;
height: 900px;
background: rgba(220, 50, 80, 0.55);
bottom: -15%;
right: -10%;
animation: floatBlob2 28s infinite ease-in-out;
}

.blob-3 {
width: 750px;
height: 750px;
background: rgba(248, 169, 104, 0.5);
top: 20%;
left: 45%;
animation: floatBlob3 30s infinite ease-in-out;
}

.blob-4 {
width: 850px;
height: 850px;
background: rgba(255, 100, 80, 0.5);
bottom: 5%;
left: 10%;
animation: floatBlob4 27s infinite ease-in-out;
}

/* Étoiles du fond de l'espace (Blanc + Jaune) */
.stars-layer {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0; /* Aligné avec l'écran */
  pointer-events: none;
  z-index: 1; /* Sur le gradient natif, potentiellement par dessous ou par dessus les blobs */
}

/* Étoiles blanches classiques */
.stars-layer.stars-white {
  background-image: 
    radial-gradient(1px 1px at 25px 50px, #ffffff, transparent),
    radial-gradient(1.5px 1.5px at 150px 70px, rgba(255,255,255,0.8), transparent),
    radial-gradient(2px 2px at 250px 180px, #ffffff, transparent),
    radial-gradient(1px 1px at 320px 40px, rgba(255,255,255,0.6), transparent),
    radial-gradient(2.5px 2.5px at 40px 220px, rgba(255,255,255,0.9), transparent),
    radial-gradient(1.5px 1.5px at 450px 130px, #ffffff, transparent),
    radial-gradient(1px 1px at 180px 240px, rgba(255,255,255,0.7), transparent);
  background-size: 500px 300px;
  animation: starTwinkle 8s infinite alternate linear, moveStarsWhite 50s infinite linear;
  opacity: 0.8;
}

/* Étoiles chaudes (Jaune/Or) via tes couleurs accentuées */
.stars-layer.stars-yellow {
  background-image: 
    radial-gradient(1px 1px at 80px 120px, #F4D03F, transparent),
    radial-gradient(2px 2px at 190px 30px, rgba(244, 208, 63, 0.8), transparent),
    radial-gradient(1.5px 1.5px at 380px 190px, #F8A968, transparent),
    radial-gradient(2.5px 2.5px at 60px 280px, rgba(248, 169, 104, 0.9), transparent),
    radial-gradient(1px 1px at 280px 210px, rgba(244, 208, 63, 0.7), transparent);
  background-size: 460px 320px;
  animation: starTwinkle 6s infinite alternate-reverse linear, moveStarsYellow 60s infinite linear;
  opacity: 0.7;
}

@keyframes starTwinkle {
  0% { opacity: 0.3; }
  100% { opacity: 1; }
}

@keyframes moveStarsWhite {
  0% { background-position: 0 0; }
  100% { background-position: 500px 300px; }
}

@keyframes moveStarsYellow {
  0% { background-position: 0 0; }
  100% { background-position: -460px -320px; }
}

@keyframes floatBlob1 {
0% {
transform: translate(-50px, -80px) scale(1);
}
25% {
transform: translate(120px, -50px) scale(1.08);
}
50% {
transform: translate(50px, 100px) scale(0.92);
}
75% {
transform: translate(-80px, 60px) scale(1.05);
}
100% {
transform: translate(-50px, -80px) scale(1);
}
}

@keyframes floatBlob2 {
0% {
transform: translate(50px, 80px) scale(1);
}
25% {
transform: translate(-100px, 60px) scale(1.02);
}
50% {
transform: translate(-50px, -80px) scale(1.06);
}
75% {
transform: translate(80px, -80px) scale(0.98);
}
100% {
transform: translate(50px, 80px) scale(1);
}
}

@keyframes floatBlob3 {
0% {
transform: translate(0, 0) scale(1);
}
25% {
transform: translate(130px, -90px) scale(1.06);
}
50% {
transform: translate(-90px, 110px) scale(0.94);
}
75% {
transform: translate(60px, 50px) scale(1.04);
}
100% {
transform: translate(0, 0) scale(1);
}
}

@keyframes floatBlob4 {
0% {
transform: translate(0, 0) scale(1);
}
25% {
transform: translate(-110px, 90px) scale(1.05);
}
50% {
transform: translate(80px, -100px) scale(0.96);
}
75% {
transform: translate(-70px, -60px) scale(1.04);
}
100% {
transform: translate(0, 0) scale(1);
}
}

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

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

/* Section Background Colors - Disabled */
.section-services,
.section-agents,
.section-integrations,
.section-process {
  padding: 0px 0;
  margin: 0;
  position: relative;
  z-index: 1;
}

.page-shell {
width: min(1240px, 94vw);
margin: 0 auto;
padding: 28px 0 0px;
position: relative;
z-index: 1;
flex: 1 0 auto;
}

.navbar {
display: flex;
justify-content: space-between;
align-items: center;
gap: 16px;
margin-bottom: 20px;
padding: 12px 18px;
border-radius: 999px;
background: rgba(255, 255, 255, 0.55);
backdrop-filter: blur(10px);
border: 1px solid var(--stroke);
position: relative;
}

.page-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 40px;
padding-bottom: 24px;
border-bottom: 2px solid var(--stroke);
}

.page-title {
font-size: clamp(2rem, 5vw, 2.5rem);
font-weight: 700;
margin: 0;
color: var(--text);
letter-spacing: -0.5px;
}

.page-subtitle {
font-size: 1rem;
color: var(--secondary);
text-transform: uppercase;
letter-spacing: 0.08em;
font-weight: 600;
margin: 8px 0 0 0;
}

.page-subtitle-gris {
font-size: 1rem;
color: var(--secondary);
text-transform: uppercase;
letter-spacing: 0.08em;
font-weight: 600;
margin: 8px 0 0 0;
text-align: left;
}

.nav-links a.active {
color: var(--accent-text);
font-weight: 700;
border-bottom: 2px solid var(--accent);
padding-bottom: 4px;
}

.brand {
display: flex;
align-items: center;
gap: 12px;
text-decoration: none;
color: inherit;
font-weight: 700;
letter-spacing: 0.06em;
text-transform: uppercase;
}

.brand img {
width: 42px;
height: 42px;
object-fit: cover;
border-radius: 50%;
box-shadow: 0 0 20px var(--glow);
}

.nav-links {
display: flex;
align-items: center;
gap: 20px;
font-weight: 500;
}

.nav-links a {
color: #3074bb;
text-decoration: none;
transition: color 0.3s ease;
}

.nav-links a:hover {
color: var(--text);
}

.cta-small {
border: none;
border-radius: 999px;
background: var(--text);
color: #3074bb;
font-family: inherit;
font-weight: 700;
text-decoration: none;
padding: 11px 20px;
cursor: pointer;
transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cta-small:hover {
transform: translateY(-2px);
box-shadow: 0 10px 20px rgba(7, 12, 24, 0.28);
}

.cta-small-contact {
border: none;
border-radius: 999px;
background: #91949d;
color: #91949d;
font-family: inherit;
font-weight: 700;
text-decoration: none;
padding: 11px 32px;
transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.panel {
display: flex;
flex-direction: column;
background: rgba(255, 255, 255, 0.5);
backdrop-filter: blur(24px);
-webkit-backdrop-filter: blur(24px);
border: 1px solid rgba(255, 255, 255, 0.8);
border-radius: var(--radius-xl);
overflow: hidden;
box-shadow: 0 20px 60px rgba(44, 40, 34, 0.05);
margin-bottom: 80px;
opacity: 0;
transform: translateY(22px);
animation: reveal 0.9s ease forwards;
}

.hero-panel {
display: grid;
grid-template-columns: 1fr 1fr;
min-height: 600px;
background: linear-gradient(170deg, rgba(255, 255, 255, 0.85), rgba(244, 208, 63, 0.08), rgba(248, 169, 104, 0.06));
backdrop-filter: blur(30px);
-webkit-backdrop-filter: blur(30px);
margin-bottom: 40px;
position: relative;
z-index: 2;
}

.hero-panel .panel-content {
text-align: left;
padding: clamp(32px, 6vw, 80px);
}

.hero-panel .actions {
justify-content: flex-start;
}

.hero-panel .panel-media {
min-height: auto;
}

.trust-badge {
display: inline-flex;
align-items: center;
gap: 8px;
background: rgba(255, 255, 255, 0.7);
color: #0b1f3b; /* Ajout du texte foncé pour contraster avec le fond clair du badge */
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.8);
padding: 8px 16px;
border-radius: 999px;
font-size: 0.85rem;
font-weight: 600;
margin-bottom: 24px;
width: fit-content;
}

.features-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
gap: 24px;
margin: 0 auto 24px auto;
max-width: 1200px;
width: 100%;
padding: 0 20px;
}

.feature-card {
background: rgba(255, 255, 255, 0.55);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border: 1px solid rgba(255, 255, 255, 0.8);
border-radius: var(--radius-md);
padding: 32px;
box-shadow: 0 16px 40px rgba(44, 40, 34, 0.04);
transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
opacity: 0;
transform: translateY(30px);
position: relative;
overflow: hidden;
}

.feature-card.in-view {
animation: fadeInUp 0.8s ease forwards;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  transition: left 0.6s ease;
}

.feature-card:nth-child(1)::before {
  color: #F4D03F;
}

.feature-card:nth-child(2)::before {
  color: #F8A968;
}

.feature-card:nth-child(3)::before {
  color: #45B577;
}

.feature-card:hover::before {
  left: 100%;
}

.feature-card:nth-child(1):hover {
  background: rgba(244, 208, 63, 0.08);
  box-shadow: 0 24px 60px rgba(244, 208, 63, 0.15), inset 0 1px 0 rgba(244, 208, 63, 0.2);
}

.feature-card:nth-child(2):hover {
  background: rgba(248, 169, 104, 0.08);
  box-shadow: 0 24px 60px rgba(248, 169, 104, 0.15), inset 0 1px 0 rgba(248, 169, 104, 0.2);
}

.feature-card:nth-child(3):hover {
  background: rgba(69, 181, 119, 0.08);
  box-shadow: 0 24px 60px rgba(69, 181, 119, 0.15), inset 0 1px 0 rgba(69, 181, 119, 0.2);
}

.feature-card:nth-child(1).in-view {
  animation-delay: 0s;
}

.feature-card:nth-child(2).in-view {
  animation-delay: 0.1s;
}

.feature-card:nth-child(3).in-view {
  animation-delay: 0.2s;
}

.feature-card:hover {
transform: translateY(-6px);
}

.feature-icon {
width: 48px;
height: 48px;
background: var(--accent);
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 20px auto;
}

.eyebrow {
margin: 0;
font-size: 0.88rem;
text-transform: uppercase;
letter-spacing: 0.2em;
color: #3d4554;
font-weight: 700;
}

h1,
h2 {
margin: 0;
line-height: 1.1;
}

h1 {
font-size: clamp(1.8rem, 4.2vw, 3.1rem);
letter-spacing: 0.01em;
}

h2 {
font-size: clamp(1.7rem, 4vw, 2.8rem);
font-weight: 500;
}

.lead {
margin: 0 auto;
max-width: 640px;
font-size: clamp(1rem, 1.75vw, 1.3rem);
line-height: 1.55;
color: #1f2633;
}

.actions {
margin-top: 8px;
display: flex;
justify-content: center;
gap: 14px;
flex-wrap: wrap;
}

.btn {
border: 1px solid transparent;
border-radius: 999px;
padding: 17px 32px;
font: inherit;
font-weight: 700;
text-decoration: none;
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 240px;
transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.btn-primary {
background: var(--accent);
color: var(--accent-text);
box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.04);
}

.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 14px 24px rgba(10, 20, 34, 0.17);
background: #e7f1fb;
}

.btn-ghost {
border-color: rgba(12, 16, 25, 0.22);
color: var(--text);
background: rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
transform: translateY(-2px);
background: rgba(255, 255, 255, 0.8);
}

.footer-note {
text-align: center;
color: var(--secondary);
letter-spacing: 0.09em;
text-transform: uppercase;
margin-top: 20px;
font-size: 0.84rem;
font-weight: 500;
}

.title-section {
font-size: 2.2rem;
margin-bottom: 16px;
font-weight: 600;
}

.subtitle-section {
color: var(--muted);
max-width: 600px;
margin: 0 auto;
font-size: 0.95rem;
line-height: 1.6;
}

.footer-social {
display: flex;
justify-content: center;
align-items: center;
gap: 20px;
margin-top: 20px;
margin-bottom: 20px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(144, 40, 34, 0.1);
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(144, 40, 34, 0.1);
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link svg {
  transform: translateY(10px);
}

.social-link:hover {
background: var(--accent);
transform: translateY(-2px);
}

.contact-form {
max-width: 600px;
margin: 40px auto;
background: rgba(255, 255, 255, 0.6);
padding: 40px;
border-radius: var(--radius-md);
backdrop-filter: blur(12px);
border: 1px solid var(--stroke);
}

.form-group {
margin-bottom: 20px;
}

.form-group label {
display: block;
font-weight: 600;
margin-bottom: 8px;
color: var(--text);
}

.form-group input,
.form-group textarea {
width: 100%;
padding: 12px 16px;
border: 1px solid var(--stroke);
border-radius: 12px;
font-family: inherit;
font-size: 0.95rem;
color: var(--text);
background: rgba(255, 255, 255, 0.8);
transition: border 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
outline: none;
border-color: var(--accent);
box-shadow: 0 0 0 3px rgba(232, 212, 192, 0.2);
}

.form-group textarea {
resize: vertical;
min-height: 120px;
}

@media (max-width: 640px) {
.contact-form {
padding: 24px;
}
}

.video-panel {
display: block;
padding: 24px;
min-height: auto;
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
margin: 0 auto;
border-radius: var(--radius-md);
overflow: hidden;
box-shadow: 0 30px 80px rgba(244, 208, 63, 0.15);
border: 2px solid rgba(248, 169, 104, 0.3);
background: #000;
display: flex;
}

.video-container video {
width: 100%;
height: auto;
display: block;
}

@keyframes reveal {
to {
opacity: 1;
transform: translateY(0);
}
}

@media (max-width: 1020px) {
.hero-panel {
display: grid;
grid-template-columns: 1fr 1fr;
min-height: 600px;
background: linear-gradient(170deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.3));
backdrop-filter: blur(30px);
-webkit-backdrop-filter: blur(30px);
}
.hero-panel .panel-content {
padding: 32px 24px;
}
.navbar {
border-radius: 26px;
flex-wrap: wrap;
justify-content: center;
}
}

@media (max-width: 768px) {
.agent-profiles-grid {
  grid-template-columns: 1fr;
}
.integrations-grid {
  grid-template-columns: 1fr;
}
.features-grid {
  grid-template-columns: 1fr;
}

.page-header {
  margin-bottom: 30px;
  padding-bottom: 16px;
}

.page-title {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
}

.navbar {
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links {
  order: 3;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
}

.blob {
  filter: blur(40px);
  opacity: 0.3;
  animation: none;
}

.cursor-glow {
  display: none;
}
}

@media (max-width: 640px) {
.page-shell {
width: min(1220px, 96vw);
padding-top: 16px;
}

.panel {
display: flex;
flex-direction: column;
background: rgba(255, 255, 255, 0.5);
backdrop-filter: blur(24px);
-webkit-backdrop-filter: blur(24px);
border: 1px solid rgba(255, 255, 255, 0.8);
border-radius: var(--radius-xl);
overflow: hidden;
box-shadow: 0 20px 60px rgba(44, 40, 34, 0.05);
margin-bottom: 24px;
opacity: 0;
transform: translateY(22px);
animation: reveal 0.9s ease forwards;
}

.lead {
margin-inline: 0;
}

.actions {
justify-content: center;
}

.btn {
min-width: min(100%, 320px);
}

.hero-panel {
  grid-template-columns: 1fr;
}

.navbar {
  flex-direction: column;
  gap: 12px;
}
}


/* Cursor Glow Effect */
.cursor-glow {
position: fixed;
top: 0;
left: 0;
width: 600px;
height: 600px;
background: radial-gradient(circle, rgba(232, 212, 192, 0.4) 0%, transparent 50%);
border-radius: 50%;
pointer-events: none;
transform: translate(-50%, -50%);
z-index: 1; /* Remonté au dessus du fond mais géré via mix-blend-mode */
mix-blend-mode: multiply;
opacity: 0.8;
will-change: transform;
}

/* Fix para wrappers de grilles */
div[style*="display: flex; justify-content: center;"] {
  width: 100%;
  align-items: stretch !important;
}


/* Styles des images de cartes de fonctionnalités */
.feature-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  display: block;
}


/* Animations de chat (Home Page) */
.chat-msg {
  opacity: 0;
  transform: translateY(15px);
  animation: chatAppear 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes chatAppear {
  to { opacity: 1; transform: translateY(0); }
}

.chat-msg-1 { animation-delay: 0.5s; }

.chat-msg-typing-1 {
  opacity: 0; transform: translateY(15px);
  animation: chatAppear 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 1.2s, chatDisappear 0.2s forwards 2.8s;
}

.chat-msg-2 { animation-delay: 3s; }

.chat-msg-3 { animation-delay: 5.5s; }

.chat-msg-typing-2 {
  opacity: 0; transform: translateY(15px);
  animation: chatAppear 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 6.2s, chatDisappear 0.2s forwards 8.2s;
}

@keyframes chatDisappear {
  to { opacity: 0; margin: 0; padding: 0; height: 0; overflow: hidden; display: none; }
}

.chat-msg-4 { animation-delay: 8.4s; }

.typing-dots {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
  height: 10px;
}
.typing-dots span {
  width: 6px;
  height: 6px;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  animation: dotBounce 1.4s infinite ease-in-out both;
}
.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes dotBounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}


/* Section Integraciones */
.integrations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 0 auto;
  max-width: 1200px;
  width: 100%;
  padding: 0 20px;
}

.integration-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid var(--stroke);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.02);
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  position: relative;
  overflow: hidden;
}

.integration-card.in-view {
  animation: fadeInUp 0.8s ease forwards;
}

/* Fondos con gradientes sutiles */
.integration-card:nth-child(1) {
  border-color: #E1306C;
  background: linear-gradient(135deg, rgba(225, 48, 108, 0.08) 0%, rgba(255, 255, 255, 0.6) 100%);
}

.integration-card:nth-child(2) {
  border-color: #0077b5;
  background: linear-gradient(135deg, rgba(0, 119, 181, 0.08) 0%, rgba(255, 255, 255, 0.6) 100%);
}

.integration-card:nth-child(3) {
  border-color: #1877F2;
  background: linear-gradient(135deg, rgba(24, 119, 242, 0.08) 0%, rgba(255, 255, 255, 0.6) 100%);
}

.integration-card:nth-child(4) {
  border-color: #F4B400;
  background: linear-gradient(135deg, rgba(244, 180, 0, 0.08) 0%, rgba(255, 255, 255, 0.6) 100%);
}

/* Línea superior animada */
.integration-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.integration-card:nth-child(1)::before {
  color: #E1306C;
}

.integration-card:nth-child(2)::before {
  color: #0077b5;
}

.integration-card:nth-child(3)::before {
  color: #1877F2;
}

.integration-card:nth-child(4)::before {
  color: #F4B400;
}

.integration-card:hover::before {
  transform: scaleX(1);
}

/* Efectos de brillo al hover */
.integration-card:nth-child(1):hover {
  background: linear-gradient(135deg, rgba(225, 48, 108, 0.15) 0%, rgba(255, 255, 255, 0.8) 100%);
  box-shadow: 0 24px 60px rgba(225, 48, 108, 0.25), inset 0 1px 0 rgba(225, 48, 108, 0.3);
  border-color: #E1306C;
}

.integration-card:nth-child(2):hover {
  background: linear-gradient(135deg, rgba(0, 119, 181, 0.15) 0%, rgba(255, 255, 255, 0.8) 100%);
  box-shadow: 0 24px 60px rgba(0, 119, 181, 0.25), inset 0 1px 0 rgba(0, 119, 181, 0.3);
  border-color: #0077b5;
}

.integration-card:nth-child(3):hover {
  background: linear-gradient(135deg, rgba(24, 119, 242, 0.15) 0%, rgba(255, 255, 255, 0.8) 100%);
  box-shadow: 0 24px 60px rgba(24, 119, 242, 0.25), inset 0 1px 0 rgba(24, 119, 242, 0.3);
  border-color: #1877F2;
}

.integration-card:nth-child(4):hover {
  background: linear-gradient(135deg, rgba(244, 180, 0, 0.15) 0%, rgba(255, 255, 255, 0.8) 100%);
  box-shadow: 0 24px 60px rgba(244, 180, 0, 0.25), inset 0 1px 0 rgba(244, 180, 0, 0.3);
  border-color: #F4B400;
}

.integration-card:nth-child(1).in-view {
  animation-delay: 0s;
}

.integration-card:nth-child(2).in-view {
  animation-delay: 0.1s;
}

.integration-card:nth-child(3).in-view {
  animation-delay: 0.2s;
}

.integration-card:nth-child(4).in-view {
  animation-delay: 0.3s;
}

.integration-card:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: currentColor;
}

.integration-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 16px;
}

.integration-icon {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: all 0.4s ease;
  animation: float 3s ease-in-out infinite;
}

.integration-title {
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.integration-card:hover .integration-title {
  transform: translateY(-4px);
}

.integration-subtitle {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.integration-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.integration-desc {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 24px;
  flex-grow: 1;
}

.integration-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  background: rgba(0,0,0,0.04);
  padding: 8px 16px;
  border-radius: 20px;
  width: fit-content;
  transition: background 0.2s ease;
  margin: 0 auto;
}

.integration-link:hover {
  background: rgba(0,0,0,0.08);
}

.integration-card:hover .integration-icon {
  transform: scale(1.2) rotate(-5deg);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

/* Step list animations and styling */
.step-example {
  background: rgba(255,255,255,0.4);
  padding: 15px;
  border-radius: 12px;
  margin: 15px auto 0 auto;
  text-align: left;
  font-size: 0.9rem;
  border-left: 3px solid var(--accent-text);
  max-width: 400px;
}
.step-example ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.step-example li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
}
.step-example li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-text);
  font-weight: bold;
}
.step-example li:last-child {
  margin-bottom: 0;
}

/* FAQ Accordion */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.faq-item {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}
.faq-item[open] {
  background: #ffffff;
  box-shadow: 0 8px 30px rgba(0,0,0,0.05);
}
.faq-summary {
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  list-style: none; /* Hide default arrow */
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
  margin: 0;
}
.faq-summary::-webkit-details-marker {
  display: none;
}
.faq-summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--accent-text);
  font-weight: 400;
  transition: transform 0.3s ease;
}
.faq-item[open] .faq-summary::after {
  content: '−';
  transform: rotate(90deg);
}
.faq-content {
  padding: 0 24px 24px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
  border-top: 1px solid transparent;
}
.faq-item[open] .faq-content {
  border-top: 1px solid var(--stroke);
  padding-top: 20px;
  animation: fadeIn 0.4s ease-in-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Agent Profile Cards (Like Feature Cards) */
.agent-profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto 60px auto;
  width: 100%;
  padding: 0 20px;
}

.agent-profile-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.01) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--text);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
  position: relative;
}

.agent-profile-card.in-view {
  animation: fadeInUp 0.8s ease forwards;
}

.agent-profile-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(180deg, currentColor, transparent);
  opacity: 0;
  transition: height 0.4s ease, opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.agent-profile-card:nth-child(1)::after {
  color: rgba(244, 208, 63, 0.3);
}

.agent-profile-card:nth-child(2)::after {
  color: rgba(232, 93, 117, 0.3);
}

.agent-profile-card:nth-child(3)::after {
  color: rgba(69, 181, 119, 0.3);
}

.agent-profile-card:hover::after {
  height: 100px;
  opacity: 1;
}

.agent-profile-card:nth-child(1):hover {
  box-shadow: 0 24px 60px rgba(244, 208, 63, 0.2);
}

.agent-profile-card:nth-child(2):hover {
  box-shadow: 0 24px 60px rgba(232, 93, 117, 0.2);
}

.agent-profile-card:nth-child(3):hover {
  box-shadow: 0 24px 60px rgba(69, 181, 119, 0.2);
}

.agent-profile-card:nth-child(1).in-view {
  animation-delay: 0s;
}

.agent-profile-card:nth-child(2).in-view {
  animation-delay: 0.1s;
}

.agent-profile-card:nth-child(3).in-view {
  animation-delay: 0.2s;
}

.agent-profile-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  border-color: rgba(248, 169, 104, 0.4);
}

.agent-img-wrapper {
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  height: 220px;
  overflow: hidden;
}

.agent-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.agent-profile-info {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  flex-grow: 1;
}

.agent-profile-info .agent-subtitle {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: -4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.agent-profile-info .agent-name {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.agent-profile-info .agent-desc {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

.agent-profile-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  width: 100%;
}

.agent-profile-btn:hover {
  background: rgba(248, 169, 104, 0.1);
  border-color: rgba(248, 169, 104, 0.4);
  color: #F8A968;
}/* Mode Mobile */
@media (max-width: 768px) {
  .agent-profile-card {
    flex-direction: column;
  }
  .agent-img-wrapper {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .agent-profile-info {
    padding: 30px 24px;
  }
  .agent-profile-btn {
    align-self: stretch;
  }
  
  /* Optimizaciones de performance para mobile */
  .agent-profiles-grid {
    grid-template-columns: 1fr;
  }
  .integrations-grid {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  /* Desactiva animaciones costosas en móvil */
  .blob {
    filter: blur(40px);
    opacity: 0.3;
    animation: none;
  }
  .cursor-glow {
    display: none;
  }
}




