/*
Theme Name: Panóptico
Theme URI: https://panoptico.info
Author: Panópticoᵃ
Author URI: https://panoptico.info
Description: Tema minimalista para Panóptico Agencia Digital. Diseñado con DM Sans, paleta verde lima y crema.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: panoptico
Tags: minimal, agency, business, custom-colors, custom-logo, full-width-template, translation-ready
*/

/* ─── VARIABLES ─── */
:root {
  --cream:      #FFFADC;
  --lime:       #B6F500;
  --lime-mid:   #A4DD00;
  --lime-dark:  #98CD00;
  --lime-hover: rgba(182,245,0,0.5);
  --dark:       #111111;
  --mid:        #444444;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--cream);
  color: var(--dark);
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.6;
}

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

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

/* ─── CTA LINK ─── */
.cta-link {
  display: inline-block;
  font-weight: 500;
  color: var(--dark);
  text-decoration: none;
  border-bottom: 2.5px solid var(--lime);
  padding-bottom: 1px;
  transition: border-color 0.2s, background 0.2s, padding 0.2s;
  border-radius: 2px;
}
.cta-link:hover {
  border-color: var(--lime-hover);
  background: var(--lime-hover);
  padding: 0 4px 1px;
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-block;
  background: var(--dark);
  color: var(--cream);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: #2a2a2a; transform: translateY(-1px); color: var(--cream); }

/* ─── NAV ─── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 48px;
  background: rgba(255,250,220,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.06); }

.site-branding a {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--dark);
  text-decoration: none;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 36px;
}
.main-navigation ul li a {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.2s;
}
.main-navigation ul li a:hover { color: var(--dark); }

.header-cta { font-size: 0.88rem; }

/* ─── HERO ─── */
.hero-section {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 120px 48px 80px;
  gap: 60px;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -120px; right: -180px;
  width: 620px; height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--lime) 0%, transparent 68%);
  opacity: 0.25;
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 20px;
  padding: 5px 12px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 100px;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}
.hero-title em { font-style: italic; font-weight: 300; }
.hero-title .accent {
  display: inline-block;
  background: var(--lime);
  padding: 0 6px;
  border-radius: 4px;
}

.hero-body {
  font-size: 1.05rem;
  color: var(--mid);
  line-height: 1.65;
  max-width: 420px;
  margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 16px; align-items: center; }

.hero-cards { display: flex; flex-direction: column; gap: 16px; }

.stat-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 24px 28px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  animation: floatCard 6s ease-in-out infinite;
}
.stat-card:nth-child(2) { animation-delay: -2s; margin-left: 40px; }
.stat-card:nth-child(3) { animation-delay: -4s; }

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

.stat-icon {
  width: 42px; height: 42px;
  background: var(--lime);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.stat-card h3 { font-size: 1.6rem; font-weight: 600; letter-spacing: -0.03em; }
.stat-card p  { font-size: 0.82rem; color: var(--mid); margin-top: 2px; }

/* ─── TICKER ─── */
.ticker-section {
  border-top: 1px solid rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  overflow: hidden;
  background: var(--lime);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 22s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 32px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark);
  white-space: nowrap;
}
.ticker-dot {
  width: 6px; height: 6px;
  background: var(--dark);
  border-radius: 50%;
  opacity: 0.4;
}
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── SECTION COMMONS ─── */
.section-wrap { padding: 100px 48px; }

.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 18px;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px; height: 2px;
  background: var(--lime);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  max-width: 540px;
}
.section-title em { font-style: italic; font-weight: 300; }

/* ─── SERVICIOS ─── */
.servicios-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  padding: 100px 48px;
}
.services-intro .section-title { margin-bottom: 32px; }
.services-intro p { font-size: 1rem; color: var(--mid); line-height: 1.7; max-width: 380px; margin-bottom: 32px; }

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.service-card {
  background: #fff;
  padding: 28px 24px;
  cursor: default;
  transition: background 0.2s;
}
.service-card:hover { background: var(--lime); }
.service-num {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--mid);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  opacity: 0.5;
}
.service-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; line-height: 1.3; }
.service-card p  { font-size: 0.82rem; color: var(--mid); line-height: 1.6; }
.service-card:hover p { color: var(--dark); }

