/*
Theme Name: Conectat&Cloud
Theme URI: https://www.conectandcloud.es
Author: Conectat&Cloud
Author URI: https://www.conectandcloud.es
Description: Tema ligero y accesible para la web corporativa de Conectat&Cloud.
Version: 1.0.0
Requires at least: 7.0
Tested up to: 7.0.3
Requires PHP: 7.4
Text Domain: conectat-cloud
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: accessibility-ready, custom-logo, custom-menu, one-column, responsive-layout
*/

:root {
  --cc-ink: #04111f;
  --cc-navy: #031429;
  --cc-cyan: #70e4ff;
  --cc-cyan-strong: #16c7f3;
  --cc-ice: #e9f9ff;
  --cc-muted: #526479;
  --cc-line: #c9dfeb;
  --cc-white: #ffffff;
  --cc-surface: #f5fbfe;
  --cc-shadow: 0 22px 60px rgb(0 48 84 / 0.12);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--cc-white);
  color: var(--cc-ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #f6c445;
  outline-offset: 4px;
  border-radius: 4px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus,
.cc-skip-link:focus {
  position: fixed !important;
  z-index: 100000;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 10px 16px;
  clip: auto;
  overflow: visible;
  background: var(--cc-white);
  color: var(--cc-navy);
  font-weight: 800;
  text-decoration: none;
  white-space: normal;
}

.cc-container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.cc-site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  min-height: 76px;
  border-bottom: 1px solid rgb(112 228 255 / 0.18);
  background: rgb(3 20 41 / 0.96);
  color: var(--cc-white);
  backdrop-filter: blur(16px);
}

.cc-header-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cc-brand,
.cc-custom-logo-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  text-decoration: none;
}

.cc-brand-mark {
  display: grid;
  width: 54px;
  height: 46px;
  place-items: center;
  overflow: hidden;
}

.cc-brand-mark img {
  width: 62px;
  height: 52px;
  object-fit: contain;
}

.cc-custom-logo-link img {
  width: auto;
  max-width: 210px;
  max-height: 52px;
}

.cc-brand-name {
  font-size: 1.3rem;
  font-weight: 720;
  letter-spacing: -0.04em;
}

.cc-brand-name span {
  color: var(--cc-cyan-strong);
}

.cc-site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.cc-site-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: #e6f8ff;
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
}

.cc-site-nav a:hover {
  color: var(--cc-cyan);
}

.cc-site-nav li:last-child a {
  min-height: 42px;
  padding-inline: 20px;
  border: 1px solid rgb(112 228 255 / 0.65);
  border-radius: 999px;
}

.cc-hero {
  position: relative;
  min-height: 650px;
  isolation: isolate;
  overflow: hidden;
  background: var(--cc-navy);
  color: var(--cc-white);
}

.cc-hero-backdrop {
  position: absolute;
  z-index: -2;
  inset: 0;
  background-color: var(--cc-navy);
  background-image: url("assets/hero-tech.webp");
  background-position: right center;
  background-repeat: no-repeat;
  background-size: auto 100%;
}

.cc-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgb(2 12 27 / 1) 0%, rgb(2 16 35 / 0.98) 27%, rgb(2 19 41 / 0.84) 49%, rgb(2 17 37 / 0.2) 78%),
    linear-gradient(0deg, rgb(2 13 29 / 0.7) 0%, transparent 35%);
}

.cc-hero-content {
  display: flex;
  min-height: 650px;
  flex-direction: column;
  justify-content: center;
  padding-block: 88px;
}

.cc-eyebrow {
  margin: 0 0 18px;
  color: #0874b8;
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.cc-hero .cc-eyebrow,
.cc-contact .cc-eyebrow {
  color: var(--cc-cyan);
}

.cc-hero h1,
.cc-section h2,
.cc-audience h2,
.cc-contact h2,
.cc-service-card h3,
.cc-process-steps h3 {
  text-wrap: pretty;
}

.cc-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.8rem, 6.6vw, 5.7rem);
  font-weight: 720;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.cc-hero h1 span {
  display: block;
  color: var(--cc-cyan);
}

.cc-hero-copy {
  max-width: 620px;
  margin: 26px 0 0;
  color: #d6eaf5;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.65;
}

.cc-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.cc-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 760;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

.cc-button:hover {
  transform: translateY(-2px);
}

