/*
Theme Name: FlowCode AI
Theme URI: https://flowcode-ai.com
Author: FlowCode AI
Description: Tema premium para Flowcode AI - Software e Inteligencia Artificial
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: flowcodeai
*/

/* ===== DESIGN SYSTEM ===== */
:root {
  --fc-bg:          #0a0a0f;
  --fc-bg-2:        #111118;
  --fc-bg-3:        #16161f;
  --fc-surface:     #1a1a27;
  --fc-surface-2:   #20202f;
  --fc-border:      rgba(255,255,255,0.07);
  --fc-border-2:    rgba(255,255,255,0.12);

  --fc-accent:      #6c63ff;
  --fc-accent-2:    #8b84ff;
  --fc-accent-glow: rgba(108,99,255,0.3);
  --fc-teal:        #176B78;
  --fc-teal-glow:   rgba(0,180,212,0.25);
  --fc-pink:        #ff6b9d;
  --fc-orange:      #ff8c42;

  --fc-text:        #f0f0f8;
  --fc-text-2:      #b0b0c8;
  --fc-text-3:      #7070a0;

  --fc-white:       #ffffff;
  --fc-black:       #000000;

  --fc-font-sans:   'Inter', system-ui, -apple-system, sans-serif;
  --fc-font-display:'Plus Jakarta Sans', var(--fc-font-sans);

  --fc-radius:      12px;
  --fc-radius-lg:   20px;
  --fc-radius-xl:   32px;

  --fc-shadow:      0 4px 24px rgba(0,0,0,0.4);
  --fc-shadow-lg:   0 12px 48px rgba(0,0,0,0.5);
  --fc-glow-accent: 0 0 40px var(--fc-accent-glow);

  --fc-transition:  0.25s cubic-bezier(0.4,0,0.2,1);
  --fc-max-width:   1200px;
  --fc-header-h:    100px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--fc-font-sans);
  background: var(--fc-bg);
  color: var(--fc-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--fc-accent-2); text-decoration: none; }
a:hover { color: var(--fc-white); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--fc-font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--fc-white);
}

.container {
  max-width: var(--fc-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-pad { padding: 96px 0; }
.section-pad-sm { padding: 64px 0; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--fc-transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--fc-accent), #9a63ff);
  color: var(--fc-white);
  box-shadow: 0 4px 20px var(--fc-accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(108,99,255,0.5);
  color: var(--fc-white);
}

.btn-secondary {
  background: transparent;
  color: var(--fc-text);
  border: 1.5px solid var(--fc-border-2);
}
.btn-secondary:hover {
  background: var(--fc-surface);
  border-color: var(--fc-accent);
  color: var(--fc-white);
}

.btn-teal {
  background: linear-gradient(135deg, var(--fc-teal), #176B78);
  color: var(--fc-black);
  font-weight: 700;
  box-shadow: 0 4px 20px var(--fc-teal-glow);
}
.btn-teal:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,180,212,0.4);
  color: var(--fc-black);
}

.btn-wa {
  background: #25d366;
  color: var(--fc-white);
  font-weight: 700;
}
.btn-wa:hover {
  background: #20bb5a;
  transform: translateY(-2px);
  color: var(--fc-white);
}

.btn-lg { padding: 18px 40px; font-size: 1.05rem; }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

/* ===== HEADER / NAV ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--fc-header-h);
  z-index: 1000;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--fc-border);
  transition: background var(--fc-transition);
}
.site-header.scrolled {
  background: rgba(10,10,15,0.97);
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--fc-header-h);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo:hover { opacity: 0.9; }

.logo-img {
  height: 88px;
  width: auto;
  max-width: 380px;
  object-fit: contain;
}

.logo-text {
  font-family: var(--fc-font-display);
  font-size: 1.3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--fc-white), var(--fc-accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Nav menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 1;
  flex-wrap: nowrap;
}
.nav-menu a {
  color: var(--fc-text-2);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 7px 9px;
  border-radius: 8px;
  transition: all var(--fc-transition);
  white-space: nowrap;
}
.nav-menu a:hover,
.nav-menu a.current {
  color: var(--fc-white);
  background: var(--fc-surface);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Hamburger */
#nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background var(--fc-transition);
}
.nav-toggle-label:hover { background: var(--fc-surface); }
.nav-toggle-label span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--fc-text);
  border-radius: 2px;
  transition: all var(--fc-transition);
}

