/*
Theme Name: Strategia
Theme URI: https://hablemosdestrategia.com
Author: STRATEGIA Consultoría & Innovación
Author URI: https://hablemosdestrategia.com
Description: Tema personalizado para STRATEGIA Consultoría & Innovación. Diseño moderno, profesional y orientado a la conversión.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: Privado
Text Domain: strategia
*/

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #143260;
  --teal:    #00a8aa;
  --navy-dark: #0a1e3d;
  --teal-dark: #007f80;
  --teal-light: #4ecbcd;
  --white:   #ffffff;
  --gray-50: #f8fafc;
  --gray-100:#f1f5f9;
  --gray-200:#e2e8f0;
  --gray-600:#4b5563;
  --gray-800:#1f2937;
  --gradient: linear-gradient(135deg, var(--navy) 0%, #0e5070 50%, var(--teal) 100%);
  --gradient-h: linear-gradient(90deg, var(--navy) 0%, var(--teal) 100%);
  --font-sans: &#039;Poppins&#039;, -apple-system, BlinkMacSystemFont, &#039;Segoe UI&#039;, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(20,50,96,.12);
  --shadow-lg: 0 8px 32px rgba(20,50,96,.18);
  --radius:   12px;
  --radius-lg: 20px;
  --transition: .25s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal-dark); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto 56px;
  line-height: 1.7;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  letter-spacing: .3px;
}

.btn-primary {
  background: var(--gradient-h);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(0,168,170,.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,168,170,.45);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover {
  background: var(--navy-dark);
  color: var(--white);
  transform: translateY(-2px);
}

/* =============================================
   HEADER / NAVBAR
   ============================================= */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: all .35s ease;
  padding: 20px 0;
}

#site-header.scrolled {
  background: rgba(10,30,61,.97);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo img,
.site-logo .custom-logo {
  height: 70px !important;
  width: auto !important;
  max-width: 220px !important;
  display: block !important;
}

/* WordPress custom logo wrapper */
.site-logo .custom-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

/* Hide site title/description (we use logo) */
.site-title,
.site-description {
  display: none;
}

.site-logo .logo-text {
  display: flex;
  flex-direction: column;
}

.logo-wordmark {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 5px;
  background: linear-gradient(90deg, #fff 0%, rgba(0,168,170,.9) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  text-transform: uppercase;
}

.logo-tagline {
  font-size: .58rem;
  font-weight: 400;
  letter-spacing: 3px;
  color: rgba(255,255,255,.65);
  text-transform: uppercase;
  margin-top: 2px;
}

nav.main-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
}

nav.main-nav a {
  color: rgba(255,255,255,.85);
  font-size: .88rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  transition: all var(--transition);
  letter-spacing: .3px;
}
nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--teal-light);
  background: rgba(255,255,255,.06);
}

.nav-cta {
  background: var(--teal) !important;
  color: var(--white) !important;
  border-radius: 50px !important;
  padding: 8px 20px !important;
  font-weight: 600 !important;
}
.nav-cta:hover {
  background: var(--teal-dark) !important;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all .3s;
}

/* =============================================
   HERO SECTION
   ============================================= */
#hero {
  min-height: 100vh;
  background: var(--navy-dark);
  background-image:
    radial-gradient(ellipse at 70% 50%, rgba(0,168,170,.18) 0%, transparent 60%),
    radial-gradient(ellipse at 10% 80%, rgba(20,50,96,.8) 0%, transparent 50%),
    linear-gradient(160deg, #0a1e3d 0%, #143260 50%, #0a2a40 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

/* Animated grid background */
#hero::before {
  content: &#039;&#039;;
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,168,170,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,168,170,.06) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: translateY(0); }
  100% { transform: translateY(60px); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,168,170,.15);
  border: 1px solid rgba(0,168,170,.3);
  color: var(--teal-light);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.hero-badge::before {
  content: &#039;&#039;;
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(1.3); }
}

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 24px;
}

.hero-title .highlight {
  background: linear-gradient(90deg, var(--teal-light), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,.72);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 32px;
}

