:root {
  --black: #090909;
  --surface: #111111;
  --surface-soft: #171717;
  --white: #eeeeeb;
  --grey: #b0afaa;
  --light-blue: #aaf2f5;
  --cyan:#08c6d9;
  --line: rgba(255, 255, 255, .18);
  --line-soft: rgba(255, 255, 255, .1);
  --sans: "DM Sans", Arial, sans-serif;
  --mono: "DM Mono", monospace;
}

* { box-sizing: border-box; }
html { 
   scroll-behavior: smooth; 
   }
   
body { 
   margin: 0; 
   background: var(--black); 
   color: var(--white); 
   font-family: var(--sans); 
   line-height: 1.45; 
   }

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

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

.sr-only { 
   position: absolute; 
   width: 1px; 
   height: 1px; 
   overflow: hidden; 
   clip: rect(0 0 0 0); 
   white-space: nowrap; 
   }

/* Estructura y cabecera */
.page-shell { 
   width: min(1440px, calc(100% - 48px)); 
   margin: 24px auto; 
   border: 1px solid var(--line); 
   }
   
.site-header { 
   display: flex; 
   align-items: center; 
   min-height: 76px; 
   padding: 0 30px; 
   border-bottom: 1px solid var(--line); 
   }

.monogram { 
   font-size: 1.65rem; 
   font-weight: 500; 
   letter-spacing: -.1em; 
   }

.site-nav { 
   display: flex; 
   gap: 30px; 
   margin: auto; 
   }

.nav-link, .line-link { 
   font: 400 .67rem var(--mono); 
   letter-spacing: .1em; 
   text-transform: uppercase; 
   }

.nav-link { 
   position: relative; 
   padding: 10px 0; 
   color: var(--grey); 
   }

.nav-link::after { 
   content: ""; 
   position: absolute; 
   right: 0; bottom: 0; 
   left: 0; 
   height: 1px; 
   transform: scaleX(0); 
   transform-origin: left; 
   background: var(--cyan); 
   transition: transform .25s ease; 
   }

.nav-link:hover, .nav-link.is-active { 
   color: var(--white); 
   }

.nav-link:hover::after, .nav-link.is-active::after { 
   transform: scaleX(1); 
   }

.language-switcher { 
   display: flex; 
   gap: 5px; 
   align-items: center; 
   margin-right: 17px; 
   color: #62615e; 
   font: .6rem var(--mono); 
   }

.local-clock { 
   display: flex; 
   gap: 7px; 
   align-items: baseline; 
   margin-right: 17px; 
   color: var(--grey); 
   font: .6rem var(--mono); 
   letter-spacing: .06em; 
   }

.clock-label { 
   color: #6e6d69; 
   text-transform: uppercase; 
   }

#local-time { 
   color: var(--white); 
   font-variant-numeric: tabular-nums; 
   }

.language-button { 
   padding: 4px 0; 
   border: 0; 
   background: transparent; 
   color: inherit; 
   cursor: pointer; 
   font: inherit; 
   }

.language-button.is-active, .language-button:hover { 
   color: var(--white); 
   }

.linkedin-button { 
   display: grid; 
   width: 25px; 
   height: 25px; 
   place-items: center; 
   border: 1px solid var(--line); 
   border-radius: 50%; 
   color: var(--white); 
   font: 500 .7rem var(--mono); 
   transition: background .2s, color .2s; 
   }

.linkedin-button:hover { 
   background: var(--white); 
   color: var(--black);
   }

.menu-button { display: none; }

/* Hero */
.hero { 
   display: grid; 
   grid-template-columns: .92fr 1.08fr; 
   min-height: 625px; 
   }

.hero-copy { 
   align-self: center; 
   padding: 54px 44px 54px 38px; 
   }

.eyebrow, .project-tags, .tool-group h3 { 
   margin: 0; 
   color: var(--cyan); 
   font: 400 .68rem var(--mono); 
   letter-spacing: .1em; 
   text-transform: uppercase; 
   }

h1, h2, h3 { font-weight: 400; }
h1 { 
   margin: 20px 0 26px; 
   font-family: var(--sans); 
   font-size: clamp(4rem, 7.2vw, 7.5rem); 
   font-weight: 800; line-height: .79; 
   letter-spacing: -.115em; 
   text-transform: uppercase; 
   }

.hero-description { 
   max-width: 425px; 
   margin: 0; 
   color: #cecdc9; 
   font-size: 0.9rem; 
   }

