/* ================================= 
   ARCHIVO MAESTRO: /assets/css/global.css
   Este reemplaza a index.css y main.css
   ================================= */

/* PP Neue Montreal Font Family */
@font-face {
  font-family: 'PP Neue Montreal';
  font-style: normal;
  font-weight: 300;
  src: url("../fonts/ppneuemontreal-thin-webfont.woff2") format("woff2"),
       url("../fonts/ppneuemontreal-thin-webfont.woff") format("woff");
}

@font-face {
  font-family: 'PP Neue Montreal';
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/ppneuemontreal-book-webfont.woff2") format("woff2"),
       url("../fonts/ppneuemontreal-book-webfont.woff") format("woff");
}

@font-face {
  font-family: 'PP Neue Montreal';
  font-style: italic;
  font-weight: 400;
  src: url("../fonts/ppneuemontreal-italic-webfont.woff2") format("woff2"),
       url("../fonts/ppneuemontreal-italic-webfont.woff") format("woff");
}

@font-face {
  font-family: 'PP Neue Montreal';
  font-style: normal;
  font-weight: 500;
  src: url("../fonts/ppneuemontreal-medium-webfont.woff2") format("woff2"),
       url("../fonts/ppneuemontreal-medium-webfont.woff") format("woff");
}

@font-face {
  font-family: 'PP Neue Montreal';
  font-style: normal;
  font-weight: 600;
  src: url("../fonts/ppneuemontreal-bold-webfont.woff2") format("woff2"),
       url("../fonts/ppneuemontreal-bold-webfont.woff") format("woff");
}

/* CSS Variables - SIN VERDE */
:root {
  --content-width: 100rem;
  --primary-color: #ffffff;    /* Blanco en lugar de verde */
  --text-dark: #000000;
  --text-light: #b2b2b2;
  --white: #ffffff;
  --border-light: #b2b2b2;
  --border-dark: #000000;
  --gray-100: #e5e5e5;
  --gray-200: #cccccc;
  --gray-300: #999999;
  --gray-400: #222222;
  --bg-light: #f8f8f8;
  --highlight-yellow: #fcf1be;
  --success: #28a745;
  --warning: #ffc107;
  --error: #dc3545;
  --transition: 0.15s ease-out;
}

/* Base Reset */
*,
*:after,
*:before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, main, nav, section, summary {
  display: block;
}

html {
  font-family: 'PP Neue Montreal', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji";
  background-color: var(--white);
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  background-color: var(--white);
  color: var(--text-dark);
  min-height: 100vh;
}

/* Base Elements */
li {
  list-style: none;
}

strong, b {
  font-weight: 300;
}

img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-style: none;
  border-radius: 0rem;
}

::selection {
  background-color: var(--border-light);
  color: var(--text-dark);
}

/* Default Link Styles */
a {
  color: var(--text-dark);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

a:hover,
a:active {
  color: var(--text-light);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-size: 2rem;
  line-height: 1;
  font-weight: 300;
  margin-bottom: 0rem;
  word-wrap: break-word;
}

h2 { font-size: 1.75rem; }
h3 { font-size: 1.17rem; }
h4 { font-size: 1rem; }
h5 { font-size: 0.83rem; }
h6 { font-size: 0.67rem; }

h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
  color: inherit;
  border: 0 !important;
}

/* ================================= 
   HEADER FIJO
   ================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.5); /* blanco semitransparente */
  backdrop-filter: blur(20px); /* desenfoque del fondo detrás del header */
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  border-bottom: 0px solid var(--border-light);
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.header-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5vw;
}

.header a {
  position: relative;
  font-size: 1rem;
  padding: 0.5rem 0;
  font-weight: 500;
}

.header .logo,
.logo {
  display: block;
  margin: 0;
  padding: 1rem 0;
  flex-shrink: 0;
  font-weight: 700;
  line-height: 1.1;
}

/* Navigation Menu */
.menu {
  display: inherit;
  flex-shrink: 0;
}

.menu a {
  margin: 0 0.75rem;
  color: var(--text-dark);
  font-size: 1.1rem;
}

.menu a:hover {
  color: var(--text-light);
  text-decoration: none;
}

.menu a:first-child {
  margin-left: 0;
}

.menu a:last-child {
  margin-right: 0;
}

