* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  background-color: #f5f5f5;
  min-height: 100vh;
}

.section-layout {
  margin-left: 30px;
  margin-right: 30px;
}

.content-container {
  position: relative; /* ← IMPORTANTE */
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  overflow-x: hidden;
  
}

.content-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/assets/topography2.svg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.1;  /* <<--- AJUSTA LA OPACIDAD */
  z-index: -1;   /* Para que quede detrás del contenido */
}

/* ---------------- HEADER ---------------- */

.header-container ul {
 display: flex;
 flex-direction: row;
 gap: 20px;
 list-style: none;
 justify-content: center;
 align-items: baseline;
 
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 40px 5px;
  background-color: rgba(229, 229, 229, 0.5); /* <-- Opacidad */
}


.header-container a {
  font-family: "Montserrat", sans-serif;
  padding: 10px 20px; 
  text-decoration: none;
  color: black;
}

.hireme-container {
  background: #407BFF;
  padding: 10px 20px;
  border-radius: 15px;
  font-weight: bold;
    
}

.header-container .hireme-container{
color: whitesmoke;
}

.header-container img {
    height: 40px;
}

/* ---------------- MAIN ---------------- */

.main-container {
    display: grid;
    grid-template-rows: auto; 
    row-gap: 0px;            
}

/* ---------------- ABOUT ME ---------------- */

.aboutme-container {
    display: grid;
    grid-template-columns: 2.5fr 1.5fr;
    justify-items: center;
    align-items: center;
    padding: 0 20px;
    margin: 0 auto;
    max-width: 1200px;

}

.aboutme-title {
    font-style: italic;
}

.sendmemesage-button {
    background-color: #407BFF;
    padding: 5px 10px;
    border-radius: 10px;
    display: inline-block;
    width: auto;
    font-weight: bold;
    color: white;
    font-size: medium;
    border: 0.5px solid black;
    cursor: pointer; 
    transition: background-color 0.2s; 
}
.floating-contact-card {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background: #ffffff;
  border-radius: 14px;
  padding: 18px 22px;
  box-shadow: 0 4px 25px rgba(0,0,0,0.12);
  border: 1px solid #e3e3e3;
  width: 240px;
  z-index: 9999;
  animation: fadeInUp 0.5s ease;
  font-family: system-ui, sans-serif;
  border-color: #1a4cd3;
}

.floating-contact-card h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.floating-contact-card p {
  color: #555;
  margin-top: 2px;
  margin-bottom: 12px;
  font-size: 0.85rem;
}

.floating-contact-card a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 8px 10px;
  margin-bottom: 8px;
  font-size: 0.8rem;
  border-radius: 6px;
  transition: 0.2s;
  font-weight: 500;
}

/* Email */
.email-btn {
  background: #e9f0ff;
  color: #1a4cd3;
}
.email-btn:hover {
  background: #d5e3ff;
}

/* WhatsApp */
.whatsapp-btn {
  background: #eaffea;
  color: #1c8c2e;
}
.whatsapp-btn:hover {
  background: #d4fecf;
}

/* Soft appearing animation */
@keyframes fadeInUp {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}



.sendmemesage-button:hover {
    background-color: #3060d6;
}

.info-container p {
    font-family: Arial, Helvetica, sans-serif;
}

.info-container .title-container {
    font-size:22px;
    font-weight: bold;
}

.aboutme-container img {
    height: 400px;
}

.contact-item {
  font-family: "Montserrat", sans-serif;
  padding: 10px 20px; 
  text-decoration: none;
  color: black;
  font-weight: bold;
}

.separator {
  width: 100%;
  height: 2px;
  background: black;
  margin: 0;
}

/* ================= STACK HERO ================= */