.stat-item strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--teal-light);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-item span {
  font-size: .8rem;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Hero visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(0,168,170,.2);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  padding: 32px;
  width: 100%;
  max-width: 420px;
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.hero-card-icon {
  width: 44px;
  height: 44px;
  background: var(--gradient-h);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.hero-card-header h3 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.hero-card-header p {
  color: rgba(255,255,255,.5);
  font-size: .78rem;
}

.diagnostic-preview {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.diag-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.diag-label {
  color: rgba(255,255,255,.75);
  font-size: .82rem;
  width: 130px;
  flex-shrink: 0;
}

.diag-bar-wrap {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,.1);
  border-radius: 3px;
  overflow: hidden;
}

.diag-bar {
  height: 100%;
  border-radius: 3px;
  background: var(--gradient-h);
  animation: barGrow 1.5s ease-out forwards;
  transform-origin: left;
}

@keyframes barGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.diag-score {
  color: var(--teal-light);
  font-size: .8rem;
  font-weight: 600;
  width: 36px;
  text-align: right;
}

.hero-card-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-card-footer span {
  color: rgba(255,255,255,.5);
  font-size: .78rem;
}

.card-cta {
  background: var(--teal);
  color: var(--white) !important;
  font-size: .8rem !important;
  padding: 8px 18px !important;
  border-radius: 50px;
  font-weight: 600;
  transition: all var(--transition);
}
.card-cta:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
}

/* =============================================
   SERVICIOS
   ============================================= */
#servicios {
  padding: 100px 0;
  background: var(--gray-50);
}

#servicios .section-header {
  text-align: center;
  margin-bottom: 64px;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.servicio-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
}

.servicio-card::before {
  content: &#039;&#039;;
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-h);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}

.servicio-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(0,168,170,.2);
}

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

.servicio-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(20,50,96,.08), rgba(0,168,170,.12));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.servicio-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.servicio-card p {
  font-size: .9rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 20px;
}

.servicio-link {
  font-size: .85rem;
  font-weight: 600;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}
.servicio-link:hover { gap: 10px; }

/* =============================================
   DIAGNÓSTICO GRATUITO
   ============================================= */
#diagnostico {
  padding: 100px 0;
  background: var(--navy-dark);
  position: relative;
  overflow: hidden;
}

#diagnostico::before {
  content: &#039;&#039;;
  position: absolute;
  top: -100px; right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0,168,170,.12) 0%, transparent 70%);
}

#diagnostico::after {
  content: &#039;&#039;;
  position: absolute;
  bottom: -100px; left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(20,50,96,.5) 0%, transparent 70%);
}

#diagnostico .section-title { color: var(--white); }
#diagnostico .section-subtitle { color: rgba(255,255,255,.65); }
#diagnostico .section-header { text-align: center; position: relative; z-index: 2; }

.diagnostico-areas {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.area-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(0,168,170,.18);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  transition: all .3s ease;
  cursor: default;
}

.area-card:hover {
  background: rgba(0,168,170,.1);
  border-color: rgba(0,168,170,.4);
  transform: translateY(-3px);
}

.area-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
  display: block;
}

.area-card h4 {
  color: var(--white);
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.4;
}

.diagnostico-cta {
  position: relative;
  z-index: 2;
  text-align: center;
}

.diagnostico-cta p {
  color: rgba(255,255,255,.6);
  font-size: .95rem;
  margin-top: 16px;
}

/* =============================================
   AGENTE EMMANUEL
   ============================================= */
#agente {
  padding: 100px 0;
  background: var(--white);
}

.agente-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.agente-content .section-title { text-align: left; }
.agente-content .section-subtitle {
  text-align: left;
  margin-left: 0;
  margin-bottom: 32px;
}

