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

:root {
  --navy: #0d1b35;
  --blue: #087cff;
  --blue-2: #bcdcff;
  --pale: #eef7ff;
  --pale-2: #f7fbff;
  --text: #15223a;
  --muted: #59657a;
  --line: #dce8f5;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 16px 45px rgba(20, 50, 90, .09);
}

body {
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit
}

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

.site-header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4.2%;
  border-bottom: 1px solid #edf3f8;
  background: rgba(255, 255, 255, .95);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px)
}

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

.brand-mark {
  font-family: "Space Grotesk";
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -3px;
  color: var(--blue)
}

.brand-name {
  font-weight: 700;
  line-height: 1.05;
  font-size: 14px
}

.nav {
  display: flex;
  gap: 31px;
  font-size: 13px;
  color: #24324a
}

.nav a:hover {
  color: var(--blue)
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 22px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 700;
  transition: .2s;
  cursor: pointer;
  border: 1px solid transparent
}

.btn:hover {
  transform: translateY(-2px)
}

.btn-dark {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 8px 18px rgba(13, 27, 53, .12)
}

.btn-outline {
  border-color: #9db0c8;
  color: var(--navy);
  background: #fff
}

.btn.small {
  padding: 10px 16px
}

.hero {
  min-height: 610px;
  padding: 60px 4.2% 52px;
  gap: 30px;
  background: linear-gradient(120deg, #f8fbff 0%, #eaf5ff 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-copy {
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 4px;
  color: #54708f;
  font-weight: 600;
}

.hero h1 {
  font-family: "Space Grotesk";
  font-size: 58px;
  line-height: .98;
  margin-bottom: 14px;
  padding: 20px 20px;
}

.hero h2 {
  font-family: "Space Grotesk";
  font-size: 25px;
  color: var(--blue);
  margin-bottom: 13px
}

.hero h2 span {
  color: var(--navy)
}

.hero-text {
  font-size: 16px;
  color: #4c596d;
  max-width: 33%;
  text-align: center;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  padding: 20px 0 20px;
}

.contact-row {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 12px;
  color: #53637a
}

.contact-row a:hover {
  color: var(--blue)
}

.hero-visual {
  position: relative;
  min-height: 470px;
  display: flex;
  align-items: center;
  justify-content: center
}

.blob {
  position: absolute;
  border-radius: 50%;
  background: #c9e1ff
}

.blob-one {
  width: 270px;
  height: 270px;
  left: 7%;
  top: 25px;
  opacity: .9
}

.blob-two {
  width: 220px;
  height: 220px;
  right: 7%;
  bottom: 35px;
  opacity: .75
}

.portrait-wrap {
  width: 310px;
  height: 310px;
  border-radius: 50%;
  overflow: hidden;
  border: 13px solid rgba(255, 255, 255, .8);
  box-shadow: 0 34px 60px rgba(13,27,53,.2);
  z-index: 2;
  background: #dbeeff;
  display:flex;
  align-items:center;
  justify-content:center;
}

.portrait-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center
}

/* Depth / halo effect */
.portrait-wrap::after{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:120%;
  height:120%;
  border-radius:50%;
  pointer-events:none;
  background:radial-gradient(circle at 35% 30%, rgba(8,124,255,0.12), rgba(8,124,255,0.04) 25%, rgba(0,0,0,0) 50%);
  filter:blur(14px);
  z-index:0;
}

/* No hover animation: keep depth permanent */
.portrait-wrap:hover{transform:none;box-shadow:0 34px 60px rgba(13,27,53,.2)}

/* Centering inside about section */
.about-section .about-portrait{justify-self:center;align-self:center}

@media(max-width:800px){
  .portrait-wrap{width:270px;height:270px;border-width:10px}
  .about-section .about-portrait{justify-self:center;margin-bottom:18px}
}

.hand-note {
  position: absolute;
  font-family: "Comic Sans MS", "Segoe Print", cursive;
  font-size: 18px;
  line-height: 1.25;
  z-index: 3;
  color: #182b4a
}

.note-one {
  right: 0;
  top: 45px;
  transform: rotate(-4deg)
}

.note-two {
  right: 2%;
  bottom: 30px;
  background: #dcecff;
  padding: 14px 22px;
  transform: rotate(-3deg);
  border-radius: 5% 40% 8% 35%
}

.social-icons {
  display: flex;
  gap: 14px;
  margin-top: 18px
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e6eff9;
  box-shadow: 0 6px 18px rgba(20, 50, 90, .06);
  transition: transform .15s, background .15s
}

