/* =====================================================================
   DEVTECHCR — HOJA DE ESTILOS PRINCIPAL

   Organización:
   1. Variables y base
   2. Componentes reutilizables
   3. Encabezado y portada
   4. Secciones de contenido
   5. Adaptación para tablet y teléfono

   Consejo: empieza cambiando las variables de color de :root. De esa
   forma puedes transformar la identidad visual sin buscar cada color.
   ===================================================================== */

/* ---------- 1. VARIABLES Y ESTILOS BASE ---------- */
:root {
  --ink: #10272b;
  --ink-soft: #405b5f;
  --paper: #f7f4ec;
  --paper-deep: #ede8db;
  --white: #fffdf8;
  --teal: #0b706d;
  --teal-bright: #10a09a;
  --copper: #d4743f;
  --line: #d9d4c8;
  --night: #09282d;
  --success: #178563;
  --shadow: 0 18px 45px rgb(9 40 45 / 14%);

  --font-sans: "Aptos", "Segoe UI", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --container: 1160px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3,
figure {
  margin-top: 0;
}

:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 4px;
}

/* Contenedor central reutilizado en toda la página. */
.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: white;
  color: black;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- 2. COMPONENTES REUTILIZABLES ---------- */
.section {
  padding-block: 110px;
}

.section-heading {
  max-width: 790px;
  margin-bottom: 52px;
}

.split-heading {
  display: grid;
  grid-template-columns: 1.1fr 0.75fr;
  align-items: end;
  gap: 72px;
  max-width: none;
}

.split-heading > p {
  margin-bottom: 4px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.kicker,
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kicker-light {
  color: #86d8d3;
}

h1,
h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 680px;
  margin-bottom: 24px;
  font-size: clamp(3.15rem, 6vw, 5.7rem);
}

h1 em {
  color: var(--teal);
  font-weight: inherit;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.35rem, 4vw, 4rem);
}

h3 {
  line-height: 1.25;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 51px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 21px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  font-size: 0.9rem;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button-primary {
  background: var(--ink);
  color: white;
  box-shadow: 7px 7px 0 var(--copper);
}

.button-primary:hover {
  box-shadow: 4px 4px 0 var(--copper);
}

.button-secondary:hover {
  background: var(--white);
}

/* ---------- 3. ENCABEZADO Y NAVEGACIÓN ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgb(16 39 43 / 10%);
  background: rgb(247 244 236 / 92%);
  backdrop-filter: blur(15px);
}

.header-layout {
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  min-width: max-content;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.brand-name strong,
.brand-name small {
  display: block;
}

.brand-name strong {
  line-height: 1.2;
}

.brand-name small {
  margin-top: 3px;
  color: #718084;
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.desktop-nav a {
  position: relative;
  color: #445b5e;
  font-size: 0.86rem;
  font-weight: 700;
}

.desktop-nav a::after {
  position: absolute;
  right: 100%;
  bottom: -7px;
  left: 0;
  height: 2px;
  background: var(--copper);
  content: "";
  transition: right 180ms ease;
}

.desktop-nav a:hover::after {
  right: 0;
}

.header-button {
  padding: 10px 17px;
  border-radius: 4px;
  background: var(--teal);
  color: white;
  font-size: 0.86rem;
  font-weight: 800;
}

.mobile-menu {
  display: none;
  margin-left: auto;
}

/* ---------- 4. PORTADA ---------- */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(11 112 109 / 18%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(11 112 109 / 18%) 1px, transparent 1px);
  background-size: 52px 52px;
  opacity: 0.18;
  mask-image: linear-gradient(to right, black, transparent 62%);
  pointer-events: none;
}

.hero-layout {
  position: relative;
  display: grid;
  min-height: 680px;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 64px;
  padding-block: 72px 88px;
}

.hero-lead {
  max-width: 610px;
  margin-bottom: 32px;
  color: var(--ink-soft);
  font-size: 1.12rem;
  line-height: 1.75;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 11px 22px;
  margin: 34px 0 0;
  padding: 0;
  color: #496063;
  font-size: 0.78rem;
  list-style: none;
}

