/*
Theme Name: Sergio Mora Profesional
Theme URI: https://sergiomoracantero.es/
Author: Sergio Mora
Author URI: https://sergiomoracantero.es/
Description: Tema profesional para el perfil de Sergio Mora, especializado en dirección comercial, ventas B2B, tecnología y liderazgo de equipos.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: sergio-mora
Tags: portfolio, one-column, custom-menu, custom-logo, featured-images, accessibility-ready
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --ink: #f4f8ff;
  --muted: #9aa9bd;
  --navy: #050b14;
  --navy-soft: #091321;
  --panel: #0d1a2a;
  --blue: #2478ff;
  --blue-bright: #3a8cff;
  --ice: #8ecbff;
  --line: rgba(142, 203, 255, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}
a { color: inherit; text-decoration: none; }

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: 78px;
  padding: 0 clamp(24px, 5vw, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(5, 11, 20, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.brand span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(142, 203, 255, 0.5);
  color: var(--ice);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}
.brand strong { font-size: 15px; letter-spacing: -.01em; }
.site-nav { display: flex; gap: clamp(22px, 3.4vw, 54px); }
.site-nav a {
  position: relative;
  color: #bdc7d4;
  font-size: 14px;
  transition: color .25s ease;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -11px;
  height: 2px;
  background: var(--blue-bright);
  transition: right .25s ease;
}
.site-nav a:hover { color: white; }
.site-nav a:hover::after { right: 0; }
.header-cta {
  padding: 11px 17px;
  border: 1px solid rgba(142, 203, 255, .34);
  font-size: 13px;
  transition: .25s ease;
}
.header-cta:hover { background: var(--blue); border-color: var(--blue); }

.hero {
  min-height: 100svh;
  max-width: 1540px;
  margin: auto;
  padding: 150px clamp(24px, 5vw, 76px) 70px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 45%, rgba(36, 120, 255, .12), transparent 28%),
    linear-gradient(rgba(142,203,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(142,203,255,.035) 1px, transparent 1px);
  background-size: auto, 72px 72px, 72px 72px;
}
.hero-copy { position: relative; z-index: 2; }
.eyebrow, .section-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 28px;
  color: var(--ice);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.eyebrow span { width: 42px; height: 2px; background: var(--blue-bright); }
h1 {
  max-width: 770px;
  margin: 0;
  font-size: clamp(52px, 6.5vw, 102px);
  line-height: .92;
  letter-spacing: -.068em;
  font-weight: 750;
}
h1 em { color: var(--blue-bright); font-style: normal; }
.hero-intro {
  max-width: 620px;
  margin: 34px 0 0;
  color: #aab6c6;
  font-size: clamp(18px, 1.5vw, 23px);
  line-height: 1.5;
}
.hero-actions { display: flex; align-items: center; gap: 32px; margin-top: 38px; }
.primary-button {
  min-height: 58px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 38px;
  background: var(--blue);
  border: 1px solid var(--blue);
  color: white;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 16px 45px rgba(36, 120, 255, .18);
  transition: transform .25s ease, background .25s ease;
}
.primary-button:hover { transform: translateY(-3px); background: #3989ff; }
.text-link { padding-bottom: 5px; border-bottom: 1px solid rgba(142, 203, 255, .45); font-size: 14px; }
.hero-facts {
  display: flex;
  gap: clamp(28px, 4vw, 64px);
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-facts p { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.hero-facts strong { color: white; font-size: 23px; }
.hero-facts span { color: #7f8fa4; font-size: 12px; }

.hero-visual {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  border: 1px solid rgba(142,203,255,.2);
  box-shadow: 0 35px 100px rgba(0,0,0,.42);
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5,11,20,.48), transparent 35%),
    linear-gradient(0deg, rgba(5,11,20,.5), transparent 38%);
  pointer-events: none;
}
.hero-visual > img { width: 100%; height: 100%; object-fit: cover; object-position: 67% center; }
.monogram {
  position: absolute;
  top: 12%;
  left: 21%;
  width: 58%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 46% 54% 62% 38% / 43% 38% 62% 57%;
  background: linear-gradient(145deg, rgba(58,140,255,.25), rgba(9,19,33,.92));
  border: 1px solid rgba(142,203,255,.32);
  color: rgba(244,248,255,.88);
  font-size: clamp(72px, 10vw, 150px);
  font-weight: 800;
  letter-spacing: -.12em;
  box-shadow: inset 0 0 80px rgba(36,120,255,.14), 0 30px 100px rgba(0,0,0,.35);
  transform: rotate(-5deg);
}
.monogram::after {
  content: "";
  position: absolute;
  inset: 10%;
  border: 1px solid rgba(142,203,255,.12);
  border-radius: 50%;
}
.orbit {
  position: absolute;
  border: 1px solid rgba(58,140,255,.46);
  border-radius: 50%;
  transform: rotate(-17deg);
}
.orbit::before, .orbit::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ice);
  box-shadow: 0 0 18px rgba(142,203,255,.7);
}
.orbit-one { width: 105%; height: 44%; left: -20%; top: 43%; }
.orbit-one::before { left: 13%; top: 12%; }
.orbit-one::after { right: 14%; bottom: 11%; }
.orbit-two { width: 82%; height: 70%; left: 9%; top: 28%; }
.orbit-two::before { left: 8%; bottom: 23%; }
.orbit-two::after { right: 9%; top: 20%; }
.growth-line {
  position: absolute;
  z-index: 3;
  left: 8%;
  right: 3%;
  bottom: 24%;
  height: 2px;
  background: linear-gradient(17deg, transparent 0 4%, var(--blue-bright) 4% 72%, var(--ice) 72%);
  transform: rotate(-18deg);
  transform-origin: center;
}
.growth-line i {
  position: absolute;
  top: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--navy);
  border: 2px solid var(--ice);
}
.growth-line i:nth-child(1){left:8%}.growth-line i:nth-child(2){left:29%}.growth-line i:nth-child(3){left:50%}.growth-line i:nth-child(4){left:73%}.growth-line i:nth-child(5){right:0}
.bars { position: absolute; right: 0; bottom: 5%; height: 110px; display: flex; align-items: end; gap: 9px; }
.bars i { display: block; width: 14px; background: linear-gradient(var(--ice), rgba(36,120,255,.12)); }
.bars i:nth-child(1){height:28%}.bars i:nth-child(2){height:45%}.bars i:nth-child(3){height:62%}.bars i:nth-child(4){height:78%}.bars i:nth-child(5){height:100%; background:linear-gradient(#3a8cff,#12396e)}
.visual-label { position: absolute; z-index: 3; left: 28px; bottom: 24px; color: #d6eaff; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }

.company-strip {
  padding: 34px clamp(24px, 7vw, 110px) 42px;
  background: #eef3f9;
  color: #0a1422;
  border-top: 1px solid #d8e1ed;
  border-bottom: 1px solid #d8e1ed;
}
.company-strip > p {
  margin: 0 0 25px;
  color: #607087;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .14em;
  text-align: center;
  text-transform: uppercase;
}
.company-logo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.company-logo {
  min-height: 104px;
  padding: 24px 30px;
  display: grid;
  place-items: center;
  border: 1px solid #d3deeb;
}
.company-logo--light { background: white; }
.company-logo--dark { background: #091522; border-color: #182b40; }
.company-logo img { display: block; width: 100%; max-width: 210px; max-height: 55px; object-fit: contain; }

.manifesto, .experience-section, .cases-section, .strengths-section, .contact-section {
  padding: 115px clamp(24px, 7vw, 110px);
}
.manifesto { background: #f4f7fb; color: #0a1422; }
.manifesto .section-kicker { color: #1768de; }
.manifesto-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 7vw; align-items: start; }
.manifesto-lead { min-width: 0; }
.leadership-photo { margin: 48px 0 0; }
.leadership-photo img { display: block; width: 100%; aspect-ratio: 16 / 8.6; object-fit: cover; }
.leadership-photo figcaption { margin-top: 12px; color: #68768a; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; }
.manifesto h2, .section-heading h2, .contact-section h2 {
  margin: 0;
  font-size: clamp(38px, 4.4vw, 68px);
  line-height: 1.05;
  letter-spacing: -.05em;
}
.manifesto-grid > div { border-left: 2px solid #287dff; padding-left: 30px; }
.manifesto-grid p { margin: 0 0 22px; color: #536071; font-size: 17px; line-height: 1.75; }

.experience-section { background: var(--navy-soft); }
.section-heading {
  display: grid;
  grid-template-columns: 1.2fr .6fr;
  gap: 10vw;
  align-items: end;
  margin-bottom: 70px;
}
.section-heading > p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.timeline { border-top: 1px solid var(--line); }
.timeline article {
  position: relative;
  display: grid;
  grid-template-columns: .55fr 1fr 1.2fr;
  gap: 50px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}
.timeline-marker {
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue-bright);
  box-shadow: 0 0 18px rgba(58,140,255,.8);
}
.timeline p { margin: 0; }
.period { color: var(--ice); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.timeline h3 { margin: 0; font-size: 21px; letter-spacing: -.025em; }
.company { margin-top: 8px !important; color: #71849c; font-size: 14px; }
.timeline-logos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.timeline-logo {
  width: 130px;
  height: 54px;
  padding: 10px 14px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
}
.timeline-logo--light { background: #f5f8fc; }
.timeline-logo--dark { background: #06101d; }
.timeline-logo img { width: 100%; max-height: 32px; object-fit: contain; }
.timeline-copy { color: #9cabbc; font-size: 15px; line-height: 1.65; }

.cases-section { background: #f4f7fb; color: #0a1422; }
.cases-section .section-kicker { color: #1768de; }
.cases-section .section-heading > p { color: #536071; }
.case-list { border-top: 1px solid #cbd8e8; }
.case-card {
  display: grid;
  grid-template-columns: 70px minmax(260px, .75fr) 1.25fr;
  gap: clamp(28px, 4vw, 64px);
  padding: 54px 0;
  border-bottom: 1px solid #cbd8e8;
}
.case-index {
  color: #1768de;
  font-family: var(--font-geist-mono), monospace;
  font-size: 13px;
  font-weight: 700;
}
.case-company {
  margin: 0 0 14px !important;
  color: #1768de !important;
  font-size: 12px !important;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.case-intro h3 { margin: 0; font-size: clamp(25px, 2.3vw, 36px); line-height: 1.1; letter-spacing: -.04em; }
.case-intro > p { margin: 20px 0 0; color: #536071; font-size: 15px; line-height: 1.7; }
.case-metrics { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid #cbd8e8; }
.case-metrics p { margin: 0; padding: 19px; border-right: 1px solid #cbd8e8; display: flex; flex-direction: column; gap: 5px; }
.case-metrics p:last-child { border-right: 0; }
.case-metrics strong { color: #0a1422; font-size: 22px; letter-spacing: -.04em; }
.case-metrics span { color: #677587; font-size: 11px; line-height: 1.35; text-transform: uppercase; letter-spacing: .06em; }
.case-content ul { margin: 26px 0 0; padding: 0; list-style: none; }
.case-content li { position: relative; margin: 13px 0; padding-left: 24px; color: #425064; font-size: 14px; line-height: 1.6; }
.case-content li::before { content: "→"; position: absolute; left: 0; color: #1768de; font-weight: 800; }

.strengths-section { background: #07101c; }
.strength-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.strength-grid article {
  min-height: 290px;
  padding: 28px;
  border-right: 1px solid var(--line);
  transition: background .3s ease, transform .3s ease;
}
.strength-grid article:last-child { border-right: 0; }
.strength-grid article:hover { background: rgba(36,120,255,.09); transform: translateY(-5px); }
.strength-grid span { color: var(--blue-bright); font-family: monospace; font-size: 12px; }
.strength-grid h3 { margin: 85px 0 14px; font-size: 21px; }
.strength-grid p { margin: 0; color: #8d9eb3; font-size: 14px; line-height: 1.65; }
.strategy-feature {
  display: grid;
  grid-template-columns: minmax(260px, .62fr) 1fr;
  gap: clamp(42px, 7vw, 100px);
  align-items: center;
  margin-top: 92px;
  padding-top: 72px;
  border-top: 1px solid var(--line);
}
.strategy-feature img { width: 100%; max-height: 670px; object-fit: cover; object-position: center top; }
.strategy-feature h3 { margin: 0 0 24px; font-size: clamp(36px, 4.5vw, 68px); line-height: 1; letter-spacing: -.05em; }
.strategy-feature > div > p:last-child { max-width: 650px; margin: 0; color: #9aabc0; font-size: 18px; line-height: 1.75; }

.quote-section {
  padding: 120px 18vw;
  background: var(--blue);
  text-align: center;
}
.quote-mark { height: 56px; color: rgba(255,255,255,.45); font-family: Georgia, serif; font-size: 86px; line-height: 1; }
blockquote { margin: 18px auto 28px; max-width: 1000px; font-size: clamp(30px, 3.3vw, 52px); line-height: 1.2; letter-spacing: -.035em; font-weight: 650; }
.quote-section p { margin: 0; color: rgba(255,255,255,.72); font-size: 13px; text-transform: uppercase; letter-spacing: .13em; }

.contact-section {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: radial-gradient(circle at 50% 110%, rgba(36,120,255,.32), transparent 40%), var(--navy);
}
.contact-section::before {
  content: "SM";
  position: absolute;
  right: -2vw;
  bottom: -8vw;
  color: rgba(142,203,255,.035);
  font-size: 28vw;
  font-weight: 800;
  letter-spacing: -.12em;
  pointer-events: none;
}
.contact-section .section-kicker { justify-content: center; }
.contact-section > p:not(.section-kicker) { max-width: 680px; margin: 28px auto 0; color: var(--muted); line-height: 1.7; }
.contact-actions { position: relative; display: flex; justify-content: center; align-items: center; gap: 34px; margin-top: 40px; }
.contact-mail { color: var(--ice); font-size: 14px; border-bottom: 1px solid rgba(142,203,255,.35); padding-bottom: 5px; }
footer {
  min-height: 100px;
  padding: 26px clamp(24px, 5vw, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: #6f8198;
  font-size: 12px;
}
footer .brand { color: white; }

@media (max-width: 980px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    padding: 22px 24px 28px;
    flex-direction: column;
    gap: 20px;
    background: rgba(5, 11, 20, .98);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .menu-toggle {
    display: grid;
    place-items: center;
  }
  .hero { grid-template-columns: 1fr; padding-top: 130px; }
  .company-logo-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-visual { min-height: 480px; margin-top: 20px; }
  .manifesto-grid, .section-heading { grid-template-columns: 1fr; gap: 35px; }
  .case-card { grid-template-columns: 44px 1fr; }
  .case-content { grid-column: 2; }
  .strength-grid { grid-template-columns: repeat(2, 1fr); }
  .strength-grid article:nth-child(2) { border-right: 0; }
  .strength-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .strategy-feature { grid-template-columns: .72fr 1fr; }
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
}
.menu-toggle > span:not(.screen-reader-text),
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle > span:not(.screen-reader-text) { margin: 4px 0; }
.menu-toggle[aria-expanded="true"] > span:not(.screen-reader-text) { opacity: 0; }
.menu-toggle[aria-expanded="true"]::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"]::after { transform: translateY(-6px) rotate(-45deg); }
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.custom-logo { display: block; max-height: 42px; width: auto; }
.admin-bar .site-header { top: 32px; }
.content-page {
  min-height: 70vh;
  max-width: 980px;
  margin: 0 auto;
  padding: 150px clamp(24px, 7vw, 110px) 90px;
}
.content-page h1 { font-size: clamp(44px, 6vw, 78px); }
.content-page .entry-content { margin-top: 42px; color: var(--muted); font-size: 17px; line-height: 1.75; }
.wp-block-image img, .entry-content img { max-width: 100%; height: auto; }
.error-page { text-align: center; }

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

@media (max-width: 980px) {
  .menu-toggle { display: grid; }
}

@media (max-width: 680px) {
  .site-header { height: 68px; }
  .header-cta { padding: 9px 12px; }
  .header-cta span { display: none; }
  .hero { padding-top: 116px; }
  h1 { font-size: clamp(48px, 15vw, 70px); }
  .hero-actions, .contact-actions { align-items: stretch; flex-direction: column; }
  .text-link { align-self: flex-start; }
  .hero-facts { gap: 22px; }
  .hero-facts span { max-width: 90px; }
  .hero-visual { min-height: 390px; }
  .company-strip { padding-top: 28px; padding-bottom: 32px; }
  .company-logo-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .company-logo { min-height: 82px; padding: 18px; }
  .company-logo img { max-height: 40px; }
  .monogram { left: 16%; width: 68%; }
  .manifesto, .experience-section, .cases-section, .strengths-section, .contact-section { padding-top: 82px; padding-bottom: 82px; }
  .timeline article { grid-template-columns: 1fr; gap: 14px; padding: 30px 0; }
  .case-card { grid-template-columns: 1fr; gap: 20px; padding: 40px 0; }
  .case-content { grid-column: 1; }
  .case-metrics { grid-template-columns: 1fr; }
  .case-metrics p { border-right: 0; border-bottom: 1px solid #cbd8e8; }
  .case-metrics p:last-child { border-bottom: 0; }
  .strength-grid { grid-template-columns: 1fr; }
  .strength-grid article { min-height: 230px; border-right: 0; border-bottom: 1px solid var(--line); }
  .strength-grid h3 { margin-top: 55px; }
  .strategy-feature { grid-template-columns: 1fr; margin-top: 64px; padding-top: 54px; }
  .strategy-feature img { max-height: 560px; }
  .quote-section { padding: 85px 24px; }
  footer { align-items: flex-start; flex-direction: column; gap: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
