/* ==========================================================================
   O360 Agency — Home
   Paleta: navy #071b33 · azul #2458dc · teal #087f89 · borde #d8e4ef
   Tipografías: Manrope (títulos) · Inter (texto) · IBM Plex Mono (etiquetas)
   ========================================================================== */

#o360-main {
  position: relative;
  left: 50%;
  width: 100vw;
  max-width: none;
  margin-left: -50vw;
  overflow: hidden;
  color: #071b33;
  background: #ffffff;
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.625;
}

#o360-main *,
#o360-main *::before,
#o360-main *::after {
  box-sizing: border-box;
}

#o360-main h1,
#o360-main h2,
#o360-main h3,
#o360-main p {
  margin-top: 0;
}

#o360-main h1,
#o360-main h2,
#o360-main h3 {
  color: #071b33;
  font-family: Manrope, Arial, sans-serif;
  letter-spacing: -0.035em;
}

#o360-main h1 {
  max-width: 900px;
  margin-bottom: 24px;
  font-size: 72px;
  line-height: 1;
}

#o360-main h2 {
  margin-bottom: 20px;
  font-size: 48px;
  line-height: 1.06;
}

#o360-main h3 {
  font-size: 20px;
  line-height: 1.2;
}

#o360-main a {
  color: inherit;
}

#o360-main a:focus,
#o360-main button:focus,
#o360-main input:focus,
#o360-main select:focus,
#o360-main textarea:focus {
  outline: 3px solid #8da8ff;
  outline-offset: 3px;
}

#o360-main [hidden] {
  display: none !important;
}

/* Elimina índices automáticos insertados por WordPress o sus plugins. */
#o360-main .ez-toc-container,
#o360-main #ez-toc-container,
#o360-main .lwptoc,
#o360-main #toc_container,
#o360-main .rank-math-toc-block,
#o360-main .wp-block-rank-math-toc-block,
#o360-main .post-index,
body.home .post-index {
  display: none !important;
}

.o360-container {
  width: calc(100% - 32px);
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.o360-eyebrow {
  margin-bottom: 20px;
  color: #2458dc;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ==========================================================================
   Botones (CTA)
   ========================================================================== */

.o360-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 30px;
  border-radius: 14px;
  font-family: Inter, Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease,
    transform 160ms ease, box-shadow 160ms ease;
}

.o360-btn span {
  transition: transform 160ms ease;
}

.o360-btn--primary {
  border: 1px solid #2458dc;
  background: #2458dc;
  color: #ffffff;
  box-shadow: 0 16px 40px rgba(36, 88, 220, 0.28);
}

#o360-main .o360-btn--primary {
  color: #ffffff !important;
}

.o360-btn--primary:hover {
  background: #1c46b3;
  border-color: #1c46b3;
  color: #ffffff !important;
  transform: translateY(-2px);
}

.o360-btn--primary:hover span {
  transform: translateX(3px);
}

.o360-btn--ghost {
  border: 1px solid #d8e4ef;
  background: #ffffff;
  color: #071b33;
}

.o360-btn--ghost:hover {
  border-color: #2458dc;
  color: #2458dc;
  background: #f4f8fc;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.o360-hero {
  position: relative;
  padding: 104px 0 96px;
  border-bottom: 1px solid #d8e4ef;
  background: #ffffff;
}

.o360-hero__lead {
  max-width: 730px;
  margin-bottom: 36px;
  color: #58708a;
  font-size: 20px;
}

.o360-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.o360-submit {
  min-height: 46px;
  border: 1px solid #2458dc;
  border-radius: 11px;
  background: #2458dc;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  transition: background-color 160ms ease, transform 160ms ease;
}

.o360-submit:hover {
  background: #1c46b3;
  border-color: #1c46b3;
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* ==========================================================================
   Secciones (espaciado general)
   ========================================================================== */

.o360-results-section,
.o360-cases,
.o360-solutions,
.o360-method,
.o360-lead {
  padding: 88px 0;
}

.o360-section-heading {
  max-width: 620px;
  margin-bottom: 48px;
}

.o360-section-heading > p:last-child,
.o360-section-heading > div > p:last-child {
  color: #58708a;
}

.o360-section-heading--wide {
  max-width: 780px;
  margin-bottom: 48px;
}

.o360-section-heading--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  max-width: none;
}

