/*
Theme Name:  Ser Marketing
Theme URI:   https://sermarketing.es
Author:      Sergio Vázquez Ruiz
Author URI:  https://sermarketing.es
Description: Tema personalizado para Ser Marketing – Marketing Digital para PYMEs en Barcelona. Responsive, SEO optimizado y de carga ultrarrápida.
Version:     2.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: sermarketing
Tags:        marketing, seo, responsive, one-page, pymes, barcelona
*/

/* ══════════════════════════════════════════════
   VARIABLES
══════════════════════════════════════════════ */
:root {
  --negro:     #111111;
  --gris:      #f7f6f3;
  --gris-2:    #efefed;
  --gris-m:    #666666;
  --blanco:    #ffffff;
  --borde:     #e8e8e8;
  --font-h:    'Syne', sans-serif;
  --font-b:    'DM Sans', sans-serif;
  --r:         30px;
  --t:         all .25s ease;
  --shadow:    0 8px 32px rgba(0,0,0,.08);
  --shadow-h:  0 16px 48px rgba(0,0,0,.12);
}

/* ══════════════════════════════════════════════
   RESET Y BASE
══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-b);
  color: var(--negro);
  background: var(--blanco);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-h); font-weight: 800; line-height: 1.1; color: var(--negro); }
a { text-decoration: none; color: inherit; transition: var(--t); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ══════════════════════════════════════════════
   UTILIDADES
══════════════════════════════════════════════ */
.container { max-width: 1160px; margin: 0 auto; padding: 0 clamp(1.2rem, 5%, 5rem); }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--gris); }