.menu .active,
.menu a[aria-current] {
  color: var(--text-dark);
  border-bottom: 0px solid var(--text-dark);
}

.menu li {
  list-style: none;
}

.menu-divider {
  height: 0px;
  background-color: var(--border-dark);
  margin: 0rem 0;
  visibility: visible;
}

/* Contra Badge Styling */
.menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Links del menú */
.menu a {
    line-height: 1;
}

/* Wrapper del badge de Contra sin modificar el iframe */
.menu .contra-hire-me-button {
    display: inline-flex;
    align-items: center;
    margin-left: 0.5rem;
    line-height: 1;
    width: 150px;
    height: auto;
    border-radius: 4px !important;
    clip-path: inset(0 round 4px);
    overflow: hidden;

    padding-top: 4px;
    box-sizing: border-box;
}

/* Ajuste del iframe interno */
.menu .contra-hire-me-button iframe {
    width: 100%;
    height: 100%;
    transform: scale(0.75);
    transform-origin: top left;
}

/* Ajustes solo para mobile */
@media (max-width: 480px) {
  .menu .contra-hire-me-button {
      width: 120px;  /* más chico en mobile */
  }

  .menu .contra-hire-me-button iframe {
      transform: scale(0.6);  /* reduce solo en mobile */
      transform-origin: top left;
  }
}


/* ================================= 
   LAYOUT CON COMPENSACIÓN PARA HEADER FIJO
   ================================= */
.page {
  padding: 1vh 5vw 1vh;
  margin-top: 5rem;
}

.page > * {
  max-width: var(--content-width);
  margin: 0 0;
}

main {
  min-height: calc(78vh - 1rem);
}

.main {
  padding-bottom: 1.5rem;
}

.main hr {
  margin: 3rem 0;
  height: 2px;
  background: var(--border-light);
}

.main p:first-of-type,
.main figure:first-of-type,
.main ul:first-of-type,
.main ol:first-of-type {
  margin-top: 0;
}

.main p,
.main figure,
.main ul,
.main ol {
  margin: 1.5rem 0;
}

.main li {
  margin-bottom: 0.5rem;
}

.main a:not(.pagination a) {
  border-bottom: none;
}

.main a:hover:not(.pagination a) {
  border-color: var(--gray-400);
}

/* ================================= 
   INTRO TEXT
   ================================= */
.intro-text {
  margin: 0rem 0 2rem 0;
  max-width: 50rem;
}

.intro-text h1 {
  font-size: calc(1vw + 1.3rem);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 0.25rem;
  color: var(--text-dark);
  visibility: visible;
  max-width: 30em;
}

.intro-text p {
  font-size: calc(1vw + 1.3rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-dark);
  max-width: 35rem;
}

/* ================================= 
   SERVICES ROTATOR
   ================================= */
.service-rotator {
  position: relative;
  min-height: 2.5rem;
  font-family: 'PP Neue Montreal', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  font-size: 2rem;
  font-weight: 500; /* Changed to bold 500 */
  line-height: 1;
  color: var(--text-dark);
  margin-top: 0.5rem;
}

@media (max-width: 600px) {
  .service-rotator {
    min-height: 3rem;
    font-size: 1.6rem;
  }
}

.service-item {
  display: inline-block;
}

/* ================================= 
   GRID LAYOUT - SCROLL HORIZONTAL UNIFORME
   ================================= */

/* Grid básico para home.php */
.grid {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding: 1rem 0 2rem 0;
  margin: 2rem 0;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 0; /* Alineado con contenido */
}

/* Grid para projects.php con títulos debajo - FULL WIDTH */
.showcase.grid {
  display: flex;
  list-style: none;
  gap: 2rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding: 0.75rem 0 0rem 0;
  margin: 0rem 10rem;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  
  /* Hacer que escape del padding del contenedor padre */
  width: 100vw;
  margin-left: calc(-5vw); /* Negativo del padding del .page */
  margin-right: calc(-5vw); /* Negativo del padding del .page */
  
  /* Alinear el primer proyecto con el contenido principal */
  padding-left: max(5vw, calc((100vw - 100rem) / 10 + 1vw)); /* Se ajusta automáticamente */
  padding-right: 5vw; /* Agregar padding interno para el último item */
  
  /* Scroll-snap alineado con el contenido principal */
  scroll-padding-left: max(5vw, calc((100vw - 100rem) / 10 + 1vw));
}