.cc-button-primary {
  background: var(--cc-cyan);
  color: #02131e;
  box-shadow: 0 12px 30px rgb(22 199 243 / 0.24);
}

.cc-button-primary:hover {
  background: #a1edff;
}

.cc-button-secondary {
  border-color: rgb(255 255 255 / 0.48);
  background: rgb(2 16 34 / 0.5);
  color: var(--cc-white);
}

.cc-button-secondary:hover {
  border-color: var(--cc-cyan);
  background: rgb(8 54 87 / 0.65);
}

.cc-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin: 40px 0 0;
  padding: 0;
  color: #d9eff8;
  font-size: 0.93rem;
  list-style: none;
}

.cc-hero-points span {
  margin-right: 6px;
  color: var(--cc-cyan);
  font-weight: 800;
}

.cc-section {
  padding-block: clamp(76px, 10vw, 120px);
}

.cc-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  align-items: end;
  gap: 60px;
  margin-bottom: 48px;
}

.cc-section h2,
.cc-audience h2,
.cc-contact h2 {
  margin: 0;
  font-size: clamp(2.15rem, 4.5vw, 4rem);
  font-weight: 720;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.cc-section-heading > p,
.cc-process-intro > p:not(.cc-eyebrow) {
  margin: 0;
  color: var(--cc-muted);
  font-size: 1.06rem;
}

.cc-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.cc-service-card {
  position: relative;
  min-height: 310px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--cc-line);
  border-radius: 18px;
  background: var(--cc-white);
  box-shadow: 0 8px 34px rgb(6 54 87 / 0.06);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.cc-service-card::after {
  position: absolute;
  right: -46px;
  bottom: -54px;
  width: 130px;
  height: 130px;
  border: 1px solid rgb(22 199 243 / 0.18);
  border-radius: 50%;
  content: "";
}

.cc-service-card:hover {
  transform: translateY(-4px);
  border-color: #7dcbe9;
  box-shadow: var(--cc-shadow);
}

.cc-service-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid #a5e4f6;
  border-radius: 14px;
  background: var(--cc-ice);
  color: #056aa9;
}

.cc-service-icon svg {
  width: 28px;
  height: 28px;
}

.cc-service-card h3 {
  margin: 24px 0 10px;
  font-size: 1.28rem;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.cc-service-card p {
  margin: 0;
  color: var(--cc-muted);
}

.cc-service-result {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 24px;
  color: #075a8b;
  font-size: 0.88rem;
  font-weight: 760;
}

.cc-process {
  background: var(--cc-surface);
}

.cc-process-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(440px, 1.1fr);
  gap: clamp(54px, 9vw, 120px);
}

.cc-process-intro h2 {
  margin-bottom: 24px;
}

.cc-tool-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.cc-tool-list span {
  padding: 8px 14px;
  border: 1px solid #bcd9e6;
  border-radius: 999px;
  background: var(--cc-white);
  color: #284a61;
  font-size: 0.84rem;
  font-weight: 700;
}

.cc-process-steps {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cc-process-steps li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid #bcd9e6;
}

.cc-process-steps li:first-child {
  padding-top: 0;
}

.cc-process-steps li:last-child {
  border-bottom: 0;
}

.cc-step-number {
  color: #0076b8;
  font-size: 0.85rem;
  font-weight: 830;
  letter-spacing: 0.12em;
}

.cc-process-steps h3 {
  margin: 0 0 6px;
  font-size: 1.35rem;
}

.cc-process-steps p {
  margin: 0;
  color: var(--cc-muted);
}

.cc-audience {
  background: var(--cc-navy);
  color: var(--cc-white);
}

.cc-audience-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1.7fr 1fr 1fr;
  min-height: 230px;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.cc-audience h2 {
  color: var(--cc-cyan);
  font-size: clamp(2rem, 3vw, 3rem);
}

.cc-audience p {
  margin: 0;
  color: #d1e8f4;
  font-size: 0.9rem;
  font-weight: 690;
}

.cc-contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 60px;
  padding: clamp(34px, 6vw, 72px);
  border-radius: 24px;
  background: radial-gradient(circle at 80% 20%, rgb(0 164 231 / 0.24), transparent 34%), var(--cc-navy);
  color: var(--cc-white);
  box-shadow: var(--cc-shadow);
}

.cc-contact-panel h2 {
  max-width: 680px;
}