.availability { 
   margin: 21px 0 27px; 
   color: var(--grey); 
   font-size: .86rem; 
   }

.availability span { 
   display: inline-block; 
   width: 7px; 
   height: 7px; 
   margin-right: 8px; 
   border-radius: 50%; 
   background: #a6bd8b; 
   }

.line-link { 
   display: inline-flex; 
   gap: 17px; 
   align-items: center; 
   padding: 12px 0 10px; 
   border-bottom: 1px solid var(--grey); 
   transition: color .2s, border-color .2s; 
   }

.line-link:hover { 
   border-color: var(--cyan); 
   color: var(--cyan); 
   }

.line-link-small { 
   white-space: nowrap; 
   }

.hero-image { 
   position: relative; 
   overflow: hidden; 
   }

.hero-image::after { 
   content: ""; 
   position: absolute; 
   inset: 0; 
   background: linear-gradient(90deg, rgba(0,0,0,.25), 
   transparent 42%); 
   }

.hero-image img { 
   width: 100%; 
   height: 100%; 
   min-height: 600px; 
   object-fit: cover; 
   mask-image: linear-gradient(to bottom, rgb(26, 26, 26) 5%, transparent 100%);
   }

.hero-image p { 
   position: absolute; 
   z-index: 1; 
   right: 14px; 
   bottom: 21px; 
   margin: 0; 
   color: #e4e3df; 
   font: 400 .6rem var(--mono); 
   letter-spacing: .16em; 
   text-transform: uppercase; 
   writing-mode: vertical-rl; 
   transform: rotate(180deg); 
   }
   
/*  SERVICES SECTION */

.services-section {
  --bg: var(--black);
  --text: var(--white);
  --muted: var(--grey);
  --muted-dark: #6e6d69;
  --accent: var(--cyan);

  border-top: 1px solid var(--line);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.45;
  padding: 34px 30px;
}


.services-container {
  width: 100%;
  margin: 0 auto;
}


/* HEADER */

.services-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 1rem;
  margin-bottom: 3rem;
}


.services-title {
  display: flex;
  flex-direction: column;
}


.section-label {
  margin: 0; 
   color: var(--cyan); 
   font: 400 .68rem var(--mono); 
   letter-spacing: .1em; 
   text-transform: uppercase;
   margin-bottom: 1rem; 
}


.label-slash {
  color: var(--cyan);
  font-size: 20px;
  line-height: 1;
}

.services-title h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -.055em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.services-intro {
  display: flex;
  align-items: flex-start;
  padding-top: 0;
}

.services-intro p {
  max-width: 425px;
  margin: 0;
  line-height: 1.5;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0;
  margin-bottom: 2rem;
  align-self:end;
}

/* GRID */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 0 solid var(--line);
}

.service-card {
  position: relative;
  min-width: 0;
  padding: 0 14px 12px 0;
}

.service-card:not(:first-child) {
  border-left: 1px solid var(--line);
  padding-left: 14px;
}

/* NUMBER */

.service-number {
  margin-bottom: 17px;
  color: var(--grey);
  font: .62rem var(--mono);
  line-height: 1;
}

/* ICON */

.service-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 22px;
}

.service-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--white);
  stroke-width: 0.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* TEXT INSIDE FIRST ICON */

.service-icon text {
  fill: var(--white);
  stroke: none;
  font-family: var(--sans);
  font-size: 34px;
}

/* TITLE */

.service-card h3 {
  margin: 0 0 7px;
  font-size: 1.05rem;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -.04em;
  text-transform: uppercase;
}

/* ACCENT LINE */

.service-line {
  display: block;
  width: 48px;
  height: 1px;
  margin-bottom: 14px;
  background: var(--cyan);
}

/* DESCRIPTION */

.service-description {
  margin: 0 0 14px;
  max-width: 330px;
  font-size: .8rem;
  line-height: 1.5;
  font-weight: 400;
  color: var(--grey);
}

/* LIST */

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-list li {
  position: relative;
  margin-bottom: 5px;
  padding-left: 17px;
  color: var(--grey);
  font-size: .76rem;
  line-height: 1.45;
  font-weight: 400;
}

.service-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--grey);
}

.services-footer {
  display: flex;
  align-items: center;
  gap: 16px;

  margin-top: 29px;
  padding-top: 17px;

  border-top: 1px solid var(--line);
}

.footer-arrow {
  color: var(--cyan);
  font-size: 1rem;
  line-height: 1;
}

