/* ======================
   VARIABLES
====================== */

:root{
  --blue-dark: #0F1F3B;
  --blue-light:#A8C7FF;
  --accent: #6C8EFF;
  --white: #ffffff;
  --black:#0F0F0F;

  --radius: 14px;
  --container-width: 1100px;
  --shadow-soft: 0 18px 40px rgba(0,0,0,0.25);
}

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

html, body{
 
  min-height: 100%;
  height:auto;
  scroll-behavior:smooth;
  
  
}

body{
  font-family:'Poppins', sans-serif;
  background:var(--blue-dark);
  color:var(--white);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
  overflow-anchor:none;
}
main{
  display:block;
  
}


.container{
  width:90%;
  max-width:var(--container-width);
  margin:0 auto;
  padding:2.5rem 1rem;
}

section{
  position:relative;
  padding: 70px 0;
}
section,
.project-card,
.skills-group,
.education-item,
.experience-item{
  transition: background .35s ease, box-shadow .35s ease;
}


section:not(:last-of-type)::after{
  content:"";
  position:absolute;
  bottom:0;
  left:50%;
  transform:translateX(-50%);
  width:70%;
  height:1px;

  background:linear-gradient(
    90deg,
    transparent,
    rgba(108,142,255,0.35),
    transparent
  );

  opacity:.6;
}

section + section{
  margin-top:40px;
}

h2{
  font-size:clamp(1.8rem,3vw,2.4rem);
  margin-bottom:2.5rem;
  text-align:center;
  position:relative;
  display:inline-block;

  
  background:linear-gradient(
    90deg,
    var(--white),
    var(--blue-light) 45%,
    var(--accent)
  );

  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}



section:hover h2::after{
  width:110px;
}

h3{
  font-size:1.2rem;
  margin-bottom:.5rem;
}

/* ======================
   HEADER & NAVIGATION
====================== */
.site-header{
  background:rgba(15,31,59,0.85);
  backdrop-filter:blur(8px);
  position:sticky;
  top:0;
  z-index:100;
  box-shadow:0 6px 20px rgba(0,0,0,0.25);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
}

.brand-title{
  font-weight:800;
  color:var(--blue-light);
}

.main-nav{
  display:flex;
  gap:18px;
  flex-wrap:wrap;
  justify-content:center;
}

.main-nav a{
  text-decoration:none;
  color:var(--white);
  position:relative;
  font-size:0.95rem;
}

.main-nav a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-6px;
  width:0;
  height:2px;
  background:var(--accent);
  transition:width .25s ease;
}

.main-nav a:hover::after{
  width:100%;
}

/* ======================
   HERO SECTION
====================== */
.hero{
  padding:80px 0;
  display: flex;
  justify-content: center;
  align-items:flex-start; 
  background:
    linear-gradient( 
      180deg,
    rgba(11,29,58,0.28),
    rgba(8,20,42,0.9)),
    url('../img/fondo.webp')center/cover no-repeat;
 

}

.hero-content{
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1{
  font-size:clamp(2.8rem,5vw,3.8rem);
  color:var(--blue-light);
  margin-bottom:16px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.profile-tag{
  font-size:.75rem;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--accent);
}

.hero p{
  line-height:1.7;
  margin-bottom:30px;
  max-width: 600px;
  opacity: 0.9;
}

.hero-actions{
  display: flex;
  gap: 16px;
  justify-content: center;
}

.hero img{
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 30px;
  border:2px solid rgba(108,142,255,0.35);
  box-shadow:
    0 8px 24px rgba(0,0,0,0.35),
    inset 0 0 0 1px rgba(255,255,255,0.15);

}


.btn{
  display:inline-block;
  padding:.7rem 1.4rem;
  border-radius:10px;
  font-weight:600;
  text-decoration:none;
  transition:all .25s ease;
}

.btn-ghost{
  background:var(--blue-light);
  color:var(--black);
}

.btn-ghost:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(0,0,0,0.25);
}

.btn-cta{
  border:1px solid rgba(255,255,255,.2);
  color:var(--white);
}

.btn-cta:hover{
  background:rgba(255,255,255,0.05);
  border-color:var(--blue-light);
  color:var(--blue-light);
}


/* ======================
   ABOUT ME
====================== */
.about-me{
  display:grid;
  grid-template-columns: 320px 1fr;
  align-items:center;
  gap:64px;
  margin-top:60px;

}

