/*
Theme Name: Twenty Twenty-Five Child - Webfiable
Template: twentytwentyfive
Description: Child theme de Webfiable. Rediseño coherente con app.webfiable.com.
Version: 2.0.0
Author: Fernando Covecino
*/

/* ========================================================
   GOOGLE FONTS
   ======================================================== */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;700&family=Bebas+Neue&family=Roboto:wght@400;500;700&display=swap');

/* ========================================================
   VARIABLES DE MARCA
   ======================================================== */
:root {
  --wf-orange:      #EA3900;
  --wf-orange-dark: #c73000;
  --wf-dark:        #111111;
  --wf-navy:        #1a1a2e;
  --wf-white:       #ffffff;
  --wf-light:       #f8f9fa;
  --wf-muted:       #6b7280;
  --wf-border:      #e5e7eb;
  --wf-radius:      8px;
  --wf-radius-lg:   12px;
  --wf-shadow:      0 1px 3px rgba(0,0,0,0.07), 0 4px 16px rgba(0,0,0,0.04);
  --wf-shadow-lg:   0 4px 24px rgba(0,0,0,0.10);
}

/* ========================================================
   BASE
   ======================================================== */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--wf-dark);
  background: var(--wf-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Barlow Condensed', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

a { color: var(--wf-orange); }
a:hover { color: var(--wf-orange-dark); }

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

/* ========================================================
   LAYOUT
   ======================================================== */
.wp-site-blocks { padding-top: 0; padding-bottom: 0; }

/* ========================================================
   HEADER
   ======================================================== */
.wp-block-template-part[data-type="core/template-part/header"] {
  position: sticky;
  top: 0;
  z-index: 100;
}

/* ========================================================
   NAVEGACIÓN
   ======================================================== */
.wp-block-navigation a {
  color: var(--wf-dark) !important;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
.wp-block-navigation a:hover {
  color: var(--wf-orange) !important;
  background: rgba(234,57,0,0.06);
}

/* ========================================================
   BOTONES
   ======================================================== */
.wp-block-button .wp-block-button__link,
.wp-block-buttons .wp-block-button__link {
  font-family: 'Roboto', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 6px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
  display: inline-block;
  padding: 0.85rem 1.75rem;
}

/* Primario (naranja) */
.wp-block-button:not(.is-style-outline) .wp-block-button__link {
  background-color: var(--wf-orange) !important;
  color: #fff !important;
  border: 2px solid var(--wf-orange) !important;
}
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
  background-color: var(--wf-orange-dark) !important;
  border-color: var(--wf-orange-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(234,57,0,0.30);
}

/* Outline */
.wp-block-button.is-style-outline .wp-block-button__link {
  border: 2px solid rgba(255,255,255,0.6) !important;
  color: #fff !important;
  background: transparent !important;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  border-color: #fff !important;
  background: rgba(255,255,255,0.12) !important;
  transform: translateY(-1px);
}

/* ========================================================
   HERO
   ======================================================== */
.wf-hero {
  background: var(--wf-navy);
  color: var(--wf-white);
  position: relative;
  overflow: hidden;
}
.wf-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 75% 50%, rgba(234,57,0,0.18) 0%, transparent 60%);
  pointer-events: none;
}
.wf-hero h1 {
  color: var(--wf-white) !important;
  font-size: clamp(2.75rem, 7vw, 4.75rem) !important;
  line-height: 1.0 !important;
}
.wf-hero h1 em { font-style: normal; color: var(--wf-orange); }
.wf-hero p { color: rgba(255,255,255,0.82); }
.wf-hero .wf-badge { background: rgba(234,57,0,0.2); color: var(--wf-orange); }

/* ========================================================
   SECCIONES
   ======================================================== */
.wf-section { padding: clamp(3rem, 6vw, 5rem) 1.5rem; }
.wf-section-light { background: var(--wf-light); }
.wf-section-dark  { background: var(--wf-navy); color: var(--wf-white); }
.wf-section-dark h2, .wf-section-dark h3, .wf-section-dark p { color: var(--wf-white); }

/* Heading con línea de acento */
.wf-section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 0.5rem;
}
.wf-section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 2.5rem;
  height: 3px;
  background: var(--wf-orange);
  border-radius: 2px;
}

/* ========================================================
   BADGE / ETIQUETA
   ======================================================== */
