/* ==============================
   GOOGLE FONT SOLO HOME
============================= */
@import url('https://fonts.googleapis.com/css2?family=Luckiest+Guy&display=swap');

/* ==============================
   RESET
============================= */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  background-color: #ffffff;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* ==============================
   HOME (INDEX)
============================= */
#hero {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.hero-text {
  position: relative;
  z-index: 2;
  font-family: 'Luckiest Guy', cursive;
  font-size: 3rem;
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hero-text:hover {
  transform: scale(1.1);
  opacity: 0.9;
}

/* ==============================
   HEADER / MENU (PORTFOLIO)
============================= */
body.portfolio {
  font-family: Arial, sans-serif;
  padding-top: 200px; /* espacio para header fijo */
}

#main-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #ffffff;
  text-align: center;
  z-index: 1000;
}

.logo-container { padding: 20px 0; }
.logo { height: 120px; }

#main-menu ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 10px 0;
  margin: 0;
}

#main-menu a {
  color: #666;
  text-decoration: none;
  font-size: 1.2rem;
}

/* ==============================
   SUBMENÚ INTERNO NESART
============================= */
.nesart-submenu {
  text-align: center;
  margin: 0 auto 40px auto;
  background: #fff;
  position: sticky;
  top: 160px; /* debajo del header */
  z-index: 900;
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
}

.nesart-submenu ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 0;
  margin: 0;
}

.nesart-submenu a {
  text-decoration: none;
  color: #555;
  font-weight: bold;
  font-size: 1rem;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.nesart-submenu a:hover,
.nesart-submenu a.active {
  background: #222;
  color: #fff;
}

/* ==============================
   GALERÍA / PROJECT / NESART
============================= */
/* Contenedores para limitar tamaño de imagen */
.gallery-art-item,
.gallery-masonry-item,
.nesart-masonry-item,
.project-gallery-item {
  width: 100%;
  max-width: 400px;  
  overflow: hidden;
  border-radius: 12px;
}

.gallery-art-item img,
.gallery-masonry-item img,
.nesart-masonry-item img,
.project-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==============================
   GALERÍA ARTÍSTICA
============================= */
.gallery-art {
  background-color: #f5f5f5;
  padding: 100px 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-art img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.gallery-art img:hover {
  transform: scale(1.04);
}

/* ==============================
   GALERÍA MASONRY
============================= */
.gallery-masonry {
  column-count: 3;
  column-gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 60px;
}

.gallery-masonry img {
  width: 100%;
  height: auto;
  margin-bottom: 40px;
  break-inside: avoid;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* PROJECT PAGE */
.project-page {
  max-width: 1100px;
  margin: auto;
  padding: 180px 20px 60px;
}

.project-header {
  margin-bottom: 60px;
}

.project-header h1 {
  font-size: 3rem;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.project-gallery img {
  width: 100%;
  display: block;
}

/* ==============================
   NESART – CONTENEDOR DE PRESENTACIÓN
============================= */
.nesart-hero {
  width: 100%;                
  text-align: center;         
  padding: 60px 20px 40px;    
  background: #ffffff;        
}

.nesart-hero h1 {
  font-family: Arial, sans-serif;
  font-size: 3rem;            
  color: #222;
  margin-bottom: 15px;
}

.nesart-hero p {
  font-family: Arial, sans-serif;
  font-size: 1.2rem;          
  line-height: 1.6;
  color: #555;
  max-width: 800px;           
  margin: 0 auto;             
}

/* ==============================
   NESART – GALERÍA MASONRY ORGÁNICA SIN HOVER
============================= */
.nesart-page {
  padding: 180px 60px 120px;
}

.nesart-gallery-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #f5f5f5;
  border-radius: 12px;
}

.nesart-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-auto-rows: 10px;
  gap: 20px;
}

.nesart-masonry-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.nesart-masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.nesart-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: 20px;
  text-align: center;
  pointer-events: none;
}

.nesart-overlay-text {
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.4;
}

.nesart-overlay-text strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}

/* ==============================
   SECCIONES NESART
============================= */
.nesart-section {
  padding: 60px 20px 40px 20px;
}

.nesart-section h2 {
  text-align: center;
  font-size: 2.4rem;
  color: #222;
  margin-bottom: 40px;
}

/* ==============================
   TIENDA
============================= */
.shop-container {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  padding: 200px 0 100px;
  gap: 60px;
}

/* SIDEBAR */
.shop-sidebar {
  width: 220px;
  background: #000;
  color: #fff;
  padding: 40px 25px;
  position: sticky;
  top: 170px;
}