/* Contenedor de texto que empuja el divider hacia abajo */
.showcase-text-container {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding-top: 1rem;
  width: 100%; /* Asegurar que ocupe todo el ancho disponible */
  padding-left: 0; /* Sin padding lateral */
  padding-right: 0; /* Sin padding lateral */
}

/* Títulos debajo para showcase grid (projects.php) */
.showcase-title-below {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  margin-left: 0.25rem;
}

.showcase-title-below a {
  color: var(--text-dark);
  text-decoration: none;
}

.showcase-title-below a:hover {
  color: var(--text-light);
}

/* Subtítulos */
.project-subtitle-thumbnail {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-light);
  line-height: 1.4;
  margin-bottom: 1rem;
  margin-left: 0.25rem;
}

/* Ocultar scrollbar en todas las plataformas */
.grid,
.showcase.grid {
  -ms-overflow-style: none;  /* IE y Edge */
  scrollbar-width: none;     /* Firefox */
}

.grid::-webkit-scrollbar,
.showcase.grid::-webkit-scrollbar {
  display: none; /* Chrome, Safari y Edge */
}

/* Items del grid básico (home.php) - CORREGIDO */
.grid li {
  list-style: none;
  position: relative;
  overflow: hidden;
  background: var(--white);
  line-height: 0;
  flex: 0 0 350px;
  height: auto;
  scroll-snap-align: start; /* CORREGIDO: era 1rem */
  border-radius: 0.75rem;
}

/* Items del showcase grid (projects.php) - TAMAÑO BASE HASTA 1024px */
.showcase.grid li {
  list-style: none;
  position: relative;
  background: var(--white);
  flex: 0 0 320px; /* Tamaño base hasta 1024px */
  height: 450px; /* Altura base hasta 1024px */
  scroll-snap-align: start; /* CORREGIDO: era 1rem */
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease; /* Transición para todo el item */
  padding: 0; /* Sin padding que pueda afectar el ancho */
}

/* Efecto hover en el item completo - se mueve hacia arriba */
.showcase.grid li:hover {
  transform: translateY(-8px); /* Ajusta este valor según prefieras */
}

/* Links del showcase grid - ALTURA BASE */
.showcase.grid .showcase-link {
  display: block;
  width: 100%;
  height: 260px; /* Altura base hasta 1024px */
  position: relative;
  overflow: hidden;
  border-bottom: 0 !important;
  border-radius: 0.75rem;
  flex-shrink: 0; /* No se achica */
}

/* Imágenes - SIN efecto zoom */
.showcase.grid .showcase-image {
  object-fit: cover;
  width: 100%;
  height: 100%;
  transform: none !important; /* Fuerza que no haya transformación */
  transition: none !important; /* Elimina cualquier transición */
}

/* Eliminar TODOS los posibles efectos hover de imagen */
.showcase.grid .showcase-link:hover .showcase-image,
.showcase.grid li:hover .showcase-image,
.showcase.grid:hover .showcase-image {
  transform: none !important;
  scale: none !important;
}

/* ================================= 
   ESCALADO RESPONSIVO A PARTIR DE 1024x768px
   ================================= */

/* A partir de 1025px de ancho - empezar a escalar */
@media (min-width: 1025px) {
  .showcase.grid li {
    /* Escalado fluido a partir de 1024px */
    flex: 0 0 clamp(320px, 22vw, 320px); /* Mínimo 320px, máximo 420px */
    height: clamp(450px, 32vw, 580px);   /* Altura proporcional */
  }
  
  .showcase.grid .showcase-link {
    height: clamp(320px, 25vw, 320px);   /* Imagen escalada proporcionalmente */
  }
  
  /* Gap también puede escalar ligeramente */
  .showcase.grid {
    gap: clamp(2rem, 2.2vw, 2.8rem);
    scroll-padding-left: max(5vw, calc((100vw - 100rem) / 2 + 5vw));
  }
  
  /* Tipografía escalable solo en pantallas grandes */
  .showcase-title-below {
    font-size: clamp(1rem, 2vw, 1.5rem); /* Escalar texto también */
  }

  .project-subtitle-thumbnail {
    font-size: clamp(0.8rem, 1.5vw, 1.2rem);
  }
  
  .showcase-text-container {
    padding-top: clamp(0.875rem, 1.2vw, 1.5rem); /* Padding proporcional */
  }
}