@media (max-width: 1200px) {
  .nav-toggle-label { display: flex; }

  .nav-menu {
    display: none;
    position: fixed;
    top: var(--fc-header-h);
    left: 0; right: 0;
    background: rgba(10,10,15,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    border-bottom: 1px solid var(--fc-border);
    z-index: 999;
  }
  .nav-menu a {
    display: block;
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: 10px;
  }
  .nav-cta { display: none; }

  #nav-toggle:checked ~ .nav-menu { display: flex; }
  #nav-toggle:checked + .nav-toggle-label span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  #nav-toggle:checked + .nav-toggle-label span:nth-child(2) {
    opacity: 0;
  }
  #nav-toggle:checked + .nav-toggle-label span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--fc-header-h);
  background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(108,99,255,0.15) 0%, transparent 60%),
              var(--fc-bg);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--fc-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--fc-border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
}
.hero-orb-1 {
  width: 600px; height: 600px;
  top: -200px; right: -100px;
  background: radial-gradient(circle, rgba(108,99,255,0.2) 0%, transparent 70%);
}
.hero-orb-2 {
  width: 400px; height: 400px;
  bottom: -100px; left: -100px;
  background: radial-gradient(circle, rgba(0,180,212,0.15) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 80px 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(108,99,255,0.1);
  border: 1px solid rgba(108,99,255,0.3);
  color: var(--fc-accent-2);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  background: var(--fc-teal);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}
.hero-title .highlight {
  background: linear-gradient(135deg, var(--fc-accent-2), var(--fc-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--fc-text-2);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 40px;
  border-top: 1px solid var(--fc-border);
}
.hero-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--fc-white);
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}
.hero-stat-num span { color: var(--fc-teal); }
.hero-stat-label {
  font-size: 0.85rem;
  color: var(--fc-text-3);
  font-weight: 500;
}

/* Mascot / cat area */
.hero-mascot {
  position: absolute;
  right: 5%;
  bottom: 0;
  width: clamp(180px, 20vw, 300px);
  z-index: 3;
  pointer-events: none;
  opacity: 0.9;
}
@media (max-width: 900px) {
  .hero-mascot { display: none; }
}

/* ===== SECTION LABELS ===== */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fc-accent-2);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 24px; height: 2px;
  background: var(--fc-accent);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.section-title .grad {
  background: linear-gradient(135deg, var(--fc-accent-2), var(--fc-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--fc-text-2);
  max-width: 600px;
  line-height: 1.7;
}

.text-center { text-align: center; }
.text-center .section-desc { margin: 0 auto; }
.text-center .section-label { justify-content: center; }

/* ===== SERVICES ===== */
.services-section { background: var(--fc-bg-2); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.service-card {
  background: var(--fc-surface);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius-lg);
  padding: 32px;
  transition: all var(--fc-transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--fc-accent), var(--fc-teal));
  opacity: 0;
  transition: opacity var(--fc-transition);
}
.service-card:hover {
  border-color: rgba(108,99,255,0.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4), var(--fc-glow-accent);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 56px; height: 56px;
  background: rgba(108,99,255,0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.6rem;
  transition: background var(--fc-transition);
}
.service-card:hover .service-icon { background: rgba(108,99,255,0.2); }

.service-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--fc-white);
}
.service-desc {
  font-size: 0.9rem;
  color: var(--fc-text-2);
  line-height: 1.7;
  margin-bottom: 20px;
}
.service-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--fc-text-3);
}
.service-feature::before {
  content: '✓';
  color: var(--fc-teal);
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
}

@media (max-width: 960px) { .services-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }

/* ===== CASOS DE USO ===== */
.casos-section { background: var(--fc-bg); }

.casos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 56px;
}

.caso-card {
  background: var(--fc-surface);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius);
  padding: 24px;
  transition: all var(--fc-transition);
}
.caso-card:hover {
  border-color: rgba(0,180,212,0.3);
  background: var(--fc-surface-2);
  transform: translateY(-2px);
}

.caso-icon { font-size: 1.8rem; margin-bottom: 12px; }
.caso-sector {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--fc-teal);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.caso-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fc-white);
  margin-bottom: 8px;
}
.caso-desc {
  font-size: 0.85rem;
  color: var(--fc-text-3);
  line-height: 1.6;
}

@media (max-width: 900px) { .casos-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .casos-grid { grid-template-columns: 1fr; } }

/* ===== PROCESO ===== */
.proceso-section { background: var(--fc-bg-3); }