.agente-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.feature-check {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: .75rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-item p {
  font-size: .95rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.feature-item strong {
  color: var(--navy);
  display: block;
  margin-bottom: 2px;
}

.agente-preview {
  position: relative;
}

.agente-window {
  background: var(--navy-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0,168,170,.2);
}

.agente-topbar {
  background: rgba(255,255,255,.04);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.agente-avatar {
  width: 34px;
  height: 34px;
  background: var(--gradient-h);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: white;
}

.agente-topbar-info h4 {
  color: var(--white);
  font-size: .88rem;
  font-weight: 600;
}
.agente-topbar-info span {
  color: var(--teal-light);
  font-size: .72rem;
  display: flex;
  align-items: center;
  gap: 5px;
}
.agente-topbar-info span::before {
  content: &#039;&#039;;
  width: 5px;
  height: 5px;
  background: #4caf50;
  border-radius: 50%;
  display: inline-block;
}

.agente-chat {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
}

.msg {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: .84rem;
  line-height: 1.5;
}

.msg-bot {
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.88);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.msg-user {
  background: var(--teal);
  color: var(--white);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

.agente-input-bar {
  padding: 14px 16px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  gap: 10px;
}

.agente-input-bar input {
  flex: 1;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50px;
  padding: 8px 16px;
  color: rgba(255,255,255,.7);
  font-size: .82rem;
  font-family: var(--font-sans);
  outline: none;
}

.agente-send {
  width: 34px;
  height: 34px;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  color: white;
  font-size: .85rem;
  transition: background var(--transition);
}
.agente-send:hover { background: var(--teal-dark); }

/* =============================================
   CONTACTO / AGENDA
   ============================================= */
#contacto {
  padding: 100px 0;
  background: var(--gray-50);
}

#contacto .section-header { text-align: center; }

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}

.contacto-info h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
}

.contacto-methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  text-decoration: none;
  transition: all var(--transition);
}