.services-footer p {
  margin: 0;
  color: var(--grey);
  font-size: .8rem;
  line-height: 1.5;
  font-weight: 400;
}

/* HOVER */

.service-card {
  transition:
    transform 0.4s ease,
    opacity 0.4s ease;
}

.services-grid:hover .service-card {
  opacity: 0.45;
}

.services-grid .service-card:hover {
  opacity: 1;
  transform: translateY(-4px);
}

.service-card:hover .service-icon svg {
  stroke: #ffffff;
}

.service-card:hover .service-number {
  color: var(--cyan);
}

/* TABLET */

@media (max-width: 1050px) {

  .services-container {
    width: 100%;
  }

  .services-header {
    gap: 20px;
    margin-bottom: 22px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 70px;
  }

  .service-card:nth-child(3) {
    border-left: none;
    padding-left: 0;
  }

  .service-card:nth-child(3),
  .service-card:nth-child(4) {
    padding-top: 0;
  }

  .service-card:nth-child(odd) {
    padding-right: 14px;
  }

  .service-card:nth-child(even) {
    padding-left: 14px;
  }

  .service-card:nth-child(3),
  .service-card:nth-child(4) {
    border-top: 1px solid var(--line);
    padding-top: 28px;
  }
}

/* MOBILE */

@media (max-width: 720px) {

  .services-section {
    padding: 30px 16px;
  }

  .services-container {
    width: 100%;
  }

  .services-header {
    display: block;

    margin-bottom: 30px;
  }

  .section-label {
    margin-bottom: 20px;
    font-size: 12px;
  }

  .services-title h2 {
    font-size: clamp(1.45rem, 8vw, 2rem);
  }

  .services-intro {
    padding-top: 20px;
  }

  .services-intro p {
    font-size: .9rem;
    line-height: 1.55;
  }

  .services-grid {
    display: block;
  }

  .service-card,
  .service-card:nth-child(odd),
  .service-card:nth-child(even) {
    border-left: none;
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--line);
  }

  .service-card:last-child {
    margin-bottom: 0;
  }

  .service-card:nth-child(3),
  .service-card:nth-child(4) {
    border-top: none;
    padding-top: 0;
  }

  .service-number {
    margin-bottom: 14px;
  }

  .service-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 22px;
  }

  .service-card h3 {
    margin-bottom: 7px;
    font-size: 1.05rem;
  }

  .service-description {
    max-width: 100%;
    font-size: .8rem;
    line-height: 1.5;
  }

  .service-list li {
    font-size: .76rem;
  }

  .services-footer {
    align-items: flex-start;
    margin-top: 17px;
    padding-top: 17px;
  }

  .services-footer p {
    font-size: .76rem;
    line-height: 1.5;
  }

  .services-grid:hover .service-card {
    opacity: 1;
  }

  .service-card:hover {
    transform: none;
  }

}

/* SMALL MOBILE */

@media (max-width: 420px) {

  .services-container {
    width: 100%;
  }

  .services-title h2 {
    font-size: 1.45rem;
  }

  .services-intro p {
    font-size: .86rem;
  }
}

/* Proyectos */

.section { 
   border-top: 1px solid var(--line); 
   padding: 34px 30px; 
}

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

.section h2 { 
   margin: 0; 
   font-size: clamp(1.45rem, 2vw, 2rem); 
   letter-spacing: -.055em; 
   text-transform: uppercase; 
   }

.project-grid { 
   display: grid; 
   grid-template-columns: repeat(4, 1fr); 
   gap: 14px; 
   }

.project-card { 
   display: flex;
   flex-direction: column; 
   overflow: hidden; 
   border: 1px solid var(--line); 
   background: var(--surface); 
   transition: border-color .25s, transform .25s; 
   }

.project-card:hover { 
   border-color: rgba(255,255,255,.5); 
   transform: translateY(-4px); 
   }

.project-image { 
   position: relative; 
   height: 205px; 
   overflow: hidden; 
   background: var(--surface-soft); 
   }
   
.project-image > img { 
   width: 100%; 
   height: 100%; 
   object-fit: cover; 
    
   transition: transform .45s ease; 
   }

.project-card:hover .project-image > img { 
   transform: scale(1.05); 
   }

.project-image > span { 
   position: absolute; 
   z-index: 2; 
   bottom: 10px; 
   left: 13px; 
   font: .62rem var(--mono); 
   }