.o360-section-heading--split > div {
  max-width: 620px;
}

/* ==========================================================================
   Servicios — grid compacto de tarjetas
   ========================================================================== */

.o360-results-status {
  margin: 0 0 6px;
  color: #58708a;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 13px;
  white-space: nowrap;
}

.o360-results {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.o360-result > a {
  position: relative;
  display: flex;
  height: 100%;
  flex-direction: column;
  padding: 26px 26px 22px;
  border: 1px solid #d8e4ef;
  border-radius: 16px;
  background: #ffffff;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease,
    transform 160ms ease;
}

.o360-result > a:hover {
  border-color: #2458dc;
  box-shadow: 0 18px 44px rgba(7, 27, 51, 0.1);
  transform: translateY(-3px);
}

.o360-result__path,
.o360-result__title,
.o360-result__description,
.o360-result__action {
  display: block;
}

.o360-result__path {
  margin-bottom: 10px;
  color: #087f89;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.o360-result__title {
  margin-bottom: 8px;
  font-family: Manrope, Arial, sans-serif;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.o360-result__description {
  margin-bottom: 16px;
  color: #58708a;
  font-size: 15px;
  line-height: 1.55;
}

.o360-result__action {
  margin-top: auto;
  color: #2458dc;
  font-size: 14px;
  font-weight: 700;
}

.o360-result__action span {
  display: inline-block;
  transition: transform 160ms ease;
}

.o360-result > a:hover .o360-result__action span {
  transform: translate(3px, -3px);
}

.o360-result--blog .o360-result__path {
  color: #2458dc;
}

.o360-result--blog .o360-result__title {
  font-size: 18px;
}

.o360-inline-link {
  color: #2458dc;
  font-weight: 700;
  text-underline-offset: 4px;
}

.o360-text-button {
  margin-top: 32px;
  padding: 8px 0;
  border: 0;
  border-bottom: 2px solid #2458dc;
  background: transparent;
  color: #071b33;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

/* ==========================================================================
   Casos reales — gráficas estilo Search Console (anonimizadas)
   ========================================================================== */

.o360-cases {
  border-top: 1px solid #d8e4ef;
  background: #f8fbfe;
}

.o360-cases__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.o360-case {
  display: flex;
  flex-direction: column;
  padding: 26px 26px 20px;
  border: 1px solid #d8e4ef;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(7, 27, 51, 0.06);
}

.o360-case__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.o360-case__sector {
  color: #58708a;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.o360-case__growth {
  padding: 5px 12px;
  border-radius: 999px;
  background: #e7f6ee;
  color: #087f5b;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.o360-case__metrics {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.o360-metric {
  flex: 1 1 0;
  padding: 10px 14px;
  border-radius: 10px;
  color: #ffffff;
}

.o360-metric--clicks {
  background: #2458dc;
}

.o360-metric--impr {
  background: #087f89;
}

.o360-metric__label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  opacity: 0.85;
}

.o360-metric__value {
  display: block;
  font-family: Manrope, Arial, sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.o360-case__period {
  margin: -8px 0 16px;
  color: #8ba0b4;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.02em;
}

.o360-chart {
  position: relative;
  width: 100%;
}

.o360-chart svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Tooltip estilo Search Console */
.o360-chart__tooltip {
  position: absolute;
  z-index: 5;
  min-width: 138px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #071b33;
  color: #ffffff;
  font-size: 12px;
  line-height: 1.5;
  box-shadow: 0 12px 30px rgba(7, 27, 51, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0);
  transition: opacity 120ms ease;
}

.o360-chart__tooltip.is-active {
  opacity: 1;
}

.o360-chart__tooltip strong {
  display: block;
  margin-bottom: 4px;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}

.o360-chart__tooltip-row {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.o360-chart__tooltip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* Aparición sutil de las tarjetas al entrar en pantalla.
   La clase .o360-anim la añade JavaScript: sin JS, siempre visibles. */
.o360-case.o360-anim {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.o360-case.o360-anim.is-visible {
  opacity: 1;
  transform: none;
}

.o360-cases__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
}

.o360-cases__note {
  max-width: 560px;
  margin: 0;
  color: #58708a;
  font-size: 13px;
}

/* ==========================================================================
   Soluciones por objetivo
   ========================================================================== */

.o360-solutions {
  border-top: 1px solid #d8e4ef;
  background: #ffffff;
}

.o360-solution-grid {
  display: flex;
  flex-wrap: wrap;
  margin-left: -8px;
  margin-right: -8px;
}

.o360-solution-group {
  width: calc(100% - 16px);
  margin: 0 8px 16px;
  padding: 28px 0;
  border: 0;
  border-top: 2px solid #071b33;
  border-radius: 0;
  background: transparent;
}

.o360-group-icon {
  display: inline-flex;
  min-width: 36px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  border: 1px solid #d8e4ef;
  border-radius: 50%;
  color: #2458dc;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
}

.o360-solution-group h3 {
  min-height: 48px;
  margin-bottom: 20px;
}

.o360-solution-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.o360-solution-group li + li {
  border-top: 1px solid #d8e4ef;
}

.o360-solution-group a {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.o360-solution-group a span {
  margin-left: 16px;
}

.o360-solution-group a:hover {
  color: #2458dc;
}

/* ==========================================================================
   SEO + IA
   ========================================================================== */

.o360-ai {
  padding: 96px 0;
  border-top: 1px solid #d8e4ef;
  border-bottom: 1px solid #d8e4ef;
  color: #071b33;
  background: #ffffff;
}

#o360-main .o360-ai h2 {
  color: #071b33;
}

.o360-ai .o360-eyebrow {
  color: #2458dc;
}

.o360-ai__grid {
  display: block;
}

.o360-ai__content {
  margin-top: 40px;
}

.o360-ai__content > p {
  max-width: 650px;
  color: #58708a;
  font-size: 18px;
}

.o360-chip-list {
  display: flex;
  flex-wrap: wrap;
  margin-top: 28px;
}

.o360-chip-list a {
  margin: 0 10px 10px 0;
  padding: 9px 14px;
  border: 1px solid #2458dc;
  border-radius: 999px;
  color: #2458dc;
  font-size: 14px;
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.o360-chip-list a:hover {
  border-color: #071b33;
  background: #f4f8fc;
}

/* ==========================================================================
   Método
   ========================================================================== */

.o360-principles {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 32px;
  padding: 0;
  border-top: 1px solid #d8e4ef;
  list-style: none;
}

.o360-principles li {
  display: flex;
  width: 100%;
  min-height: 76px;
  align-items: center;
  border-bottom: 1px solid #d8e4ef;
}

.o360-principles span {
  width: 44px;
  min-width: 44px;
  margin-right: 12px;
  color: #087f89;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 12px;
}

/* ==========================================================================
   Contacto / lead
   ========================================================================== */

.o360-lead {
  border-top: 1px solid #d8e4ef;
  background: #ffffff;
}

.o360-lead__grid {
  display: block;
}

.o360-lead__intro {
  margin-bottom: 48px;
}

.o360-lead__intro > p:not(.o360-eyebrow) {
  max-width: 590px;
  color: #58708a;
}

.o360-email-link {
  display: inline-block;
  margin-top: 12px;
  color: #2458dc !important;
  font-weight: 700;
  text-underline-offset: 4px;
}

.o360-lead-form {
  padding: 24px;
  border: 1px solid #d8e4ef;
  border-radius: 16px;
  background: #ffffff;
}

.o360-form-grid {
  display: flex;
  flex-wrap: wrap;
  margin-left: -9px;
  margin-right: -9px;
}

.o360-field {
  width: calc(100% - 18px);
  margin: 0 9px;
}

.o360-field label,
.o360-check label {
  display: block;
  color: #0e2a47;
  font-size: 14px;
  font-weight: 700;
}

.o360-field input,
.o360-field select,
.o360-field textarea {
  width: 100%;
  margin-top: 7px;
  border: 1px solid #9bafc1;
  border-radius: 10px;
  background: #ffffff;
  color: #071b33;
  font: inherit;
}

.o360-field input,
.o360-field select {
  min-height: 48px;
  padding: 0 12px;
}

.o360-field textarea {
  min-height: 132px;
  padding: 11px 12px;
  resize: vertical;
}

.o360-field input[aria-invalid="true"],
.o360-field select[aria-invalid="true"],
.o360-field textarea[aria-invalid="true"] {
  border-color: #b42318;
}

.o360-field__help {
  display: block;
  margin-top: 5px;
  color: #58708a;
  font-size: 12px;
}

.o360-field__error {
  display: block;
  min-height: 20px;
  margin-top: 4px;
  color: #b42318;
  font-size: 12px;
}

.o360-check {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  margin: 18px 0;
}

.o360-check input {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 3px 10px 0 0;
  accent-color: #2458dc;
}

.o360-check label {
  width: calc(100% - 28px);
  font-weight: 500;
}

.o360-check .o360-field__error {
  width: 100%;
  padding-left: 28px;
}

.o360-check a {
  color: #2458dc;
}

.o360-submit {
  width: 100%;
  min-height: 54px;
  padding: 0 20px;
  font-size: 17px;
}

.o360-form-status {
  min-height: 26px;
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 700;
}

.o360-form-note {
  margin: 12px 0 0;
  color: #58708a;
  font-size: 12px;
}

.o360-form-status.is-error {
  color: #b42318;
}

.o360-form-status.is-success {
  color: #087f5b;
}

.o360-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

/* ==========================================================================
   Botón flotante de WhatsApp
   ========================================================================== */

.o360-whatsapp {
  position: fixed;
  right: 22px;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 18px;
  border-radius: 999px;
  background: #25d366;
  color: #ffffff !important;
  box-shadow: 0 12px 32px rgba(7, 27, 51, 0.24);
  text-decoration: none;
  font-family: Inter, Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease,
    background-color 160ms ease;
}

.o360-whatsapp:hover {
  background: #1eb85a;
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(7, 27, 51, 0.3);
}

.o360-whatsapp svg {
  display: block;
  min-width: 30px;
}

.o360-whatsapp__label {
  line-height: 1;
}

@media (max-width: 719px) {
  .o360-whatsapp {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    min-height: 58px;
    width: 58px;
    justify-content: center;
    padding: 0;
  }

  /* En móvil solo el ícono, para no tapar contenido */
  .o360-whatsapp__label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (min-width: 700px) {
  .o360-results {
    grid-template-columns: repeat(2, 1fr);
  }

  .o360-solution-group {
    width: calc(50% - 16px);
  }

  .o360-principles li {
    width: 50%;
    padding-right: 24px;
  }

  .o360-field {
    width: calc(50% - 18px);
  }

  .o360-field--full {
    width: calc(100% - 18px);
  }
}

@media (min-width: 980px) {
  .o360-container {
    width: calc(100% - 64px);
  }

  .o360-results-section,
  .o360-cases,
  .o360-solutions,
  .o360-method,
  .o360-lead {
    padding: 120px 0;
  }

  .o360-cases__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .o360-solution-group {
    width: calc(25% - 16px);
    padding-right: 16px;
  }

  .o360-ai__grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .o360-ai__grid > div:first-child {
    width: 48%;
  }

  .o360-ai__content {
    width: 44%;
    margin-top: 0;
  }

  .o360-principles li {
    width: 33.333%;
  }

  .o360-lead__grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }

  .o360-lead__intro {
    width: 38%;
    margin-bottom: 0;
  }

  .o360-lead-form {
    width: 55%;
    padding: 36px;
  }
}

@media (max-width: 719px) {
  #o360-main h1 {
    font-size: 48px;
  }

  #o360-main h2 {
    font-size: 36px;
  }

  .o360-hero__lead {
    font-size: 18px;
  }
}

@media (max-width: 520px) {
  #o360-main h1 {
    font-size: 42px;
  }

  #o360-main h2 {
    font-size: 32px;
  }

  .o360-hero {
    padding: 72px 0 64px;
  }

  .o360-btn {
    width: 100%;
  }

  .o360-case__metrics {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  #o360-main *,
  #o360-main *::before,
  #o360-main *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}