.trust-list span {
  color: var(--success);
  font-weight: 900;
}

.hero-visual {
  position: relative;
  padding: 0 20px 30px 0;
}

.photo-frame {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  margin-bottom: 0;
  background: #173438;
  box-shadow: 20px 20px 0 rgb(11 112 109 / 13%);
}

.photo-frame::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(4 22 25 / 78%), transparent 52%);
  content: "";
  pointer-events: none;
}

.photo-frame img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.photo-frame figcaption {
  position: absolute;
  right: 27px;
  bottom: 27px;
  left: 27px;
  z-index: 2;
  color: white;
}

.photo-frame figcaption small,
.photo-frame figcaption strong {
  display: block;
}

.photo-frame figcaption small {
  margin-bottom: 5px;
  color: #9edbd7;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.photo-frame figcaption strong {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
}

/* La tarjeta se ubica arriba: no tapa el texto inferior de la fotografía. */
.status-card {
  position: absolute;
  top: 24px;
  right: -10px;
  z-index: 3;
  display: flex;
  min-width: 285px;
  align-items: center;
  gap: 12px;
  padding: 16px 19px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}

.status-symbol {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  font-weight: 900;
}

.status-card small,
.status-card strong {
  display: block;
}

.status-card small {
  color: #718084;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-card strong {
  font-size: 0.85rem;
}

/* ---------- SERVICIOS ---------- */
.services-section {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-card {
  min-height: 290px;
  padding: 29px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
  transition: transform 180ms ease, background 180ms ease;
}

.service-card:hover {
  position: relative;
  z-index: 1;
  transform: translateY(-3px);
  background: #f6f2e8;
}

.card-number {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.card-number > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid #b9ceca;
  border-radius: 50%;
  color: var(--teal);
  font-size: 1.25rem;
}

.card-number small {
  color: #8d9b99;
  font-family: var(--font-serif);
}

.service-card h3,
.price-card h3,
.future-grid h3 {
  margin-bottom: 12px;
  font-family: var(--font-serif);
  font-size: 1.35rem;
}

.service-card p,
.future-grid p {
  margin-bottom: 0;
  color: #566b6e;
  font-size: 0.9rem;
  line-height: 1.72;
}

/* ---------- PROCESO ---------- */
.process-section {
  padding-block: 100px;
  background: var(--night);
  color: white;
}

.process-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 105px;
}

.process-intro > p:last-child {
  margin-top: 22px;
  color: #a9c0c3;
}

.process-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid rgb(255 255 255 / 15%);
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 17px;
  padding: 21px 4px;
  border-bottom: 1px solid rgb(255 255 255 / 15%);
}

.process-list li > span {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 50%;
  background: #8ed9d5;
  color: var(--night);
  font-family: var(--font-serif);
}

.process-list strong {
  font-family: var(--font-serif);
  font-size: 1.12rem;
}

.process-list p {
  margin: 4px 0 0;
  color: #afc2c4;
  font-size: 0.87rem;
}

/* ---------- PRECIOS ---------- */
.pricing-section {
  background: var(--paper-deep);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.price-card {
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--white);
}

.price {
  margin-bottom: 20px;
  color: var(--teal);
  font-weight: 900;
}

.price-card ul {
  margin: 18px 0;
  padding: 0;
  color: #4f6669;
  font-size: 0.85rem;
  list-style: none;
}

.price-card li {
  position: relative;
  margin-bottom: 8px;
  padding-left: 20px;
}

.price-card li::before {
  position: absolute;
  left: 0;
  color: var(--teal);
  content: "✓";
  font-weight: 900;
}

.price-card .note {
  margin-bottom: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: #778486;
  font-size: 0.77rem;
  line-height: 1.55;
}

.disclaimer {
  max-width: 900px;
  margin: 28px auto 0;
  color: #647376;
  font-size: 0.78rem;
  text-align: center;
}

/* ---------- SOBRE MÍ ---------- */
.about-section {
  background: var(--white);
}

.about-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  align-items: center;
  gap: 90px;
}

.about-badge {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  box-shadow: 18px 18px 0 var(--paper-deep);
}

.about-badge strong {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 9vw, 7rem);
  line-height: 1;
}