.stack-hero {
  padding-top: 10px;   /* antes 60px → ahora más pegado arriba */
  padding-bottom: 60px;
 /* antes 90px → más compacto arriba */
  text-align: center;
  background: linear-gradient(135deg, #020617, #0f172a);
  color: #f8fafc;
}

.stack-hero-title {
  font-family: "Montserrat", sans-serif;
  font-size: 35px;
  font-weight: 800;
  margin-bottom: 12px; /* reduce espacio título → párrafo */
}

.stack-hero-subtitle {
  font-family: Arial, Helvetica, sans-serif; /* ← Arial */
  max-width: 760px;
  margin: 0 auto 32px; /* menos aire abajo */
  font-size: 16px;
  color: #cbd5f5;
  line-height: 1.6;
}


.stack-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* Base badge */
.stack-badge {
  padding: 8px 18px;
  border-radius: 999px;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 600;

  /* Fondo semitransparente */
  background: rgba(248, 250, 252, 0.4);

  /* Texto */
  color: #020617;

  /* Borde sutil para definición */
  border: 1px solid rgba(248, 250, 252, 0.35);

  /* Sombra ligera */
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);

  /* Glass effect */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  /* Interacción */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
}

.stack-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16
}



/* Colores sutiles por tecnología */
.html { background: #fff7ed; color: #c2410c; }
.css { background: #eff6ff; color: #1d4ed8; }
.js { background: #fef9c3; color: #a16207; }
.ts { background: #e0f2fe; color: #0369a1; }
.react { background: #ecfeff; color: #0891b2; }

.node { background: #ecfdf5; color: #166534; }
.express { background: #f4f4f5; color: #27272a; }
.python { background: #fefce8; color: #854d0e; }
.bash { background: #f1f5f9; color: #334155; }
.jwt { background: #fef2f2; color: #b91c1c; }

.db { background: #eef2ff; color: #4338ca; }

.data { background: #ecfeff; color: #0e7490; }
.bi { background: #fff7ed; color: #c2410c; }

.automate { background: #eff6ff; color: #1d4ed8; }
.apps { background: #fdf4ff; color: #86198f; }
.zapier { background: #fff1f2; color: #be123c; }
.maker { background: #fff7ed; color: #9a3412; }

.api { background: #f1f5f9; color: #0f172a; }

/* Responsive */
@media (max-width: 600px) {
  .stack-hero-title {
    font-size: 32px;
  }

  .stack-hero-subtitle {
    font-size: 14px;
  }
}


/* ---------------- PROJECTS ---------------- */

.project-container {
  display: grid;
  grid-template-rows: auto;
  align-items: center;      
  justify-items: center;    
  text-align: center;       
  width: 100%;
  padding-bottom: 30px;
  margin: 0 auto;
}

.project-container .project-title {
  font-family: "Montserrat", sans-serif;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 40px;
  color: #222;
}

.project-button.disabled {
  pointer-events: none;  /* No se puede clicar */
  opacity: 0.6;          /* Se ve deshabilitado */
  cursor: default;       /* Cambia el cursor */
}
.brush-effect {
  margin-bottom: 0;
  width: auto;
  position: relative;
  display: inline-block;
  font-size: 32px;
  font-weight: bold;
}

.brush-effect::before {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: 4px;
  height: 12px;
  background: #407BFF;
  z-index: -1;
  border-radius: 4px;
  transform: rotate(-2deg);
  opacity: 0.8;
}

.projects-cardgroup {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.projects-cardgroup .project-card {
  display: grid;
  border: 2px solid #3060D6;
  width: 230px;
  min-height: 260px;
  padding: 10px;
  border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.842); /* <-- Opacidad aquí */
}

.projects-cardgroup .project-card img {
  height: 100px;
  justify-self: center;
}

.projects-cardgroup .project-card .title-project-name {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  font-size: 13px;
}

.projects-cardgroup .project-card .title-project-desc {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9px;
  text-align: left;
}
.project-category {
  display: inline-block;
  margin-left: 5px;
  margin-bottom: 4px;
  padding: 2px 8px;
  font-size: 9px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  color: #3060d6;
  background-color: rgba(48, 96, 214, 0.12);
  border-radius: 10px;
  width: fit-content;
}
.techused-spam {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  margin-left: 5px;
}

.techused-spam span {
  background-color: #eef2ff;
  color: #3060d6;
  font-size: 9px;
  font-family: Arial, Helvetica, sans-serif;
  padding: 3px 8px;
  border-radius: 10px;
  border: 1px solid #3060d6;
  white-space: nowrap;
}


.projects-cardgroup .project-card p {
  margin-left: 5px;
  margin-right: 5px;
}

.projects-cardgroup .project-card .techused-spam {
  font-size: 9px;
  font-family: Arial, Helvetica, sans-serif;
}

.project-button {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #3060d6;
  color: white;
  padding: 7px 18px;
  border-radius: 20px;
  font-size: 12px;
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  transition: background-color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
  width: fit-content;
  margin-top: 10px;
}
.project-button i {
  margin-left: 6px;
}


.project-button:hover {
  background-color: #264ab4;
  transform: translateY(-2px);
}

/* ---------------- EXPERIENCE + EDUCATION ---------------- */

.extra-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-items: center;
  align-items: start;
  margin-bottom: 30px;
  width: 100%;
  gap: 20px;
}

.extra-container-title {
  font-family: "Montserrat", sans-serif;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #3060D6;
}

.experience-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 480px;
}

.extraexperience-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 25px;
}

.extraexperience-card span {
  margin-top: 4px;
  display: flex;
}

.experience-card-title {
  font-family: "Montserrat", sans-serif;
  font-weight: bold;
  font-size: 14px;
}

.experience-card-company {
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: bold;
  color: #3060D6;
}

.experience-card-sumary {
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  line-height: 1.4;
}

.extraeducation-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 25px;
}

.extraeducation-card span {
  margin-top: 4px;
  display: flex;
}

.education-card-title {
  font-family: "Montserrat", sans-serif;
  font-weight: bold;
  font-size: 14px;
}

.education-card-company {
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: bold;
  color: #3060D6;
}

.education-card-sumary {
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  line-height: 1.4;
  margin-right: 120px;
}

/* ----------------FORM ---------------- */


/* ---------------- RESPONSIVE ---------------- */

@media (max-width: 900px) {
  .extra-container {
    grid-template-columns: 1fr;
  }

  .experience-container {
    max-width: 100%;
  }

  .aboutme-container {
    grid-template-columns: 1fr;
    text-align: center;
    row-gap: 20px;
  }
}

/* ---------------- FOOTER ---------------- */

.footer-container {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(229, 229, 229, 0.5); /* <-- Opacidad aquí */
}


.footer-container p, 
.footer-container a {
  font-family: "Montserrat", sans-serif;
  padding: 10px 20px; 
  text-decoration: none;
  color: black;
  font-size: medium;
}

.footer-container a {
  font-weight: bolder;
}

/* ================================
   EXTRA – RESPONSIVE OPTIMIZATIONS
   ================================ */

/* Tablets medianas */
@media (max-width: 1050px) {

  .aboutme-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .aboutme-container img {
    max-height: 330px;
  }
}

/* Tablets y móviles horizontales */
@media (max-width: 900px) {

  .header-container {
    flex-direction: column;
    gap: 12px;
    padding: 10px 20px;
  }

  .header-container ul {
    flex-wrap: wrap;
  }

  .extra-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .projects-cardgroup {
    gap: 12px;
  }

  .projects-cardgroup .project-card {
    width: 45%;
  }

  .stack-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }

  .floating-contact-card {
    width: 200px;
    padding: 16px;
  }
}

/* Teléfonos grandes */
@media (max-width: 650px) {

  .section-layout {
    margin-left: 15px;
    margin-right: 15px;
  }

  .header-container ul {
    gap: 12px;
  }

  .header-container img {
    height: 40px;
  }

  .aboutme-container img {
    max-height: 260px;
  }

  .projects-cardgroup .project-card {
    width: 90%;
  }

  .stack-title,
  .project-title,
  .extra-container-title {
    font-size: 24px;
  }

  .stack-card {
    padding: 18px 14px;
  }

  .info-container .title-container {
    font-size: 19px;
  }

  .floating-contact-card {
    bottom: 12px;
    right: 12px;
    width: 180px;
  }
}

/* Teléfonos pequeños */
@media (max-width: 420px) {

  body {
    font-size: 14px;
  }

  .header-container a {
    padding: 8px 12px;
  }

  .projects-cardgroup .project-card {
    width: 100%;
  }

  .stack-card {
    margin-bottom: 8px;
  }

  .aboutme-container img {
    max-height: 210px;
  }

  .floating-contact-card {
    width: 160px;
    padding: 12px;
  }

  .floating-contact-card a {
    padding: 6px 8px;
    font-size: 0.75rem;
  }
}
.disabled {
    pointer-events: none; /* Desactiva clic */
    opacity: 0.5;         /* Se ve deshabilitado */
    cursor: default;      /* Cambia el cursor */
  }