.contact-method:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.contact-method-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-method-icon.wa { background: #e8f8e8; }
.contact-method-icon.email { background: linear-gradient(135deg, rgba(20,50,96,.08), rgba(0,168,170,.12)); }
.contact-method-icon.linkedin { background: #e8f0f8; }

.contact-method-text strong {
  display: block;
  color: var(--navy);
  font-size: .92rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.contact-method-text span {
  color: var(--gray-600);
  font-size: .82rem;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 42px;
  height: 42px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition);
  text-decoration: none;
}

.social-link:hover {
  border-color: var(--teal);
  background: rgba(0,168,170,.06);
  transform: translateY(-2px);
}

.calendly-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  min-height: 500px;
}

/* =============================================
   FOOTER
   ============================================= */
#site-footer {
  background: var(--navy-dark);
  padding: 60px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-brand .logo-wordmark { font-size: 1.2rem; }
.footer-brand .logo-tagline { margin-bottom: 16px; }

.footer-brand p {
  color: rgba(255,255,255,.5);
  font-size: .88rem;
  line-height: 1.7;
  max-width: 300px;
  margin-bottom: 24px;
}

.footer-col h4 {
  color: var(--white);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .5px;
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  color: rgba(255,255,255,.5);
  font-size: .85rem;
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-col ul li a::before {
  content: &#039;›&#039;;
  color: var(--teal);
  font-size: 1rem;
}
.footer-col ul li a:hover { color: var(--teal-light); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  color: rgba(255,255,255,.35);
  font-size: .8rem;
}

.footer-bottom a {
  color: rgba(255,255,255,.35);
  font-size: .8rem;
  text-decoration: none;
  transition: color var(--transition);
}
.footer-bottom a:hover { color: var(--teal-light); }

/* =============================================
   FLOATING AGENT BUTTON
   ============================================= */
.fab-agent {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 62px;
  height: 62px;
  background: var(--gradient-h);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 24px rgba(0,168,170,.45), 0 0 0 0 rgba(0,168,170,.4);
  cursor: pointer;
  text-decoration: none;
  color: white;
  animation: fabPulse 3s ease-in-out infinite;
  transition: transform var(--transition);
}
.fab-agent:hover {
  transform: scale(1.1);
  color: white;
}

@keyframes fabPulse {
  0%, 100% { box-shadow: 0 4px 24px rgba(0,168,170,.45), 0 0 0 0 rgba(0,168,170,.4); }
  50% { box-shadow: 0 4px 24px rgba(0,168,170,.45), 0 0 0 12px rgba(0,168,170,0); }
}

.fab-tooltip {
  position: absolute;
  right: 72px;
  white-space: nowrap;
  background: var(--navy-dark);
  color: var(--white);
  font-size: .78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid rgba(0,168,170,.3);
  pointer-events: none;
  opacity: 0;
  transform: translateX(8px);
  transition: all .2s ease;
}

.fab-agent:hover .fab-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* =============================================
   MODAL AGENT
   ============================================= */
.agent-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(5,15,35,.7);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.agent-modal.open { display: flex; }

.agent-modal-inner {
  width: 100%;
  max-width: 480px;
  height: 680px;
  background: var(--navy-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0,168,170,.25);
  box-shadow: 0 24px 64px rgba(0,0,0,.5);
  display: flex;
  flex-direction: column;
  animation: modalIn .3s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(.95) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.agent-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-avatar {
  width: 36px;
  height: 36px;
  background: var(--gradient-h);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: white;
}

.modal-title-group h3 {
  color: var(--white);
  font-size: .9rem;
  font-weight: 600;
}

.modal-title-group span {
  color: var(--teal-light);
  font-size: .72rem;
  display: flex;
  align-items: center;
  gap: 5px;
}
.modal-title-group span::before {
  content: &#039;&#039;;
  width: 5px;
  height: 5px;
  background: #4caf50;
  border-radius: 50%;
}

.modal-close {
  background: none;
  border: none;
  color: rgba(255,255,255,.5);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all var(--transition);
  line-height: 1;
}
.modal-close:hover { background: rgba(255,255,255,.08); color: var(--white); }

.agent-modal iframe {
  flex: 1;
  width: 100%;
  border: none;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 992px) {
  .servicios-grid { grid-template-columns: repeat(2, 1fr); }
  .diagnostico-areas { grid-template-columns: repeat(3, 1fr); }
  .agente-inner { grid-template-columns: 1fr; gap: 48px; }
  .contacto-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .servicios-grid { grid-template-columns: 1fr; }
  .diagnostico-areas { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { gap: 24px; }

  nav.main-nav { display: none; }
  nav.main-nav.open {
    display: block;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(10,30,61,.98);
    padding: 16px 24px 24px;
    border-top: 1px solid rgba(255,255,255,.08);
  }
  nav.main-nav.open ul { flex-direction: column; }
  nav.main-nav.open a { display: block; padding: 10px 0; }
  .menu-toggle { display: flex; }

  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .agent-modal-inner { height: 90vh; }
  .fab-agent { bottom: 20px; right: 20px; }
}

@media (max-width: 480px) {
  .diagnostico-areas { grid-template-columns: repeat(2, 1fr); }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}


/* Logo visibility fix - drop shadow so it stands out against dark bg */
.site-logo img,
.site-logo .custom-logo {
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.55)) drop-shadow(0 0 2px rgba(255,255,255,0.35));
}

/* Panel nav buttons - realistic depth effect */
#str-hero > div[style*="position:absolute"] > a {
  background: linear-gradient(160deg, rgba(255,255,255,0.13) 0%, rgba(255,255,255,0.06) 100%) !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  border-top-color: rgba(255,255,255,0.28) !important;
  border-bottom-color: rgba(0,0,0,0.25) !important;
  box-shadow:
    0 6px 20px rgba(0,0,0,0.35),
    0 2px 6px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -1px 0 rgba(0,0,0,0.15) !important;
  transition: all 0.2s ease !important;
  transform: translateY(0) !important;
}
#str-hero > div[style*="position:absolute"] > a:hover {
  background: linear-gradient(160deg, rgba(255,255,255,0.18) 0%, rgba(0,168,170,0.12) 100%) !important;
  box-shadow:
    0 10px 28px rgba(0,0,0,0.4),
    0 4px 10px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.22),
    inset 0 -1px 0 rgba(0,0,0,0.15) !important;
  transform: translateY(-2px) !important;
  border-color: rgba(0,168,170,0.45) !important;
}
/* Agenda gratis button (last one, blue) */
#str-hero > div[style*="position:absolute"] > a:last-child {
  background: linear-gradient(160deg, rgba(0,163,255,0.35) 0%, rgba(0,120,200,0.25) 100%) !important;
  border-color: rgba(0,163,255,0.5) !important;
  box-shadow:
    0 6px 20px rgba(0,120,200,0.35),
    0 2px 6px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.2),
    inset 0 -1px 0 rgba(0,0,0,0.2) !important;
}
#str-hero > div[style*="position:absolute"] > a:last-child:hover {
  box-shadow:
    0 10px 28px rgba(0,120,200,0.45),
    0 4px 10px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.25),
    inset 0 -1px 0 rgba(0,0,0,0.2) !important;
  transform: translateY(-2px) !important;
}

/* Hide logo from header only on homepage - lives in left panel there */
.home #site-header .site-logo {
  display: none !important;
}