.cc-contact-panel > div > p:not(.cc-eyebrow) {
  max-width: 610px;
  margin: 24px 0 0;
  color: #cfe6f1;
  font-size: 1.05rem;
}

.cc-contact-action {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  padding: 28px;
  border: 1px solid rgb(112 228 255 / 0.34);
  border-radius: 16px;
  background: rgb(4 39 70 / 0.62);
}

.cc-contact-action span,
.cc-contact-action small {
  color: #bdd9e7;
}

.cc-contact-action a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-block: 5px;
  color: var(--cc-cyan);
  font-size: clamp(1rem, 2vw, 1.18rem);
  font-weight: 780;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.cc-site-footer {
  padding-block: 30px;
  border-top: 1px solid #c7dce7;
  background: #eef7fb;
}

.cc-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #3e5667;
  font-size: 0.82rem;
}

.cc-footer-inner p {
  margin: 0;
}

.cc-footer-brand {
  color: var(--cc-navy);
}

.cc-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cc-legal-links a {
  text-underline-offset: 4px;
}

.cc-content {
  width: min(860px, calc(100% - 40px));
  min-height: 55vh;
  margin-inline: auto;
  padding-block: 72px;
}

.cc-content h1 {
  margin: 0 0 28px;
  font-size: clamp(2.3rem, 6vw, 4.5rem);
  line-height: 1.05;
}

.cc-content a {
  color: #075a8b;
  text-underline-offset: 3px;
}

.cc-entry + .cc-entry {
  margin-top: 54px;
  padding-top: 40px;
  border-top: 1px solid var(--cc-line);
}

.cc-entry-title a {
  color: var(--cc-ink);
}

.cc-not-found {
  text-align: center;
}

@media (max-width: 900px) {
  .cc-header-inner {
    align-items: flex-start;
    flex-wrap: wrap;
    padding-block: 12px;
  }

  .cc-site-nav {
    width: 100%;
  }

  .cc-site-nav ul {
    justify-content: space-between;
    gap: 10px;
  }

  .cc-site-nav a {
    padding-inline: 4px;
  }

  .cc-hero,
  .cc-hero-content {
    min-height: 610px;
  }

  .cc-hero::before {
    background: linear-gradient(90deg, rgb(2 12 27 / 0.98) 0%, rgb(2 16 35 / 0.92) 62%, rgb(2 17 37 / 0.56) 100%);
  }

  .cc-section-heading,
  .cc-process-layout,
  .cc-contact-panel {
    grid-template-columns: 1fr;
  }

  .cc-section-heading {
    gap: 24px;
  }

  .cc-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cc-process-layout {
    gap: 54px;
  }

  .cc-audience-inner {
    grid-template-columns: 1fr 1fr;
    padding-block: 60px;
  }

  .cc-audience h2 {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .cc-contact-panel {
    gap: 34px;
  }
}

@media (max-width: 620px) {
  .cc-container,
  .cc-content {
    width: min(100% - 28px, 1160px);
  }

  .cc-brand-name {
    font-size: 1.08rem;
  }

  .cc-brand-mark {
    width: 42px;
  }

  .cc-site-nav li:last-child a {
    min-height: 40px;
    padding-inline: 10px;
  }

  .cc-site-nav a {
    font-size: 0.82rem;
  }

  .cc-hero-content {
    padding-block: 72px;
  }

  .cc-hero-backdrop {
    background-position: 72% center;
  }

  .cc-hero::before {
    background: linear-gradient(90deg, rgb(2 12 27 / 0.98), rgb(2 16 35 / 0.86));
  }

  .cc-hero h1 {
    font-size: clamp(2.65rem, 13vw, 4.2rem);
  }

  .cc-hero-actions,
  .cc-button {
    width: 100%;
  }

  .cc-hero-points {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .cc-service-grid {
    grid-template-columns: 1fr;
  }

  .cc-service-card {
    min-height: 0;
  }

  .cc-process-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .cc-process-steps li {
    grid-template-columns: 48px 1fr;
  }

  .cc-audience-inner {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .cc-audience h2 {
    grid-column: auto;
  }

  .cc-contact-panel {
    padding: 32px 22px;
  }

  .cc-contact-action {
    padding: 22px 18px;
  }

  .cc-contact-action a {
    overflow-wrap: anywhere;
  }

  .cc-footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