.section-header { text-align: center; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-label {
  display: inline-block;
  background: var(--negro);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  padding: .28rem .9rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .9rem;
}
.section-header h2 { font-size: clamp(1.6rem, 3.5vw, 2.7rem); }
.section-header p { color: var(--gris-m); max-width: 520px; margin: .6rem auto 0; font-size: .93rem; }

.btn {
  display: inline-block;
  padding: .78rem 1.8rem;
  border-radius: var(--r);
  font-weight: 600;
  font-size: .92rem;
  transition: var(--t);
  cursor: pointer;
  border: none;
  font-family: var(--font-b);
  white-space: nowrap;
  text-align: center;
}
.btn-dark  { background: var(--negro); color: #fff; }
.btn-dark:hover  { background: #333; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-out   { border: 1.5px solid #ccc; color: var(--negro); background: transparent; }
.btn-out:hover   { border-color: var(--negro); }
.btn-white { background: #fff; color: var(--negro); }
.btn-white:hover { background: #e8e8e8; transform: translateY(-2px); }

/* ══════════════════════════════════════════════
   HEADER / NAV
══════════════════════════════════════════════ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--borde);
  transition: box-shadow .3s;
}
#site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.07); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 clamp(1.2rem, 5%, 5rem);
}
.site-logo { font-family: var(--font-h); font-weight: 800; font-size: 1.18rem; color: var(--negro); }
.site-logo span { color: #888; }

.nav-links { display: flex; align-items: center; gap: 1.8rem; }
.nav-links a { font-size: .87rem; font-weight: 500; color: #444; }
.nav-links a:hover { color: var(--negro); }
.nav-cta-btn {
  background: var(--negro) !important;
  color: #fff !important;
  padding: .42rem 1.2rem;
  border-radius: 20px;
  font-weight: 600 !important;
}
.nav-cta-btn:hover { background: #333 !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: 1.5px solid var(--borde);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--negro);
  border-radius: 2px;
  transition: var(--t);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Drawer móvil */
.mobile-menu {
  display: none;
  position: fixed;
  top: 66px; left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 998;
  overflow-y: auto;
  padding: 1.5rem clamp(1.2rem,5%,2rem) 3rem;
}
.mobile-menu.open { display: block; }
.mobile-menu .mob-nav { display: flex; flex-direction: column; }
.mobile-menu .mob-nav a {
  display: block;
  padding: 1rem .5rem;
  font-size: 1.05rem;
  font-weight: 600;
  font-family: var(--font-h);
  color: var(--negro);
  border-bottom: 1px solid var(--borde);
}
.mobile-menu .mob-nav a:hover { color: #555; }
.mob-cta-link {
  display: block;
  margin-top: 1.5rem;
  text-align: center;
  background: var(--negro);
  color: #fff;
  padding: 1rem;
  border-radius: var(--r);
  font-family: var(--font-h);
  font-size: 1rem;
  font-weight: 700;
}
.mob-social { display: flex; gap: .8rem; margin-top: 1.2rem; }
.mob-soc {
  flex: 1;
  text-align: center;
  padding: .65rem;
  border: 1.5px solid var(--borde);
  border-radius: 10px;
  font-size: .85rem;
  font-weight: 700;
}

/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */
#hero {
  padding: clamp(4rem,10vw,8rem) 0 clamp(3rem,6vw,5rem);
  background: var(--gris);
  position: relative;
  overflow: hidden;
}
.hero-circle-1 {
  position: absolute; top: -100px; right: -100px;
  width: min(480px,80vw); height: min(480px,80vw);
  border-radius: 50%;
  background: radial-gradient(circle,#d8d8d8,#ececec);
  opacity: .5; pointer-events: none;
}
.hero-circle-2 {
  position: absolute; bottom: -80px; left: 35%;
  width: min(280px,50vw); height: min(280px,50vw);
  border-radius: 50%;
  background: radial-gradient(circle,#c0c0c0,#dcdcdc);
  opacity: .25; pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 720px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--negro);
  color: #fff;
  font-size: .71rem;
  font-weight: 600;
  padding: .3rem 1rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 1.4rem;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.35;transform:scale(1.4)} }

h1.hero-title { font-size: clamp(2.2rem,6vw,4.2rem); line-height: 1.07; margin-bottom: .9rem; }
h1.hero-title em { font-style: normal; color: #777; }
.hero-desc  { font-size: clamp(.93rem,2vw,1.08rem); color: var(--gris-m); font-style: italic; font-weight: 300; margin-bottom: .4rem; }
.hero-tagline { font-size: clamp(.84rem,1.8vw,.95rem); color: var(--gris-m); margin-bottom: 2rem; max-width: 540px; }

.hero-btns  { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: clamp(2rem,4vw,3.5rem); }
.hero-stats { display: flex; gap: clamp(1.2rem,4vw,3rem); flex-wrap: wrap; padding-top: 2rem; border-top: 1px solid #ddd; }
.stat-num   { font-family: var(--font-h); font-size: clamp(1.8rem,4vw,2.4rem); font-weight: 800; display: block; }
.stat-label { font-size: .79rem; color: var(--gris-m); margin-top: .1rem; }

/* ══════════════════════════════════════════════
   BAND ANIMADA
══════════════════════════════════════════════ */
.services-band { background: var(--negro); color: #fff; padding: 1.1rem 0; overflow: hidden; }
.band-track { display: flex; gap: 3rem; animation: scroll-band 28s linear infinite; width: max-content; }
@keyframes scroll-band { from{transform:translateX(0)} to{transform:translateX(-50%)} }
.band-item { display: flex; align-items: center; gap: .6rem; white-space: nowrap; flex-shrink: 0; }
.band-dot  { width: 5px; height: 5px; background: #666; border-radius: 50%; }
.band-item span { font-size: .84rem; opacity: .8; }

/* ══════════════════════════════════════════════
   SOBRE MÍ
══════════════════════════════════════════════ */
.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem,5vw,5rem);
  align-items: center;
}
.sobre-img-box {
  background: var(--gris);
  border-radius: 20px;
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  border: 1.5px solid var(--borde);
  position: relative;
  max-width: 380px;
  overflow: hidden;
}
.sobre-img-box img { width: 100%; height: 100%; object-fit: cover; }
.sobre-float-badge {
  position: absolute;
  bottom: -16px; right: -16px;
  background: var(--negro);
  color: #fff;
  border-radius: 12px;
  padding: .85rem 1rem;
  text-align: center;
}
.sobre-float-badge strong { font-family: var(--font-h); font-size: 1.5rem; display: block; }
.sobre-float-badge small  { font-size: .7rem; opacity: .6; }
.sobre-text .section-label { display: inline-block; margin-bottom: .9rem; }
.sobre-text h2  { font-size: clamp(1.5rem,3vw,2.3rem); margin-bottom: 1.1rem; }
.sobre-text > p { font-size: .92rem; color: var(--gris-m); line-height: 1.7; }
.sobre-list     { margin: 1.2rem 0 1.8rem; display: flex; flex-direction: column; gap: .5rem; }
.sobre-list li  { display: flex; gap: .7rem; font-size: .87rem; color: #444; }
.sobre-list li::before { content: '✓'; font-weight: 800; flex-shrink: 0; }

/* ══════════════════════════════════════════════
   SERVICIOS
══════════════════════════════════════════════ */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(280px,100%),1fr)); gap: 1.3rem; }
.service-card {
  background: #fff;
  border-radius: 16px;
  padding: clamp(1.3rem,3vw,2rem);
  border: 1.5px solid var(--borde);
  transition: var(--t);
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--negro);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-h); border-color: #ccc; }
.service-card:hover::after { transform: scaleX(1); }
.service-icon  { font-size: 1.6rem; margin-bottom: 1rem; }
.service-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.service-card > p { font-size: .87rem; color: var(--gris-m); line-height: 1.62; }
.service-example {
  margin-top: 1rem;
  padding: .65rem .85rem;
  background: var(--gris);
  border-radius: 8px;
  font-size: .79rem;
  color: #555;
  border-left: 3px solid #ccc;
}
.service-cta {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-top: 1.1rem;
  font-size: .83rem;
  font-weight: 600;
}
.service-cta:hover { gap: .7rem; }

/* ══════════════════════════════════════════════
   SECTORES
══════════════════════════════════════════════ */
.sectores-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(145px,100%),1fr)); gap: .9rem; }
.sector-card {
  background: #fff;
  border: 1.5px solid var(--borde);
  border-radius: 14px;
  padding: 1.3rem .9rem;
  text-align: center;
  transition: var(--t);
  cursor: default;
}
.sector-card:hover { border-color: var(--negro); background: var(--negro); color: #fff; transform: translateY(-3px); }
.sector-card:hover p { color: #fff; }
.sector-card .ico { font-size: 1.6rem; margin-bottom: .5rem; }
.sector-card p     { font-size: .81rem; font-weight: 500; }

/* ══════════════════════════════════════════════
   TESTIMONIOS
══════════════════════════════════════════════ */
.testimonios-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(270px,100%),1fr)); gap: 1.3rem; }
.testimonio {
  background: #fff;
  border-radius: 16px;
  padding: clamp(1.2rem,3vw,1.8rem);
  border: 1.5px solid var(--borde);
  position: relative;
}
.testimonio::before {
  content: '\201C';
  font-family: var(--font-h);
  font-size: 4rem;
  color: var(--borde);
  position: absolute;
  top: .8rem; right: 1.2rem;
  line-height: 1;
}
.testimonio .stars  { font-size: .82rem; margin-bottom: .7rem; }
.testimonio p       { font-size: .87rem; color: #444; line-height: 1.7; font-style: italic; }
.testimonio-author  { display: flex; align-items: center; gap: .8rem; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--borde); }
.t-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--gris-2); display: flex; align-items: center; justify-content: center; font-family: var(--font-h); font-weight: 700; font-size: .82rem; flex-shrink: 0; }
.t-name   { font-size: .85rem; font-weight: 700; display: block; }
.t-role   { font-size: .75rem; color: var(--gris-m); }

