:root {
  --bg-main: #f6ffb8;
  --bg-accent: #dad849;
  --bg-dark: #2b2f2f;
  --black: #111;
  --white: #292d2d;
}

/* FUENTES */
@font-face {
  font-family: 'Clash Display';
  src: url('./fonts/ClashDisplay-Medium.woff2');
  font-weight: 500;
}

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

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

body {
  background: var(--bg-main);
  font-family: 'Clash Display', sans-serif;
  color: var(--black);
}

/* HEADER / NAV */
.nav {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
}

.header {
  background: var(--bg-main);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.logo {
  width: 125px;
  height: auto;
}

.nav-right {
  display: flex;
  gap: 16px;
}

/* BOTONES */
.pill {
  border: 1px solid var(--black);
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--black);
  transition: 0.3s;
}

.pill:hover {
  background: var(--black);
  color: var(--bg-main);
  transform: translateY(-2px);
}

/* HERO */
.hero {
  min-height: 85vh; /* 👈 un poco menos alto */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px; /* 👈 más aire entre título y botón */
  text-align: center;
  padding: 60px 20px; /* 👈 mejor balance vertical */
}

.hero h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 700;
  line-height: 1.15;
  max-width: 800px;
  word-break: keep-all; /* 👈 evita cortes raros */
}

.cta {
  display: inline-block;
  margin-top: 25px;
  border: 1px solid var(--black);
  padding: 10px 22px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--black);
  transition: 0.3s;
}

.cta:hover {
  background: var(--black);
  color: var(--bg-main);
  transform: translateY(-2px);
}

/* ABOUT + SKILLS */
.about-skills {
  background: var(--bg-accent);
  color: var(--white);
  padding: 120px 60px;
  text-align: center;
}

.tag {
  background: var(--bg-dark);
  color: var(--bg-main);   
  font-size: 20px;
  padding: 16px 36px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 30px;
}

.about p {
  font-size: 22px;
  max-width: 700px;
  margin: auto;
  line-height: 1.7;
}

.skills {
  margin-top: 70px;
}

.skills-icons {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.skills-icons img {
  width: 75px;
}

/* PROYECTOS */
.projects {
  background: var(--bg-dark);
  padding: 140px 60px;
  text-align: center;
}

.tag.dark {
  background: var(--bg-main);
  color: var(--black);
}

.projects-grid {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 60px;
  flex-wrap: wrap;
}

.project-item {
  width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--bg-main);
  border-radius: 30px;
  padding: 12px;
}

.project-label {
  color: var(--bg-main);
  border: 1px solid var(--bg-main);
  padding: 10px 22px;
  border-radius: 999px;
  margin-bottom: 15px;
  transition: 0.3s;
  cursor: pointer;
}

.project-label:hover {
  background: var(--bg-main);
  color: var(--black);
}

.project-item img {
  width: 100%;
  border-radius: 20px;
  transition: 0.3s;
}

.project-item img:hover {
  transform: scale(1.04);
}

/* CONTACTO */
.contact {
  background: var(--bg-main);
  padding: 120px 60px 30px;
}

.contact-title {
  text-align: center;
  margin-bottom: 40px;
}

.contact-title span {
  background: var(--bg-accent);
  color: var(--white);
  padding: 14px 36px;
  border-radius: 999px;
  font-size: 20px;
}

.contact-box {
  display: flex;
  justify-content: space-between;
  gap: 80px;
}

.contact-form {
  width: 50%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid var(--bg-accent);
  border-radius: 999px;
  padding: 12px 18px;
  background: transparent;
}

.contact-form textarea {
  border-radius: 20px;
  height: 120px;
}

.contact-form button {
  background: var(--bg-accent);
  color: var(--white);
  border: none;
  padding: 12px 20px;
  border-radius: 999px;
  width: 130px;
}

.contact-info {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 25px;
  text-align: center;
}

.social-icons {
  display: flex;
  gap: 20px;
}

.social-icons img {
  width: 60px;
  transition: 0.3s;
}

.social-icons img:hover {
  transform: scale(1.1);
}

.contact-info h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-style: italic;
}

/* CONTENEDOR */
.quote {
  display: flex;
  justify-content: center;
  padding: 140px 20px;
}

