/* =========================
   RO Y CARO - TEMA WORDPRESS
========================= */

:root {
  --blue: #0736c9;
  --paper: #f4efe7;
  --black: #111111;

  /* MOVER "HOLA! SOMOS" */
  --hola-x: -340px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.75), rgba(244,239,231,0.95) 58%),
    var(--paper);
  color: var(--black);
  font-family: Arial, Helvetica, sans-serif;
}

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

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

.page {
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 34px 28px 24px;
}

.page-wrap {
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 34px 28px 24px;
}

/* =========================
   HEADER
========================= */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: none;
  background: transparent;
  padding: 8px 26px 56px;
  margin: 0;
  text-transform: uppercase;
  font-weight: 950;
  font-size: 16px;
  animation: fadeDown 0.75s ease both;
}

.brand a {
  font-size: 20px;
  letter-spacing: 0;
}

.site-header nav {
  display: flex;
  gap: 64px;
}

.site-header nav a {
  position: relative;
  transition: transform 0.2s ease, color 0.2s ease;
}

.site-header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width 0.25s ease;
}

.site-header nav a:hover {
  transform: translateY(-2px);
}

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

/* =========================
   HERO HOME
========================= */

.hero {
  background: transparent;
  color: var(--black);
  border: none;
  min-height: 540px;
  padding: 0 26px 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.hero-script {
  color: var(--black);
  font-size: clamp(52px, 7.2vw, 90px);
  line-height: 0.9;
  margin-left: 0;
  margin-bottom: -8px;
  font-family: "Brush Script MT", "Segoe Script", "Snell Roundhand", cursive;
  font-weight: 400;
  letter-spacing: 0;

  display: inline-block;
  width: 0;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--black);

  transform: translateX(var(--hola-x));

  animation:
    escribirHola 1.45s steps(12, end) 0.25s forwards,
    cursorHola 0.75s step-end 0.25s 2 forwards,
    sacarCursorHola 0.01s linear 1.95s forwards;
}

.hero-title {
  color: var(--blue);
  font-size: clamp(108px, 21.5vw, 270px);
  line-height: 0.74;
  letter-spacing: -12px;
  white-space: nowrap;
  margin: 0;
  font-weight: 950;
  text-transform: uppercase;
  animation: none;
  opacity: 1;
  transform: none;
}

.hero-sub {
  color: var(--black);
  margin-top: 70px;
  text-align: center;
  width: 100%;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
  animation: fadeUp 1.2s ease 1.65s both;
}

.hero-arrow {
  color: var(--blue);
  font-size: 56px;
  margin-top: 10px;
  text-align: center;
  width: 100%;
  opacity: 0;
  animation:
    fadeUp 1.2s ease 1.65s forwards,
    arrowFloat 1.4s ease-in-out 2.85s infinite;
}

/* =========================
   LÍNEAS LAPICERA
========================= */

.pen-line {
  height: 16px;
  margin: 8px 0 34px;
  border: 0;
  position: relative;
}

.pen-line::before,
.pen-line::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--blue);
  opacity: 0.95;
  transform-origin: left;
}

.pen-line::before {
  top: 4px;
  transform: rotate(-0.25deg);
}

.pen-line::after {
  top: 9px;
  transform: rotate(0.18deg);
}

/* =========================
   SECCIONES
========================= */

section {
  margin-bottom: 36px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 22px;
  margin-bottom: 26px;
}

.label {
  margin: 0;
  text-transform: uppercase;
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0;
  font-weight: 950;
  color: var(--black);
}

.see-all {
  border: none;
  padding: 0;
  background: transparent;
  text-transform: uppercase;
  font-size: 16px;
  font-weight: 950;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.see-all:hover {
  background: transparent;
  color: var(--black);
  transform: translateY(-2px);
}

.see-all .arrow {
  color: var(--blue);
  font-size: 34px;
  transition: transform 0.2s ease;
}

.see-all:hover .arrow {
  transform: translateX(8px);
}

/* =========================
   TRABAJOS HOME
========================= */

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 0 6px;
}

.work-card {
  display: block;
  border: none;
  padding: 0;
  background: transparent;
  min-height: auto;
  box-shadow: none;
  position: relative;
  transition: transform 0.28s ease;
}

.work-card:hover {
  transform: translateY(-7px) rotate(-0.25deg);
  box-shadow: none;
}