/* Inner pages: style header logo to match the panel button */
body:not(.home) #site-header .site-logo {
  background: linear-gradient(160deg, rgba(255,255,255,0.13) 0%, rgba(255,255,255,0.06) 100%);
  border: 1px solid rgba(255,255,255,0.22);
  border-top-color: rgba(255,255,255,0.30);
  border-bottom-color: rgba(0,0,0,0.20);
  box-shadow: 0 6px 20px rgba(0,0,0,0.35), 0 2px 6px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.18);
  border-radius: 12px;
  padding: 10px 18px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}
body:not(.home) #site-header .site-logo:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.4), 0 4px 10px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.22);
  border-color: rgba(0,168,170,0.45);
}
body:not(.home) #site-header .site-logo img,
body:not(.home) #site-header .site-logo .custom-logo {
  height: 40px !important;
  filter: none !important;
}

/* Mobile hero fix */
/* Fix overlay blocking clicks on all screen sizes */
.str-hero-overlay {
  pointer-events: none !important;
}
.str-container {
  position: relative;
  z-index: 2;
}

@media (max-width: 992px) {
  .str-container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  #str-hero > div[style*="position:absolute"] {
    display: none !important;
  }
}
@media (max-width: 480px) {
  .str-hero-title {
    font-size: clamp(1.3rem, 7vw, 1.7rem) !important;
    white-space: normal !important;
    word-break: break-word !important;
    max-width: 100% !important;
  }
  .str-hero-sub, .str-hero-note { max-width: 100% !important; }
}

/* Hide ticker/trust bar */
#str-trust { display: none !important; }

/* =============================================
   STR-HERO VIDEO FIX - restored after accidental deletion
   ============================================= */
#str-hero {
  position: relative;
  overflow: hidden !important;
  min-height: 100vh;
}
#str-hero video {
  position: absolute !important;
  top: 0; left: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  z-index: 0 !important;
  pointer-events: none;
}
#str-hero .str-hero-overlay,
#str-hero > div[style*="position:absolute"][style*="z-index:10"],
#str-hero > div[style*="position:absolute"][style*="z-index: 10"] {
  z-index: 1;
}
#str-hero .str-container {
  position: relative;
  z-index: 2;
}
/* Nav panel buttons - text color fix */
#str-hero > div[style*="position:absolute"] > a {
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 12px 16px !important;
  border-radius: 10px !important;
  text-decoration: none !important;
  font-size: .9rem !important;
  font-weight: 500 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* =============================================
   GOOGLE FONT - Playfair Display (serif títulos)
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800&display=swap');

/* =============================================
   SECTION TITLES - serif font + two colors
   ============================================= */
.section-title,
.ck-title,
.str-hdr h2,
#str-cockpit h2,
#str-prc .prc-full-title,
.prc-full-title {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-weight: 800 !important;
}
.section-title .highlight,
.ck-title .highlight,
.str-hdr h2 em,
h2 .teal, h2 em {
  color: var(--teal) !important;
  font-style: normal !important;
}

/* =============================================
   HERO OVERLAY - restore blue tint
   ============================================= */
