/*
      Proyecto estudiantil: réplica de estructura/estilos de la home.
      — No usa contenidos ni imágenes originales; todo es placeholder.
      — Solo HTML + CSS, sin frameworks.
      — 100% responsive, accesible, y fácil de modificar.
    */

:root {
  --bg: #ffffff;
  --text: #101114;
  --muted: #5b6170;
  --brand: #515ca4;
  /* tono dorado/arena para acentos */
  --brand-strong: #9c6f49;
  --surface: #f6f6f7;
  /* gris muy claro para bloques */
  --line: #e6e7eb;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(16, 17, 20, 0.08);
  --maxw: 1200px;
}

/* Reset mínimo */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell,
    Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

.container {
  width: min(100% - 32px, var(--maxw));
  margin-inline: auto;
}

.btn {
  display: inline-block;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

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

.btn.primary:hover {
  background: var(--brand-strong);
}

.btn.ghost {
  background-color: transparent; /* fondo transparente */
  color: #515ca4; /* color principal */
  font-weight: bold;
  padding: 12px 25px;
  border-radius: 8px;
  border: 2px solid #515ca4; /* borde con color principal */
  box-shadow: none;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn.ghost:hover {
  background-color: #515ca4; /* fondo principal al pasar el mouse */
  color: #ffffff; /* texto blanco al hover */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.btn.ghost:active {
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.kicker {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brand);
  font-size: 0.8rem;
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 0.6rem;
}

h1 {
  font-size: clamp(2rem, 4vw + 0.5rem, 3.25rem);
}

h2 {
  font-size: clamp(1.5rem, 2.2vw + 0.5rem, 2.2rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0.5rem 0 1rem;
  color: var(--muted);
}

.surface {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
}

.brand {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.brand__logo {
  width: 42px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  box-shadow: var(--shadow);
}

.brand__title {
  font-weight: 800;
  letter-spacing: 0.2px;
}

/* Menú responsive (sin JS: checkbox hack) */
#menu-toggle {
  display: none;
}

.menu {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.menu a {
  padding: 0.5rem 0.25rem;
  border-radius: 10px;
}

.menu a:hover {
  background: var(--surface);
}

.hamb {
  display: none;
  cursor: pointer;
  padding: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.hamb span {
  display: block;
  width: 22px;
  height: 2px;
  background: #333;
  margin: 5px 0;
}

@media (max-width: 860px) {
  .hamb {
    display: block;
  }

  .menu {
    position: fixed;
    inset: auto 0 0 0;
    top: 64px;
    background: white;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 0;
  }

  .menu a {
    padding: 1rem 1.25rem;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
  }

  .menu {
    transform: translateY(105%);
    transition: transform 0.25s ease;
  }

  #menu-toggle:checked ~ .menu {
    transform: translateY(0);
  }
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.hero__tag {
  margin-bottom: 0.5rem;
}

.hero__bullets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 1rem 0 1.25rem;
}

.hero__bullets span {
  display: block;
  text-align: center;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
  color: #2d313a;
  background: #fff;
}

.hero__img {
  position: relative;
}

.hero__card {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow);
  font-size: 0.9rem;
}

.hero__photo {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.hero__photo img {
  aspect-ratio: 4/3;
  object-fit: cover;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }

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

/* Features (dos tarjetas) */
.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.feature {
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: white;
}

.feature h3 {
  margin-bottom: 0.25rem;
}

@media (max-width: 820px) {
  .features {
    grid-template-columns: 1fr;
  }
}

/* Servicios */
.section {
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

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

@media (max-width: 1024px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card__media {
  aspect-ratio: 4/3;
  background: #ddd;
}

.card__body {
  padding: 1rem;
}

.chip {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
  color: #2d313a;
  background: #fff;
}

/* Sobre mí */
.about {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 30px;
  align-items: center;
}

.about .portrait {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.about .stats {
  display: flex;
  gap: 16px;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.stat {
  flex: 1 1 140px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  text-align: center;
}

@media (max-width: 900px) {
  .about {
    grid-template-columns: 1fr;
  }
}

/* Llamado a la acción */
.cta {
  background: linear-gradient(180deg, #fff, #faf7f4);
}

.cta .box {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 26px;
  align-items: center;
}

@media (max-width: 900px) {
  .cta .box {
    grid-template-columns: 1fr;
  }
}

/* Footer */
footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 20px;
  padding: 2rem 0;
}

.footer small {
  color: var(--muted);
}

@media (max-width: 860px) {
  .footer {
    grid-template-columns: 1fr;
  }
}

.copyright {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.card-title {
  color: #515ca4;
}

h5 {
  color: #4a3a2a;
}