/* Para pantallas muy grandes (1600px+) - mayor escalado */
@media (min-width: 1600px) {
  .showcase.grid li {
    flex: 0 0 clamp(480px, 25vw, 480px); /* Rango mayor para pantallas grandes */
    height: clamp(630px, 35vw, 520px);
  }
  
  .showcase.grid .showcase-link {
    height: clamp(480px, 28vw, 480px);
  }
  
  .showcase.grid {
    gap: clamp(2.5rem, 2.5vw, 3.2rem);
  }
}

/* Para pantallas ultra anchas (2000px+) - escalado controlado */
@media (min-width: 2000px) {
  .showcase.grid li {
    flex: 0 0 clamp(520px, 22vw, 520px); /* Controlar el crecimiento máximo */
    height: clamp(580px, 33vw, 720px);
    max-width: 520px; /* Límite absoluto */
  }
  
  .showcase.grid .showcase-link {
    height: clamp(540px, 25vw, 540px);
  }
}

/* ================================= 
   RANGO INTERMEDIO (769px - 1024px) - TAMAÑO FIJO
   ================================= */

@media (min-width: 769px) and (max-width: 1024px) {
  .showcase.grid li {
    flex: 0 0 320px;        /* Mantener tamaño base */
    height: 450px;          /* Sin escalado */
    scroll-snap-align: start;
  }
  
  .showcase.grid .showcase-link {
    height: 320px;          /* Altura fija */
  }
  
  .showcase.grid {
    gap: 2rem;              /* Gap fijo */
  }
}

/* ================================= 
   RESPONSIVE DESIGN
   ================================= */
@media (max-width: 768px) {
  /* Header y menú */
  .header-inner { padding: 0 5vw; }
  .menu a { margin: 0 0.5rem; font-size: 1rem; }
  .menu a:last-child { margin-right: 0; }
  .page { margin-top: 3rem; }

  /* Grid básico */
  .grid li { flex: 0 0 auto; }

  /* Showcase grid - thumbnails cuadrados y títulos visibles */
  .showcase.grid li {
    width: 260px;           /* ancho fijo */
    height: 410px;          /* altura fija para mobile */
    flex: 0 0 260px;        /* Asegurar que no escale en mobile */
    display: flex;
    flex-direction: column;
    scroll-snap-align: start; /* CORREGIDO: era 1rem */
    flex-shrink: 0;
    transition: transform 0.3s ease; /* Mantener transición en mobile */
    padding: 0; /* Sin padding en mobile tampoco */
  }

  /* Mantener el efecto hover en mobile también */
  .showcase.grid li:hover {
    transform: translateY(-6px); /* Menos movimiento en mobile */
  }

  .showcase.grid .showcase-link {
    width: 100%;
    aspect-ratio: 1 / 1;    /* cuadrado perfecto */
    overflow: hidden;
    border-radius: 0.75rem;
    flex-shrink: 0;         /* no se achica */
  }

  .showcase.grid .showcase-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: none !important; /* Sin zoom en mobile tampoco */
    transition: none !important;
  }

  /* Contenedor de texto en mobile */
  .showcase-text-container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding-top: 0.75rem;
    padding-left: 0; /* Sin padding lateral */
    padding-right: 0; /* Sin padding lateral */
    padding-bottom: 0.75rem;
  }

  /* Título y subtítulo siempre visibles */
  .showcase-title-below,
  .project-subtitle-thumbnail {
    display: block;
    line-height: 1.2;
  }

  .showcase-title-below {
    margin-bottom: 0.5rem;
  }

  .project-subtitle-thumbnail {
    margin-bottom: 0.5rem;
  }
  
  /* Scroll-padding para mobile */
  .showcase.grid {
    scroll-padding-left: 5vw; /* Alinear con el padding del contenedor padre */
    padding-left: 5vw; /* Mismo padding que el contenedor padre */
  }

  /* Intro responsive */
  .intro-text { margin: 3rem 0; }
  .intro-text h1 { font-size: 1.5rem; max-width: 60rem; }
  .intro-text p,
  .contact-intro { font-size: 1.5rem; max-width: 40rem; }

  /* Footer responsive */
  .footer-container { grid-template-columns: 1fr; gap: 2rem; text-align: left; }
  .footer-center, .footer-right { text-align: left; }
  .footer-right { margin-top: 1rem; }
  .footer-space-bottom { height: 0rem; }
  .footer { padding-bottom: 0; }
  .footer-left-copyright { margin-bottom: 1rem; }
}