.social-icons a:hover {
  transform: translateY(-4px);
  background: var(--pale-2)
}

.social-icons svg {
  display: block
}

.section {
  padding: 70px 4.2%
}

.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  height: auto;
  padding-bottom: 0;
}

.section-title {
  font-family: "Space Grotesk";
  font-weight: 700;
  font-size: 24px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 19px
}

.section-title i {
  display: block;
  width: 61px;
  height: 3px;
  background: var(--blue)
}

.about-copy>p {
  max-width: 590px;
  color: #526077;
  font-size: 15px
}

.values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px
}

.values .service-item {
  display: flex;
  flex-direction: column;
  gap: 8px
}

.values span {
  font-size: 28px;
  color: var(--blue);
  font-weight: 700
}

.values strong {
  font-size: 13px;
  line-height: 1.25
}


.skills {
  position: relative;
  width: 100%;
  padding: 36px 0 0;
  box-sizing: border-box;
}

/* Full-bleed background behind the centered content without causing horizontal scroll */
.skills::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  top: 12px;
  bottom: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(8,124,255,.04);
  z-index: 0;
}

.skills .section-title,
.skills .icons-grid {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin:28px auto;

  box-sizing: border-box;
}

/* En el grid de la sección 'about', hacer que .skills ocupe las 2 columnas */
.about-section .skills {
  grid-column: 1 / -1;
}

@media (max-width: 900px) {
  .about-section {
    grid-template-columns: 1fr;
  }
  .about-section .skills { grid-column: auto; }
}





.skill-tabs .active {
  background: #dceeff;
  color: #006ce9;
  font-weight: 700
}
.skill-tabs .tab {
  padding: 8px 16px;
  border-radius: 30px;
  background: #f4f7fb;
  color: #536178;
  font-size: 13px;
  border: none;
  cursor: pointer;
}
.skill-tabs .tab.active {
  background: linear-gradient(90deg, #dceeff, #eaf6ff);
  color: #006ce9;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(8, 124, 255, .08);
}


.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: transparent;
  border-radius: 10px;
}
.tech-item svg {
  width: 48px;
  height: 48px;
  display: block;
}
  .tech-logo {
    width: 42px;
    height: 42px;
    display: block;
  }
.tech-item span {
  font-size: 12px;
  color: #23334d;
}

@media(max-width: 900px) {
  .icons-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media(max-width: 600px) {
  .icons-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  background: #f7fbff;
  padding: 18px;
  border-radius: 17px
}

.tech {
  height: 86px;
  border-radius: 12px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  box-shadow: 0 5px 20px rgba(35, 73, 115, .04)
}

.tech b {
  font-family: "Space Grotesk";
  font-size: 19px;
  color: var(--blue)
}

.tech small {
  font-size: 10px;
  color: #4d5a70
}

.projects-section {
  background: linear-gradient(#eef7ff, #f6fbff)
}

.section-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 25px
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  align-items: stretch;
  width: min(100%, 1320px);
  margin-inline: auto;
}

.project-card {
  min-width: 0;
  background: #fff;
  border: 1px solid #e5eef7;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: var(--shadow);
  width: 100%;
}

.project-card>img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover
}

.project-content {
  padding: 18px
}

.project-content h3 {
  font-family: "Space Grotesk";
  font-size: 19px;
  margin-bottom: 7px
}

.project-content p {
  font-size: 13px;
  color: #59667b;
  min-height: 59px
}

.tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 9px
}

.tags span {
  font-size: 10px;
  background: #f0f5fa;
  border-radius: 5px;
  padding: 5px 9px;
  color: #52617a
}

.project-content>a {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue)
}

.project-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 55px;
  align-items: center;
  background: #fff
}

.project-detail h2 {
  font-family: "Space Grotesk";
  font-size: 45px;
  line-height: 1;
  margin-bottom: 15px
}

.project-detail-copy>p:not(.eyebrow) {
  color: #5a677c;
  max-width: 570px
}

.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 22px;
  font-size: 13px
}

.project-detail-image {
  border-radius: 5px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line)
}

.project-detail-image img {
  width: 100%;
  height: 390px;
  object-fit: cover
}

.timeline-section {
  display: grid;
  grid-template-columns: 1.35fr 1fr .8fr;
  gap: 48px;
  background: #fff
}

.timeline {
  position: relative;
  padding-left: 28px
}