.shop-sidebar ul { list-style: none; padding: 0; margin: 0; }
.shop-sidebar li { margin-bottom: 20px; }
.shop-sidebar a { color: #fff; text-decoration: none; font-weight: bold; }

/* GRID PRODUCTOS */
.shop {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  padding: 0 60px;
}

.product { text-align: center; }
.product-image-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
}
.product-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.product h3 { margin: 18px 0 6px; }
.product p { margin: 0; color: #777; }

/* ==============================
   BLOG HERO
============================= */

.blog-hero {
  text-align: center;
  padding: 80px 20px 40px;
  background: #f5f5f5;
}

.blog-hero h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  color: #222;
}

.blog-hero p {
  font-size: 1.2rem;
  color: #555;
}
/* ==============================
   BLOG – CARDS DE POSTS
============================= */
.blog-container {
  max-width: 1200px;
  margin: 0 auto 100px;
  padding: 40px 20px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.blog-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

.blog-card img {
  width: 100%;
  aspect-ratio: 1 / 1; /* imagen cuadrada */
  object-fit: cover;
  object-position: center;
  display: block;
}

.blog-card-content {
  padding: 20px;
}

.blog-card h2 {
  font-size: 1.4rem;
  margin: 0 0 8px;
  color: #222;
}

.blog-date {
  font-size: 0.9rem;
  color: #888;
  display: block;
  margin-bottom: 10px;
}

.blog-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.4;
  margin-bottom: 15px;
}

.read-more {
  text-decoration: none;
  font-weight: bold;
  color: #000;
}

.read-more:hover {
  text-decoration: underline;
}

/* ==============================
   RESPONSIVE – BLOG GRID
============================= */
@media(max-width: 900px) {
  .blog-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media(max-width: 600px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* ==============================
   ESTILO BOTÓN AÑADIR AL CARRITO
============================= */
/*.add-to-cart-btn {
  font-family: Arial, sans-serif;
  font-weight: 300;
  font-size: 1rem;
  color: #000;
  background: #fff;
  border: 1px solid #000;
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 15px;
}

.add-to-cart-btn:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}


/* ==============================
   PÁGINA PRODUCTO
============================= */
.product-page {
  display: flex;
  max-width: 1200px;
  margin: 200px auto 100px;
  gap: 60px;
  padding: 0 20px;
}
.product-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
}

/* ==============================
   CARRITO
============================= */
/*#cart {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,0.95);
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  z-index: 2000;
}

#cart-count {
  background: red;
  color: #fff;
  border-radius: 50%;
  padding: 2px 8px;
}

/* ==============================
   MODAL CARRITO Y CHECKOUT
============================= */
/*.cart-modal,
#checkout-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 3000;
}

.cart-modal-content,
#checkout-modal .checkout-content {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.cart-close,
#checkout-modal .checkout-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.8rem;
  font-weight: bold;
  cursor: pointer;
  color: #333;
}

.cart-modal h2,
#checkout-modal h2 {
  margin-top: 0;
  text-align: center;
  font-size: 1.5rem;
  color: #333;
}

#cart-modal-items,
#checkout-cart-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#cart-modal-items li,
.checkout-left ul#checkout-cart-items li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f9f9f9;
  padding: 8px;
  border-radius: 6px;
  flex-shrink: 0;
}

#cart-modal-items img,
.checkout-left ul#checkout-cart-items li img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

/* ==============================
   NUEVO: LIMITAR IMAGENES CHECKOUT
============================= */
/*.checkout-item-image {
  width: 120px;
  height: 120px;
  overflow: hidden;
  border-radius: 6px;
  flex-shrink: 0;
}

.checkout-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==============================
   RESTO DEL CSS EXISTENTE...
============================= */
/*#cart-modal-total,
#checkout-total {
  font-weight: bold;
  text-align: right;
  font-size: 1.2rem;
  margin-top: 8px;
}

#cart-modal-empty,
#checkout-empty {
  text-align: center;
  color: #ff4d4f;
  font-weight: bold;
  display: none;
  margin: 10px 0;
}

#cart-modal-checkout,
#checkout-confirm-btn {
  background: #ff4d4f;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  margin-top: 10px;
}

#cart-modal-checkout:hover,
#checkout-confirm-btn:hover {
  background: #e04344;
}

/* ==============================
   CHECKOUT DOS COLUMNAS
============================= */
/*.checkout-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.checkout-left,
.checkout-right {
  flex: 1;
  min-width: 300px;
}

.checkout-left ul#checkout-cart-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkout-left ul#checkout-cart-items li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f9f9f9;
  padding: 8px;
  border-radius: 6px;
}

.checkout-left .checkout-prices p {
  margin: 6px 0;
  font-size: 1rem;
}

.checkout-left .checkout-prices p#checkout-total {
  font-weight: bold;
  font-size: 1.2rem;
}

/* ==============================
   CHECKOUT RIGHT - DATOS CLIENTE
============================= */
/*.checkout-right {
  display: flex;
  flex-direction: column;
  gap: 12px; /* espacio entre inputs y botones */
}