.work-number {
  color: var(--blue);
  font-size: 20px;
  font-weight: 950;
  margin: 0 0 22px 20px;
}

.work-media {
  border: none;
  background: #ddd;
  aspect-ratio: 1 / 1.18;
  margin: 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
  transition: transform 0.45s ease;
}

.work-card:hover .work-media img {
  transform: scale(1.035);
}

.work-info {
  position: relative;
  z-index: 2;
  margin-top: -115px;
  padding: 0 20px 18px;
}

.work-info h3 {
  font-size: 34px;
  line-height: 0.88;
  letter-spacing: -1.3px;
  max-width: 200px;
  margin: 0 0 55px;
  text-transform: uppercase;
  font-weight: 950;
  color: var(--blue);
}

.work-info p {
  display: none;
}

.work-info::after {
  content: "Ver proyecto →";
  color: var(--blue);
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 31px;
  font-weight: 400;
  margin-top: 0;
  display: inline-block;
  position: relative;
  z-index: 2;
  transition: transform 0.25s ease, color 0.25s ease;
}

.work-info::before {
  content: "";
  position: absolute;
  left: 20px;
  bottom: 10px;
  width: 0;
  height: 8px;
  background: rgba(7, 54, 201, 0.16);
  transition: width 0.25s ease;
  z-index: 1;
}

.work-card:hover .work-info::after {
  transform: translateX(10px) rotate(-1deg);
}

.work-card:hover .work-info::before {
  width: 145px;
}

/* =========================
   LA DUPLA
========================= */

#dupla {
  padding: 0 22px;
}

.dupla-grid {
  display: grid;
  grid-template-columns: 0.55fr 1.15fr 0.55fr 1.15fr;
  gap: 34px;
  align-items: start;
}

.bio,
.portrait {
  border: none;
  background: transparent;
  padding: 0;
  min-height: 0;
}

.bio-name {
  color: var(--blue);
  font-size: 72px;
  line-height: 0.78;
  letter-spacing: -4px;
  font-weight: 950;
  margin-bottom: 12px;
}