.project-content { 
   display: flex; 
   flex: 1; 
   flex-direction: column; 
   padding: 17px 14px 14px; 
   }

.project-content h3 { 
   margin: 0 0 7px; 
   font-size: 1.05rem; 
   letter-spacing: -.04em; 
   text-transform: uppercase; 
   }

   .project-content h3:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.project-tags { 
   font-size: .56rem; 
   line-height: 1.5; 
   color: var(--cyan);
   }
   
.project-content > p:not(.project-tags) { 
  margin: 14px 0 0; 
  color: var(--grey); 
  font-size: .8rem; 
}

.case-toggle { display: flex; 
  justify-content: space-between; 
  width: 100%; margin-top: auto; 
  padding: 17px 0 0; border: 0; 
  border-top: 1px solid var(--line); 
  background: transparent; 
  color: var(--cyan); 
  cursor: pointer; 
  font: .61rem var(--mono); 
  letter-spacing: .1em; 
  text-align: left; 
  text-transform: uppercase; }

.case-toggle span { font-size: 1rem; line-height: .6;  }
.case-detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.case-detail > p { min-height: 0; margin: 0; overflow: hidden; color: var(--grey); font-size: .75rem; }
.project-card.is-expanded .case-detail { grid-template-rows: 1fr; }
.project-card.is-expanded .case-detail > p { padding-top: 13px; }

