/* ===== VARIABLES ===== */
:root {
  --color-fondo: #FFFFFF;
  --color-texto: #1A1A1A;
  --color-texto-suave: #37332A;
  --color-borde: #E5E5E5;

  --fuente-display: 'DM Serif Display', serif; 
  --fuente-cuerpo: 'Inter', sans-serif;

  --espaciado-seccion: 8rem;   /* antes: 6rem */
  --ancho-maximo: 720px;
}

/* ===== RESET BÁSICO ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--fuente-cuerpo);
  color: var(--color-texto);
  background-color: var(--color-fondo);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--fuente-display);
  font-weight: 600;
  line-height: 1.15;
}

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

ul {
  list-style: none;
}

/* ===== ESTRUCTURA GENERAL DE SECCIONES ===== */
section {
  max-width: var(--ancho-maximo);
  margin: 0 auto;
  padding: var(--espaciado-seccion) 1.5rem;
}

.eyebrow {
  font-family: var(--fuente-cuerpo);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-texto-suave);
  margin-bottom: 0.75rem;
}

/* ===== HERO / INICIO ===== */
#inicio {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;      
  text-align: center;       
}

#inicio h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  margin-bottom: 1.5rem;
}

#inicio p {
  font-size: 1.1rem;
  color: var(--color-texto-suave);
}

#inicio p:last-child {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ===== MENÚ HAMBURGUESA ===== */
.menu-button {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;   
  z-index: 100;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-texto);
}

.menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;              
  background-color: var(--color-fondo);
  display: flex;
  flex-direction: column;
  align-items: center;       
  justify-content: center;   
  gap: 2rem;                 
  padding: 2rem;
  transform: translateX(-100%);   
  transition: transform 0.3s ease;
  z-index: 99;
}

.menu.abierto {
  transform: translateX(0);
}

.menu a {
  font-size: 1.1rem;
  font-family: var(--fuente-display);
}

.close-button {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== SOBRE MÍ ===== */
#sobre-mi p {
  font-size: 1.05rem;
  margin-bottom: 1.75rem;   
}
.sobre-mi-cta {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: var(--fuente-display);
  font-size: 1.1rem;
  font-style: italic;
  border-bottom: 1px solid var(--color-texto);
  padding-bottom: 2px;
  transition: opacity 0.2s ease;
}

.sobre-mi-cta:hover {
  opacity: 0.6;
}

/* ===== PROYECTOS ===== */
.proyecto-galeria {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 1rem;
}

.proyecto-galeria img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 4px;
} 
.proyectos-grid {
  display: grid;
  gap: 3.5rem;
  margin-top: 2rem;
}

.proyecto-card {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-borde);
}

.proyecto-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
  margin-bottom: 1rem;
}

.proyecto-card:nth-child(3) .proyecto-logo {
  background-color: #1A1A1A;
  padding: 6px;
  border-radius: 4px;
}

.proyecto-card p {
  color: var(--color-texto-suave);
}

/* ===== RESEÑAS ===== */
.resena-card {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-borde);
}

.resena-card p:first-child {
  font-style: italic;
  font-size: 1.05rem;
}

.resena-autor {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-texto-suave);
}

.resena-cta {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--color-texto);
  border-radius: 999px;
  font-size: 0.9rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.resena-cta:hover {
  background-color: var(--color-texto);
  color: var(--color-fondo);
}

/* ===== CONTACTO ===== */
.contacto-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.contacto-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-borde);
  border-radius: 50%;
  transition: border-color 0.2s ease;
}

.contacto-links a:hover {
  border-color: var(--color-texto);
}
/* ===== RESPONSIVE: PROYECTOS EN DESKTOP ===== */
@media (min-width: 768px) {
  .proyectos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .proyectos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
/* ===== MODAL DE PROYECTOS ===== */
.proyecto-card {
  cursor: pointer;
}

.ver-mas {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-texto);
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 200;
  padding: 2rem;
  overflow-y: auto;
}