@media (max-width: 55px) {
  .header-inner {
    padding: 1rem 5vw;
  }
  
  .menu {
    gap: 0;
  }
  
  .menu a {
    margin: 0 0.5rem;
  }
  
  .menu a:last-child {
    margin-right: 0;
  }
}

/* ================================= 
   TEXTO DE CONCLUSIÓN DESPUÉS DEL SHOWCASE
   ================================= */

.conclusion-text {
  margin: 1rem 0 2rem 0; /* Espacio arriba y abajo */
  max-width: 50rem; /* Mismo ancho máximo que intro-text */
  text-align: left; /* Alineado a la izquierda */
}

.conclusion-text p {
  font-size: calc(0.5vw + 1.1rem); /* Ligeramente más pequeño que intro */
  font-weight: 500; /* Peso normal, no bold como el intro */
  line-height: 1.4; /* Espaciado cómodo para lectura */
  color: var(--text-light); /* Color gris como el intro */
  margin: 2rem 0 4rem 0; /* Espacio debajo del párrafo */
  max-width: 35rem; /* Controlar el ancho de línea para legibilidad */
}

/* Enlaces de conclusión en dos líneas */
.conclusion-links {
  display: flex;
  flex-direction: column; /* Una línea debajo de otra */
  gap: 0.25rem; /* Espacio pequeño entre líneas */
  margin-top: 4rem;
}

.conclusion-links a {
  font-size: calc(0.5vw + 1.1rem); /* Mismo tamaño que los enlaces del footer/menú */
  font-weight: 500; /* Mismo peso que otros enlaces del sitio */
  color: var(--text-dark); /* Color negro como otros enlaces */
  text-decoration: none; /* Sin subrayado por defecto */
  line-height: 1.2;
}

.conclusion-links a:hover {
  color: var(--text-light); /* Cambiar a gris en hover */
  border-color: var(--gray-400); /* Cambiar color de la línea en hover */
}

/* Responsive para mobile */
@media (max-width: 768px) {
  .conclusion-text {
    margin: 1rem 0 1.5rem 0; /* Menos espacio en mobile */
  }

  .conclusion-text p {
    font-size: 1.1rem; /* Tamaño fijo en mobile */
    max-width: 100%; /* Ocupar todo el ancho en mobile */
    margin-bottom: 4rem; /* Menos espacio en mobile */
  }

  .conclusion-links a {
    font-size: 1.1rem; /* Mantener el tamaño en mobile */
  }
}

/* Si quieres que sea más parecido al intro, usa esto en su lugar: */
/*
.conclusion-text p {
  font-size: calc(1vw + 1.3rem); // Mismo tamaño que intro
  font-weight: 500; // Mismo peso que intro
  line-height: 1.3; // Mismo line-height que intro
  color: var(--text-light);
}
*/

/* ================================= 
   FOOTER DE 3 COLUMNAS RESPONSIVE
   ================================= */
.footer {
  position: relative;
  width: 100%;
  background-color: var(--white);
  font-family: 'PP Neue Montreal', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji";
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-dark);
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 1rem 5vw 2rem 5vw;
  text-align: left;
}

/* DESKTOP Y TABLETS: 3 columnas a partir de 769px */
@media (min-width: 769px) {
  .footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* 3 columnas iguales */
    gap: 2rem;
    align-items: flex-start;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  /* Alinear cada columna */
  .footer-left {
    justify-self: start; /* Alinear a la izquierda */
  }

  .footer-center {
    justify-self: center; /* Centrar */
    text-align: left;
  }

  .footer-right {
    justify-self: end; /* Alinear a la derecha */
    text-align: right;
  }
}

