:root {
  --rosa: #f6a6b2;
  --rosa-suave: #ffe8ec;
  --gris-claro: #fafafa;
  --negro: #222;
  --fuente-titulo: 'Fraunces', serif;
  --fuente-texto: 'Inter', sans-serif;
}

/* RESET */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--fuente-texto);
  color: var(--negro);
  background: #fff;
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* BOTÓN TOP */
#myBtn {
  display: none;
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 99;
  background: var(--rosa);
  color: #fff;
  border: none;
  outline: none;
  padding: 14px 18px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: all .3s ease;
}
#myBtn:hover {
  background: var(--rosa-suave);
  color: var(--negro);
  transform: scale(1.1);
}

/* HEADER */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 3rem;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.logo {
  font-family: var(--fuente-titulo);
  font-size: 1.9rem;
  color: var(--rosa);
  letter-spacing: 3px;
}

nav ul { list-style: none; display: flex; gap: 2rem; }
nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: 0.3s;
}
nav a:hover { color: var(--rosa); }

/* HERO */
.hero {
  height: 90vh;
  background: 
    linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.4)),
    url('img/trabajo.jpg') center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 0 2rem;
}
.hero h1 {
  font-family: var(--fuente-titulo);
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 0 3px 10px rgba(0,0,0,0.4);
}
.hero p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}
.hero button {
  border: none;
  padding: 12px 30px;
  background: var(--rosa);
  color: #fff;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.hero button:hover {
  background: var(--rosa-suave);
  color: var(--negro);
}

/* SECCIONES */
.section {
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: auto;
  text-align: center;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  border-radius: 12px;
  margin-bottom: 3rem;
}
.section h2 {
  font-family: var(--fuente-titulo);
  font-size: 2rem;
  margin-bottom: 20px;
}
.section p { color: #555; margin-bottom: 40px; }

/* PROCESO */
.proceso {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}
.etapa {
  background: var(--gris-claro);
  border-radius: 16px;
  padding: 30px;
  flex: 1 1 280px;
  transition: 0.3s;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}
.etapa:hover { background: var(--rosa-suave); transform: translateY(-4px); }

/* PORTAFOLIO */
#btnContainer {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .6rem;
}
.btn {
  border: 2px solid var(--rosa);
  background: transparent;
  color: var(--rosa);
  padding: 8px 20px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: .3s;
}
.btn.active, .btn:hover {
  background: var(--rosa);
  color: #fff;
}
.grid-proyectos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.proyecto img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 18px;
  transition: transform .3s ease, box-shadow .3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.proyecto img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* FORMULARIO */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 400px;
  margin: auto;
}
input, textarea {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: .95rem;
}
button[type="submit"] {
  background: var(--rosa);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: .3s;
}
button[type="submit"]:hover {
  background: var(--rosa-suave);
  color: var(--negro);
}

/* MAPA */
.mapa {
  margin-top: 3rem;
  border-radius: 16px;
  overflow: hidden;
}

/* FOOTER */
footer {
  background: var(--negro);
  color: white;
  text-align: center;
  padding: 40px 25px;
}
footer h3 {
  font-family: var(--fuente-titulo);
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--rosa);
}
footer p {
  font-size: .9rem;
  opacity: 0.9;
}

/* ============================= */
/* INFOGRAFÍA INTERACTIVA AJEDREZ */
.base-wrap {
  position: relative;
  width: 100%;
  margin-bottom: 2rem;
}
.base-wrap .base {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* HOTSPOTS */
.hotspot {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(0,0,0,0);
  cursor: pointer;
}
.hotspot .dot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rosa);
  opacity: 0.7;
}

/* PREVIEW */
.preview {
  position: fixed;
  top: 50%;
  left: 65%;
  transform: translateY(-50%);
  width: 34vw;
  max-width: 420px;
  min-width: 260px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  z-index: 50;
}
.preview.visible {
  opacity: 1;
  pointer-events: auto;
}
.preview img {
  width: 100%;
  display: block;
  border-radius: 14px;
}
.proyecto-destacado {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 20px;
  background: #f9f9f9;
  border-radius: 16px;
  margin: 40px auto;
  max-width: 900px;
}

.proyecto-destacado h2 {
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  margin-bottom: 16px;
}

.proyecto-destacado p {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.btn-muster {
  background-color: #f6a6b2;
  color: #222;
  border: none;
  padding: 12px 28px;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-muster:hover {
  background-color: #ffa1b0;
}