.about-badge span {
  margin-top: 10px;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.about-copy .lead {
  margin-top: 25px;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.training-note {
  margin-top: 28px;
  padding: 22px 24px;
  border-left: 4px solid var(--copper);
  background: var(--paper);
}

.training-note p {
  margin: 7px 0 0;
  color: #52676a;
  font-size: 0.88rem;
}

.about-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 25px 0 0;
  padding: 0;
  list-style: none;
}

.about-points li {
  padding: 8px 12px;
  border: 1px solid #bed0cc;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
}

/* ---------- CONSEJOS ---------- */
.tips-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 100px;
}

.tips-layout header > p:last-child {
  color: var(--ink-soft);
}

.tips-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.tips-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 17px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.tips-list span {
  color: var(--copper);
  font-family: var(--font-serif);
}

.tips-list p {
  margin: 0;
  color: #486064;
}

/* ---------- SOFTWARE LIBRE ---------- */
.open-section {
  padding-block: 110px;
  background: var(--night);
  color: white;
}

.open-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 95px;
}

.open-layout h2 {
  margin-bottom: 25px;
}

.open-layout p {
  color: #b8cacc;
}

.resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.resource-links a {
  padding: 10px 14px;
  border: 1px solid rgb(255 255 255 / 25%);
  color: #9fe5e0;
  font-size: 0.82rem;
  font-weight: 800;
}

.resource-links a:hover {
  border-color: #9fe5e0;
}

.principles {
  border-top: 1px solid rgb(255 255 255 / 15%);
}

.principles article {
  padding: 25px 5px;
  border-bottom: 1px solid rgb(255 255 255 / 15%);
}

.principles strong {
  font-family: var(--font-serif);
  font-size: 1.25rem;
}

.principles p {
  margin: 5px 0 0;
  font-size: 0.85rem;
}

/* ---------- POLÍTICAS DESPLEGABLES ---------- */
.policies-section {
  background: var(--white);
}

.policy-warning {
  padding: 17px;
  border-left: 4px solid var(--copper);
  background: #fff7ed;
  color: #71513f !important;
  font-size: 0.84rem;
}

.policy-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}

.policy-list details {
  border: 1px solid var(--line);
  background: var(--paper);
}

.policy-list summary {
  position: relative;
  padding: 20px 50px 20px 22px;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 700;
  list-style: none;
}

.policy-list summary::-webkit-details-marker {
  display: none;
}

.policy-list summary::after {
  position: absolute;
  top: 17px;
  right: 20px;
  color: var(--teal);
  content: "+";
  font-family: var(--font-sans);
  font-size: 1.35rem;
}

.policy-list details[open] summary::after {
  content: "−";
}

.policy-list details p {
  margin: 0;
  padding: 0 22px 22px;
  color: #53696c;
  font-size: 0.88rem;
}

/* ---------- YOUTUBE ---------- */
.youtube-section {
  padding-block: 70px;
  background: var(--copper);
}

.youtube-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
  color: white;
}

.youtube-mark {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 45%);
  border-radius: 50%;
}

.youtube-card h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.youtube-card p:last-child {
  max-width: 690px;
  margin: 15px 0 0;
  color: #fff2e9;
}