.proceso-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
  position: relative;
}
.proceso-steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(12.5% + 12px);
  right: calc(12.5% + 12px);
  height: 1px;
  background: linear-gradient(90deg, var(--fc-accent), var(--fc-teal));
  opacity: 0.3;
}

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

.paso-num {
  width: 72px; height: 72px;
  background: var(--fc-surface);
  border: 2px solid var(--fc-border-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.4rem;
  position: relative;
  z-index: 1;
  transition: all var(--fc-transition);
}
.proceso-step:hover .paso-num {
  border-color: var(--fc-accent);
  background: rgba(108,99,255,0.1);
  box-shadow: var(--fc-glow-accent);
}

.paso-num-label {
  position: absolute;
  top: -8px; right: -8px;
  width: 22px; height: 22px;
  background: var(--fc-accent);
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 800;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.paso-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--fc-white);
  margin-bottom: 8px;
}
.paso-desc {
  font-size: 0.85rem;
  color: var(--fc-text-3);
  line-height: 1.6;
}
.paso-time {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fc-teal);
  background: rgba(0,180,212,0.08);
  padding: 4px 10px;
  border-radius: 50px;
  border: 1px solid rgba(0,180,212,0.2);
}

@media (max-width: 800px) {
  .proceso-steps { grid-template-columns: repeat(2, 1fr); }
  .proceso-steps::before { display: none; }
}
@media (max-width: 480px) { .proceso-steps { grid-template-columns: 1fr; } }

/* ===== STUDIO / PRODUCTS ===== */
.studio-section { background: var(--fc-bg-2); }

.studio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.studio-card {
  background: var(--fc-surface);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius-lg);
  padding: 36px 28px;
  transition: all var(--fc-transition);
  position: relative;
  overflow: hidden;
}

.studio-card.featured {
  border-color: rgba(108,99,255,0.4);
  background: linear-gradient(145deg, rgba(108,99,255,0.08), var(--fc-surface));
}

.studio-card:hover {
  border-color: rgba(108,99,255,0.5);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), var(--fc-glow-accent);
}

.studio-card-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 50px;
  margin-bottom: 20px;
}
.status-dev { background: rgba(255,140,66,0.15); color: var(--fc-orange); border: 1px solid rgba(255,140,66,0.3); }
.status-soon { background: rgba(108,99,255,0.15); color: var(--fc-accent-2); border: 1px solid rgba(108,99,255,0.3); }
.status-research { background: rgba(0,180,212,0.1); color: var(--fc-teal); border: 1px solid rgba(0,180,212,0.25); }

.studio-card-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}
.studio-card-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--fc-white);
  margin-bottom: 12px;
}
.studio-card-desc {
  font-size: 0.9rem;
  color: var(--fc-text-2);
  line-height: 1.7;
  margin-bottom: 20px;
}
.studio-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.stack-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--fc-text-3);
  background: var(--fc-bg);
  border: 1px solid var(--fc-border);
  padding: 3px 10px;
  border-radius: 50px;
}

@media (max-width: 900px) { .studio-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .studio-grid { grid-template-columns: 1fr; } }

/* ===== NOSOTROS / ABOUT ===== */
.nosotros-section { background: var(--fc-bg); }

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

.nosotros-values {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 36px;
}
.valor-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--fc-surface);
  border-radius: var(--fc-radius);
  border: 1px solid var(--fc-border);
  transition: border-color var(--fc-transition);
}
.valor-item:hover { border-color: rgba(108,99,255,0.3); }
.valor-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: rgba(108,99,255,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.valor-title { font-size: 0.95rem; font-weight: 700; color: var(--fc-white); margin-bottom: 4px; }
.valor-desc { font-size: 0.85rem; color: var(--fc-text-3); line-height: 1.6; }

.nosotros-visual {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.about-card {
  background: var(--fc-surface);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius-lg);
  padding: 32px;
}
.about-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--fc-text-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  margin-bottom: 16px;
}
.about-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tech-badge {
  background: var(--fc-bg);
  border: 1px solid var(--fc-border-2);
  color: var(--fc-text-2);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all var(--fc-transition);
}
.tech-badge:hover {
  border-color: var(--fc-accent);
  color: var(--fc-accent-2);
}

@media (max-width: 860px) {
  .nosotros-inner { grid-template-columns: 1fr; gap: 48px; }
}