.about-me img{
  width:100%;
  height:420px;
  border-radius:24px;
  object-fit:cover;
  box-shadow:
    0 30px 60px rgba(0,0,0,0.45),
    0 0 0 1px rgba(255,255,255,0.08);
    
 
}
.information{
  padding:64px 56px;
  background:rgba(255,255,255,0.035);
  border-radius:24px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.4);

  border-left:4px solid var(--accent);
  position:relative;;
}

.about-me h2{
  font-size:2.2rem;
  margin-bottom:24px;
  color:var(--blue-light);
}

.about-me p{
  font-size:1rem;
  line-height:1.89;
  color: rgba(255,255,255,0.85);
}

/* ======================
   EXPERIENCE
====================== */
.experience{
  position:relative;
}

.experience::before{
  content:"";
  position:absolute;
  left:50%;
  top:0;
  bottom:0;
  width:2px;
  background:linear-gradient(to bottom, transparent, var(--accent), transparent);
}

.experience-item{
  width:45%;
  background: rgba(255,255,255,0.045);
  backdrop-filter: blur(6px);
  transition: 0.3s ease;
  border:1px solid rgba(255,255,255,0.08);
  border-radius:var(--radius);
  padding:28px;
  margin-bottom:3rem;
  position:relative;
}

.experience-item:hover{
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(0,0,0,0.35);
}
.experience-item::before{
  content:"";
  position:absolute;
  top:28px;
  width:14px;
  height:14px;
  background:var(--accent);
  border-radius:50%;
  box-shadow:0 0 0 4px rgba(108,142,255,0.2);
}
.experience-item:nth-child(odd)::before{
  right: -7px;
}

.experience-item:nth-child(even)::before{
  left: -7px;
}
.experience-item h3{
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--blue-light);
}
.experience-meta{
  display: block;
  font-size: 0.85rem;
  opacity: 0.75;
  margin-bottom: 1rem;
}
.experience-item ul{
  margin-left: 1.1rem;
  margin-bottom: 1rem;
}

.experience-item li{
  margin-bottom: .4rem;
  opacity: 0.9;
}

.experience-tech{
  margin-top: 1rem;
  font-size: 0.85rem;
  padding-top: .5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  opacity: 0.9;
}


/* ======================
   EDUCATION
====================== */

.education-grid{
  display:grid;
  gap:18px;
}

.education-item{
  background:rgba(255,255,255,0.045);
  backdrop-filter: blur(6px);
  border-left:4px solid var(--accent);
  padding:24px;
  border-radius:8px;
  text-align: left;
}
.education-item h3{
  margin-bottom: .5rem;
}

.education-item span{
  opacity: .75;
  font-size: .9rem;
}

.icon-education{
  display: flex;
  justify-content: flex-end;  
}
.icon-education svg{
  width:40px;
  height: 40px;
  text-align: right;
  
}

/* ======================
   SKILLS
====================== */
.skills-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  max-width:1000px;
  margin:0 auto;
}

.skills-group{
  background: rgba(255,255,255,0.045);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 18px 22px;
  text-align: center;
  transition: .25s ease;
}

.skills-group:hover{
  transform: translateY(-5px);
  box-shadow: 
    0 15px 40px rgba(0,0,0,0.35),
    0 0 0 1px rgba(108,142,255,0.3);
}
.skills-grid .icon{
  font-size: 40px;
  margin-bottom: 14px;
}

.skills-grid h3{
    font-size: 1.05rem;
    margin-bottom: 14px;
    color: var(--blue-light);
    font-weight: 600;
  
}

.skills-grid ul li{
  list-style: none;
  font-size: .9rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 4px;
  line-height: 1.4;
  
}

.icon svg {
  fill:#A8C7FF; 
  width: 30px;    
  height: 30px;
  stroke: rgba(255,255,255,0.85);   
  margin-bottom: 8px;
}


/* ======================
   PROJECTS
====================== */
.projects{
  margin-top:60px;
}

.projects-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:24px;
}

.project-card{
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.045);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 16px; 
  transition: transform .25s ease, box-shadow .25s ease;
  transform:scale(1.02);
  
}

.project-card:hover{
  transform:translateY(-6px) scale(1.03);
  box-shadow:
    0 20px 40px rgba(0,0,0,0.4);
  border-color: var(--accent);
}
.project-content{
  padding: 8px 4px 4px 4px;
  display: flex;
  flex-direction: column;
}

.project-card h3{
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--blue-light);
}

.project-card .description{
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 12px;
  color: rgba(255,255,255,0.85);
}

.project-card .tech{
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 12px;
}

.project-card img{
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 16px; 
  margin-bottom: 16px;
}


