@font-face {
  font-family: 'JetBrainsMono';
  src: url('fonts/JetBrainsMono-Regular.woff2') format('truetype');
}

:root {
  --bg: #0f172a;
  --surface: #111827;
  --surface-2: #1f2937;
  --text-main: #e2e8f0;
  --text-muted: #a8b4c6;
  --accent: #38bdf8;
  --accent-2: #60a5fa;
  --border: rgba(148, 163, 184, 0.2);
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.35);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', 'JetBrainsMono', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html, body {
  min-height: 100%;
    scroll-behavior: smooth;
}

body {
  background: radial-gradient(circle at top, #1e293b 0%, var(--bg) 38%, #0b1220 100%);
  color: var(--text-main);
  line-height: 1.5;
  padding-bottom: 40px;
}

.section {
  width: min(1100px, 92%);
  margin: 0 auto;
  padding: 80px 0;
}

.hero {
  text-align: center;
  padding-top: 90px;
  padding-bottom: 90px;
}

h1 {
  font-size: clamp(2rem, 7vw, 4rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero p {
  color: #cbd5e1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.8rem;
  margin-bottom: 1.7rem;
}

h2 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  margin-bottom: 0.9rem;
  color: #f8fafc;
}

h3{
  position: relative;
  padding-bottom: 6px;
}

h3::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;

  background: linear-gradient(
    to right,
    transparent 0%,
    var(--border) 50%,
    transparent 100%
  );
}

h4{
  position: relative;
  padding-bottom: 6px;
}

h4::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;

  background: linear-gradient(
    to right,
    transparent 0%,
    var(--border) 50%,
    transparent 100%
  );
}

p {
  color: var(--text-muted);
}

.btn {
  display: inline-flex;
  padding: 0.65rem 1.35rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #0b1220;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 5px 18px rgba(56, 189, 248, 0.15);
  font-size: 0.9rem;
  margin-top: 10px;
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(56, 189, 248, 0.35);
  opacity: 0.95;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-top: 1rem;
}

.card {
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.4rem 1rem 2.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  text-align: center;
  position: relative;
}

.card a{
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.card a:hover{
    transform: translateX(-50%);
  }
  
  .card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.25);
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.45);
    filter: brightness(1.2);
}

.card h3 {
  margin-bottom: 1rem;
  color: #f8fafc;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

hr {
  margin-top: 10px;
  border: none;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    var(--surface-2) 30%,
    var(--surface-2) 70%,
    transparent 100%
  );
}
.servicio h2 {
  text-align: center;
}

.servicio h3 {
  text-align: center;
  margin-bottom: 25px;
}

.servicio-block {
  margin-top: 25px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, #0f172a, #111827);
  transition: transform 0.25s ease;
}

.servicio-block:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.15);
}

.servicio-block h4 {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Iconos */
.material-symbols-outlined {
  font-size: 20px;
  color: var(--accent);
  transition: transform 0.25s ease;
}

/* Animación del icono */
.servicio-block:hover .material-symbols-outlined {
  transform: scale(1.2) rotate(5deg);
}

.servicio-block ul {
  margin-top: 10px;
  padding-left: 18px;
}

.servicio-block li {
  margin-bottom: 6px;
  color: var(--text-muted);
}

.servicio-block p {
  margin-top: 10px;
}

.muted {
  font-size: 0.9rem;
  opacity: 0.8;
}

.servicio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 25px;
}

.servicio-grid div {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, #0f172a, #111827);
}

.servicio-block.destacado {
  border: 1px solid rgba(56, 189, 248, 0.4);
  background: linear-gradient(180deg, #0f172a, #0b1220);
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.08);
}

.carousel {
  position: relative;
  margin-top: 15px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

.carousel img {
  width: 100%;
  flex-shrink: 0;
  object-fit: cover;
}

/* Botones */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border);
  color: var(--text-main);
  font-size: 22px;
  padding: 5px 10px;
  cursor: pointer;
  z-index: 10;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.carousel-btn:hover {
  background: rgba(56, 189, 248, 0.2);
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

.hidden {
  display: none;
}

.visible-section {
  display: block;
  animation: fadeSlideIn 0.4s ease;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.visible-section {
  max-height: 2000px;
  opacity: 1;
  transform: translateY(0);
}

footer {
  text-align: center;
  color: #94a3b8;
  font-size: 0.85rem;
  margin-top: 45px;
  opacity: 0.9;
  padding: 10px 0;
}

@media (max-width: 700px) {
  .section {
    padding: 50px 0;
  }

  .hero {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  h1 {
    font-size: clamp(1.8rem, 11vw, 2.8rem);
  }
}

.btn-wrap {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  padding: 1px;
  border-radius: 10px;
  overflow: hidden;
  transition: 0.25s ease-in;
}

.btn-wrap:hover{
  transform: scale(1.05);
}

.btn-border {
  position: absolute;
  inset: -200%;
  background: conic-gradient(
  from 0deg,
  transparent 0%,
  var(--accent) 10%,
  transparent 20%
);

  animation: spin 3s linear infinite;
}

.btn-wrap .btn1 {
  position: relative;
  display: inline-flex;
  padding: 0.65rem 1.35rem;
  border-radius: 10px;
  background: #253247;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 1;
  min-width: 120px;
  transition: min-width 0.4s ease, filter 0.2s;
}

.btn1:hover{
  filter: brightness(1.1);
  min-width: 300px;
}

.btn1 span {
  transition: opacity 0.2s ease;
}
.btn1::after {
  min-width: 260px;
  content: "OVERRTHINKERMAIL@GMAIL.COM";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.btn1:hover span {
  opacity: 0;
}

.btn1:hover::after {
  opacity: 1;
}


.btn-wrap .btn2 {
  position: relative;
  display: inline-flex;
  padding: 0.65rem 1.35rem;
  border-radius: 10px;
  background: #253247;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 1;
  transition: min-width 0.4s ease, filter 0.2s;
}

.btn2:hover{
  filter: brightness(1.1);
}
.animate{
  animation: spin 2s linear infinite
}

#barra {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  padding: 0px;
  z-index: 1000;

  /* oculto por defecto */
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;

  transition: all 0.3s ease;

  /* degradado */
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 1),
    rgba(15, 23, 42, 0.5),
    transparent
  );
  backdrop-filter: blur(3px);
}

#barra h1{
  margin-bottom: 0;
  margin-top: 20px;
  font-size: 40px;
}


#barra p{
  margin-top: 0;
  font-size: 10px;
}

#barra.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@keyframes spin {
  to {
      transform: rotate(360deg)
  }
}

@keyframes bgPulse {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.1);
  }
}