/* TARJETA REAL */
.quote-card {
  position: relative;
  background: var(--bg-accent);
  padding: 80px 60px 60px;
  border-radius: 40px 40px 40px 0;
  max-width: 1000px;
  width: 100%;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* TEXTO */
.quote-card p {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.5;
  font-weight: 500;
}

/* AUTOR */
.quote-card span {
  display: block;
  margin-top: 25px;
  font-family: 'Clash Display', sans-serif;
  font-size: 20px;
  opacity: 0.7;
}

/* DESTACADO */
.quote-card strong {
  color: var(--bg-dark);
  font-weight: 700;
}

/* COMILLA IZQUIERDA */
.quote-card::before {
  content: "“";
  position: absolute;
  top: 115px;              
  left: 40px;          
  transform: translateY(-50%);
  font-size: 200px;     
  color: rgba(0, 0, 0, 0.07);
  font-family: serif;
}

/* COMILLA DERECHA */
.quote-card::after {
  content: "”";
  position: absolute;
  top: 215px;             
  right: 115px;          
  transform: translateY(-50%);
  font-size: 200px;      
  color: rgba(0, 0, 0, 0.07);
  font-family: serif;
}

/* FOOTER */
.footer {
  background: #0f1116;
  color: #fff;
  padding: 60px 20px 30px;
}

.footer-container {
  max-width: 1100px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-logo {
  width: 120px;
  margin-bottom: 10px;
}

.footer-desc {
  color: #aaa;
  font-size: 14px;
  max-width: 280px;
}

.footer-title {
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 14px;
}

.footer-links,
.footer-social {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer a {
  color: #aaa;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
}

.footer a:hover {
  color: #fff;
}

.footer-divider {
  height: 1px;
  background: #222;
  margin: 40px auto 20px;
  max-width: 1100px;
}

.footer-copy {
  text-align: center;
  font-size: 13px;
  color: #777;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

  /* NAV */
  .nav {
    flex-direction: column;
    gap: 15px;
    padding: 15px;
  }

  .nav-right {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* HERO */
  .hero {
    min-height: auto;
    padding: 80px 20px 30px;
    gap: 25px;
  }

  .hero h1 {
    font-size: clamp(40px, 10vw, 58px);
    line-height: 1.1;
    text-align: center;
    max-width: 320px;
    margin: 0 auto 35px;
    margin-bottom: 20px;
  }

  .cta {
    font-size: 14px;
    padding: 12px 22px;
    margin-top: 20px;
    margin-bottom: 20px;
  }

  /* QUOTE */
  .quote {
    padding: 30px 20px 60px;
  }

  .quote-card {
    padding: 50px 25px;
  }

  .quote-card p {
    font-size: 20px;
  }

  .quote-card::before {
    font-size: 120px;
    top: 80px;
    left: 20px;
  }

  .quote-card::after {
    font-size: 120px;
    top: 160px;
    right: 30px;
  }

  /* ABOUT */
  .about-skills {
    padding: 80px 20px;
  }

  .about p {
    font-size: 16px;
  }

  /* SKILLS */
  .skills-icons {
    gap: 25px;
  }

  .skills-icons img {
    width: 50px;
  }

  /* PROJECTS */
  .projects {
    padding: 80px 20px;
  }

  .projects-grid {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .project-item {
    width: 100%;
    max-width: 320px;
  }

  /* CONTACT */
  .contact {
    padding: 80px 20px 5px;
  }

  .contact-box {
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

  .contact-form {
  margin-bottom: 0;
}

.contact-info {
  width: 100%;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.contact-info p {
  margin-bottom: 5px;
}

  /* 🔧 Ajustes */
.contact-info h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 10px 0 0;
  text-align: center;
}

  /* ICONOS */
  .social-icons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 10px 0;
}

  .social-icons img {
    width: 70px; 
  }

  /* FOOTER */
  .footer {
    padding: 40px 20px 20px;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 0;
    gap: 10px;
  }

  .footer-links a {
  color: #dfe6b7;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 0.6;
}
  .footer-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 16px;
  border: 1px solid #d6e07b;
  border-radius: 25px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.footer-btn:hover {
  background-color: #d6e07b;
  color: #2b2f2f;
  transform: translateY(-2px);
}

  .footer-line {
    margin: 25px auto;
    width: 80%;
  }

  .footer-copy {
    text-align: center;
    font-size: 12px;
  }

.cta {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.social-icons img {
  transition: transform 0.25s ease;
}

.social-icons img:hover {
  transform: scale(1.1);
}
.project-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.fade-up {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s ease;
}

.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

.footer-social a:hover {
  background-color: #d6e07b;
  color: #1e1e1e;
  transform: translateY(-2px);
}

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-form {
  max-width: 400px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
}

}