/* ========================================
   MIGUEL SANZ - ESCULTOR V2
   Minimalista Premium Brutal
   ======================================== */

:root {
  /* Colores */
  --charcoal: #1a1a1a;
  --bronze: #a67c52;
  --cream: #faf8f5;
  --gray: #666666;
  --gray-light: #999999;
  --white: #ffffff;
  
  /* Tipografía */
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Inter', sans-serif;
  
  /* Transiciones */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============ RESET ============ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.6;
  font-weight: 300;
  overflow-x: hidden;
}

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

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

/* ============ HEADER ============ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(26, 26, 26, 0.05);
  z-index: 1000;
  transition: all 0.3s var(--ease);
}

.header-content {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 60px;
  height: 90px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--charcoal);
}

.nav {
  display: flex;
  gap: 48px;
}

.nav a {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: var(--gray);
  transition: color 0.3s var(--ease);
}

.nav a:hover {
  color: var(--charcoal);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--charcoal);
  cursor: pointer;
}

/* ============ HERO BRUTAL ============ */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(40%) brightness(0.85);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
}

.hero-name {
  font-family: var(--font-serif);
  font-size: 120px;
  font-weight: 300;
  letter-spacing: 8px;
  margin-bottom: 16px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.hero-title {
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 6px;
  text-transform: uppercase;
  opacity: 0.9;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}

/* ============ GALERÍA PROTAGONISTA ============ */
.galeria {
  padding: 120px 60px;
  background: var(--cream);
}

.galeria-header {
  max-width: 1600px;
  margin: 0 auto 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.galeria-title {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 300;
  color: var(--charcoal);
}

.galeria-filters {
  display: flex;
  gap: 24px;
}

.filter-btn {
  padding: 10px 0;
  background: none;
  border: none;
  border-bottom: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--charcoal);
  border-bottom-color: var(--bronze);
}

/* Grid Masonry */
.galeria-grid {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.obra-item {
  position: relative;
  overflow: hidden;
  background: var(--white);
  cursor: pointer;
  transition: all 0.4s var(--ease);
  aspect-ratio: 3/4;
}

.obra-item.wide {
  grid-column: span 2;
  aspect-ratio: 16/9;
}

.obra-item.tall {
  grid-row: span 2;
  aspect-ratio: 3/8;
}

.obra-item.large {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: 1;
}

.obra-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%);
  transition: all 0.6s var(--ease);
}

.obra-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.obra-item:hover img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.obra-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 32px;
  background: linear-gradient(to top, rgba(26, 26, 26, 0.95), transparent);
  color: var(--white);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.obra-item:hover .obra-overlay {
  opacity: 1;
}

.obra-nombre {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 12px;
}

.obra-info {
  font-size: 13px;
  line-height: 1.8;
  font-weight: 300;
  opacity: 0.9;
}

.obra-estado {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 8px 16px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 2px;
}

.obra-estado.disponible {
  background: var(--bronze);
  color: var(--white);
}

.obra-estado.vendida {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  backdrop-filter: blur(10px);
}

/* ============ MATERIALES ============ */
.materiales {
  padding: 120px 60px;
  background: var(--white);
}

.materiales-container {
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 300;
  margin-bottom: 80px;
  text-align: center;
  color: var(--charcoal);
}

.materiales-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
}

.material-card {
  transition: transform 0.4s var(--ease);
}

.material-card:hover {
  transform: translateY(-8px);
}

.material-image {
  height: 320px;
  overflow: hidden;
  margin-bottom: 32px;
}

.material-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(40%);
  transition: all 0.6s var(--ease);
}

.material-card:hover .material-image img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.material-name {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 16px;
  color: var(--charcoal);
}

.material-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--gray);
}

/* ============ SOBRE MÍ ============ */
.sobre-mi {
  padding: 120px 60px;
  background: var(--cream);
}

.sobre-mi-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 100px;
  align-items: start;
}

.sobre-mi-image img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  filter: grayscale(40%);
}

.sobre-mi-text {
  margin: 40px 0 60px;
}

.sobre-mi-text p {
  font-size: 17px;
  line-height: 1.9;
  color: var(--gray);
  margin-bottom: 24px;
}

.sobre-mi-datos {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 40px;
  border-top: 1px solid rgba(26, 26, 26, 0.1);
}

