/* =====================================================
   style.css — Soft Aesthetic Portfolio
   Autor: Enzo Favio
   ===================================================== */

/* 1) Fuente */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

/* 2) Variables */
:root {
  --color-bg: #fef6f9;
  --color-accent: #f7c9d6;
  --color-secondary: #b6a6ca;
  --color-text: #4b4453;
  --color-light: #fff9fb;
  --shadow-soft: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* 3) Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

/* 4) Base general - FONDO COMPLETO */
body {
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Contenedor principal para evitar espacios vacíos */
.main-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* 5) Header y navegación */
header {
  background: var(--color-light);
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--color-secondary);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 400;
  transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-accent);
}

/* Botón del menú (oculto en desktop) */
.menu-toggle {
  display: none;
  border: 1px solid rgba(0, 0, 0, .07);
  background: var(--color-light);
  color: var(--color-text);
  padding: .5rem .85rem;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 500;
}

/* 6) Hero - MEJORADO PARA PANTALLAS GRANDES */
.hero {
  text-align: center;
  padding: 6rem 2rem;
  background: linear-gradient(135deg, #fde2e4, #f8edeb, #e8e8e4);
  border-radius: 0 0 50% 50% / 20%;
  box-shadow: var(--shadow-soft);
  margin: 0 auto;
  max-width: 1200px;
}

.hero h1 {
  font-size: 3rem;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.hero span {
  color: var(--color-accent);
}

.hero p {
  color: #6d6875;
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* 7) Botones - TEMÁTICA ROSA */
.btn {
  background: var(--color-accent);
  color: #ffffff;
  padding: 0.9rem 2rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-soft);
  border: none;
  cursor: pointer;
  display: inline-block;
  font-size: 1rem;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(247, 201, 214, 0.5);
  background: #f5b8c8;
}

/* 8) Secciones generales - OCUPAN MEJOR EL ESPACIO */
section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

section h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: var(--color-text);
}

.about, .projects, .contact {
  background: var(--color-light);
  margin: 2rem auto;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  padding: 3rem 2rem;
}

.about p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
}

/* 9) Proyectos - MEJOR DISTRIBUCIÓN */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background: var(--color-bg);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(247, 201, 214, 0.2);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.repo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  margin: 0 auto 1.5rem;
  border-radius: 20px;
  background: radial-gradient(circle at 30% 30%, #fde2e4, #f8edeb 60%, #e8e8e4);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.repo-icon:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.repo-icon svg {
  width: 50px;
  height: 50px;
  fill: var(--color-secondary);
}

.project-card h3 {
  margin: 1rem 0;
  font-weight: 600;
  color: var(--color-text);
  font-size: 1.3rem;
}

.project-card p {
  margin-bottom: 1rem;
  color: #6d6875;
}

.project-card p a {
  text-decoration: none;
  font-weight: 500;
  color: var(--color-text);
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 2px;
  transition: color 0.3s ease;
}

.project-card p a:hover {
  color: var(--color-accent);
}

/* 10) Contacto */
.contact {
  text-align: center;
}

.contact p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* 11) Footer */
footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  color: #9a8c98;
  background: var(--color-light);
  box-shadow: var(--shadow-soft);
  margin-top: 4rem;
  width: 100%;
}

/* 12) Animaciones */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =====================================================
   Responsive
   ===================================================== */

/* 13) Breakpoint — Tablet (≤900px) */
@media (max-width: 900px) {
  .navbar {
    position: relative;
    gap: .75rem;
  }

  .menu-toggle {
    display: inline-block;
    margin-left: auto;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    right: 16px;
    left: 16px;
    flex-direction: column;
    background: var(--color-light);
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .10);
    padding: .75rem;
    display: none;
    z-index: 1001;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: .65rem .75rem;
    border-radius: 8px;
  }

  .nav-links a:hover {
    background: rgba(0, 0, 0, .03);
  }

  .hero {
    padding: 4rem 1.5rem;
    border-radius: 0 0 35% 35% / 12%;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  section {
    padding: 3rem 1.5rem;
  }

  .about, .projects, .contact {
    padding: 2.5rem 1.5rem;
    margin: 1.5rem auto;
  }
}

/* 14) Breakpoint — Móvil (≤520px) */
@media (max-width: 520px) {
  .navbar {
    padding: .75rem 1rem;
  }

  .logo {
    font-size: 1.15rem;
  }

  .hero {
    padding: 3rem 1rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .btn {
    padding: .8rem 1.5rem;
    font-size: 0.9rem;
  }

  section h2 {
    font-size: 1.5rem;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .project-card {
    padding: 1.5rem;
  }

  footer {
    padding: 1.5rem;
  }
}

/* 15) No scroll cuando el menú está abierto */
.no-scroll {
  overflow: hidden;
}

/* 16) Fondo de página completo para pantallas grandes */
@media (min-width: 1200px) {
  body {
    background: linear-gradient(135deg, #fde2e4 0%, #f8edeb 50%, #e8e8e4 100%);
  }
  
  .main-container {
    background: var(--color-bg);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.05);
    min-height: 100vh;
  }
}

/* =====================================================
   Estilos para Sobre Mí
   ===================================================== */

.about-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

.about-text {
  background: var(--color-light);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 3rem;
}

.about-text h2 {
  color: var(--color-accent);
  margin: 2rem 0 1rem 0;
  font-size: 1.5rem;
}

.about-text h2:first-child {
  margin-top: 0;
}

.about-text p {
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

.skills-section {
  background: var(--color-light);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.skills-section h2 {
  text-align: center;
  color: var(--color-text);
  margin-bottom: 2rem;
  font-size: 2rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.skill-category {
  background: var(--color-bg);
  padding: 1.5rem;
  border-radius: 15px;
  border: 1px solid rgba(247, 201, 214, 0.3);
}

.skill-category h3 {
  color: var(--color-secondary);
  margin-bottom: 1rem;
  font-size: 1.2rem;
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 0.5rem;
}

.skill-category ul {
  list-style: none;
  padding: 0;
}

.skill-category li {
  padding: 0.5rem 0;
  color: var(--color-text);
  border-bottom: 1px solid rgba(182, 166, 202, 0.2);
}

.skill-category li:last-child {
  border-bottom: none;
}

/* Responsive para Sobre Mí */
@media (max-width: 768px) {
  .about-content {
    padding: 1rem;
  }
  
  .about-text, .skills-section {
    padding: 1.5rem;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .about-text, .skills-section {
    padding: 1rem;
  }
  
  .about-text h2 {
    font-size: 1.3rem;
  }
  
  .skill-category {
    padding: 1rem;
  }
}