/* MÓVIL: Una sola columna hasta 768px */
@media (max-width: 768px) {
  .footer-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;
    text-align: left; /* Todo alineado a la izquierda en móvil */
  }

  /* Orden en móvil: contacto primero, después enlaces, después copyright */
  .footer-center {
    order: 1;
  }

  .footer-left {
    order: 2;
  }

  .footer-right {
    order: 3;
    margin-top: 0.5rem; /* Un poco más de espacio arriba del copyright */
  }

  /* EN MÓVIL: Copyright en una sola línea */
  .footer-right {
    flex-direction: row; /* Cambiar a horizontal */
    gap: 0.5rem; /* Espacio entre © 2025 y — HF */
  }

  .footer-right p:first-child {
    margin-bottom: 0; /* Quitar el margin-bottom en móvil */
  }
}

/* Estilos comunes para todos los tamaños */
.footer-left a,
.footer-center a {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
}

.footer-left a:hover,
.footer-center a:hover {
  color: var(--text-light);
}

.footer-center p,
.footer-right p {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.2; /* Controlar el espaciado entre las dos líneas */
}

/* Espaciado específico para las dos líneas del copyright */
.footer-right p:first-child {
  margin-bottom: 0.1rem; /* Pequeño espacio entre © 2025 y — HF */
}

/* Dividers del footer */
.footer-divider-top{
  height: 0px;
  background-color: var(--border-dark);
  width: 100%;
  margin: 0;
  visibility: visible;
}

/* ================================= 
   ESTILOS ESPECÍFICOS POR PÁGINA
   Agregar ESTE CÓDIGO al final de global.css
   ================================= */

/* PÁGINA HOME - Estilos específicos */
.page-home .intro-text h1 {
  font-size: calc(1vw + 1.3rem);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 0.25rem;
  color: var(--text-dark);
  max-width: 30em;
}

.page-home .intro-text p {
  font-size: calc(1vw + 1.3rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-light);
  max-width: 35rem;
}

.page-home .conclusion-text p {
  font-size: calc(0.5vw + 1.1rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-light);
  margin: 2rem 0 4rem 0;
  max-width: 35rem;
}

.page-home .conclusion-links a {
  font-size: calc(0.5vw + 1.1rem);
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
  line-height: 1.2;
}

/* PÁGINAS DE PROYECTO - Estilos específicos */

/* Title - Título principal del proyecto */
.page-project .intro-text h1 {
  font-size: calc(1vw + 1.3rem);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 0.25rem;
  color: var(--text-dark);
  max-width: 30em;
}

/* Tags - Servicios/categorías del proyecto */
.page-project .project-tags {
  font-size: calc(0.4vw + 1rem); /* Ligeramente más pequeño que el título */
  font-weight: 400; /* Peso normal, no bold */
  line-height: 1.3;
  color: var(--text-light); /* Color gris */
  max-width: 20rem;
  margin-bottom: 3rem; /* Espacio antes del divider */
}

/* Development - Contenido principal del proyecto */
.page-project .project-development {
  font-size: calc(0.5vw + 1.1rem);
  font-weight: 400; /* Peso normal para lectura cómoda */
  line-height: 1.5; /* Interlineado normal, no tan abierto */
  color: var(--text-dark);
  margin: 0rem 0 3rem 0;
  max-width: 50rem; /* Ancho cómodo para lectura */
}

/* Párrafos dentro del development */
.page-project .project-development p {
  margin-bottom: 1.2rem; /* Espaciado normal entre párrafos */
}

/* Links dentro del development - uniformes con home */
.page-project .project-development a {
  color: var(--text-dark);
  text-decoration: none;
  border-bottom: 2px solid var(--border-dark);
  transition: all 0.2s ease;
}

.page-project .project-development a:hover {
  color: var(--text-light);
  border-color: var(--gray-400);
}

/* Imágenes del proyecto - tamaño controlable */
.page-project figure {
  margin: 1rem 0;
  max-width: 100%;
  overflow: hidden;
}

.page-project figure img {
  width: 100%;
  max-width: 80vw; /* Controla el tamaño máximo - ajusta este valor */
  height: auto;
  object-fit: cover;
  border-radius: 1.5rem;
  margin: 0 0;
  margin-top: 1rem;
  display: block;
}

/* Links de conclusión - SIN dividers, igual que home */
.page-project .conclusion-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 1.5rem;
  margin-bottom: 3.5rem;
}