.wf-badge {
  display: inline-block;
  background: rgba(234,57,0,0.10);
  color: var(--wf-orange);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

/* ========================================================
   CARDS
   ======================================================== */
.wf-card {
  background: var(--wf-white);
  border: 1px solid var(--wf-border);
  border-radius: var(--wf-radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--wf-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
}
.wf-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--wf-shadow-lg);
}
.wf-section-dark .wf-card {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
}
.wf-card h3 { font-size: 1.4rem; margin-bottom: 0.6rem; }
.wf-section-dark .wf-card h3 { color: var(--wf-white); }
.wf-section-dark .wf-card p  { color: rgba(255,255,255,0.75); }

/* ========================================================
   NÚMERO DE PASO
   ======================================================== */
.wf-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--wf-orange);
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

/* ========================================================
   CHECKLIST DE FEATURES
   ======================================================== */
.wf-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.wf-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.45rem 0;
  font-size: 0.97rem;
  line-height: 1.5;
}
.wf-check-list li::before {
  content: '✓';
  color: var(--wf-orange);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

/* ========================================================
   FAQ
   ======================================================== */
.wf-faq details {
  border-bottom: 1px solid var(--wf-border);
  padding: 0;
}
.wf-faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 1.1rem 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.wf-faq summary::-webkit-details-marker { display: none; }
.wf-faq summary::after {
  content: '+';
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--wf-orange);
  flex-shrink: 0;
  line-height: 1;
}
.wf-faq details[open] summary::after { content: '−'; }
.wf-faq .faq-answer {
  padding: 0 0 1.25rem;
  color: #444;
  line-height: 1.75;
}

/* ========================================================
   STAT NUMBERS
   ======================================================== */
.wf-stat-number {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--wf-orange);
  line-height: 1;
  display: block;
}
.wf-stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  margin-top: 0.25rem;
}

/* ========================================================
   PLUGIN SECTION
   ======================================================== */
.wf-plugin-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.5rem;
}

/* ========================================================
   PÁGINAS LEGALES
   ======================================================== */
.wf-legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.wf-legal h1 { font-size: clamp(2rem, 5vw, 2.75rem); margin-bottom: 0.5rem; }
.wf-legal h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--wf-orange);
}
.wf-legal h3 { font-size: 1.15rem; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.wf-legal p, .wf-legal li { color: #333; line-height: 1.8; }
.wf-legal p.muted { color: var(--wf-muted); font-size: 0.9rem; margin-bottom: 2rem; }
.wf-legal a { color: var(--wf-orange); }

/* ========================================================
   TABLAS DE COOKIES
   ======================================================== */
.cookie-table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
  border-radius: var(--wf-radius);
  border: 1px solid var(--wf-border);
}
table.cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
table.cookie-table th {
  background: var(--wf-light);
  font-weight: 600;
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid var(--wf-border);
}
table.cookie-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--wf-border);
  vertical-align: top;
}
table.cookie-table tr:last-child td { border-bottom: none; }

/* ========================================================
   SCREENSHOT / IMAGEN DE APP
   ======================================================== */
.wf-screenshot img {
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.08);
}

/* ========================================================
   FOOTER
   ======================================================== */
footer.wp-block-template-part,
.wp-block-template-part.wf-footer {
  background: var(--wf-navy);
  color: rgba(255,255,255,0.65);
}
.wf-footer p { color: rgba(255,255,255,0.65); font-size: 0.875rem; }
.wf-footer a { color: rgba(255,255,255,0.7) !important; text-decoration: none; font-size: 0.9rem; }
.wf-footer a:hover { color: var(--wf-orange) !important; }

/* ========================================================
   SEPARADOR CON COLOR DE MARCA
   ======================================================== */
.wp-block-separator.has-orange-background-color {
  background-color: var(--wf-orange);
  border-color: var(--wf-orange);
  height: 3px;
  width: 3rem;
  margin: 1.5rem 0;
}

/* ========================================================
   RESPONSIVE
   ======================================================== */
@media (max-width: 768px) {
  .wp-block-columns.wf-cols {
    flex-direction: column !important;
  }
  .wp-block-column {
    width: 100% !important;
    flex-basis: 100% !important;
  }
  .wf-hero h1 { font-size: 2.5rem !important; }
  .wf-stat-number { font-size: 2.5rem; }
}

@media (max-width: 480px) {
  .wp-block-buttons {
    flex-direction: column;
  }
  .wp-block-button { width: 100%; }
  .wp-block-button .wp-block-button__link { text-align: center; width: 100%; }
}