.dato-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
}

.dato-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--bronze);
}

.dato-value {
  font-size: 15px;
  color: var(--gray);
}

/* ============ CONTACTO ============ */
.contacto {
  padding: 120px 60px;
  background: var(--white);
}

.contacto-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 100px;
}

.contacto-intro {
  font-size: 17px;
  line-height: 1.9;
  color: var(--gray);
  margin: 40px 0 60px;
}

.contacto-datos {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contacto-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contacto-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--bronze);
}

.contacto-value {
  font-size: 17px;
  color: var(--charcoal);
}

.contacto-value a {
  color: var(--charcoal);
  transition: color 0.3s var(--ease);
}

.contacto-value a:hover {
  color: var(--bronze);
}

.contacto-small {
  font-size: 14px;
  color: var(--gray);
}

.contacto-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-input,
.form-textarea {
  padding: 16px 0;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(26, 26, 26, 0.15);
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--charcoal);
  transition: border-color 0.3s var(--ease);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-bottom-color: var(--bronze);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--gray-light);
}

.form-textarea {
  resize: vertical;
  font-family: var(--font-sans);
}

.form-submit {
  padding: 16px 48px;
  background: var(--charcoal);
  border: none;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  align-self: flex-start;
}

.form-submit:hover {
  background: var(--bronze);
  transform: translateY(-2px);
}

/* ============ FOOTER MEJORADO ============ */
.footer {
  padding: 100px 60px 40px;
  background: var(--charcoal);
  color: var(--white);
}

.footer-grid {
  max-width: 1400px;
  margin: 0 auto 60px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 80px;
}

/* Columna Info */
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-name {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 4px;
}

.footer-subtitle {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 20px;
}

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

.footer-info p {
  font-size: 14px;
  opacity: 0.7;
  line-height: 1.6;
}

/* Columna Enlaces */
.footer-heading {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 20px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav a {
  font-size: 15px;
  opacity: 0.8;
  transition: all 0.3s var(--ease);
}

.footer-nav a:hover {
  opacity: 1;
  transform: translateX(4px);
  color: var(--bronze);
}

/* Columna Contacto */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact a {
  font-size: 15px;
  opacity: 0.8;
  transition: all 0.3s var(--ease);
}

.footer-contact a:hover {
  opacity: 1;
  color: var(--bronze);
}

/* Copyright */
.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright {
  font-size: 13px;
  opacity: 0.5;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  opacity: 0.5;
}

.footer-legal a {
  transition: all 0.3s var(--ease);
}

.footer-legal a:hover {
  opacity: 1;
  color: var(--bronze);
}

.footer-separator {
  opacity: 0.3;
}

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 60px;
}

.lightbox.active {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 40px;
  right: 60px;
  font-size: 40px;
  color: var(--white);
  cursor: pointer;
  transition: opacity 0.3s var(--ease);
  line-height: 1;
}

.lightbox-close:hover {
  opacity: 0.7;
}

.lightbox-image {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1200px) {
  .hero-name {
    font-size: 80px;
  }
  
  .galeria-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .obra-item.large {
    grid-column: span 2;
    grid-row: span 1;
  }
}

@media (max-width: 1024px) {
  .header-content {
    padding: 0 40px;
  }
  
  .galeria,
  .materiales,
  .sobre-mi,
  .contacto {
    padding: 80px 40px;
  }
  
  .galeria-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }
  
  .materiales-grid {
    grid-template-columns: 1fr;
  }
  
  .sobre-mi-container,
  .contacto-container {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero-name {
    font-size: 48px;
    letter-spacing: 4px;
  }
  
  .hero-title {
    font-size: 14px;
    letter-spacing: 3px;
  }
  
  .galeria-grid {
    grid-template-columns: 1fr;
  }
  
  .obra-item,
  .obra-item.wide,
  .obra-item.tall,
  .obra-item.large {
    grid-column: span 1;
    grid-row: span 1;
    aspect-ratio: 3/4;
  }
  
  .section-title,
  .galeria-title {
    font-size: 36px;
  }
  
  .galeria-filters {
    flex-wrap: wrap;
    gap: 16px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  
  .footer-legal {
    flex-wrap: wrap;
  }
  
  .footer-name {
    font-size: 28px;
  }
}