/* ══════════════════════════════════════════════
   PROCESO
══════════════════════════════════════════════ */
#proceso { background: var(--negro); color: #fff; }
#proceso .section-header h2 { color: #fff; }
#proceso .section-header p  { color: #888; }
#proceso .section-label     { background: rgba(255,255,255,.12); }
.proceso-steps { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(200px,100%),1fr)); gap: 2rem; }
.paso-num { font-family: var(--font-h); font-size: 3rem; font-weight: 800; color: rgba(255,255,255,.07); line-height: 1; margin-bottom: .4rem; }
.paso h3  { font-size: .97rem; font-weight: 700; color: #fff; margin-bottom: .4rem; }
.paso p   { font-size: .85rem; color: #888; line-height: 1.65; }

/* ══════════════════════════════════════════════
   BLOG
══════════════════════════════════════════════ */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(280px,100%),1fr)); gap: 1.5rem; }
.blog-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid var(--borde);
  transition: var(--t);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-h); }
.blog-thumb { height: 175px; display: flex; align-items: center; justify-content: center; font-size: 3rem; overflow: hidden; }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-thumb.t1 { background: linear-gradient(135deg,#e0e0e0,#c8c8c8); }
.blog-thumb.t2 { background: linear-gradient(135deg,#d0d0d0,#b8b8b8); }
.blog-thumb.t3 { background: linear-gradient(135deg,#e8e8e8,#d4d4d4); }
.blog-body { padding: clamp(1.1rem,3vw,1.5rem); }
.blog-cat  { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; border-bottom: 2px solid var(--negro); padding-bottom: .1rem; display: inline-block; margin-bottom: .6rem; }
.blog-card h2, .blog-card h3 { font-size: .96rem; font-weight: 700; line-height: 1.35; margin-bottom: .5rem; }
.blog-card h2 a, .blog-card h3 a { color: var(--negro); }
.blog-card h2 a:hover, .blog-card h3 a:hover { color: #444; }
.blog-card p   { font-size: .83rem; color: var(--gris-m); margin-bottom: .8rem; }
.blog-meta { font-size: .75rem; color: #bbb; display: flex; gap: .8rem; }
.blog-link { display: inline-flex; align-items: center; gap: .3rem; font-size: .82rem; font-weight: 700; border-bottom: 1.5px solid var(--negro); padding-bottom: .1rem; margin-top: .7rem; transition: gap .2s; }
.blog-link:hover { gap: .7rem; }
.blog-cta { text-align: center; margin-top: 2.5rem; }

/* Blog single */
.post-hero { background: var(--gris); padding: clamp(3rem,6vw,5rem) 0; }
.breadcrumbs { font-size: .8rem; color: var(--gris-m); margin-bottom: 1.5rem; }
.breadcrumbs a { color: var(--gris-m); }
.breadcrumbs a:hover { color: var(--negro); }
.single-post-content h2 { font-size: clamp(1.3rem,2.5vw,1.8rem); margin: 2rem 0 .8rem; }
.single-post-content h3 { font-size: clamp(1.1rem,2vw,1.3rem); margin: 1.5rem 0 .6rem; }
.single-post-content p  { color: #444; line-height: 1.75; margin-bottom: 1.2rem; font-size: .95rem; }
.single-post-content ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1.2rem; }
.single-post-content ol { list-style: decimal; padding-left: 1.5rem; margin-bottom: 1.2rem; }
.single-post-content li { color: #444; margin-bottom: .4rem; font-size: .95rem; }
.single-post-content img { border-radius: 12px; margin: 2rem 0; }
.single-post-content blockquote { border-left: 3px solid var(--negro); padding-left: 1.2rem; font-style: italic; color: var(--gris-m); margin: 1.5rem 0; }
.single-post-content a { color: var(--negro); border-bottom: 1px solid var(--negro); }
.single-post-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .9rem; }
.single-post-content th { background: var(--negro); color: #fff; padding: .6rem 1rem; text-align: left; font-family: var(--font-h); }
.single-post-content td { padding: .6rem 1rem; border-bottom: 1px solid var(--borde); }
.single-post-content tr:nth-child(even) td { background: var(--gris); }
.post-cta-box { margin-top: 3rem; padding: 2.5rem; background: var(--gris); border-radius: 16px; text-align: center; }
.post-cta-box h3 { margin-bottom: .8rem; font-size: clamp(1.1rem,2vw,1.4rem); }
.post-cta-box p  { color: var(--gris-m); margin-bottom: 1.5rem; font-size: .95rem; }

/* ══════════════════════════════════════════════
   FAQ
══════════════════════════════════════════════ */
.faq-list { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; gap: .9rem; }
.faq-item { border: 1.5px solid var(--borde); border-radius: 14px; overflow: hidden; }
.faq-q {
  width: 100%;
  background: none; border: none;
  text-align: left;
  padding: 1.1rem 1.4rem;
  font-family: var(--font-b);
  font-size: .91rem;
  font-weight: 600;
  color: var(--negro);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: var(--t);
}
.faq-q:hover { background: var(--gris); }
.faq-q[aria-expanded="true"] { background: var(--negro); color: #fff; }
.faq-icon { font-size: 1.1rem; flex-shrink: 0; transition: transform .25s; }
.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a-inner { padding: 1.1rem 1.4rem; font-size: .88rem; color: var(--gris-m); line-height: 1.7; border-top: 1px solid var(--borde); }

/* ══════════════════════════════════════════════
   CONTACTO
══════════════════════════════════════════════ */
#contacto { background: var(--negro); color: #fff; padding: clamp(3rem,7vw,5.5rem) 0; }
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem,5vw,5rem);
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 clamp(1.2rem,5%,5rem);
  align-items: start;
}
.contacto-info h2      { font-size: clamp(1.6rem,3.5vw,2.5rem); margin-bottom: 1rem; color: #fff; }
.contacto-info h2 em   { font-style: normal; color: #888; }
.contacto-info > p     { color: #999; font-size: .92rem; line-height: 1.7; margin-bottom: 1.8rem; }
.c-details             { display: flex; flex-direction: column; gap: .8rem; margin-bottom: 1.8rem; }
.c-detail              { display: flex; align-items: center; gap: .9rem; font-size: .87rem; color: #bbb; }
.c-icon                { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.09); display: flex; align-items: center; justify-content: center; font-size: .87rem; flex-shrink: 0; }
.c-social              { display: flex; gap: .7rem; }
.soc-btn               { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; transition: var(--t); }
.soc-btn:hover         { background: rgba(255,255,255,.18); }

.contact-form { display: flex; flex-direction: column; gap: .9rem; }
.form-row     { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.form-field   { display: flex; flex-direction: column; gap: .35rem; }
.form-field label { font-size: .78rem; font-weight: 600; color: #888; text-transform: uppercase; letter-spacing: .05em; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 10px;
  padding: .75rem 1rem;
  color: #fff;
  font-family: var(--font-b);
  font-size: .9rem;
  transition: border .2s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #555; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: none; border-color: rgba(255,255,255,.4); }
.contact-form select option { background: #1a1a1a; color: #fff; }
.contact-form textarea      { resize: vertical; min-height: 110px; }
.btn-submit {
  background: #fff;
  color: var(--negro);
  border: none;
  padding: .9rem 2rem;
  border-radius: var(--r);
  font-family: var(--font-h);
  font-weight: 700;
  font-size: .92rem;
  cursor: pointer;
  transition: var(--t);
  align-self: flex-start;
}
.btn-submit:hover { background: #ddd; transform: translateY(-2px); }
#form-msg { padding: .8rem 1rem; border-radius: 8px; font-size: .88rem; display: none; margin-top: .3rem; }
#form-msg.ok  { background: rgba(255,255,255,.1); color: #9effc3; display: block; }
#form-msg.err { background: rgba(255,80,80,.15);  color: #ffaaaa;  display: block; }

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
#site-footer { background: #0a0a0a; color: #888; padding: clamp(2rem,5vw,3.5rem) 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: clamp(1.5rem,3vw,3rem); margin-bottom: 2.5rem; }
.footer-brand .site-logo { display: inline-block; margin-bottom: .8rem; font-size: 1.1rem; color: #fff; }
.footer-brand p  { font-size: .82rem; line-height: 1.65; max-width: 260px; color: #555; }
.footer-col h4   { font-family: var(--font-h); font-size: .79rem; font-weight: 700; color: #fff; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .07em; }
.footer-col li   { margin-bottom: .45rem; }
.footer-col a    { font-size: .82rem; color: #555; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom   { border-top: 1px solid #1a1a1a; padding-top: 1.3rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; font-size: .78rem; color: #333; }
.footer-tagline  { font-family: var(--font-h); font-size: .79rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }

/* ══════════════════════════════════════════════
   PÁGINA DE ARCHIVO BLOG
══════════════════════════════════════════════ */
.archive-hero { background: var(--gris); padding: clamp(2.5rem,5vw,4rem) 0; }
.pagination   { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; margin-top: 3rem; }
.pagination a, .pagination span {
  padding: .5rem 1rem;
  border: 1.5px solid var(--borde);
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 500;
}
.pagination .current { background: var(--negro); color: #fff; border-color: var(--negro); }
.pagination a:hover  { border-color: var(--negro); }

/* ══════════════════════════════════════════════
   RESPONSIVE — TABLET  ≤ 900px
══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .sobre-grid      { grid-template-columns: 1fr; }
  .sobre-img-box   { margin: 0 auto; }
  .footer-grid     { grid-template-columns: 1fr 1fr; }
  .contacto-grid   { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════
   RESPONSIVE — MOBILE   ≤ 640px
══════════════════════════════════════════════ */
@media (max-width: 640px) {
  /* Nav */
  .nav-links  { display: none; }
  .hamburger  { display: flex; }

  /* Hero */
  .hero-btns  { flex-direction: column; }
  .hero-btns .btn { width: 100%; }
  .hero-stats { gap: 1.4rem; }

  /* Grids → 1 columna */
  .services-grid,
  .blog-grid,
  .proceso-steps,
  .testimonios-grid { grid-template-columns: 1fr; }

  /* Sectores → 2 columnas */
  .sectores-grid { grid-template-columns: repeat(2, 1fr); }

  /* Form */
  .form-row   { grid-template-columns: 1fr; }
  .btn-submit { width: 100%; text-align: center; }

  /* Footer */
  .footer-grid   { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  /* Sobre badge */
  .sobre-float-badge { right: 0; bottom: -12px; }
}

@media (max-width: 380px) {
  .sectores-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════
   WORDPRESS CORE COMPAT
══════════════════════════════════════════════ */
.wp-block-image img { border-radius: 12px; }
.aligncenter { margin: 0 auto; display: block; }
.alignleft   { float: left; margin: 0 1.5rem 1rem 0; }
.alignright  { float: right; margin: 0 0 1rem 1.5rem; }
.wp-caption  { max-width: 100%; }
.screen-reader-text { clip: rect(1px,1px,1px,1px); height: 1px; overflow: hidden; position: absolute; width: 1px; }