/*.checkout-right input,
.checkout-right textarea {
  width: 100%;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

.checkout-right textarea {
  min-height: 80px;
  resize: vertical;
}

/* ==============================
   BOTONES MÉTODO DE PAGO
============================= */
/*.payment-methods {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.payment-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
  background: #fff;
  transition: all 0.2s ease;
}

.payment-btn img {
  width: 24px;
  height: 24px;
}

.payment-btn span {
  font-size: 0.95rem;
}

.payment-btn:hover {
  border-color: #000;
  background: #f5f5f5;
}

.payment-btn.active {
  border-color: #ff4d4f;
  background: #ffe5e6;
}

/* ==============================
   CONTACTO
============================= */
body.contact-page {
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
  padding-top: 180px; /* header fijo */
}

.contact-container {
  max-width: 900px;
  margin: 0 auto 100px auto;
  padding: 40px 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.contact-container h1 {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 20px;
  color: #222;
}

.contact-container p {
  text-align: center;
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 30px;
  line-height: 1.5;
}

form.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

form.contact-form input,
form.contact-form textarea {
  padding: 12px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
  width: 100%;
  box-sizing: border-box;
  transition: border 0.3s;
}

form.contact-form input:focus,
form.contact-form textarea:focus {
  border-color: #222;
  outline: none;
}

form.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

form.contact-form button {
  padding: 14px;
  font-size: 16px;
  background: #222;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

form.contact-form button:hover {
  background: #555;
  transform: scale(1.02);
}

#form-status {
  margin-top: 20px;
  color: green;
  text-align: center;
  font-weight: bold;
  display: none;
}

/* ==============================
   RESPONSIVE
============================= */
@media(max-width:900px){
  .checkout-container { flex-direction: column; }
  .shop-container { flex-direction: column; }
  .shop { grid-template-columns: 1fr; padding: 40px; }
  .product-page { flex-direction: column-reverse; }
}

 @media (max-width: 600px){
  .cart-modal-content,
  #checkout-modal .checkout-content { max-width: 95%; padding: 15px; }
  #cart-modal-items li img,
  #checkout-cart-items img { width: 60px; height: 60px; }

  .nesart-submenu ul {
    flex-direction: column;
    gap: 10px;
  }
}

/* =====================================================
   🔒 MODO TIENDA DESACTIVADA (SIN BORRAR CÓDIGO)
   Oculta carrito, checkout y botones añadir al carrito
   ===================================================== */

#cart,
#cart-count,
.cart-modal,
#checkout-modal,
.cart-modal-content,
.checkout-container,
.checkout-left,
.checkout-right,
.payment-methods,
.payment-btn,
#cart-modal-items,
#checkout-cart-items,
#cart-modal-total,
#checkout-total,
#cart-modal-checkout,
#checkout-confirm-btn,
#cart-modal-empty,
#checkout-empty,
.cart-close,
.checkout-close,
.checkout-item-image,
.add-to-cart-btn {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ==============================
   SOBRE MI – ADAPTACIÓN MÓVIL
============================= */
.sobre-mi-container {
  display: flex;
  gap: 40px;
  max-width: 1000px;
  margin: 50px auto;
  padding: 0 20px;
  align-items: center;
}

.sobre-mi-left {
  flex: 1;
}
.sobre-mi-left img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.sobre-mi-right {
  flex: 1;
}
.sobre-mi-right h1 {
  font-size: 2rem;
  margin-bottom: 20px;
}
.sobre-mi-right p {
  font-size: 1.1rem;
  line-height: 1.6;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .sobre-mi-container {
    flex-direction: column;
  }
  .sobre-mi-left, .sobre-mi-right {
    width: 100%;
  }
}

/* ==============================
   FOOTER PROFESIONAL NEGRO
============================== */

.main-footer {
  background: #000;
  color: #fff;
  padding-top: 80px;
  position: relative;
}

/* Bisel superior suave */
.main-footer::before {
  content: "";
  position: absolute;
  top: -40px;
  left: 0;
  width: 100%;
  height: 40px;
  background: linear-gradient(to bottom right, transparent 49%, #000 50%);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 60px;
  display: flex;
  justify-content: space-between;
  gap: 60px;
}

.footer-column {
  flex: 1;
}

.footer-column h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.footer-column h4 {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.footer-column p {
  color: #aaa;
  line-height: 1.6;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  text-decoration: none;
  color: #ccc;
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  padding: 25px 20px;
  border-top: 1px solid #222;
  font-size: 0.9rem;
  color: #777;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}







