/*
Theme Name: Kairos Landing
Version: 1.0.0
*/
:root{--bg:#ffffff;--surface:#f9fafb;--border:#e5e7eb;--ink:#0f172a;--muted:#667085;--primary:#0b3b5e;--primary-ink:#07233b;--accent:#0b3b5e;--radius:16px;--radius-sm:12px;--shadow:0 8px 24px rgba(2, 6, 23, .08)}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--ink);font-family:system-ui,-apple-system,"Segoe UI",Roboto,Ubuntu,"Helvetica Neue",Arial,sans-serif;line-height:1.6}
a{text-decoration:none;color:var(--ink)}
img{max-width:100%;height:auto}
.container{max-width:1200px;margin:0 auto;padding:0 20px}
.topbar{position:fixed;top:0;left:0;right:0;z-index:999;border-bottom:1px solid var(--border);background:#ffffff;transform:none}
.topbar.floating{box-shadow:0 8px 24px rgba(2,6,23,.08)}
.topbar-inner{display:flex;align-items:center;justify-content:space-between;height:64px;will-change:transform}
.brand{font-weight:800;color:var(--primary);display:flex;gap:8px;align-items:center}
.brand .tagline{font-weight:600;color:var(--muted);font-size:14px}
.mini-icons{display:flex;gap:10px}
.mini-icons a{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border:1px solid var(--border);border-radius:999px;color:var(--muted);background:#ffffff;transition:transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease, color .12s ease}
.mini-icons a svg{width:18px;height:18px;display:block;fill:currentColor}
.mini-icons a:focus{outline:2px solid var(--accent);outline-offset:2px}
.mini-icons a:hover{box-shadow:var(--shadow);transform:translateY(-1px)}
.mini-icons a.wa:hover{background:#25D366;border-color:#25D366;color:#ffffff}
.mini-icons a.ig:hover{background:#E4405F;border-color:#E4405F;color:#ffffff}
.mini-icons a.fb:hover{background:#1877F2;border-color:#1877F2;color:#ffffff}
.mini-icons a.mail:hover{background:#0b3b5e;border-color:#0b3b5e;color:#ffffff}
.hero{position:relative;min-height:50vh;display:flex;align-items:center}
.hero-image{background-size:cover;background-position:center}
.hero .overlay{position:absolute;inset:0;background:linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.25));pointer-events:none;z-index:0}
.hero-inner{position:relative;z-index:1}
.hero-inner{display:grid;grid-template-columns:1fr;gap:24px;align-items:center}
.hero-content{max-width:880px;margin:0 auto;text-align:center;padding:28px}
.h1{font-size:clamp(28px,4vw,44px);font-weight:800;margin:0;color:#ffffff;text-align:center}
.sub{font-size:clamp(20px,2.6vw,24px);color:#e5e7eb;margin-top:12px;text-align:center;font-weight:600;line-height:1.5;letter-spacing:.2px;text-shadow:0 1px 2px rgba(0,0,0,.35)}
.section{padding:56px 0}
.section h2{font-size:clamp(22px,3vw,30px);margin:0 0 16px 0;color:#0b3b5e}
.cards{display:grid;grid-template-columns:repeat(1,1fr);gap:18px}
@media(min-width:700px){.cards{grid-template-columns:repeat(3,1fr)}}
.card{background:#ffffff;border:1px solid var(--border);border-radius:var(--radius);padding:18px;display:flex;flex-direction:column;gap:14px;box-shadow:var(--shadow);transition:transform .12s ease, box-shadow .12s ease}
.card:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(2,6,23,.12)}
.card h3{margin:0;font-size:18px;color:#0b3b5e}
.card p{margin:0;color:var(--muted);font-size:14px}
.card-price{color:#0b3b5e;font-weight:800;font-size:16px}
.card-img{width:100%;height:200px;border-radius:var(--radius-sm);background:#eef2f7;overflow:hidden;position:relative;}
.card-badge { position:absolute; top:12px; left:12px; background:rgba(255, 255, 255, 0.95); color:#e11d48; border: 2px solid #e11d48; padding:4px 10px; border-radius:8px; font-weight:800; font-size:12px; text-transform:uppercase; z-index:1; box-shadow: 0 4px 6px rgba(0,0,0,0.1); letter-spacing: 0.5px; }
.card-img img{width:100%;height:100%;object-fit:cover}
.card .btn{margin-top:auto}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 14px;border-radius:12px;font-weight:600;text-decoration:none;transition:transform .12s ease, box-shadow .12s ease, background .12s ease, color .12s ease, border-color .12s ease}
.btn:focus{outline:2px solid var(--accent);outline-offset:2px}
.btn:hover{transform:translateY(-1px);box-shadow:var(--shadow)}
.btn-secondary{background:#ffffff;border:1px solid var(--border);color:var(--primary)}
.btn-secondary:hover{background:var(--primary);border-color:var(--primary);color:#ffffff}
.footer{padding:28px 0;border-top:1px solid var(--border);color:var(--muted);font-size:14px;background:var(--surface)}
.footer-inner{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between}
.links{display:flex;flex-wrap:wrap;gap:12px}
.topbar-spacer{height:64px}

/* Secciones Dinámicas */
.kairos-search-container { display: flex; justify-content: center; margin: 20px 0; }
.search-form { position: relative; }
.search-wrapper { display: flex; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 50px; overflow: hidden; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); width: 44px; height: 44px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.search-wrapper:hover, .search-wrapper:focus-within, .search-wrapper.is-active { width: 300px; border-color: var(--primary); }
.search-icon-btn { background: transparent; border: none; color: var(--primary); width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; outline: none; padding: 0; }
.search-icon-btn svg { width: 20px; height: 20px; fill: currentColor; }
.search-field { flex: 1; border: none; background: transparent; padding: 0 16px 0 0; font-size: 15px; outline: none; opacity: 0; transition: opacity 0.3s ease; width: 100%; color: var(--ink); }
.search-wrapper:hover .search-field, .search-wrapper:focus-within .search-field, .search-wrapper.is-active .search-field { opacity: 1; }
.search-field::placeholder { color: var(--muted); }
.custom-content { background: #fff; padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
.custom-content p { margin-top: 0; color: var(--muted); }
.custom-content p:last-child { margin-bottom: 0; }

/* Tabs / Menu Sections */
.tabs-header-container { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tabs-nav-wrapper { background: #ffffff; border-bottom: 1px solid var(--border); box-shadow: 0 2px 10px rgba(0,0,0,0.03); position: relative; }
.sidebar-header, .sidebar-watermark, .hamburger-btn, .sidebar-overlay, .tabs-sidebar, .sidebar-search { display: none; }
.tabs-nav { display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 12px 0; flex: 1; scroll-behavior: smooth; }
.header-search { flex-shrink: 0; margin-left: auto; }
.tabs-nav::-webkit-scrollbar { display: none; }
.tab-button { background: transparent; border: none; padding: 10px 16px; font-size: 15px; font-weight: 600; color: var(--muted); cursor: pointer; border-radius: var(--radius-sm); white-space: nowrap; transition: all 0.2s ease; outline: none; flex-shrink: 0; }
.tab-button:hover { background: var(--surface); color: var(--ink); }
.tab-button.active { background: var(--primary); color: #ffffff; box-shadow: var(--shadow); }
.tab-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tab-pane { display: none; animation: fadeIn 0.3s ease; padding-top: 20px; }
.tab-pane.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

@media(max-width: 600px) {
  .tabs-header-container { padding: 12px 20px; display: block; }
  
  .desktop-search, .main-tabs { display: none !important; }

  /* Menú Hamburguesa (Botón Ancho) */
  .hamburger-btn { display: flex; align-items: center; justify-content: flex-start; width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; color: var(--ink); padding: 12px 16px; cursor: pointer; font-size: 16px; font-weight: 600; gap: 12px; margin: 0; position: relative; }
  
  /* El texto dinámico se maneja ahora desde HTML/JS, así que ocultamos el pseudo-elemento */
  .hamburger-btn::after { display: none; }
  
  /* Icono de flecha hacia abajo (para indicar que es un menú desplegable) */
  .hamburger-btn svg.dropdown-icon { margin-left: auto; width: 20px; height: 20px; color: var(--muted); }

  /* Lupa en Sidebar */
  .sidebar-search { display: block; padding: 0 16px 12px; }
  .sidebar-search .search-wrapper { display: flex; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; width: 100%; height: 44px; }
  .sidebar-search .search-field { flex: 1; border: none; background: transparent; padding: 0 12px; font-size: 15px; outline: none; width: 100%; color: var(--ink); opacity: 1; }

  .sidebar-overlay { display: block; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(15, 23, 42, 0.6); z-index: 1000; opacity: 0; visibility: hidden; transition: opacity 0.3s ease; }
  .sidebar-overlay.active { opacity: 1; visibility: visible; }
  
  .tabs-sidebar { display: flex; flex-direction: column; position: fixed; top: 0; left: -290px; width: 280px; height: 100vh; height: 100dvh; background: #ffffff; z-index: 1001; transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 8px 0 30px rgba(0,0,0,0.15); border-radius: 0 20px 20px 0; align-items: stretch; }
  .tabs-sidebar.open { left: 0; }
  
  .sidebar-header { display: flex; justify-content: space-between; align-items: center; padding: 24px 20px 16px; border-bottom: none; width: 100%; }
  .sidebar-title { font-weight: 900; font-size: 22px; color: var(--primary); letter-spacing: -0.5px; }
  .close-sidebar-btn { background: var(--surface); border: 1px solid var(--border); border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--ink); cursor: pointer; transition: all 0.2s ease; padding: 0; line-height: 1; }
  .close-sidebar-btn:hover { background: #eef2f7; color: var(--primary); }
  
  .sidebar-tabs { display: flex; flex-direction: column; padding: 12px 16px; gap: 8px; overflow-y: auto; align-items: stretch; width: 100%; }
  .sidebar-tabs .tab-button { display: block; width: 100%; text-align: left; padding: 14px 18px; border-bottom: none; border-radius: 12px; font-size: 16px; color: var(--ink); font-weight: 600; transition: all 0.2s ease; border: 1px solid transparent; background: transparent; }
  .sidebar-tabs .tab-button:hover { background: var(--surface); }
  .sidebar-tabs .tab-button.active { background: #f0f6fa; color: var(--primary); border-color: #dbeafe; font-weight: 800; box-shadow: inset 0 2px 4px rgba(11, 59, 94, 0.03); }
  
  .sidebar-watermark { display: block; margin-top: auto; padding: 20px; text-align: center; font-size: 13px; color: var(--muted); font-weight: 600; background: #f9fafb; border-top: 1px solid var(--border); border-radius: 0 0 20px 0; width: 100%; }
}

/* ==========================================================================
   Banner de Cookies (Flotante y Compacto)
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 800px; /* Reducido drásticamente */
  margin: 0 auto; /* Centrado en pantallas grandes */
  background-color: #ffffff;
  box-shadow: 0 10px 40px rgba(11, 59, 94, 0.15); 
  z-index: 9999;
  border-radius: 12px;
  border-left: 4px solid var(--primary);
  transform: translateY(150%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-container {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.cookie-icon {
  flex-shrink: 0;
  color: var(--primary);
  background: #f0f6fa;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-content {
  flex-grow: 1;
}

.cookie-content h3 {
  font-size: 14px;
  color: var(--ink);
  margin: 0 0 4px 0;
  font-weight: 800;
}

.cookie-content p {
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
  margin: 0 0 8px 0;
}

.cookie-content p:last-child {
  margin-bottom: 0;
}

.cookie-highlight {
  font-size: 11px;
  background: #f8fafc;
  padding: 8px 12px;
  border-radius: 6px;
  border-left: 2px solid var(--accent);
}

.cookie-content a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.2s ease;
}

.cookie-content a:hover {
  color: var(--accent);
}

.cookie-actions {
  flex-shrink: 0;
  display: flex;
  gap: 10px;
  flex-direction: column;
  justify-content: center;
}

.cookie-btn {
  padding: 10px 24px;
  font-size: 13px;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(34, 113, 177, 0.15); /* Sombra azul claro por defecto */
  transition: all 0.3s ease;
  border-radius: 6px;
  width: 100%;
}

.cookie-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(34, 113, 177, 0.4); /* Sombra azul más fuerte en hover */
}

/* Optimización para Tabletas y Móviles */
@media (max-width: 992px) {
  .cookie-container {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  
  .cookie-icon {
    display: none;
  }
  
  .cookie-actions {
    width: 100%;
  }
  
  .cookie-btn {
    width: 100%;
    text-align: center;
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .cookie-banner {
    bottom: 16px;
    left: 16px;
    right: 16px;
  }
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  transition: box-shadow 0.3s ease;
}
.faq-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 20px 24px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  outline: none;
  transition: color 0.3s ease;
}
.faq-question:hover {
  color: var(--primary);
}
.faq-question:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}
.faq-icon {
  width: 24px;
  height: 24px;
  color: var(--muted);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-question.active .faq-icon {
  transform: rotate(180deg);
  color: var(--primary);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  background: #fafbfc;
  border-top: 1px solid transparent;
}
.faq-question.active + .faq-answer {
  border-top-color: var(--border);
}
.faq-answer-inner {
  padding: 0 24px 20px 24px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}
.faq-answer-inner p {
  margin: 0 0 10px 0;
}
.faq-answer-inner p:last-child {
  margin-bottom: 0;
}