.linkedin-btn {
  width: 30px;
  height: 30px;
  border: 2px solid var(--blue);
  color: var(--blue);
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 950;
  margin-bottom: 8px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.linkedin-btn:hover {
  background: var(--blue);
  color: var(--paper);
  transform: translateY(-2px);
}

.mini-line {
  width: 120px;
  height: 2px;
  background: var(--blue);
  margin-bottom: 18px;
}

.bio-text {
  font-size: 16px;
  line-height: 1.22;
  margin: 0 0 18px;
}

.portrait {
  aspect-ratio: 1 / 1;
  background: #bfbfbf;
  color: #666;
  overflow: hidden;
}

.portrait-placeholder {
  border: none;
  background: #c7c7c7;
  color: #777;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  font-size: 13px;
}

/* =========================
   CONTACTO HOME
========================= */

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.35fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.contact-title {
  grid-column: 1;
  grid-row: 1;
  color: var(--blue);
  text-transform: uppercase;
  font-size: clamp(92px, 13vw, 170px);
  line-height: 0.76;
  letter-spacing: -7px;
  margin: 0;
  font-weight: 950;
}

.contact-doodle {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  align-self: center;
  color: var(--blue);
  font-size: 110px;
  transform: rotate(-8deg);
  animation: doodleFloat 2.3s ease-in-out infinite;
}

.contact-links {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 20px;
  font-weight: 950;
}

.contact-links a {
  border-bottom: 2px solid var(--blue);
  padding-bottom: 4px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.contact-links a:hover {
  transform: translateX(6px);
  color: var(--blue);
}

/* =========================
   PÁGINA HABLEMOS
========================= */

.contact-page {
  padding: 80px 22px 120px;
}

.contact-page-content {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info-grid {
  width: 100%;
  margin-top: 100px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.contact-info-item {
  border-top: 2px solid var(--blue);
  padding-top: 18px;
}

.contact-info-label {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  font-weight: 700;
}

.contact-info-item a {
  color: var(--blue);
  text-decoration: none;
  font-size: clamp(24px, 3vw, 46px);
  line-height: 1;
  font-weight: 700;
}

.contact-info-item a:hover {
  text-decoration: underline;
}

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

footer {
  border-top: 2px solid var(--blue);
  padding: 20px 22px 0;
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 950;
}

/* =========================
   SINGLE PROJECT / ENTRADAS
========================= */

.project-single {
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.75), rgba(244,239,231,0.95) 58%),
    var(--paper);
  color: var(--black);
  min-height: 100vh;
}

.project-single-inner {
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 34px 28px 24px;
}

.project-single-hero {
  padding: 34px 22px 80px;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.project-number {
  color: var(--blue);
  font-size: 22px;
  font-weight: 950;
  margin: 0 0 24px;
  text-transform: uppercase;
}

.project-single-hero h1 {
  color: var(--blue);
  font-size: clamp(86px, 15vw, 210px);
  line-height: 0.78;
  letter-spacing: -8px;
  text-transform: uppercase;
  font-weight: 950;
  margin: 0;
  max-width: 1180px;
}

.project-single-intro {
  color: var(--black);
  max-width: 620px;
  margin: 42px 0 0 auto;
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.12;
  font-weight: 950;
  text-transform: uppercase;
}

.project-single-arrow {
  display: none;
}

.project-single-cover {
  margin: 0 22px 72px;
  overflow: hidden;
}

.project-single-cover img {
  width: 100%;
  height: auto;
  display: block;
  filter: none;
}

.project-single-info,
.project-single-side,
.project-single-info::before {
  display: none;
}

.project-single-description {
  margin: 0 22px;
  padding: 20px 0 78px;
  border-top: none;
}

/* MÁS ANCHO PARA IMÁGENES DENTRO DEL PROYECTO */
.project-single-description .project-single-text {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* TEXTO MÁS ANGOSTO PARA QUE NO QUEDE LARGUÍSIMO */
.project-single-description .project-single-text p {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.15;
  font-weight: 500;
  margin-bottom: 28px;
}

.project-single-description .project-single-text h2,
.project-single-description .project-single-text h3,
.project-single-description .project-single-text h4 {
  color: var(--blue);
  text-transform: uppercase;
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -2px;
  margin: 52px 0 20px;
}

.project-single-description .project-single-text img {
  width: 100%;
  height: auto;
  margin: 50px 0;
  display: block;
  filter: none;
}

.project-single-nav {
  margin: 0 22px;
  padding: 34px 0 86px;
  border-top: 2px solid var(--blue);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.project-single-nav a {
  color: var(--blue);
  font-size: clamp(20px, 2vw, 32px);
  line-height: 1;
  font-weight: 950;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.25s ease;
}

.project-nav-left a:hover,
.project-single-nav a:first-child:hover {
  transform: translateX(-8px);
}

.project-nav-right a:hover,
.project-single-nav a:last-child:hover {
  transform: translateX(8px);
}

/* =========================
   IMÁGENES MANUALES EN PROYECTOS
========================= */

.project-single-text figure.proyecto-img {
  width: 1200px;
  max-width: 100%;
  margin-top: var(--img-top, 56px);
  margin-right: auto;
  margin-bottom: var(--img-bottom, 56px);
  margin-left: auto;
}

.project-single-text figure.proyecto-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================
   PÁGINA TRABAJOS
========================= */

.works-page {
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.75), rgba(244,239,231,0.95) 58%),
    var(--paper);
  color: var(--black);
  min-height: 100vh;
}

.works-page-inner {
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 34px 28px 24px;
}

.works-page-hero {
  padding: 34px 22px 56px;
}

.works-page-hero h1 {
  color: var(--blue);
  font-size: clamp(64px, 11vw, 150px);
  line-height: 0.78;
  letter-spacing: -6px;
  text-transform: uppercase;
  font-weight: 950;
  margin: 0;
}

.works-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 54px 32px;
  padding: 0 22px 90px;
}

.works-page-card {
  display: block;
  position: relative;
  transition: transform 0.28s ease;
}

.works-page-card:hover {
  transform: translateY(-7px) rotate(-0.25deg);
}

.works-page-number {
  color: var(--blue);
  font-size: 22px;
  font-weight: 950;
  margin: 0 0 22px 34px;
}

.works-page-media {
  display: block;
  position: relative;
  overflow: hidden;
  background: #ddd;
  aspect-ratio: 1 / 1.18;
  cursor: pointer;
}

.works-page-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
  transition: transform 0.45s ease;
}

.works-page-card:hover .works-page-media img {
  transform: scale(1.035);
}

.works-page-media h2 {
  position: absolute;
  left: 34px;
  bottom: 58px;
  z-index: 2;
  color: var(--blue);
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 0.84;
  letter-spacing: -1.8px;
  text-transform: uppercase;
  font-weight: 950;
  margin: 0;
  max-width: 250px;
  transition: transform 0.25s ease;
}

.works-page-card:hover .works-page-media h2 {
  transform: translateX(8px);
}

.works-page-link {
  display: none;
}

/* =========================
   ANIMACIONES
========================= */

@keyframes escribirHola {
  from {
    width: 0;
  }
  to {
    width: 650px;
  }
}

@keyframes sacarCursorHola {
  to {
    border-right-color: transparent;
  }
}

@keyframes cursorHola {
  0%, 100% {
    border-color: transparent;
  }
  50% {
    border-color: var(--black);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes arrowFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(12px);
  }
}

@keyframes doodleFloat {
  0%, 100% {
    transform: rotate(-8deg) translateY(0);
  }
  50% {
    transform: rotate(-5deg) translateY(-8px);
  }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 900px) {
  :root {
    --hola-x: 0px;
  }

  .page,
  .page-wrap {
    padding: 22px 18px;
  }

  .site-header {
    padding: 8px 0 36px;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .site-header nav {
    gap: 20px;
    flex-wrap: wrap;
    font-size: 13px;
  }

  .hero {
    min-height: 500px;
    padding: 0 0 20px;
  }

  .hero-script {
    font-size: clamp(44px, 14vw, 76px);
    margin-bottom: -4px;
  }

  .hero-title {
    white-space: normal;
    font-size: clamp(82px, 26vw, 150px);
    letter-spacing: -6px;
  }

  .hero-sub {
    margin-top: 42px;
  }

  .section-head {
    padding: 0;
  }

  #dupla {
    padding: 0;
  }

  .work-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .work-info {
    margin-top: -80px;
  }

  .work-info h3 {
    margin-bottom: 160px;
  }

  .dupla-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-title,
  .contact-doodle,
  .contact-links {
    grid-column: auto;
    grid-row: auto;
  }

  .contact-title {
    letter-spacing: -4px;
  }

  .contact-page {
    padding: 60px 0 90px;
  }

  .contact-info-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  footer {
    flex-direction: column;
    gap: 8px;
  }

  .project-single-inner {
    padding: 22px 18px;
  }

  .project-single-hero {
    padding: 40px 0 58px;
    min-height: 420px;
  }

  .project-single-hero h1 {
    font-size: clamp(72px, 22vw, 120px);
    letter-spacing: -5px;
  }

  .project-single-intro {
    margin: 34px 0 0;
  }

  .project-single-cover {
    margin: 0 0 56px;
  }

  .project-single-description {
    margin: 0;
    padding: 24px 0 56px;
  }

  .project-single-description .project-single-text {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  .project-single-description .project-single-text p {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    font-size: clamp(20px, 6vw, 30px);
  }

  .project-single-text figure.proyecto-img {
    width: 100%;
    max-width: 100%;
    margin: 42px auto;
  }

  .project-single-nav {
    margin: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    padding: 28px 0 70px;
  }

  .works-page-inner {
    padding: 22px 18px;
  }

  .works-page-hero {
    padding: 40px 0 48px;
  }

  .works-page-hero h1 {
    font-size: clamp(68px, 20vw, 110px);
    letter-spacing: -4px;
  }

  .works-page-grid {
    grid-template-columns: 1fr;
    gap: 54px;
    padding: 0 0 80px;
  }

  .works-page-number {
    margin-left: 26px;
    font-size: 22px;
  }

  .works-page-media h2 {
    left: 26px;
    bottom: 52px;
    font-size: clamp(34px, 12vw, 58px);
  }

  .works-page-link {
    margin-left: 26px;
    font-size: 42px;
  }
}

@media (max-width: 700px) {
  .contact-info-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* =========================
   VEREDA ADENTRO MÁS ANCHO EN GRILLA
========================= */

.works-page-card-wide {
  grid-column: span 2;
}

.works-page-card-wide .works-page-media {
  aspect-ratio: 2 / 1;
}

.works-page-card-wide .works-page-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #ddd;
}

@media (max-width: 900px) {
  .works-page-card-wide {
    grid-column: span 1;
  }

  .works-page-card-wide .works-page-media {
    aspect-ratio: 1 / 1.18;
  }
}