body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  color: #222;
  background-color: #fafafa;
}

header {
  background: white;
  border-bottom: 1px solid #e2e2e2;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo a {
  text-decoration: none;
  color: #222;
  font-weight: 700;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: #444;
  font-weight: 500;
  transition: 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #8B0000; 
}

footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.9rem;
  color: #777;
  background: #f4f4f4;
  border-top: 1px solid #ddd;
}

footer a {
  color: #8B0000;
  text-decoration: none;
}

footer a:hover {
  color: #A32121;
}

.hero {
  height: 80vh;
  background: url('img/home/fondo.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  padding: 0 1rem;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.btn {
  background: #8B0000; 
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  margin-top: 1rem;
  transition: 0.3s;
}

.btn:hover {
  background: #A32121; 
}

.sobre-mi {
  max-width: 1000px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.sobre-mi h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.sobre-mi-contenido {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.perfil {
  width: 280px;
  border-radius: 50%;
}

.texto {
  flex: 1;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* === PÁGINA DE CONTACTO === */
.contacto {
  max-width: 800px;
  margin: 5rem auto;
  padding: 0 2rem;
  text-align: center;
}

.contacto h2 {
  font-size: 2rem;
  color: #8B0000;
  margin-bottom: 1.5rem;
}

.contacto-contenido p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
}

.info-contacto {
  margin-top: 2rem;
  background: #f4f4f4; 
  border: 2px solid #8B0000; 
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-contacto:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.info-contacto p {
  margin: 0.8rem 0;
}

.info-contacto a {
  color: #8B0000;
  text-decoration: none;
  font-weight: 600;
}

.info-contacto a:hover {
  color: #A32121;
  text-decoration: underline;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.titulo-seccion {
  font-size: 2rem;
  margin: 2.5rem 0 1.5rem;
  display: inline-block;
  padding-bottom: .4rem;
}

/* GRID DE PROYECTOS */
.grid-proyectos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 2rem;
  margin-bottom: 4rem;
}

.card-proyecto {
  display: block;
  text-decoration: none;
  border: 1.5px solid #e9e9e9;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.card-proyecto:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(0,0,0,.12);
  border-color: #8B0000;
}


.card-proyecto img {
  width: 100%;
  height: auto;              /* 🔑 deja que la imagen defina su alto */
  object-fit: contain;       /* 🔑 no recorta nunca */
  display: block;
  background-color: #f5f5f5; /* opcional, da aire a horizontales */
}


.card-proyecto h3 {
  font-size: 1.05rem;
  line-height: 1.35;
  color: #222;
  padding: 0.9rem 1rem 1.2rem;
  border-top: 1px solid #f0f0f0;
}

@media (max-width: 980px) {
  .grid-proyectos { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .grid-proyectos { grid-template-columns: 1fr; }
}


/* === PÁGINAS DE PROYECTO === */
.proyecto {
  margin-top: 3rem;
  margin-bottom: 5rem;
}

.proyecto h2 {
  font-size: 1.8rem;
  color: #8B0000;
  margin-bottom: 1rem;
}

.bajada {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 850px;
  margin-bottom: 1.5rem;
}

.link-wiki {
  margin-bottom: 2rem;
}

.link-wiki a {
  color: #8B0000;
  font-weight: 600;
  text-decoration: none;
}

.link-wiki a:hover {
  color: #A32121;
  text-decoration: underline;
}

.galeria-proyecto {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.galeria-proyecto img {
  width: 30%;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transition: transform .2s ease, box-shadow .2s ease;
}

.galeria-proyecto img:hover {
  transform: scale(1.02);
  box-shadow: 0 5px 18px rgba(0,0,0,0.15);
}

@media (max-width: 780px) {
  .galeria-proyecto img {
    width: 45%;
  }
}

@media (max-width: 500px) {
  .galeria-proyecto img {
    width: 100%;
  }
}

/* ====== HEADER RESPONSIVE ====== */
@media (max-width: 600px) {
  .navbar {
    padding: 0.6rem 1rem;              
  }
  .logo a {
    font-size: 1.05rem;                
  }
  .nav-links {
    gap: 1rem;                         
  }
  .nav-links a {
    font-size: 0.95rem;                
  }
}

@media (max-width: 500px) {
  header {
    border-bottom-width: 1px;          
  }
  .navbar {
    padding: 0.45rem 0.8rem;           
  }
  .logo a {
    font-size: 0.98rem;
    font-weight: 700;
  }
  .nav-links {
    gap: 0.7rem;
  }
  .nav-links a {
    font-size: 0.88rem;
  }
}

@media (max-width: 410px) {
  .navbar {
    row-gap: 0.4rem;
    padding: 0.4rem 0.7rem;
    flex-wrap: wrap;                   
  }
  .logo { 
    flex: 1 1 100%;                    
  }
  .nav-links {
    width: 100%;
    justify-content: space-between;    
  }
  .nav-links a {
    font-size: 0.86rem;
    padding: 0.2rem 0;                 
  }
}

/* ====== CONTACTO RESPONSIVE ====== */
@media (max-width: 600px) {
  .contacto {
    padding: 0 1.2rem;               
    margin: 3rem auto;               
  }

  .contacto h2 {
    font-size: 1.6rem;               
    margin-bottom: 1rem;
  }

  .contacto-contenido p {
    font-size: 1rem;                 
  }

  .info-contacto {
    padding: 1.5rem 1rem;            
    border-width: 1.5px;             
    box-shadow: 0 3px 10px rgba(0,0,0,0.07);
  }

  .info-contacto p {
    margin: 0.6rem 0;
  }

  .info-contacto a {
    font-size: 0.95rem;             
    word-break: break-word;         
  }
}

@media (max-width: 420px) {
  .info-contacto {
    padding: 1.2rem 0.8rem;
  }

  .contacto h2 {
    font-size: 1.4rem;
  }

  .contacto-contenido p {
    font-size: 0.95rem;
  }
}
/* ================================
   AJUSTES MOBILE-FIRST Y ACCESIBILIDAD
   ================================ */

/* Tipografía base accesible */
body {
  font-size: 16px;
  line-height: 1.6;
}

/* HERO optimizado para celular */
.hero {
  height: 70vh;
}

.hero h2 {
  font-size: 2rem;
}

/* Texto hero más legible */
.hero-content p {
  font-size: 1rem;
}

/* Botones cómodos para tocar con el dedo */
.btn {
  padding: 1rem 1.8rem;
  font-size: 1rem;
}

/* Secciones con mejor respiración en mobile */
section {
  scroll-margin-top: 80px;
}

/* Títulos de sección claros */
.titulo-seccion {
  font-size: 1.6rem;
}

/* Grid de productos / proyectos por defecto en una columna */
.grid-proyectos {
  grid-template-columns: 1fr;
}

/* Imágenes responsivas */
img {
  max-width: 100%;
  height: auto;
}

/* ================================
   ESCALADO A PANTALLAS GRANDES
   ================================ */

@media (min-width: 900px) {
  .hero {
    height: 80vh;
  }

  .hero h2 {
    font-size: 2.6rem;
  }

  .titulo-seccion {
    font-size: 2rem;
  }

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

/* =========================
   PÁGINA PRODUCTOS
========================= */


/* Intro */
.intro-productos {
  margin: 3rem 0 2rem;
}

.intro-productos p {
  max-width: 700px;
  line-height: 1.6;
  color: #444;
}

/* Categorías */
.categoria-producto {
  margin-bottom: 4rem;
}

.subtitulo {
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
  color: #8B0000;
}

.bajada-categoria {
  max-width: 700px;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Producto destacado */
.producto-destacado {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.producto-info h4 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.producto-info p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Ficha técnica – bloque */
.ficha-tecnica {
  list-style: none;
  padding: 1.3rem 1.4rem;
  margin: 1.5rem 0;
  background: #f4f4f4;
  border: 2px solid #8B0000;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.ficha-tecnica li {
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

.ficha-tecnica li:last-child {
  margin-bottom: 0;
}

.precio {
  font-weight: 600;
  margin-top: 1rem;
}

.pedido {
  font-size: 0.9rem;
  color: #666;
}

/* Responsive producto destacado */
@media (min-width: 900px) {
  .producto-destacado {
    flex-direction: row;
    align-items: center;
  }

  .producto-destacado img {
    width: 45%;
  }

  .producto-info {
    width: 55%;
  }
}

/* =========================
   GALERÍA FUNDA CUERO A5
========================= */

.galeria-funda {
  position: relative;
  overflow-x: hidden;
}

.galeria-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
}

.galeria-track img {
  flex: 0 0 85%;
  max-width: 85%;
  height: auto;
  object-fit: cover;
  scroll-snap-align: start;
  border-radius: 4px;
  background-color: #f5f5f5;
}

/* Flecha indicadora */
.galeria-flecha {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

/* Desktop */
@media (min-width: 900px) {
  .galeria-track img {
    flex: 0 0 60%;
    max-width: 60%;
  }
}

/* =========================
   PRODUCTOS
========================= */

.productos {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* Producto */

.producto {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* Imagen */

.producto-imagen img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* =========================
   GALERÍA GRABADOS
========================= */

.producto-imagenes {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 100%;
}

.producto-imagenes img {
  width: 100%;
  height: auto;
  display: block;
  background-color: #f5f5f5;
}

/* Desktop */
@media (min-width: 900px) {
  .producto-imagenes {
    flex-direction: row;
    gap: 2rem;
    max-width: 720px; /* 🔑 controla el tamaño total */
  }

  .producto-imagenes .img-vertical {
    height: 420px;
    width: auto;
    flex: 0 0 auto;
  }

  .producto-imagenes .img-horizontal {
    height: 420px;
    flex: 1;
    object-fit: cover;
  }
}

/* Pantallas grandes */
@media (min-width: 1200px) {
  .producto-imagenes {
    max-width: 820px;
  }

  .producto-imagenes .img-vertical,
  .producto-imagenes .img-horizontal {
    height: 460px;
  }
}

/* =========================
   PESCADO – DOBLE HORIZONTAL
   Mobile first
========================= */

.producto-imagenes-pescado {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.producto-imagenes-pescado img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  min-width: 0;
}

/* Desktop */
@media (min-width: 900px) {
  .producto-imagenes-pescado {
    flex-direction: row;
  }

  .producto-imagenes-pescado img {
    flex: 1 1 0;
  }
}

/* Info */

.producto-info {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* Tag */

.producto-tag {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #666;
  border: 1px solid #ccc;
  padding: 0.3rem 0.6rem;
  width: fit-content;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}


/* Título */

.producto-info h3 {
  font-size: 1.8rem;
  margin: 0.5rem 0;
  padding-top: 0.5rem;
}


/* Descripción */

.producto-descripcion {
  font-size: 1rem;
  line-height: 1.7;
  color: #222;
}

/* Ficha técnica */

.producto-ficha {
  margin-top: 1.5rem;
}

.producto-ficha h4 {
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.producto-ficha ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.producto-ficha li {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

/* Precio */

.producto-precio {
  font-size: 1.1rem;
  margin-top: 1rem;
}

/* Observación */

.producto-observacion {
  font-size: 0.85rem;
  color: #555;
  max-width: 500px;
}

/* Botón */

.producto-boton {
  margin-top: 2rem;
  text-decoration: none;
  color: #000;
  border: 1px solid #000;
  padding: 0.8rem 1.6rem;
  width: fit-content;
  transition: all 0.3s ease;
}

.producto-boton:hover {
  background-color: #000;
  color: #fff;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {
  .producto {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* =========================
   OTROS GRABADOS – SCROLL
========================= */
.otros-grabados {
  margin: 5rem 0;
}

.otros-grabados h4 {
  font-size: 1rem;
  margin-bottom: 1.2rem;
  color: #222;
}

.scroll-wrapper {
  position: relative;
}

.scroll-grabados {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;

  scroll-snap-type: x mandatory;
}

.scroll-grabados::-webkit-scrollbar {
  height: 6px;
}

.scroll-grabados::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 4px;
}

.card-mini {
  flex: 0 0 auto;
  width: 160px;
  text-decoration: none;
  color: #222;

  scroll-snap-align: start;
}

.card-mini img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.card-mini span {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.85rem;
}

@media (min-width: 600px) {
  .card-mini {
    width: 200px;
  }
}

@media (min-width: 900px) {
  .card-mini {
    width: 240px;
  }
}

.scroll-flecha {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: #999;
  pointer-events: none;
}


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

.contacto-editorial {
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* Intro */

.intro-contacto {
  max-width: 600px;
  margin-bottom: 4rem;
}

.intro-contacto h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.intro-contacto p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

/* Contenido */

.contenido-contacto {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* Texto editorial */

.texto-contacto p {
  font-size: 1rem;
  line-height: 1.7;
  color: #222;
  margin-bottom: 1.2rem;
  max-width: 420px;
}

.texto-contacto a {
  color: #000;
  text-decoration: none;
  border-bottom: 1px solid #000;
}

.texto-contacto a:hover {
  opacity: 0.7;
}

/* Formulario */

.formulario-contacto {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.formulario-contacto label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.formulario-contacto input,
.formulario-contacto textarea {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  padding: 0.6rem 0;
  border: none;
  border-bottom: 1px solid #999;
  background: transparent;
}

.formulario-contacto input:focus,
.formulario-contacto textarea:focus {
  outline: none;
  border-bottom: 1px solid #000;
}

/* Botón */

.formulario-contacto .btn {
  margin-top: 1.5rem;
  width: fit-content;
  padding: 0.8rem 1.6rem;
  background: none;
  border: 1px solid #000;
  cursor: pointer;
  font-size: 0.9rem;
  color: #000; /* ← esto */
  transition: all 0.3s ease;
}

.formulario-contacto .btn:hover {
  background-color: #000;
  color: #fff;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {
  .contenido-contacto {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}
