
  /* ================================
   Variables de diseño
================================= */
:root {
  --brand: #009CA3;       /* Color principal (verde azulado) */
  --accent: #3CA1D5;      /* Color secundario (azul claro) */
  --ink: #0f172a;         /* Texto principal (slate-900) */
  --muted: #334155;       /* Texto secundario (slate-700) */
  --line: #e2e8f0;        /* Líneas y bordes (slate-200) */
  --bg: #ffffff;          /* Fondo base */
  --bg-soft: #f8fafc;     /* Fondo suave para secciones */
  --radius: 18px;         /* Radio de esquinas */
}

/* ================================
   Reset básico
================================= */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Raleway, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  /*background: linear-gradient(var(--brand) 5% , var(--accent)  , white 10% );*/

}

.icono {
    width: 100px;
}

/* ================================
   Tipografía y headings
================================= */
.heading {
  font-family: Montserrat, system-ui, Arial, sans-serif;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  margin: 0;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 10px 0;
}

p {
  line-height: 1.6;
}

.small {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ================================
   Layout general
================================= */

.container {
  max-width: 1120px;
  margin-inline: auto;
  padding: 0 16px;
}

section {
  padding: 72px 0;
}

section.soft {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}

/* ================================
   Botones y badges
================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 0;
  cursor: pointer;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  font-weight: 600;
}

.btn-primary {
  background: var(--brand);
  color: #fff ;
}

.btn-header {
  background: #fff;
  color: var(--brand) ;
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--brand);
}

.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
  font-size: 0.8rem;
  border: 1px solid var(--line);
}

.brand-gradient {
  background: linear-gradient(135deg, var(--brand), var(--accent));
}

/* ================================
   Hero
================================= */
.hero {
  padding: 64px 0;
}

.hero-grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.1fr 1fr;
  }
}

/* ================================
   Skills
================================= */
.skills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  height: auto; /* Ajusta la altura al contenido */
}

.skill {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
}

.skill h4 {
  margin: 0 0 4px 0;
  font-size: 0.95rem;
}

.skill p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ================================
   Card
================================= */

.card {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
}


/* ================================
   Grid
================================= */
.grid {
  display: grid;
  gap: 18px;
}

@media (min-width: 720px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

@media (min-width: 720px) {
  .grid-hacemos {
    grid-template-columns: 1fr 2fr; ;
  }
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ================================
   Proyectos
================================= */
.proj {
  overflow: hidden;
}

.proj .cover {
  height: 120px;
  background: linear-gradient(
    135deg,
    var(--brand) 0%,
    rgba(60, 161, 213, 0.25) 100%
  );
}

.proj .body {
  padding: 14px;
}

/* ================================
   Footer
================================= */
footer {
  background: #0b1220;
  color: #cbd5e1;
}

footer a {
  color: #e2e8f0;
}

/* ================================
   Navegación
================================= */
header {
  position: sticky;
  top: 0;
  /*background: rgba(255, 255, 255, 0.9);*/
  background: var(--brand);
  backdrop-filter: blur(8px);
 /* border-bottom: 1px solid var(--line);*/
  z-index: 10;
 color: white;
}

nav a {
  color: inherit;
  text-decoration: none;
  padding: 0.5rem 0.25rem;
}

nav a:hover {
  opacity: 0.75;
}

/* ================================
   Menú móvil
================================= */
.menu-btn {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  border: 1px solid var(--line);
  padding: 6px 8px;
  border-radius: 10px;
  background: #fff;
}

.menu-btn span {
  width: 18px;
  height: 2px;
  background: #111;
}

#menu {
  display: none;
}

@media (min-width: 900px) {
  .menu-btn {
    display: none;
  }
  #menu {
    display: flex !important;
    gap: 22px;
    align-items: center;
  }
}