@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;500;700&display=swap');

:root {
  --fondo-claro: #fffdf8;
  --negro: #111;
  --rosa-vibrante: #ff468c;
  --naranja-pop: #ff884d;
  --amarillo-alegre: #ffdd40;
  --gris-suave: #f5f5f5;
  --texto-claro: #333;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--fondo-claro);
  font-family: 'Outfit', sans-serif;
  color: var(--texto-claro);
  scroll-behavior: smooth;
}

header {
  padding-top: 40px;
  text-align: center;
}

.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 5rem;
  font-weight: 700;
  letter-spacing: -2px;
  color: var(--rosa-vibrante);
  margin: 0 auto;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 0;
  margin-top: 20px;
}

nav a {
  text-decoration: none;
  color: var(--negro);
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
}

nav a::after {
  content: '';
  display: block;
  width: 0%;
  height: 2px;
  background: var(--rosa-vibrante);
  transition: width 0.3s;
  position: absolute;
  bottom: -5px;
  left: 0;
}

nav a:hover::after {
  width: 100%;
}

/* HERO enmarcado y centrado */
#hero {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 70px 20px;
}

.hero-content {
  background-color: var(--amarillo-alegre);
  text-align: center;
  padding: 60px 40px;
  border-radius: 20px;
  max-width: 1500px;   /* más ancho */
  width: 90%;          /* ocupa el 90% de la pantalla */
  margin: 0 auto;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.hero-text h1 {
  font-size: 42px;
  font-weight: 700;
}

.hero-text .highlight {
  background: #ff4081; /* Rosa */
  color: white;
  padding: 0 8px;
  border-radius: 6px;
}

.hero-text p {
  font-size: 18px;
  margin: 20px 0 32px;
  line-height: 1.6;
}

/* BOTÓN rosa estilo pill */
.btn {
  display: inline-block;
  padding: 12px 32px;
  background: #ff4081;   /* Rosa */
  color: white;          /* Texto blanco para contraste */
  font-weight: 700;
  text-decoration: none;
  border-radius: 9999px; /* pastilla */
  transition: all 0.3s ease;
}

.btn:hover {
  background: #e53770;   /* Rosa más oscuro */
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}


.highlight {
  background-color: var(--rosa-vibrante);
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
}

section {
  padding: 80px 20px;
  max-width: 1100px;
  margin: auto;
}

#about-me {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  align-items: center;
  justify-content: space-between;
}

#about-me p {
  flex: 1 1 450px;
  font-size: 1.1rem;
  line-height: 1.6;
}

#about-me img {
  width: 450px;     /* Ancho fijo más pequeño */
  height: auto;     /* Mantiene proporción */
  border-radius: 12px;
  box-shadow: 8px 20px 20px rgba(0,0,0,0.08);
  margin-right: 20px; /* Para separar de lo que tengas al lado */
  float: left;       /* Esto la manda hacia la izquierda */
}

.grid-portafolio {
  display: flex;
  gap: 40px;
  overflow-x: auto;
  padding-bottom: 20px;
  scroll-snap-type: x mandatory;
}

.proyecto {
  background-color: white;
  border: 2px solid var(--naranja-pop);
  border-radius: 12px;
  padding: 20px;
  min-width: 300px;
  flex-shrink: 0;
  scroll-snap-align: start;
  transition: transform 0.3s ease;
}

.proyecto:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.proyecto img {
  width: 100%;
  max-width: 240px;       /* 👈 Límite para que no se hagan enormes */
  aspect-ratio: 1 / 1;    /* 👈 Cuadradas */
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.proyecto h3 {
  color: var(--naranja-pop);
  margin-top: 15px;
  font-size: 1.2rem;
}

#cta {
  background-color: var(--rosa-vibrante);
  color: white;
  text-align: center;
  padding: 100px 30px;
}

#cta h2 {
  font-size: 4rem;
  color: var(--negro);
  margin-bottom: 10px;
}

.frase-final {
  margin-top: 5px;
  font-style: italic;
  font-weight: 500;
  color: white;
}

.boton-cta {
  display: inline-block;
  margin-top: 20px;
  background-color: var(--amarillo-alegre);
  color: black;
  font-weight: bold;
  padding: 14px 32px;
  border-radius: 40px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.boton-cta:hover {
  opacity: 0.75;
}

#contact {
  text-align: center;
  padding: 80px 20px;
}

#contact h2 {
  font-size: 2rem;
  color: var(--negro);
}

#contact p, #contact a {
  font-size: 1rem;
  color: var(--texto-claro);
  margin: 10px 0;
  text-decoration: none;
}

footer {
  background-color: var(--negro);
  color: white;
  text-align: center;
  padding: 30px 20px;
  font-size: 0.9rem;
  position: relative;
}
