/*
Theme Name: JD Portfolio Editorial
Theme URI: https://jdiasolutions.com
Author: JD Moreno
Author URI: https://jdiasolutions.com
Description: Tema editorial personalizado para portafolio de fotografía fashion y venta de imágenes con WooCommerce.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: jd-portfolio
*/

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,500;0,9..144,600;1,9..144,400&family=Inter:wght@400;500;600&family=Space+Mono:wght@400;700&display=swap');

:root {
  --ink: #16140f;
  --paper: #eeeae0;
  --paper-2: #e4dfd2;
  --stone: #847f73;
  --oxblood: #5c1a1b;
  --oxblood-light: #8a3638;
  --white: #ffffff;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ── TIPOGRAFÍA ── */
.font-display { font-family: 'Fraunces', serif; }
.font-mono    { font-family: 'Space Mono', monospace; }

/* ── LAYOUT ── */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 48px; }

/* ── NAVEGACIÓN ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(238,234,224,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(22,20,15,0.1);
}
.nav-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 48px;
}
.site-logo {
  font-family: 'Space Mono', monospace; font-weight: 700;
  font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase;
}
.nav-menu { display: flex; gap: 36px; list-style: none; }
.nav-menu a {
  font-size: 13px; letter-spacing: 0.04em;
  position: relative; padding-bottom: 2px;
}
.nav-menu a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--ink);
  transition: width .3s ease;
}
.nav-menu a:hover::after { width: 100%; }
.nav-tag {
  font-family: 'Space Mono', monospace; font-size: 11px;
  letter-spacing: 0.08em; color: var(--stone);
}

/* ── HERO ── */
.hero { padding-top: 90px; }
.hero-inner {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  align-items: end; gap: 0;
}
.hero-text { padding: 60px 48px 60px; }
.eyebrow {
  font-family: 'Space Mono', monospace; font-size: 12px;
  letter-spacing: 0.15em; color: var(--oxblood);
  margin-bottom: 24px; display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--oxblood); }
h1.display-hero {
  font-family: 'Fraunces', serif; font-weight: 500;
  font-size: clamp(52px, 7vw, 108px); line-height: 0.95;
  letter-spacing: -0.01em; margin-bottom: 28px;
}
h1.display-hero em { font-style: italic; font-weight: 400; color: var(--oxblood); }
.hero-sub {
  font-size: 16px; color: #3d3a33; max-width: 420px;
  line-height: 1.65; margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

.btn {
  font-size: 13px; letter-spacing: 0.04em; padding: 14px 28px;
  border: 1px solid var(--ink); display: inline-block;
  transition: all .25s ease; cursor: pointer;
  font-family: 'Inter', sans-serif;
}
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--oxblood); border-color: var(--oxblood); color: var(--paper); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-light:hover { background: var(--oxblood); border-color: var(--oxblood); color: var(--paper); }