.timeline:before {
  content: "";
  position: absolute;
  left: 5px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: #d6e6f7
}

.timeline-item {
  position: relative;
  padding-bottom: 23px
}

.dot {
  position: absolute;
  left: -28px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #b9dcff
}

.timeline-item h3 {
  font-family: "Space Grotesk";
  font-size: 14px;
  line-height: 1.2
}

.timeline-item strong {
  display: block;
  font-size: 11px;
  margin: 4px 0;
  color: #23334d
}

.timeline-item p {
  font-size: 11px;
  color: #637087;
  line-height: 1.4
}

.language {
  margin-top: 35px
}

.language p {
  font-size: 13px;
  margin-bottom: 7px
}

.language-bar {
  height: 9px;
  background: #e5f0fb;
  border-radius: 20px;
  overflow: hidden
}

.language-bar span {
  display: block;
  width: 74%;
  height: 100%;
  background: var(--blue);
  border-radius: 20px
}

.goals {
  background: #f2f8ff;
  border-radius: 18px;
  padding: 25px;
  align-self: start
}

.goals ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 24px
}

.goals li {
  font-size: 13px;
  color: #4e5c71;
  padding-left: 23px;
  position: relative
}

.goals li:before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--blue);
  font-weight: 700
}

.goals blockquote {
  border-radius: 15px;
  background: #e1efff;
  padding: 22px;
  font-family: "Comic Sans MS", "Segoe Print", cursive;
  font-size: 15px;
  line-height: 1.5;
  color: #33465f
}

.contact-section {
  padding: 75px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  background: linear-gradient(120deg, #dceeff, #f4f9ff)
}

.contact-section h2 {
  font-family: "Space Grotesk";
  font-size: 42px;
  line-height: 1.05;
  letter-spacing: -2px
}

.contact-section h2 span {
  color: var(--blue)
}

.contact-section>div>p:last-child {
  margin-top: 12px;
  color: #56647a
}

.footer {
  background: var(--navy);
  color: #fff;
  padding: 28px 4.2%;
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 25px;
  align-items: center
}

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

.footer-brand .brand-mark {
  color: #fff
}

.footer-brand strong {
  display: block;
  font-size: 12px
}

.footer-brand small {
  display: block;
  color: #aab8cc;
  font-size: 10px
}

.footer-links {
  display: flex;
  gap: 22px;
  font-size: 11px;
  color: #d5deea
}

.footer-links a:hover {
  color: #fff
}

.footer-copy {
  font-size: 10px;
  color: #91a1b7;
  text-align: right
}

@media(max-width:1050px) {
  .nav {
    gap: 15px
  }

  .hero h1 {
    font-size: 48px
  }

  .timeline-section {
    grid-template-columns: 1fr 1fr
  }

  .goals {
    grid-column: 1/-1
  }
}

@media(max-width:800px) {
  .site-header {
    padding: 0 20px
  }

  .nav {
    display: none
  }

  .btn-cv {
    padding: 10px 14px
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 45px 20px
  }

  .hero-copy {
    order: 1
  }

  .hero-visual {
    order: 2;
    min-height: 390px
  }

  .hand-note {
    font-size: 15px
  }

  .portrait-wrap {
    width: 270px;
    height: 270px
  }

  .about-section,
  .project-detail {
    grid-template-columns: 1fr;
    gap: 35px;
    
  }

  .section {
    padding: 55px 20px
  }

  .values {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .tech-grid {
    grid-template-columns: repeat(4, 1fr)
  }

  .project-grid {
    grid-template-columns: 1fr
  }

  .section-heading-row {
    align-items: flex-start;
    gap: 15px;
    flex-direction: column
  }

  .timeline-section {
    grid-template-columns: 1fr
  }

  .footer {
    grid-template-columns: 1fr
  }

  .footer-copy {
    text-align: left
  }
}

@media(max-width:500px) {
  .hero h1 {
    font-size: 42px
  }

  .hero h2 {
    font-size: 21px
  }

  .hero-text {
    font-size: 14px
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch
  }

  .contact-row {
    font-size: 11px
  }

  .tech-grid {
    grid-template-columns: repeat(3, 1fr)
  }

  .feature-list {
    grid-template-columns: 1fr
  }

  .project-detail h2,
  .contact-section h2 {
    font-size: 34px
  }

  .contact-section {
    padding: 55px 20px;
    flex-direction: column;
    align-items: flex-start
  }
}