.project-link{
  display: inline-flex;
  align-items: center;
  gap: 6px;

  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 600;

  color: var(--accent);
  text-decoration: none;
  position: relative;
}

.project-link::after{
  content: "→";
  transition: transform .2s ease;
}

.project-link:hover::after{
  transform: translateX(4px);
}



/* ======================
   CONTACT
====================== */

.contact{
  text-align:center;
  position:relative;
  
}

.contact a{
  color:var(--blue-light);
  font-weight:600;
  text-decoration:none;
  
}

.contact-link{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
}

.contact-link .icon{
  width:18px;
  height:18px;
  opacity:.85;
}

.contact-form{
  max-width: 420px;
  margin: 0 auto 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form input,
.contact-form textarea{
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 12px 14px;
  color: white;
  font-family: inherit;
  font-size: 0.95rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder{
  color: rgba(255,255,255,0.6);
}

.contact-form input:focus,
.contact-form textarea:focus{
  outline: none;
  border-color: var(--blue-light);
  background: rgba(255,255,255,0.06);
}


.contact-form .btn-cta{
  background: var(--blue-light);
  color: #0b1b33;
  font-weight: 600;
  border: none;
  border-radius: 14px;
  padding: 12px 20px;
  cursor: pointer;
  transition: all .3s ease;
}

.contact-form .btn-cta:hover{
  background: white;
  color: #0b1b33;
  transform: translateY(-1px);
}


/* ======================
   FOOTER
====================== */

.site-footer{
  background:rgba(15,31,59,0.85);
  padding:40px 20px;
  border-top:1px solid rgba(108,142,255,0.2);
  text-align:center;
  
  position: relative;
  z-index: 1;
  margin-top: 80px;
  
}
/* ======================
   MENU
====================== */

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;


  flex-direction: column;
  justify-content: space-between;
}

.menu-toggle span {
  height: 3px;
  width: 100%;
  background: var(--white);
  border-radius: 3px;
  transition: 0.25s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* ======================
   MEDIA QUERIES
====================== */


@media(max-width:768px){
  section{
    padding: 50px 0;
  }
  .hero{
    padding:70px 0 50px;
    align-items:flex-start;
  }
  .hero-inner{
    flex-direction:column;
    text-align:center;
    gap:24px;
  }

  .hero img{
    
      width:88px;
      height:88px;
      border-radius:50%;
      margin-bottom:24px;
    
  }
  .about-me{
    grid-template-columns:1fr;
    text-align:center;
  }

  .about-me img{
    max-width:240px;
    height:300px;
    margin:0 auto;
  }

  .information{
    padding:40px 32px;
  }

  .about-me h2{
    text-align:center;
  }

  .skills-grid,
  .projects-grid,
  .education-grid{
    grid-template-columns:1fr;
  }

  .property-card{
    grid-template-columns:1fr;
    text-align:center;
  }

  .experience::before{
    left:8px;
  }

  .experience-item{
    width:100%;
    margin-left:24px;
  }

  .menu-toggle{display:flex;}

  .main-nav{
    position: absolute;
    top: 100%;

    right: 0;
    background: rgba(14,31,59,0.95);
    backdrop-filter: blur(10px);

    width: 100%;
    padding:32px 0;

    flex-direction: column;
    align-items: center;
    gap:20px;

    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
  }

  .main-nav.active{
    
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .main-nav a{
  font-size:1.1rem;
  padding:8px 0;
}
}



@media (min-width:769px) and (max-width:1024px){

  .hero img{
    width:110px;
    height:110px;
  }

  .about-me{
    grid-template-columns:260px 1fr;
    gap:48px;
  }

  .skills-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .projects-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .education-grid{
    grid-template-columns:1fr;
  }
}
@media (min-width:1025px){
  .hero h1{
    font-size: clamp(2rem, 4vw, 2.5rem);
  }

  .skills-grid,
  .projects-grid,
  .education-grid{
    gap:20px;
  }
  }
  
/* ======================
   UTILITIES & ANIMATIONS
====================== */



  .fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
  }
  
  .fade-up.show {
    opacity: 1;
    transform: translateY(0);
  }
  
/* ======================
   SECTION DEPTH SYSTEM
====================== */

.section-glow{
  position:relative;
  isolation:isolate;
}


.section-glow::before{
  content:"";
  position:absolute;
  inset:0;

  background:radial-gradient(
    circle at 50% 0%,
    rgba(108,142,255,0.06),
    transparent 70%
  );

  opacity:.6;
  z-index:-1;
  pointer-events:none;
}