.hero-image {
  position: relative; aspect-ratio: 3/4;
  background: linear-gradient(160deg, #2b2822 0%, #16140f 55%, #3a2020 100%);
  overflow: hidden;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-image-label {
  position: absolute; bottom: 20px; left: 20px;
  font-family: 'Space Mono', monospace; font-size: 11px;
  letter-spacing: 0.08em; color: rgba(238,234,224,0.6);
  border: 1px solid rgba(238,234,224,0.3); padding: 6px 12px;
}

/* ── MARQUEE ── */
.marquee-strip {
  border-top: 1px solid rgba(22,20,15,0.15);
  border-bottom: 1px solid rgba(22,20,15,0.15);
  padding: 14px 0; overflow: hidden; white-space: nowrap;
}
.marquee-track {
  display: inline-flex; gap: 48px;
  animation: marquee-scroll 28s linear infinite;
}
.marquee-track span {
  font-family: 'Space Mono', monospace; font-size: 13px;
  letter-spacing: 0.06em; color: var(--stone);
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── ABOUT ── */
.section-about {
  padding: 100px 48px;
  display: grid; grid-template-columns: 180px 1fr; gap: 60px;
  align-items: start;
}
.section-label {
  font-family: 'Space Mono', monospace; font-size: 12px;
  letter-spacing: 0.1em; color: var(--stone); padding-top: 6px;
}
.about-text {
  font-family: 'Fraunces', serif;
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 400; line-height: 1.35;
}
.about-text em { font-style: italic; color: var(--oxblood); }

/* ── PORTAFOLIO ── */
.section-portfolio { padding: 0 48px 100px; }
.section-head {
  display: flex; justify-content: space-between;
  align-items: baseline; margin-bottom: 40px;
}
.section-head h2 {
  font-family: 'Fraunces', serif; font-size: 34px; font-weight: 500;
}
.section-head .ver-todo {
  font-size: 13px; border-bottom: 1px solid var(--ink); padding-bottom: 2px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 110px;
  gap: 16px;
}
.portfolio-tile {
  position: relative; overflow: hidden; cursor: pointer;
  background: var(--paper-2);
}
.portfolio-tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.portfolio-tile:hover img { transform: scale(1.04); }
.tile-overlay {
  position: absolute; inset: 0;
  background: rgba(22,20,15,0); transition: background .3s ease;
  display: flex; flex-direction: column;
  justify-content: space-between; padding: 14px;
}
.portfolio-tile:hover .tile-overlay { background: rgba(22,20,15,0.35); }
.tile-cat {
  font-family: 'Space Mono', monospace; font-size: 10px;
  letter-spacing: 0.1em; color: var(--paper);
  background: rgba(22,20,15,0.75); padding: 4px 8px;
  align-self: flex-start; opacity: 0; transition: opacity .3s ease;
}
.portfolio-tile:hover .tile-cat { opacity: 1; }
.tile-name {
  font-family: 'Space Mono', monospace; font-size: 11px;
  letter-spacing: 0.06em; color: rgba(238,234,224,0.9);
  opacity: 0; transition: opacity .3s ease;
}
.portfolio-tile:hover .tile-name { opacity: 1; }

.t1 { grid-column: 1/4; grid-row: 1/6; }
.t2 { grid-column: 4/7; grid-row: 1/4; }
.t3 { grid-column: 4/6; grid-row: 4/6; }
.t4 { grid-column: 6/7; grid-row: 4/6; }
.t5 { grid-column: 1/3; grid-row: 6/9; }
.t6 { grid-column: 3/5; grid-row: 6/9; }
.t7 { grid-column: 5/7; grid-row: 6/9; }

/* ── SERVICIOS ── */
.section-services {
  background: var(--ink); color: var(--paper);
  padding: 100px 48px;
}
.section-services .section-head h2 { color: var(--paper); }
.section-services .ver-todo { border-color: var(--paper); }
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: rgba(238,234,224,0.12);
}
.service-card { background: var(--ink); padding: 44px 36px; }
.service-num {
  font-family: 'Space Mono', monospace; font-size: 12px;
  color: var(--oxblood-light); margin-bottom: 20px; display: block;
}
.service-card h3 {
  font-family: 'Fraunces', serif; font-weight: 500;
  font-size: 26px; margin-bottom: 14px; color: var(--paper);
}
.service-card p {
  font-size: 14px; color: rgba(238,234,224,0.6);
  line-height: 1.65; margin-bottom: 28px;
}
.service-price {
  font-family: 'Space Mono', monospace; font-size: 13px;
  color: var(--paper); display: block; margin-bottom: 20px;
}
.service-card .btn-light { font-size: 12px; padding: 10px 20px; }

/* ── TIENDA TEASER ── */
.section-shop { padding: 100px 48px; }
.shop-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.shop-copy .eyebrow { margin-bottom: 20px; }
.shop-copy h2 {
  font-family: 'Fraunces', serif; font-size: 38px;
  font-weight: 500; margin-bottom: 20px; line-height: 1.15;
}
.shop-copy h2 em { font-style: italic; color: var(--oxblood); }
.shop-copy p {
  font-size: 15px; color: #3d3a33; line-height: 1.7;
  margin-bottom: 28px; max-width: 440px;
}
.shop-preview {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.shop-thumb {
  aspect-ratio: 1; background: var(--paper-2);
  position: relative; overflow: hidden; cursor: pointer;
}
.shop-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.shop-thumb:hover img { transform: scale(1.05); }
.shop-thumb-price {
  position: absolute; bottom: 8px; left: 8px;
  font-family: 'Space Mono', monospace; font-size: 10px;
  color: var(--paper); background: rgba(22,20,15,0.8);
  padding: 3px 7px;
}

/* ── FOOTER ── */
.site-footer {
  padding: 100px 48px 60px;
  border-top: 1px solid rgba(22,20,15,0.15);
}
.footer-cta {
  font-family: 'Fraunces', serif;
  font-size: clamp(30px, 5vw, 62px);
  font-weight: 500; margin-bottom: 50px;
  max-width: 840px; line-height: 1.05;
}
.footer-cta em { font-style: italic; color: var(--oxblood); }
.footer-bottom {
  display: flex; justify-content: space-between;
  align-items: flex-end; flex-wrap: wrap; gap: 24px;
}
.footer-links { display: flex; gap: 32px; }
.footer-links a { font-size: 13px; }
.footer-meta {
  font-family: 'Space Mono', monospace; font-size: 11px;
  color: var(--stone); letter-spacing: 0.04em;
}

/* ── PÁGINA PORTAFOLIO COMPLETO ── */
.page-hero {
  padding: 140px 48px 60px;
  border-bottom: 1px solid rgba(22,20,15,0.15);
}
.page-hero h1 {
  font-family: 'Fraunces', serif; font-weight: 500;
  font-size: clamp(40px, 6vw, 80px); line-height: 1;
}
.page-hero h1 em { font-style: italic; color: var(--oxblood); }

.portfolio-filters {
  display: flex; gap: 0; padding: 32px 48px;
  border-bottom: 1px solid rgba(22,20,15,0.15);
  flex-wrap: wrap;
}
.filter-btn {
  font-family: 'Space Mono', monospace; font-size: 12px;
  letter-spacing: 0.08em; padding: 10px 20px;
  border: none; background: transparent; cursor: pointer;
  color: var(--stone); border-bottom: 2px solid transparent;
  transition: all .2s ease;
}
.filter-btn.active, .filter-btn:hover {
  color: var(--ink); border-bottom-color: var(--oxblood);
}

.portfolio-full-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; padding: 48px;
}
.portfolio-item { position: relative; overflow: hidden; cursor: pointer; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-item-overlay {
  position: absolute; inset: 0;
  background: rgba(22,20,15,0); transition: background .3s ease;
  display: flex; align-items: flex-end; padding: 20px;
}
.portfolio-item:hover .portfolio-item-overlay { background: rgba(22,20,15,0.5); }
.portfolio-item-info { opacity: 0; transition: opacity .3s ease; }
.portfolio-item:hover .portfolio-item-info { opacity: 1; }
.portfolio-item-info h3 {
  font-family: 'Fraunces', serif; color: var(--paper);
  font-size: 20px; font-weight: 500;
}
.portfolio-item-info span {
  font-family: 'Space Mono', monospace; font-size: 11px;
  color: rgba(238,234,224,0.7); letter-spacing: 0.06em;
}

/* ── PÁGINA SERVICIOS ── */
.services-page-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: rgba(22,20,15,0.1);
  margin: 0 48px 80px;
}
.service-page-card {
  background: var(--paper); padding: 50px 40px;
  border-bottom: 3px solid transparent;
  transition: border-color .3s ease;
}
.service-page-card:hover { border-bottom-color: var(--oxblood); }

/* ── WOOCOMMERCE BASE ── */
.woocommerce-page .page-hero { padding-bottom: 40px; }
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important; list-style: none !important;
  padding: 48px !important; margin: 0 !important;
}
.woocommerce ul.products li.product { float: none !important; width: auto !important; }
.woocommerce ul.products li.product a img {
  aspect-ratio: 1; object-fit: cover; width: 100%;
  transition: transform .4s ease;
}
.woocommerce ul.products li.product:hover a img { transform: scale(1.03); }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: 'Fraunces', serif !important; font-size: 18px !important;
  font-weight: 500 !important; margin-top: 12px !important;
}
.woocommerce ul.products li.product .price {
  font-family: 'Space Mono', monospace !important;
  font-size: 13px !important; color: var(--oxblood) !important;
}
.woocommerce a.button, .woocommerce button.button {
  background: var(--ink) !important; color: var(--paper) !important;
  font-family: 'Inter', sans-serif !important; font-size: 13px !important;
  letter-spacing: 0.04em !important; padding: 12px 24px !important;
  border-radius: 0 !important; border: 1px solid var(--ink) !important;
  transition: all .25s ease !important;
}
.woocommerce a.button:hover, .woocommerce button.button:hover {
  background: var(--oxblood) !important;
  border-color: var(--oxblood) !important;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .wrap, .nav-inner, .hero-text,
  .section-about, .section-portfolio,
  .section-services, .section-shop,
  .site-footer, .page-hero,
  .portfolio-filters, .portfolio-full-grid,
  .services-page-grid { padding-left: 22px; padding-right: 22px; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-image { aspect-ratio: 4/3; }
  .section-about { grid-template-columns: 1fr; gap: 16px; }
  .portfolio-grid { grid-template-columns: repeat(2,1fr); grid-auto-rows: 140px; }
  .t1,.t2,.t3,.t4,.t5,.t6,.t7 { grid-column: span 2; grid-row: span 2; }
  .services-grid { grid-template-columns: 1fr; }
  .shop-inner { grid-template-columns: 1fr; gap: 40px; }
  .portfolio-full-grid { grid-template-columns: repeat(2,1fr); padding: 22px; }
  .services-page-grid { grid-template-columns: 1fr; margin: 0 22px 60px; }
  .nav-menu { display: none; }
  .woocommerce ul.products { grid-template-columns: repeat(2,1fr) !important; padding: 22px !important; }
}

@media (max-width: 540px) {
  .portfolio-full-grid { grid-template-columns: 1fr; }
  .woocommerce ul.products { grid-template-columns: 1fr !important; }
  .shop-preview { grid-template-columns: repeat(2,1fr); }
}

/* ── RESET WORDPRESS DEFAULT STYLES ── */
.site { max-width: 100% !important; }
body { background: var(--paper) !important; }

/* Quitar márgenes y padding de WordPress */
.wp-site-blocks,
.entry-content,
.post,
.page,
.hentry,
.type-page,
.status-publish { 
  max-width: 100% !important; 
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
}

/* Quitar estilo azul de links del admin */
a { color: var(--ink) !important; }
a:hover { color: var(--oxblood) !important; }

/* Nav no debe tener color azul */
.site-header, .nav-inner, .nav-menu, .nav-menu a, .site-logo {
  color: var(--ink) !important;
}

/* WordPress agrega padding-top al body por el admin bar */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

/* Forzar layout hero full width */
.hero {
  width: 100% !important;
  max-width: 100% !important;
  padding-top: 90px !important;
}
.hero-inner {
  display: grid !important;
  grid-template-columns: 1.1fr 0.9fr !important;
  align-items: end !important;
  min-height: 85vh;
}
.hero-text {
  padding: 60px 48px 60px !important;
}
.hero-image {
  height: 100%;
  min-height: 600px;
}

/* Quitar box-shadow y bordes de WordPress en imágenes */
img { box-shadow: none !important; border: none !important; }

/* Quitar fondo blanco del body que pone WordPress */
html, body { background-color: var(--paper) !important; }