.str-hero-overlay {
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(135deg, rgba(10,30,61,0.82) 0%, rgba(10,30,61,0.5) 55%, rgba(0,40,60,0.25) 100%) !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

/* =============================================
   HERO TEXT & BUTTON - fix sizing
   ============================================= */
.str-hero-title {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: clamp(2rem, 4.5vw, 3.4rem) !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  color: #fff !important;
  margin-bottom: 20px !important;
}
.str-hero-sub {
  font-size: 1rem !important;
  color: rgba(255,255,255,0.82) !important;
  line-height: 1.7 !important;
  margin-bottom: 28px !important;
  max-width: 560px !important;
}
.str-hero-cta, a.str-hero-cta, .str-btn-primary {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 14px 32px !important;
  background: linear-gradient(90deg, var(--navy), var(--teal)) !important;
  color: #fff !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  font-size: .95rem !important;
  text-decoration: none !important;
  box-shadow: 0 4px 20px rgba(0,168,170,.35) !important;
  transition: all .25s ease !important;
  margin-bottom: 16px !important;
}
.str-hero-cta:hover { transform: translateY(-2px) !important; box-shadow: 0 8px 28px rgba(0,168,170,.45) !important; color: #fff !important; }
.str-hero-note { color: rgba(255,255,255,0.6) !important; font-size:.85rem !important; }

/* =============================================
   STR-METHOD - Cómo trabajamos
   ============================================= */
#str-method {
  padding: 90px 0;
  background: linear-gradient(160deg, #0a1e3d 0%, #143260 60%, #0a2a40 100%);
  position: relative;
}
#str-method .str-hdr { text-align: center; margin-bottom: 56px; }
#str-method .str-hdr .eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--teal-light);
  margin-bottom: 12px;
}
#str-method .str-hdr h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: #fff; margin-bottom: 14px;
}
#str-method .str-hdr p { color: rgba(255,255,255,.65); font-size: 1rem; max-width: 600px; margin: 0 auto; }
#str-method .str-divider { width: 60px; height: 3px; background: var(--gradient-h); margin: 20px auto 0; border-radius: 2px; }
#str-method .method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
#str-method .method-step {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(0,168,170,.2);
  border-radius: 16px;
  padding: 32px 24px;
  position: relative;
  transition: all .3s ease;
}
#str-method .method-step:hover {
  background: rgba(0,168,170,.1);
  border-color: rgba(0,168,170,.4);
  transform: translateY(-4px);
}
#str-method .method-num {
  font-size: 2.5rem; font-weight: 900;
  color: rgba(0,168,170,.3); line-height: 1;
  margin-bottom: 16px;
  font-family: 'Playfair Display', Georgia, serif;
}
#str-method .method-step h3 { color: #fff; font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
#str-method .method-step p { color: rgba(255,255,255,.65); font-size: .88rem; line-height: 1.7; }
@media(max-width:768px) { #str-method .method-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width:480px) { #str-method .method-grid { grid-template-columns: 1fr; } }

/* =============================================
   STR-AGENTE - Emmanuel AI
   ============================================= */
#str-agente {
  padding: 90px 0;
  background: var(--white);
}
#str-agente .agente-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
#str-agente .agente-eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--teal);
  margin-bottom: 12px; display: block;
}
#str-agente .agente-inner h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--navy); margin-bottom: 16px;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 800;
}
#str-agente .agente-inner h2 em { color: var(--teal); font-style: normal; }
#str-agente .agente-inner > div > p {
  color: var(--gray-600); font-size: 1rem; line-height: 1.7; margin-bottom: 28px;
}
#str-agente .agente-features { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
#str-agente .feature-item { display: flex; align-items: flex-start; gap: 12px; }
#str-agente .feature-check {
  width: 26px; height: 26px; flex-shrink: 0; margin-top: 2px;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .7rem;
}
#str-agente .feature-item p { color: var(--gray-600); font-size: .92rem; line-height: 1.6; }
#str-agente .feature-item strong { color: var(--navy); display: block; margin-bottom: 2px; }
/* Chat preview window */
#str-agente .agente-window {
  background: var(--navy-dark); border-radius: 16px;
  overflow: hidden; box-shadow: 0 8px 32px rgba(20,50,96,.18);
  border: 1px solid rgba(0,168,170,.2);
}
#str-agente .agente-topbar {
  background: rgba(255,255,255,.04); padding: 14px 20px;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