.modal-overlay.abierto {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.modal-contenido {
  background-color: var(--color-fondo);
  max-width: 600px;
  width: 100%;
  padding: 2.5rem;
  border-radius: 8px;
  position: relative;
  margin-top: 3rem;
}

.modal-cerrar {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-galeria {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.modal-galeria img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background-color:#FFFFFF;
  border-radius: 4px;
}

.modal-instagram {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.modal-subtitulo {
  color: var(--color-texto-suave);
  font-size: 0.95rem;
  margin-top: -0.5rem;
  margin-bottom: 1.5rem;
}

.modal-contenido h4 {
  font-family: var(--fuente-cuerpo);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-texto-suave);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.modal-galeria-3 {
  grid-template-columns: 1fr 1fr 1fr;
}
/* ===== FONDO ANIMADO DEL HERO ===== */
#inicio {
  position: relative;
  overflow: hidden;
  background-color: #F3EEFB;
  max-width: 100%;      /* nuevo: anula el límite de 720px solo para esta sección */
  padding-left: 0;      /* nuevo: saca el padding lateral que empujaba el contenido */
  padding-right: 0; 
}
.hero-contenido {
  position: relative;
  z-index: 1;
  max-width: var(--ancho-maximo);   /* nuevo: el texto sigue limitado a 720px, para que no quede gigante en pantallas anchas */
  margin: 0 auto;                    /* nuevo: lo vuelve a centrar */
  padding: 0 1.5rem;                  /* nuevo: recupera el aire lateral que tenía antes, solo para el texto */
}

.hero-fondo {
  position: absolute;
  top: 0;
  inset:0;
  z-index: 0;
  filter: blur(10px);   /* antes: 15px — bajamos más para que se vean más definidos */
}

.blob {
  position: absolute;
  opacity: 0.8;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle at 35% 30%, #E4D9F7 0%, #B8A2DE 45%, #7C5FBF 100%);
  top: -8%;
  left: -5%;
  animation: mutar-1 18s ease-in-out infinite, flotar-1 26s ease-in-out infinite;
}

.blob-2 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle at 40% 35%, #EDE4FA 0%, #C9B6E4 45%, #8B6FC7 100%);
  top: 5%;
  right: -5%;
  animation: mutar-2 22s ease-in-out infinite, flotar-2 30s ease-in-out infinite;
}

.blob-3 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle at 30% 25%, #DFD1F5 0%, #A78BFA 45%, #6D4FBF 100%);
  top: 35%;
  left: 25%;
  animation: mutar-3 20s ease-in-out infinite, flotar-3 24s ease-in-out infinite;
}

.blob-4 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle at 45% 40%, #E9DDF6 0%, #B199DD 45%, #6D4FBF 100%);
  bottom: -10%;
  left: -8%;
  animation: mutar-1 24s ease-in-out infinite reverse, flotar-2 20s ease-in-out infinite;
}

.blob-5 {
  width: 460px;
  height: 460px;
  background: radial-gradient(circle at 35% 30%, #F0E7FA 0%, #C0A8E8 45%, #7C5FBF 100%);
  bottom: -5%;
  right: -6%;
  animation: mutar-2 19s ease-in-out infinite reverse, flotar-3 28s ease-in-out infinite;
}

.blob-6 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle at 40% 35%, #E4D9F7 0%, #A78BFA 45%, #6D4FBF 100%);
  top: 55%;
  right: 20%;
  animation: mutar-3 21s ease-in-out infinite reverse, flotar-1 22s ease-in-out infinite;
}

@keyframes mutar-1 {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}

@keyframes mutar-2 {
  0%, 100% { border-radius: 40% 60% 60% 40% / 70% 30% 70% 30%; }
  50% { border-radius: 70% 30% 50% 50% / 30% 60% 40% 70%; }
}

@keyframes mutar-3 {
  0%, 100% { border-radius: 50% 50% 70% 30% / 40% 70% 30% 60%; }
  50% { border-radius: 65% 35% 40% 60% / 60% 40% 60% 40%; }
}

@keyframes flotar-1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, 30px); }
}

@keyframes flotar-2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, 40px); }
}

@keyframes flotar-3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -30px); }
}
.categoria-titulo {
  font-family: var(--fuente-cuerpo);
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--color-texto);
}

.categoria-titulo:first-of-type {
  margin-top: 2rem;
}

.proyecto-placeholder {
  opacity: 0.4;
  cursor: default;
}

.proyecto-placeholder .ver-mas {
  display: none;
}