/* ===== BLOG ===== */
.blog-section { background: var(--fc-bg-3); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.blog-card {
  background: var(--fc-surface);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius-lg);
  overflow: hidden;
  transition: all var(--fc-transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  border-color: rgba(108,99,255,0.3);
  transform: translateY(-4px);
  box-shadow: var(--fc-shadow-lg);
}
.blog-card-img {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--fc-surface-2), var(--fc-bg));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  overflow: hidden;
}
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }

.blog-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-cat {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--fc-accent-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.blog-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--fc-white);
  margin-bottom: 12px;
  line-height: 1.4;
  flex: 1;
}
.blog-card-title a { color: inherit; }
.blog-card-title a:hover { color: var(--fc-accent-2); }
.blog-meta {
  font-size: 0.8rem;
  color: var(--fc-text-3);
  display: flex;
  gap: 12px;
}

@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .blog-grid { grid-template-columns: 1fr; } }

/* ===== TESTIMONIOS ===== */
.testi-section { background: var(--fc-bg); }
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
  margin-top: 56px;
}
.testi-card {
  background: var(--fc-surface);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius-lg);
  padding: 28px;
  transition: all var(--fc-transition);
}
.testi-card:hover {
  border-color: rgba(108,99,255,0.3);
  transform: translateY(-2px);
}
.testi-stars { color: #fbbf24; font-size: 0.9rem; margin-bottom: 16px; }
.testi-text {
  font-size: 0.92rem;
  color: var(--fc-text-2);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 20px;
}
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--fc-accent), var(--fc-teal));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: 1rem;
  flex-shrink: 0;
}
.testi-name { font-size: 0.9rem; font-weight: 700; color: var(--fc-white); }
.testi-role { font-size: 0.8rem; color: var(--fc-text-3); }
@media (max-width: 860px) { .testi-grid { grid-template-columns: 1fr; } }