#str-agente .agente-avatar {
  width: 34px; height: 34px; background: linear-gradient(90deg,var(--navy),var(--teal));
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: #fff; flex-shrink: 0;
}
#str-agente .agente-topbar h4 { color: #fff; font-size: .88rem; font-weight: 600; }
#str-agente .agente-topbar span { color: var(--teal-light); font-size: .72rem; display: flex; align-items: center; gap: 5px; }
#str-agente .agente-topbar span::before { content:''; width:5px; height:5px; background:#4caf50; border-radius:50%; display:inline-block; }
#str-agente .agente-chat { padding: 20px; display: flex; flex-direction: column; gap: 12px; min-height: 200px; }
#str-agente .msg { max-width: 78%; padding: 10px 14px; border-radius: 12px; font-size: .84rem; line-height: 1.5; }
#str-agente .msg-bot { background: rgba(255,255,255,.07); color: rgba(255,255,255,.88); border-bottom-left-radius: 4px; align-self: flex-start; }
#str-agente .msg-user { background: var(--teal); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
#str-agente .agente-input-bar {
  padding: 12px 16px; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; gap: 10px;
}
#str-agente .agente-input-bar input {
  flex: 1; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 50px; padding: 8px 16px; color: rgba(255,255,255,.7);
  font-size: .82rem; outline: none; font-family: var(--font-sans);
}
#str-agente .agente-send {
  width: 34px; height: 34px; background: var(--teal); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none; color: #fff; font-size: .85rem;
}
@media(max-width:768px) { #str-agente .agente-inner { grid-template-columns: 1fr; gap: 40px; } }

/* =============================================
   HERO - center content horizontally & vertically
   ============================================= */
#str-hero {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 100vh !important;
}
#str-hero .str-container {
  position: relative;
  z-index: 2;
  padding-left: 300px !important; /* leave room for the left panel */
  padding-right: 40px !important;
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  display: flex !important;
  align-items: center !important;
  min-height: 100vh !important;
}
#str-hero .str-hero-content {
  max-width: 640px !important;
}
@media (max-width: 992px) {
  #str-hero .str-container {
    padding-left: 24px !important;
    padding-right: 24px !important;
    justify-content: center !important;
    text-align: center !important;
  }
  #str-hero .str-hero-content {
    max-width: 100% !important;
  }
  .str-hero-sub { margin-left: auto !important; margin-right: auto !important; }
  .str-hero-cta { margin-left: auto !important; margin-right: auto !important; }
}

/* Hide native video player showing outside hero */
#str-hero video {
  position: absolute !important;
  top: 0 !important; left: 0 !important;
  width: 100% !important; height: 100% !important;
  object-fit: cover !important;
  z-index: 0 !important;
  pointer-events: none !important;
  display: block !important;
}
#str-hero {
  overflow: hidden !important;
}

/* Hide orphan video player (vmod-box) */
.vmod-box, .vmod-box video { display: none !important; }

/* =============================================
   HERO - full width text, no max-width cap
   ============================================= */
#str-hero .str-hero-content {
  max-width: 100% !important;
  width: 100% !important;
}
#str-hero .str-hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem) !important;
  max-width: 100% !important;
}
#str-hero .str-container {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* =============================================
   HERO - TRUE full width, panel floats on top
   ============================================= */
#str-hero .str-container {
  padding-left: 260px !important;  /* keep panel space */
  padding-right: 60px !important;
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
  display: block !important;
  min-height: 100vh !important;
  display: flex !important;
  align-items: center !important;
}
#str-hero .str-hero-content {
  width: 100% !important;
  max-width: 100% !important;
}
#str-hero .str-hero-title {
  font-size: clamp(2.8rem, 5.5vw, 5rem) !important;
  line-height: 1.1 !important;
  white-space: normal !important;
  max-width: 100% !important;
  width: 100% !important;
}
#str-hero .str-hero-sub {
  font-size: 1.1rem !important;
  max-width: 100% !important;
}
@media (max-width: 992px) {
  #str-hero .str-container {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
}

/* Hero content - center text across full available width */
#str-hero .str-hero-content,
#str-hero .str-hero-title,
#str-hero .str-hero-sub,
#str-hero .str-hero-note {
  text-align: center !important;
}
#str-hero .str-hero-cta {
  display: inline-flex !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
#str-hero .str-container {
  text-align: center !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
}

/* =============================================
   UNIFIED TITLE STYLE - Playfair Display + teal em
   ============================================= */
.ck-title,
.ck-title em,
.section-title,
.section-title em,
.str-hdr h2,
.str-hdr h2 em,
#str-galeria h2,
#str-galeria h2 em,
.prc-full-title,
.prc-full-title em {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-weight: 800 !important;
  font-style: normal !important;
}
.ck-title em,
.section-title em,
.str-hdr h2 em,
#str-galeria h2 em,
.prc-full-title em {
  color: var(--teal) !important;
}
/* PRC title: sentence case, not uppercase */
.prc-full-title {
  text-transform: none !important;
  font-size: clamp(1rem, 1.8vw, 1.4rem) !important;
  letter-spacing: 0.5px !important;
}

/* Hide emm-float section */
#emm-float, .emm-float, #emmOverlay, #emmFrame { display: none !important; }