/* Maqueta web monocroma del tercer proyecto */
.web-preview { padding: 13px; background: #e8e7e3; }
.browser-bar { display: flex; gap: 4px; height: 19px; padding: 5px; border: 1px solid #1b1b1b; background: #f4f3ef; }
.browser-bar i { width: 4px; height: 4px; border-radius: 50%; background: #171717; }
.preview-layout { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; gap: 9px; height: calc(100% - 28px); padding: 10px; border: 1px solid #1b1b1b; border-top: 0; }
.preview-panel { background: #111; }
.preview-panel-large { grid-row: 1 / 3; background: linear-gradient(135deg, #1b1b1b, #676767); }
.preview-panel-top { background: #989895; }
.preview-lines { display: grid; align-content: center; gap: 6px; }
.preview-lines i { height: 3px; background: #232323; }
.preview-lines i:nth-child(2) { width: 76%; }.preview-lines i:nth-child(3) { width: 56%; }
.web-preview > span { color: var(--white); }

/* Perfil, herramientas y contacto */
.about { 
  display: grid; 
  grid-template-columns: 1fr 1.12fr .9fr; 
  gap: 28px; 
  align-items: start; 
}

.about-copy p:not(.about-lead) { 
  max-width:330px; 
  color: var(--grey); 
  font-size: .84rem; 
}

.about-lead { 
  
   margin: 0; 
   color: var(--cyan); 
   font: 400 .68rem var(--mono); 
   letter-spacing: .1em; 
   text-transform: uppercase;
   margin-bottom: 1rem; 
   } 

.outline-button { 
  display: inline-flex; 
  gap: 13px; 
  margin-top: 10px; 
  padding: 11px 15px; 
  border: 1px solid var(--line); 
  font: .62rem var(--mono); 
  letter-spacing: .1em; 
  text-transform: uppercase; 
  transition: background .2s, color .2s; 
}

.outline-button:hover { 
  background: var(--white); 
  color: var(--black); 
}

.workspace-image { 
  min-height: 310px; 
  overflow: hidden; 
  border: 1px solid var(--line); 
}

.workspace-image img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  filter: grayscale(1) brightness(.68) contrast(1.1); 
}

.tools { 
  padding-left: 26px; 
  border-left: 1px solid var(--line); 
}

.tools h2 { margin-bottom: 20px; }

.tool-group { margin-bottom: 17px; }

.tool-group h3 { margin-bottom: 5px; font-size: 1rem; }

.tool-group p { margin: 0; 
  color: var(--grey); 
  font-size: .76rem; 
}

.contact { 
  display: grid; 
  grid-template-columns: 1.1fr 1fr .45fr;
  gap: 25px; align-items: center; 
  padding-top: 29px; 
  padding-bottom: 29px; 
}

.contact-title { 
  margin: 0; 
  font-size: 1.65rem; 
  letter-spacing: -.04em; 
  text-transform: uppercase; 
  }
  
.contact p:not(.contact-title) { 
  color: var(--cyan); 
  font-size: .84rem; 
  letter-spacing: .1em; 
  text-transform: uppercase;
  margin-bottom: 1rem; 
  } 
 

.contact-links { 
  display: grid; 
  gap: 12px; 
  font-size: 1rem; 
}
  
.contact-links a { 
  padding-bottom: 6px; 
  border-bottom: 1px solid var(--line-soft); 
}
  
.contact-links p { 
  margin: 0; 
}
  
.contact-seal { 
  justify-self: end;
   width: 185px; 
   height: 185px; 
   object-fit: contain; 
   opacity: .9; 
   mix-blend-mode: screen; 
  }

footer { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: 18px; padding: 15px 30px; 
  border-top: 1px solid var(--line); 
  color: var(--grey); 
  font: .58rem var(--mono); 
  letter-spacing: .08em; 
  text-transform: uppercase; }
  
  footer a { 
    display: grid; 
    width: 20px; 
    height: 20px; 
    place-items: center; 
    border: 1px solid var(--line); 
    border-radius: 50%; 
  }
  
  footer a:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* Responsive */
@media (max-width: 1050px) {
  .project-grid { 
    grid-template-columns: repeat(2, 1fr); 
 }

.project-image { 
  height: 245px; 
 }
  
.about { 
    grid-template-columns: 1fr 1fr; 
 }
.tools { 
  grid-column: 1 / -1; 
  padding: 28px 0 0; 
  border-top: 1px solid var(--line); 
  border-left: 0; 
 }

.tool-group { 
 display: grid; 
 grid-template-columns: 150px 1fr; 
 }
 
.tool-group p { 
  margin: 0; 
 } 
}

@media (max-width: 720px) { 
  .page-shell { 
  width: min(100% - 20px, 1440px); 
  margin: 10px auto; 
  }

  .site-header { 
  min-height: 62px; 
  padding: 0 16px; 
  position: relative; 
  }
  
  .menu-button { 
    display: grid; 
    gap: 4px; 
    margin-left: auto; 
    margin-right: 15px; 
    padding: 8px; 
    border: 0; 
    background: transparent; 
    color: var(--white); 
    cursor: pointer; 
    }
        
 .menu-button span:not(.sr-only) { 
 display:block; 
   width:20px; 
   height:1px; 
    background:currentColor; 
   }
          
  .site-nav { 
   display: none; 
    position: absolute; 
    top: 61px; 
    right: -1px; 
    left: -1px; 
    z-index: 5; 
    flex-direction: column; 
    gap: 0; margin: 0; 
    padding: 10px 17px; 
    border: 1px solid var(--line); 
    background: var(--surface);
   }
             
  .site-nav.is-open { 
   display: flex; 
   }
              
  .nav-link { 
   padding: 12px 0; 
  }
                
  .local-clock { 
    display: none; 
  }
                  
  .hero { 
  grid-template-columns: 1fr; 
  }
                    
  .hero-copy { 
  padding: 54px 20px 42px; 
  }
                      
  .hero-image img { 
  min-height: 425px; 
  max-height: 520px; 
  }
           
  .section { padding: 30px 16px; }
                       
  .section-heading { 
   align-items: flex-start; 
   flex-direction: column; 
   margin-bottom: 22px; 
   }
                        
  .project-grid { grid-template-columns: 1fr; }
  
  .project-image { height: 255px; }
  
  .about, .contact { 
   grid-template-columns: 1fr; 
   gap: 28px; 
  }

.workspace-image { 
  height: 380px; 
  }
  
  .tools { 
    grid-column: auto; 
    }
  
  .tool-group { 
    grid-template-columns: 1fr; 
    gap: 4px; 
  }

  .contact-seal { 
    justify-self: start; 
  }

  .contact { 
    padding-top: 35px; 
  }

  .contact-links { 
    order: 2; 
  }
  .contact-seal { 
    order: 3; 
  }
  
  footer { 
    align-items: flex-start; 
    flex-wrap: wrap; 
    padding: 15px 16px; 
  } }

/* Animaciones discretas: se activan al entrar cada bloque en pantalla. */
@media (prefers-reduced-motion: no-preference) {
  .section, .services-section, .hero-copy, .hero-image { 
    opacity: 0; 
    transform: translateY(18px); 
    transition: opacity .7s ease, transform .7s ease; 
  }
  .hero-image { 
    transition-delay: .12s; 
  }
  .is-visible { opacity: 1; 
    transform: translateY(0);
    
  }

  .contact-seal {
    animation: contact-seal-spin 18s linear infinite;
  }

  @keyframes contact-seal-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }
}