/* ===== CTA BAND ===== */
.cta-section {
  background: linear-gradient(135deg, rgba(108,99,255,0.15) 0%, rgba(0,180,212,0.08) 100%);
  border-top: 1px solid var(--fc-border);
  border-bottom: 1px solid var(--fc-border);
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--fc-white);
  max-width: 600px;
}
.cta-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== CONTACTO ===== */
.contacto-section { background: var(--fc-bg-2); }
.contacto-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: flex-start;
}
.contacto-info { padding-top: 8px; }
.contacto-items { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.contacto-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--fc-surface);
  border-radius: var(--fc-radius);
  border: 1px solid var(--fc-border);
}
.contacto-item-icon {
  width: 44px; height: 44px;
  background: rgba(108,99,255,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contacto-item-label { font-size: 0.75rem; color: var(--fc-text-3); margin-bottom: 2px; }
.contacto-item-value { font-size: 0.92rem; color: var(--fc-text); font-weight: 500; }
.contacto-item-value a { color: var(--fc-text); }
.contacto-item-value a:hover { color: var(--fc-accent-2); }

.contact-form {
  background: var(--fc-surface);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius-xl);
  padding: 40px;
}
.form-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 28px; color: var(--fc-white); }
.form-group { margin-bottom: 28px !important; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fc-text-2);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--fc-bg);
  border: 1.5px solid var(--fc-border);
  border-radius: 10px;
  padding: 15px 18px;
  color: var(--fc-text);
  font-size: 0.92rem;
  font-family: inherit;
  transition: border-color var(--fc-transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--fc-accent);
  box-shadow: 0 0 0 3px rgba(108,99,255,0.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237070a0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.form-group select option { background: var(--fc-bg-2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 28px !important; }
.form-hp { display: none !important; }
.form-submit { width: 100%; justify-content: center; }
.form-success {
  display: none;
  background: rgba(0,180,212,0.1);
  border: 1px solid rgba(0,180,212,0.3);
  color: var(--fc-teal);
  padding: 16px;
  border-radius: 10px;
  margin-top: 16px;
  font-size: 0.9rem;
  text-align: center;
}
.form-success.active { display: block; }

@media (max-width: 860px) { .contacto-inner { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--fc-bg);
  border-top: 1px solid var(--fc-border);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .footer-logo { margin-bottom: 16px; }
.footer-brand .logo-img { height: 64px; }
.footer-tagline { font-size: 0.88rem; color: var(--fc-text-3); line-height: 1.6; max-width: 260px; margin-bottom: 24px; }
.footer-social { display: flex; gap: 12px; }
.social-link {
  width: 38px; height: 38px;
  background: var(--fc-surface);
  border: 1px solid var(--fc-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--fc-text-2);
  transition: all var(--fc-transition);
  text-decoration: none;
}
.social-link:hover { background: rgba(108,99,255,0.15); border-color: var(--fc-accent); color: var(--fc-accent-2); }
.social-link.social-link--brand:hover { background: rgba(234,164,62,0.15) !important; border-color: #eaa43e !important; color: #eaa43e !important; }

.footer-col-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--fc-text-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.88rem; color: var(--fc-text-3); transition: color var(--fc-transition); }
.footer-links a:hover { color: var(--fc-accent-2); }

.footer-bottom {
  border-top: 1px solid var(--fc-border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy { font-size: 0.82rem; color: var(--fc-text-3); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 0.82rem; color: var(--fc-text-3); transition: color var(--fc-transition); }
.footer-legal a:hover { color: var(--fc-text-2); }

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ===== COTIZAR FLOAT ===== */
.cotizar-float {
  position: fixed;
  bottom: 96px; right: 28px;
  z-index: 900;
  height: 48px;
  padding: 0 20px 0 14px;
  gap: 9px;
  background: #C9A227;
  border: none;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(201,162,39,0.45);
  transition: background var(--fc-transition), transform var(--fc-transition), box-shadow var(--fc-transition);
  cursor: pointer;
  color: #2D2D2F;
  text-decoration: none;
  font-family: var(--fc-font-sans);
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.cotizar-float:hover {
  background: #9A7A1A;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201,162,39,0.55);
}
.cotizar-float svg { fill: currentColor; }
/* Móvil: colapsa a solo ícono */
@media (max-width: 768px) {
  .cotizar-float {
    width: 52px; height: 52px;
    padding: 0;
    border-radius: 50%;
    gap: 0;
  }
  .cotizar-float-text { display: none; }
}

/* ===== AUDITA FLOAT ===== */
.audita-float {
  position: fixed;
  bottom: 164px; right: 28px;
  z-index: 900;
  height: 48px;
  padding: 0 20px 0 14px;
  gap: 9px;
  background: #176B78;
  border: none;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(23,107,120,0.45);
  transition: background var(--fc-transition), transform var(--fc-transition), box-shadow var(--fc-transition);
  cursor: pointer;
  color: #fff;
  text-decoration: none;
  font-family: var(--fc-font-sans);
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.audita-float:hover {
  background: #0e4a55;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(23,107,120,0.55);
}
.audita-float svg { fill: currentColor; flex-shrink: 0; }
@media (max-width: 768px) {
  .audita-float {
    width: 52px; height: 52px;
    padding: 0;
    border-radius: 50%;
    gap: 0;
  }
  .audita-float-text { display: none; }
}

/* ===== WA FLOAT ===== */
.wa-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 900;
  width: 56px; height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: all var(--fc-transition);
  text-decoration: none;
}
.wa-float:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 32px rgba(37,211,102,0.5);
}
.wa-float svg { width: 28px; height: 28px; fill: white; }

/* ===== TOMMY (AI Engine chatbot): coordinar con los flotantes existentes ===== */
/* Pila abajo-derecha, de abajo hacia arriba: WhatsApp (28px) → Empieza tu página web (96px)
   → Audita GRATIS (164px) → Tommy (232px). Cada uno con ~16-20px de aire respecto al anterior. */
.mwai-chat.mwai-bottom-right { bottom: 232px !important; right: 28px !important; }
.mwai-chatgpt-theme { --mwai-accentColor: #C9A227; }
@media (max-width: 760px) {
  /* AI Engine fuerza bottom/right en su propio media query; igualamos especificidad para que Tommy no quede encima de los demás botones */
  .mwai-chatgpt-theme.mwai-animation-zoom.mwai-window.mwai-bottom-right .mwai-trigger {
    bottom: calc(232px + env(safe-area-inset-bottom, 0)) !important;
    right: 28px !important;
  }
}

/* ===== MOBILE FIXES ===== */
@media (max-width: 600px) {
  .hero-orb { display: none; }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .cta-actions {
    width: 100%;
  }
  .cta-actions .btn {
    flex: 1;
    justify-content: center;
    min-width: 0;
    padding: 14px 16px;
    font-size: 0.88rem;
  }
  .hero-stats {
    gap: 24px;
  }
  .btn-lg {
    padding: 14px 24px;
    font-size: 0.95rem;
  }
  .nosotros-inner { gap: 32px; }
}

/* ===== SCROLL MARGIN ===== */
[id] { scroll-margin-top: calc(var(--fc-header-h) + 16px); }

/* ===== SINGLE POST ===== */
.single-post-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: calc(var(--fc-header-h) + 48px) 24px 80px;
}
.single-post-wrap .entry-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 24px;
}
.entry-content {
  color: var(--fc-text-2);
  line-height: 1.8;
  font-size: 1.05rem;
}
.entry-content h2 { color: var(--fc-white); margin: 36px 0 16px; font-size: 1.5rem; }
.entry-content h3 { color: var(--fc-white); margin: 28px 0 12px; font-size: 1.2rem; }
.entry-content p { margin-bottom: 20px; }
.entry-content ul { list-style: disc; padding-left: 24px; margin-bottom: 20px; }
.entry-content ul li { margin-bottom: 8px; }
.entry-content a { color: var(--fc-accent-2); text-decoration: underline; }
.entry-content strong { color: var(--fc-white); }

/* ===== PAGE GENÉRICA ===== */
.page-wrap {
  padding: var(--fc-header-h) 0 80px;
}
.page-hero {
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(108,99,255,0.12) 0%, transparent 60%), var(--fc-bg);
  padding: 64px 0;
  text-align: center;
  margin-bottom: 0;
}
.page-hero .page-title { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 16px; }
.page-hero .page-desc { color: var(--fc-text-2); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* ===== SERVICIOS: filas alternadas texto/ícono ===== */
@media (max-width: 860px) {
  .servicio-row { grid-template-columns: 1fr !important; gap: 32px !important; }
}

/* ===== UTILS ===== */
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.d-flex { display: flex; }
.gap-16 { gap: 16px; }
.align-center { align-items: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ===== BLOG HOME (home.php) ===== */

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.blog-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 100px;
  border: 1.5px solid var(--fc-border);
  background: transparent;
  color: var(--fc-text-2);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  font-family: inherit;
  line-height: 1;
  text-decoration: none;
}
.blog-chip:hover,
.blog-chip.active {
  background: #176B78;
  border-color: #176B78;
  color: #3a2708;
}

/* ── Paginación del blog ── */
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 52px;
  flex-wrap: wrap;
}
.page-numbers-wrap {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
}
.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1.5px solid var(--fc-border);
  color: var(--fc-text-2);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  background: transparent;
  white-space: nowrap;
}
.page-link:hover {
  border-color: #176B78;
  color: #176B78;
  background: rgba(0,180,212,0.08);
}
.page-link.current {
  background: #176B78;
  border-color: #176B78;
  color: #3a2708;
  pointer-events: none;
}
.page-prev, .page-next { font-weight: 700; }
.page-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 40px;
  color: var(--fc-text-3);
  font-size: 0.88rem;
}

.blog-featured {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  background: var(--fc-surface);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius-lg);
  overflow: hidden;
  margin-bottom: 40px;
  min-height: 340px;
}
.blog-featured-img {
  overflow: hidden;
  min-height: 300px;
}
.blog-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}
.blog-featured:hover .blog-featured-img img { transform: scale(1.04); }
.blog-featured-body {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.blog-featured-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--fc-white);
  margin: 14px 0 16px;
  line-height: 1.3;
}
.blog-featured-title a { color: inherit; text-decoration: none; }
.blog-featured-title a:hover { color: #176B78; }
.blog-featured-excerpt {
  color: var(--fc-text-2);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 28px;
  flex: 1;
}
.blog-featured-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.blog-featured-meta time {
  font-size: 0.82rem;
  color: var(--fc-text-3);
}

.blog-cat-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(0,180,212,0.15);
  color: #176B78;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.blog-card-excerpt {
  font-size: 0.86rem;
  color: var(--fc-text-2);
  line-height: 1.55;
  margin-bottom: 14px;
  flex: 1;
}
.blog-read-more {
  font-size: 0.85rem;
  font-weight: 700;
  color: #176B78;
  text-decoration: none;
  white-space: nowrap;
}
.blog-read-more:hover { text-decoration: underline; }

.page-wrap .blog-card:hover { border-color: rgba(0,180,212,0.4); }

@media (max-width: 860px) {
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured-img { min-height: 220px; max-height: 260px; }
  .blog-featured-body { padding: 28px 24px; }
  .blog-featured-title { font-size: 1.2rem; }
}
@media (max-width: 560px) {
  .blog-featured-body { padding: 20px 16px; }
  .blog-featured-title { font-size: 1.1rem; }
}