.page-project .conclusion-links a {
  font-size: calc(0.5vw + 1.1rem);
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
  line-height: 1.2;
  border: none !important; /* Asegurar que no hay borders */
}

.page-project .conclusion-links a:hover {
  color: var(--text-light);
  border: none !important; /* Asegurar que no hay borders en hover */
}

/* RESPONSIVE PARA PÁGINAS DE PROYECTO */
@media (max-width: 768px) {
  .page-project .intro-text h1 {
    font-size: 1.5rem;
    max-width: 60rem;
  }
  
  .page-project .project-tags {
    font-size: 1rem;
    max-width: 50%;
    margin-bottom: 3rem;
  }
  
  .page-project .project-development {
    font-size: 1.1rem;
    max-width: 100%;
    line-height: 1.4;
  }
  
  .page-project .project-development p {
    margin-bottom: 1rem;
  }
  
  .page-project figure img {
    max-width: 95vw; /* Más ancho en mobile */
  }
  
  .page-project .conclusion-links a {
    font-size: 1.1rem;
  }
}

/* =========================
   INTRO TEXT POR PÁGINA
   ========================= */

/* Estilo base (si lo necesitas en otros lados) */
.intro-text {
  max-width: 50rem;
  margin-top: 3rem;
}

/* Home */
.page-home .intro-text {
  margin: 3rem 0; /* mismo margen arriba y abajo */
}

/* Projects */
.page-project .intro-text {
  margin-top: 3rem;   /* margen superior independiente */
  margin-bottom: 1rem; /* margen inferior independiente */
}

/* =========================
   LINKS - Global
   ========================= */
a {
  color: var(--text-dark);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

a:hover,
a:active {
  color: var(--text-light);
}

/* =========================
   LINKS - Home (.intro-text)
   ========================= */
.intro-text a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

.intro-text a:hover,
.intro-text a:active {
  color: var(--text-light);
}

/* =========================
   LINKS - Projects (.conclusion-links)
   ========================= */
.conclusion-links a {
  color: var(--text-dark);
  font-size: calc(0.5vw + 1.1rem);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.conclusion-links a:hover,
.conclusion-links a:active {
  color: var(--text-light);
  text-decoration: none;
}

/* Copiamos los mismos estilos para next-project-link */
.next-project-link {
  display: flex;
  gap: 1rem;
  justify-content: center;
  padding: 1rem 0;
  font-weight: bold;
  color: #007acc;
  text-decoration: none;
}

.next-project-link a {
  color: inherit;
  text-decoration: none;
}

.next-project-link a:hover {
  text-decoration: none;
}

/* =========================
   PÁGINA ABOUT - Estilos específicos
   ========================= */

/* Hacer que el título principal tenga el mismo estilo que home intro */
.page-about .intro-text h1 {
  font-size: calc(1vw + 1.3rem);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 0.25rem;
  color: var(--text-dark);
  max-width: 30em;
}

/* Párrafo principal - mismo estilo que intro de home */
.page-about .intro-text p {
  font-size: calc(1vw + 1.3rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-light); /* Color gris como en home */
  max-width: 35rem;
}

/* Links de conclusión - mismo estilo que home */
.page-about .conclusion-text p {
  font-size: calc(0.5vw + 1.1rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-light); /* Color gris */
  margin: 2rem 0 4rem 0;
  max-width: 35rem;
}

.page-about .conclusion-links a {
  font-size: calc(0.5vw + 1.1rem);
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
  line-height: 1.2;
}

.page-about .conclusion-links a:hover {
  color: var(--text-light);
}

/* Márgenes - mismo que home */
.page-about .intro-text {
  margin: 3rem 0; /* mismo margen arriba y abajo que home */
}

/* RESPONSIVE PARA ABOUT */
@media (max-width: 768px) {
  .page-about .intro-text h1 {
    font-size: 1.5rem;
    max-width: 60rem;
  }
  
  .page-about .intro-text p {
    font-size: 1.5rem;
    max-width: 40rem;
  }
  
  .page-about .conclusion-text p {
    font-size: 1.1rem;
    max-width: 100%;
    margin-bottom: 4rem;
  }
  
  .page-about .conclusion-links a {
    font-size: 1.1rem;
  }
}