/*
Theme Name: Cracks Creative Theme
Theme URI: https://crackscreative.com
Author: Cracks Creative Team
Author URI: https://crackscreative.com
Description: Tema premium personalizado para Cracks Creative Agency. Estilo oscuro, cristal esmerilado (glassmorphism) y animaciones fluidas.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cracks-creative
*/

/* ── Gelion Font Family ───────────────────────────── */
@font-face {
  font-family: 'Gelion';
  src: url('fonts/Gelion-Thin.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gelion';
  src: url('fonts/Gelion-ThinItalic.ttf') format('truetype');
  font-weight: 100;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Gelion';
  src: url('fonts/Gelion-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gelion';
  src: url('fonts/Gelion-LightItalic.ttf') format('truetype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Gelion';
  src: url('fonts/Gelion-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gelion';
  src: url('fonts/Gelion-RegularItalic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Gelion';
  src: url('fonts/Gelion-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gelion';
  src: url('fonts/Gelion-MediumItalic.ttf') format('truetype');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Gelion';
  src: url('fonts/Gelion-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gelion';
  src: url('fonts/Gelion-SemiBoldItalic.ttf') format('truetype');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Gelion';
  src: url('fonts/Gelion-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gelion';
  src: url('fonts/Gelion-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Gelion';
  src: url('fonts/Gelion-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gelion';
  src: url('fonts/Gelion-BlackItalic.ttf') format('truetype');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* ── Brand Tokens & Variables ─────────────────────────── */
:root {
  --red: #D61B26;
  --orange: #DC5809;
  --yellow: #FAB600;
  --black: #00020F;
  --red-glow: rgba(214, 27, 38, 0.35);
  --orange-glow: rgba(220, 88, 9, 0.30);
  --primary-glow: rgba(214, 27, 38, 0.15);
  --secondary-glow: rgba(220, 88, 9, 0.15);
}

/* ── Scroll Behavior & Scrollbars ──────────────────────── */
html {
  scroll-behavior: smooth;
  scrollbar-color: #353534 #131313;
  scrollbar-width: thin;
  background: var(--black);
}

/* Custom Scrollbar for Webkit */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #131313;
}
::-webkit-scrollbar-thumb {
  background: #2a2a2a;
  border-radius: 9999px;
  border: 2px solid #131313;
}
::-webkit-scrollbar-thumb:hover {
  background: #3a3939;
}

/* ── Base Styles ───────────────────────────────────────── */
body {
  background: var(--black);
  color: #F5F5F5;
  font-family: 'Gelion', 'Inter', sans-serif;
  font-weight: 400;
  overflow-x: hidden;
}

h1 {
  font-family: 'Gelion', sans-serif;
  font-weight: 900;
}
h2 {
  font-family: 'Gelion', sans-serif;
  font-weight: 700;
}
h3, h4, .font-brand {
  font-family: 'Gelion', sans-serif;
  font-weight: 600;
}

/* ── Glassmorphism ──────────────────────────────────────── */
.glass {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: border-color 0.3s, background-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.glass:hover {
  border-color: rgba(220, 88, 9, 0.35);
  background: rgba(255, 255, 255, 0.065);
}

/* Redesigned Glass Card (style.css fallback) */
.glass-card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(225, 253, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass-card:hover {
  border-color: rgba(220, 88, 9, 0.35);
  background: rgba(255, 255, 255, 0.065);
  box-shadow: 0 20px 40px -15px rgba(220, 88, 9, 0.15);
  transform: translateY(-4px);
}

/* ── Buttons ────────────────────────────────────────────── */
.btn-fire {
  background: linear-gradient(135deg, var(--red) 0%, var(--orange) 100%);
  box-shadow: 0 0 22px var(--red-glow);
  transition: box-shadow 0.3s, transform 0.2s;
  color: #fff;
}
.btn-fire:hover {
  box-shadow: 0 0 36px var(--orange-glow);
  transform: scale(1.03);
}

.btn-yellow {
  background: var(--yellow);
  box-shadow: 0 0 18px rgba(250, 182, 0, 0.25);
  transition: box-shadow 0.3s, transform 0.2s;
  color: var(--black);
}
.btn-yellow:hover {
  box-shadow: 0 0 32px rgba(250, 182, 0, 0.4);
  transform: scale(1.03);
}

.btn-whatsapp {
  background: #25D366;
  box-shadow: 0 0 18px rgba(37, 211, 102, 0.30);
  transition: box-shadow 0.3s, transform 0.2s;
  color: #fff;
}
.btn-whatsapp:hover {
  box-shadow: 0 0 30px rgba(37, 211, 102, 0.50);
  transform: scale(1.03);
}

.btn-outline {
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: #F5F5F5;
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s;
}
.btn-outline:hover {
  border-color: var(--orange);
  background: rgba(220, 88, 9, 0.10);
  transform: scale(1.03);
}

.btn-gradient {
  background: linear-gradient(135deg, var(--red) 0%, var(--orange) 100%);
  box-shadow: 0 0 20px rgba(214, 27, 38, 0.25);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: #fff;
}
.btn-gradient:hover {
  box-shadow: 0 0 30px rgba(220, 88, 9, 0.45);
  transform: scale(1.03) translateY(-1px);
}
.btn-gradient:active {
  transform: scale(0.98);
}

/* ── Typography & Gradient Text ─────────────────────────── */
.text-fire {
  background: linear-gradient(135deg, var(--red) 0%, var(--orange) 50%, var(--yellow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.divider {
  width: 56px;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--orange), var(--yellow));
  border-radius: 99px;
}

.glow-icon {
  filter: drop-shadow(0 0 8px rgba(220, 88, 9, 0.4));
}

/* ── Hero & Background Glows ────────────────────────────── */
.hero-glow {
  background: radial-gradient(circle at 50% 60%, rgba(214, 27, 38, 0.10) 0%, transparent 65%);
}

.bg-s0 { background: #00020F; }
.bg-s1 { background: #080812; }
.bg-s2 { background: #0F0F1A; }

/* ── Cards ──────────────────────────────────────────────── */
.service-card {
  transition: transform 0.35s, box-shadow 0.35s;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(220, 88, 9, 0.18);
}

.blog-card {
  transition: opacity 0.3s, transform 0.3s, box-shadow 0.35s;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(220, 88, 9, 0.15);
}

/* ── Category Badges (Blog) ─────────────────────────────── */
.badge-marketing {
  background: rgba(214, 27, 38, 0.18);
  color: #ff6b6b;
  border: 1px solid rgba(214, 27, 38, 0.30);
}
.badge-contenido {
  background: rgba(220, 88, 9, 0.18);
  color: #ffab76;
  border: 1px solid rgba(220, 88, 9, 0.30);
}
.badge-diseño {
  background: rgba(250, 182, 0, 0.15);
  color: #FAB600;
  border: 1px solid rgba(250, 182, 0, 0.28);
}

/* ── Filter Tabs ────────────────────────────────────────── */
.tab-btn {
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.25s;
  cursor: pointer;
}
.tab-btn:hover {
  border-color: rgba(220, 88, 9, 0.4);
  color: #fff;
  background: rgba(220, 88, 9, 0.08);
}
.tab-btn.active {
  background: linear-gradient(135deg, var(--red), var(--orange));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 18px var(--red-glow);
}

/* ── Input Elements ─────────────────────────────────────── */
.input-glass, input:not([type="submit"]):not([type="checkbox"]), select, textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #fff;
  transition: all 0.3s;
}
.input-glass:focus, input:not([type="submit"]):focus, select:focus, textarea:focus {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--orange) !important;
  box-shadow: 0 0 15px rgba(220, 88, 9, 0.15);
  outline: none;
}
.input-glass::placeholder {
  color: rgba(255, 255, 255, 0.3);
}
.input-glass option {
  background: var(--black);
  color: #fff;
}

/* ── Material Symbols & Icons ────────────────────────────── */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.icon-filled {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ── Animations ─────────────────────────────────────────── */
@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}
.floating-element {
  animation: float 6s ease-in-out infinite;
}

/* Rocket decoration */
.rocket-deco {
  position: absolute;
  pointer-events: none;
  opacity: 0.06;
}

/* ── Scroll Reveal ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible, .reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1, .reveal-delay-100 { transition-delay: 100ms; }
.reveal-delay-2, .reveal-delay-200 { transition-delay: 200ms; }
.reveal-delay-3, .reveal-delay-300 { transition-delay: 300ms; }
.reveal-delay-400 { transition-delay: 400ms; }

/* ── Navigation Active & Hover Underlines ───────────────── */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--yellow));
  transition: width 0.3s ease;
}
.nav-link.nav-active::after,
.nav-link:hover::after {
  width: 100%;
}
.nav-active {
  color: var(--yellow) !important;
}

/* Mobile Menu */
#mobile-menu {
  display: none;
}
#mobile-menu.open {
  display: flex;
}

/* ── Floating WhatsApp ─────────────────────────────────── */
#wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
#wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 32px rgba(37, 211, 102, 0.60);
}
#wa-float svg {
  width: 30px;
  height: 30px;
  fill: white;
}
#wa-float::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.5);
  animation: pulse-ring 2s ease-out infinite;
}
@keyframes pulse-ring {
  0% { opacity: 0.8; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.45); }
}

/* ── Carousel Slider ────────────────────────────────────── */
.carousel-outer {
  position: relative;
  overflow: hidden;
}
.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.carousel-slide {
  flex: 0 0 100%;
  padding: 0 12px;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .carousel-slide {
    flex: 0 0 33.333%;
  }
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  z-index: 10;
}
.carousel-btn:hover {
  background: rgba(220, 88, 9, 0.2);
  border-color: var(--orange);
  color: #fff;
}
.carousel-btn.prev { left: -18px; }
.carousel-btn.next { right: -18px; }
@media (max-width: 767px) {
  .carousel-btn.prev { left: 0; }
  .carousel-btn.next { right: 0; }
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.18);
  border: none;
  cursor: pointer;
  transition: background 0.3s, width 0.3s;
}
.carousel-dot.active {
  background: var(--orange);
  width: 24px;
}

/* ── Stat Card & Count Up ──────────────────────────────── */
.stat-card {
  text-align: center;
  padding: 20px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: border-color 0.3s, background 0.3s;
}
.stat-card:hover {
  border-color: rgba(220, 88, 9, 0.35);
  background: rgba(220, 88, 9, 0.05);
}

/* ── Marquee ────────────────────────────────────────────── */
.marquee-wrap {
  overflow: hidden;
}
.marquee-inner {
  display: flex;
  gap: 48px;
  animation: marquee 18s linear infinite;
  width: max-content;
}
.marquee-inner:hover {
  animation-play-state: paused;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── Redesigned Footer Helper Classes ── */
.footer-social {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color .2s, border-color .2s, background .2s, transform .2s;
}
.footer-social:hover {
  color: var(--hover, #fff);
  border-color: var(--hover, rgba(255,255,255,0.4));
  background: rgba(255,255,255,0.07);
  transform: translateY(-3px);
}

.footer-link {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color .2s, padding-left .2s;
  display: flex; align-items: center; gap: 6px;
}
.footer-link::before {
  content: '';
  display: inline-block;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--red), var(--yellow));
  border-radius: 99px;
  transition: width .25s;
  flex-shrink: 0;
}
.footer-link:hover { color: #fff; }
.footer-link:hover::before { width: 14px; }

.footer-contact-item {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.footer-contact-icon {
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid;
  display: flex; align-items: center; justify-content: center;
}

/* Cinematic Video Modal */
.modal-overlay {
  transition: opacity 0.3s ease;
}
.modal-content-container {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

/* ══════════════════════════════════════════════════════════
   ESTILOS DEL CUERPO DEL ARTÍCULO (Single Post)
   ══════════════════════════════════════════════════════════ */
.article-body {
  font-size: 1.075rem;
  color: rgba(245, 245, 245, 0.80);
  line-height: 1.7;
}
.article-body h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #F5F5F5;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.25;
}
.article-body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #F5F5F5;
  margin-top: 2rem;
  margin-bottom: .75rem;
}
.article-body p {
  margin-bottom: 1.35rem;
}
.article-body a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.article-body a:hover {
  color: var(--yellow);
}
.article-body strong {
  color: #F5F5F5;
  font-weight: 600;
}
.article-body em {
  font-style: italic;
  color: rgba(245, 245, 245, 0.70);
}

/* Lists */
.article-body ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.article-body ul li {
  padding-left: 1.5rem;
  position: relative;
}
.article-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--orange));
  flex-shrink: 0;
}
.article-body ol {
  list-style: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.article-body ol li::marker {
  color: var(--orange);
  font-weight: 700;
}

/* Blockquote */
.article-body blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--orange);
  background: rgba(220, 88, 9, 0.07);
  border-radius: 0 12px 12px 0;
  color: rgba(245, 245, 245, 0.85);
  font-style: italic;
  font-size: 1.05rem;
}

/* Article Images */
.article-body figure {
  margin: 2.5rem 0;
}
.article-body figure img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.article-body figcaption {
  text-align: center;
  font-size: .8rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: .6rem;
}

/* Tip / Callout Box */
.tip-box {
  background: rgba(250, 182, 0, 0.07);
  border: 1px solid rgba(250, 182, 0, 0.20);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}
.tip-box .tip-label {
  font-family: 'Gelion', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--yellow);
  margin-bottom: .4rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.article-body hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.10), transparent);
  margin: 2.5rem 0;
}

.article-body code {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.10);
  padding: .15em .45em;
  border-radius: 5px;
  font-size: .9em;
  font-family: 'Courier New', monospace;
  color: var(--yellow);
}