/* ─── CLIENTES ─── */
.clientes-wrap { text-align: center; padding: 100px 48px; }
.clientes-wrap .section-label { justify-content: center; }
.clientes-wrap .section-title { margin: 0 auto 16px; }
.clientes-wrap > .section-sub { color: var(--mid); font-size: 0.95rem; margin-bottom: 64px; }

.logos-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0;
}
.logo-item {
  flex: 0 0 16.66%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  filter: grayscale(1);
  opacity: 0.22;
  transition: opacity 0.3s, filter 0.3s;
}
.logo-item:hover { opacity: 0.65; filter: grayscale(0.3); }
.logo-item img { max-height: 40px; width: auto; object-fit: contain; }

/* Fallback SVG wordmark if no logo image */
.logo-placeholder {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  color: var(--dark);
}

/* ─── PROCESO ─── */
.proceso-wrap {
  background: var(--dark);
  color: var(--cream);
  padding: 100px 48px;
}
.proceso-wrap .section-label { color: var(--lime); }
.proceso-wrap .section-label::before { background: var(--lime); }
.proceso-wrap .section-title { color: var(--cream); margin-bottom: 64px; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.step-item {
  padding: 36px 28px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.step-num {
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: -0.05em;
  color: var(--lime);
  line-height: 1;
  margin-bottom: 20px;
}
.step-item h3 { font-size: 1rem; font-weight: 600; margin-bottom: 10px; color: var(--cream); }
.step-item p  { font-size: 0.85rem; color: rgba(255,250,220,0.55); line-height: 1.65; }

/* ─── CTA BAND ─── */
.cta-band {
  background: var(--lime);
  padding: 80px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.cta-band h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  max-width: 540px;
  line-height: 1.1;
}
.cta-band h2 em { font-style: italic; font-weight: 300; }

/* ─── FOOTER ─── */
.site-footer {
  background: var(--dark);
  color: var(--cream);
  padding: 60px 48px 40px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 32px;
}
.footer-brand .footer-logo {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--cream);
  text-decoration: none;
}
.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255,250,220,0.45);
  margin-top: 10px;
  max-width: 240px;
  line-height: 1.6;
}
.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: rgba(255,250,220,0.7);
  text-decoration: none;
  margin-bottom: 8px;
  border-bottom: 1.5px solid transparent;
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.footer-col a:hover { color: var(--cream); border-color: var(--lime); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(255,250,220,0.3); }

/* ─── WORDPRESS CONTENT STYLES ─── */
.entry-content { max-width: 760px; margin: 0 auto; padding: 80px 48px; }
.entry-content p { margin-bottom: 1.4em; color: var(--mid); line-height: 1.75; }
.entry-content h2, .entry-content h3 { margin: 1.8em 0 0.6em; }
.entry-content a { color: var(--dark); border-bottom: 2px solid var(--lime); text-decoration: none; }
.entry-content a:hover { background: var(--lime-hover); }

/* ─── ANIMATIONS ─── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .hero-section { grid-template-columns: 1fr; padding: 100px 24px 60px; }
  .hero-section::before { display: none; }
  .servicios-wrap { grid-template-columns: 1fr; gap: 48px; padding: 60px 24px; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .logo-item { flex: 0 0 33.33%; }
}

@media (max-width: 768px) {
  .site-header { padding: 18px 24px; }
  .main-navigation { display: none; }
  .section-wrap, .clientes-wrap, .proceso-wrap { padding: 60px 24px; }
  .cta-band { flex-direction: column; padding: 60px 24px; }
  .footer-top { flex-direction: column; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .steps-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
}

/* ─── HAMBURGER (MOBILE) ─── */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--dark);
}
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .main-navigation.open { display: block; position: absolute; top: 70px; left: 0; right: 0; background: var(--cream); padding: 20px 24px; border-bottom: 1px solid rgba(0,0,0,0.08); }
  .main-navigation.open ul { flex-direction: column; gap: 20px; }
}

/* ─── GUTENBERG ALIGNMENT ─── */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin: 0 auto 1em; display: block; }