.coming-soon {
  padding: 9px 13px;
  border: 1px solid rgb(255 255 255 / 50%);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- SERVICIOS FUTUROS ---------- */
.future-section {
  background: var(--paper-deep);
}

.future-section .section-heading > p:last-child {
  margin-top: 20px;
  color: var(--ink-soft);
}

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

.future-grid article {
  padding: 30px;
  border-top: 4px solid var(--teal);
  background: var(--white);
}

.future-grid small {
  color: var(--copper);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.future-grid h3 {
  margin-top: 20px;
}

/* ---------- CONTACTO ---------- */
.contact-section {
  background: var(--paper);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 100px;
}

.contact-layout > div:first-child > p:last-child {
  margin-top: 22px;
  color: var(--ink-soft);
}

.contact-links {
  display: grid;
  gap: 12px;
}

.contact-link {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 15px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: var(--white);
  transition: transform 180ms ease, border-color 180ms ease;
}

.contact-link:hover {
  transform: translateX(4px);
  border-color: var(--teal);
}

.contact-link > span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  font-size: 0.77rem;
  font-weight: 900;
}

.contact-link small,
.contact-link strong {
  display: block;
}

.contact-link small {
  color: #718084;
  font-size: 0.67rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-link strong {
  overflow-wrap: anywhere;
}

.contact-link b {
  color: var(--teal);
  font-size: 1.5rem;
}

/* ---------- PIE DE PÁGINA ---------- */
.site-footer {
  padding-block: 36px;
  background: var(--ink);
  color: white;
}

.footer-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-brand .brand-mark {
  background: var(--teal);
}

.footer-brand .brand-name small,
.footer-meta {
  color: #a8babc;
}

.footer-meta {
  display: flex;
  gap: 20px;
  font-size: 0.77rem;
}

/* =====================================================================
   5. DISEÑO RESPONSIVO
   Los puntos de corte pueden ajustarse si cambia mucho el contenido.
   ===================================================================== */

/* Laptop pequeña y tablet horizontal. */
@media (max-width: 1050px) {
  .desktop-nav {
    gap: 16px;
  }

  .desktop-nav a {
    font-size: 0.78rem;
  }

  .hero-layout {
    gap: 38px;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet vertical: se apilan los bloques principales. */
@media (max-width: 860px) {
  .desktop-nav,
  .header-button {
    display: none;
  }

  .mobile-menu {
    position: relative;
    display: block;
  }

  .mobile-menu summary {
    padding: 9px 13px;
    border: 1px solid var(--ink);
    cursor: pointer;
    font-weight: 800;
    list-style: none;
  }

  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .mobile-menu nav {
    position: absolute;
    top: calc(100% + 13px);
    right: 0;
    display: grid;
    width: min(280px, calc(100vw - 40px));
    border: 1px solid var(--line);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .mobile-menu nav a {
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    font-size: 0.9rem;
    font-weight: 700;
  }

  .hero-layout,
  .split-heading,
  .process-layout,
  .about-layout,
  .tips-layout,
  .open-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-layout {
    gap: 55px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero-visual {
    width: min(680px, 100%);
    margin-inline: auto;
  }

  .split-heading,
  .process-layout,
  .about-layout,
  .tips-layout,
  .open-layout,
  .contact-layout {
    gap: 45px;
  }

  .services-grid,
  .future-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-badge {
    width: min(340px, 75vw);
    margin-inline: auto;
  }

  .policy-list {
    grid-template-columns: 1fr;
  }

  .youtube-card {
    grid-template-columns: auto 1fr;
  }

  .coming-soon {
    grid-column: 2;
    justify-self: start;
  }
}

/* Teléfono: una columna, tipografía y espacios más compactos. */
@media (max-width: 600px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .section,
  .open-section {
    padding-block: 78px;
  }

  .brand-name small {
    display: none;
  }

  .hero-layout {
    min-height: auto;
    padding-block: 58px 70px;
  }

  h1 {
    font-size: clamp(2.75rem, 14vw, 4rem);
  }

  .hero-lead {
    font-size: 1rem;
  }

  .button-row,
  .button {
    width: 100%;
  }

  .trust-list {
    display: grid;
  }

  .hero-visual {
    padding: 0 10px 18px 0;
  }

  .photo-frame,
  .photo-frame img {
    min-height: 410px;
    height: 410px;
  }

  /* En móvil la tarjeta deja de flotar sobre la foto. */
  .status-card {
    position: static;
    min-width: 0;
    margin-top: 18px;
  }

  .services-grid,
  .pricing-grid,
  .future-grid {
    grid-template-columns: 1fr;
  }

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

  .card-number {
    margin-bottom: 24px;
  }

  .youtube-card {
    grid-template-columns: 1fr;
  }

  .coming-soon {
    grid-column: 1;
  }

  .contact-link {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .contact-link > span {
    width: 42px;
    height: 42px;
  }

  .contact-link b {
    display: none;
  }

  .footer-layout,
  .footer-meta {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Respeta la preferencia del sistema para reducir animaciones. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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