/* ============================================================

   1. RESET & VARIABLES

   ============================================================ */

* {

  margin: 0;

  padding: 0;

  box-sizing: border-box;

}



:root {

  --bg-negro: #1a1a1a;

  --bg-marron: #500711;

  --text: #ececec;

  --subtitles: #AF041A; /* Tu Rojo Bello */

  --temu-orange: #ff4400;

  --panel-bg: #f4f4f4;

}



body {

  background: var(--bg-negro);

  color: var(--text);

  font-family: "Manrope", sans-serif;

  overflow-x: hidden;

  line-height: 1.6;

}



img {

  max-width: 100%;

  height: auto;

}



.modal,

.product-modal {

  backdrop-filter: blur(14px);

  -webkit-backdrop-filter: blur(14px);

}





/* ============================================================

   2. TIPOGRAFÍAS

   ============================================================ */

@font-face { font-family: "Avigea"; src: url("/assets/fonts/Avigea.otf") format("opentype"); }

@font-face { font-family: "Google"; src: url("/assets/fonts/GoogleSans-Regular.ttf") format("truetype"); }

@font-face { font-family: "Babe"; src: url("/assets/fonts/Babe Sans.otf") format("opentype"); }



h1, h2, h3 { font-family: "Google", sans-serif; color: var(--subtitles); }

h4, h5 { font-family: "Babe", sans-serif; }



/* ============================================================

   3. HEADER FIJO (GLASSMORPHISM)

   ============================================================ */

header {

  width: 100%;

  position: fixed;

  top: 0;

  left: 0;

  z-index: 1000;

  background: linear-gradient(to bottom, rgba(26,26,26,1) 0%, rgba(26,26,26,0) 100%);

  padding-bottom: 2rem;

}

.boton-wa {
    transition: all 0.3s ease-in-out; /* Suaviza el movimiento */
    display: inline-block; /* Necesario para que el scale funcione */
    border-radius: 20%; 
  }

  .boton-wa:hover {
    transform: scale(1.08); /* Se agranda el 15% */
    filter: drop-shadow(0 0 60px rgba(37, 211, 102, 0.8)); /* Sombra verde neón */
  }

/* CTA del menú */
.menu .cta-btn {
  padding: 10px 20px;
  border-radius: 30px;
  background: none;
  color: var(--temu-orange); /* texto color temu orange */
  text-decoration: none;
  border: 1.5px solid var(--subtitles);
  opacity: 1;
  transition: background 0.25s, color 0.25s, transform 0.15s;
}

/* quitar subrayado animado del menú */
.menu .cta-btn::after {
  display: none;
}

/* hover */
.menu .cta-btn:hover {
  background: var(--temu-orange);
  color: #fff;
  transform: translateY(-1px);
}


.nav {

  width: 100%; /* ocupa toda la pantalla */

  max-width: none; /* eliminamos el límite */

  margin: 0;

  padding: 1.5rem 2rem; /* padding mínimo para no pegar al borde exacto */

  display: flex;

  justify-content: space-between;

  align-items: center;

  box-sizing: border-box;

}



.logo {

  font-family: "Avigea", serif;

  font-size: 1.3rem;

  color: var(--text);

  text-decoration: none;

  transition: 0.3s;

}



.logo:hover { color: var(--subtitles); }



.menu { list-style: none; display: flex; gap: 2.5rem; }

.menu a {

  font-size: 0.9rem;

  text-transform: uppercase;

  color: var(--text);

  text-decoration: none;

  position: relative;

  opacity: 0.8;

  transition: 0.3s;

}



.menu a:hover { opacity: 1; color: var(--subtitles); }

.menu a::after {

  content: ""; position: absolute; left: 0; bottom: -4px;

  width: 0; height: 2px; background: var(--subtitles); transition: 0.3s;

}

.menu a:hover::after { width: 100%; }



.shop-menu {

  position: relative; /* 🔑 ancla el dropdown al SHOP */

}





.shop-menu button {

  font-size: 0.9rem;

  text-transform: uppercase;

  opacity: .85;

}



.shop-menu button:hover {

  opacity: 1;

  color: var(--subtitles);

}



.shop-menu:hover .shop-dropdown,

.shop-dropdown.active {

  display: flex;

}



#shop-toggle {

  background: none;

  border: none;

  color: white;

  font-size: 14px;

  cursor: pointer;

}



.shop-dropdown::before {

  content: "";

  position: absolute;

  top: -6px;

  left: 20px;

  width: 12px;

  height: 12px;

  background: #111;

  transform: rotate(45deg);

}



.shop-dropdown {

  position: absolute;

  top: calc(100% + 10px); /* debajo del botón */

  left: 0; /* alineado al inicio del botón */

 

  background: #111;

  border-radius: 16px;

  padding: 10px;

  min-width: 180px;



  display: none;

  flex-direction: column;

  gap: 6px;



  box-shadow: 0 20px 40px rgba(0,0,0,.6);

  z-index: 2000; /* asegúrate de que quede encima del nav */

}



.shop-dropdown button,

.shop-dropdown a {

  all: unset;

  padding: 10px 14px;

  border-radius: 10px;

  cursor: pointer;

  font-size: 13px;

}



.shop-dropdown button:hover,

.shop-dropdown a:hover {

  background: rgba(255,255,255,.08);

}



.shop-dropdown.active {

  display: flex;

}



/* ITEM DEL CARRITO / FAVORITOS */

.product-item {

  display: flex;

  align-items: center;

  gap: 12px;

  padding: 10px 0;

  border-bottom: 1px solid rgba(255,255,255,.15);

}



/* IMAGEN */

.product-item img {

  width: 50px;

  height: 50px;

  object-fit: cover;

  border-radius: 8px;

  cursor: pointer;

}



/* TEXTO */

.product-item h4 {

  flex: 1;

  margin: 0;

  font-size: 14px;

  cursor: pointer;

}



/* BOTÓN ELIMINAR (X) – LIMPIO */

.remove-cart,

.remove-wishlist {

  background: none;

  border: none;

  color: #fff;

  font-size: 20px;

  cursor: pointer;

  transition: color .2s ease, transform .2s ease;

}



/* hover */

.remove-cart:hover,

.remove-wishlist:hover {

  color: #ff3b3b;

  transform: scale(1.15);

}



/* click */

.remove-cart:active,

.remove-wishlist:active {

  transform: scale(.9);

}



/* BOTÓN AÑADIR AL CARRITO (WISHLIST) */

.btn-cart-from-wishlist {

  background: #000;

  border: none;

  color: #fff;

  padding: 6px 12px;

  border-radius: 20px;

  font-size: 12px;

  cursor: pointer;

  transition: background .25s ease, color .25s ease, transform .2s ease;

}



/* hover */

.btn-cart-from-wishlist:hover {

  background: #FFD500; /* amarillo */

  color: #000;

  transform: translateY(-1px);

}



/* click */

.btn-cart-from-wishlist:active {

  transform: scale(.95);

}



#wishlist-section .product-item {

  align-items: center;

}



#wishlist-section .btn-cart-from-wishlist {

  margin-left: auto;

  margin-right: 8px;

}





/* ============================================================

   BOTÓN WHATSAPP EN CARRITO

   ============================================================ */

.btn-whatsapp-cart {

  display: inline-flex;          /* Para centrar icono + texto */

  align-items: center;

  justify-content: center;

  gap: 8px;                      /* Espacio entre icono y texto */

  padding: 12px 50px;            /* Tamaño del botón */

  border-radius: 40px;           /* Bordes redondeados */

  background-color: #25D366;     /* Verde WhatsApp */

  color: white;                  /* Texto en blanco */

  font-weight: bold;

  font-size: 14px;

  border: none;

  cursor: pointer;

  transition: transform 0.2s ease, box-shadow 0.25s ease;

}



/* Hover */

.btn-whatsapp-cart:hover {

  transform: translateY(-2px);

  box-shadow: 0 8px 20px rgba(37,211,102,0.45);

  background-color: #25D366;

}



/* ============================================================

   4. BUSCADOR & TIENDA (PINTEREST GRID)

   ============================================================ */



#search-input, #search {

  display: block;

  margin: 140px auto 20px;

  padding: 12px 25px;

  width: 80%;

  max-width: 500px;

  border-radius: 50px;

  border: 1px solid #444;

  background: #222;

  color: white;

  outline: none;

}



.products {

  display: grid;

  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));

  gap: 25px;

  padding: 20px 5%;

}



.product {

  background: #222;

  border-radius: 20px;

  overflow: hidden;

  transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);

  position: relative;

}



.product:hover { transform: translateY(-8px); }



.product-image {

  position: relative;

  height: 280px;

  overflow: hidden;

}



.product-image img {

  width: 100%;

  height: 100%;

  object-fit: cover;

  transition: 0.6s;

  cursor: pointer;

}



.product:hover .product-image img { transform: scale(1.1); }



.product-info {

  padding: 15px;

  color: white;

}



.product-info h3 {

  margin: 0;

  font-size: 1.1rem;

  cursor: pointer;

}



.product-info p {

  color: #25D366; /* Color verde para el precio */

  font-weight: bold;

  margin: 8px 0;

}

















/* ============================================================

/* ============================================================

/* ============================================================

   BOTONES FLOTANTES SOBRE EL PRODUCTO (ICONOS SOBRE IMAGEN)

   ============================================================ */



.product-actions {

  position: absolute;

  top: 14px;

  right: 14px;

  display: flex;

  flex-direction: column;

  gap: 12px;

  z-index: 10;

}



/* Botones circulares: Carrito, Wishlist y WhatsApp */

.product-actions .btn-cart,

.product-actions .btn-wishlist,

.product-actions .btn-whatsapp-product {

  width: 40px !important;

  height: 40px !important;

  border-radius: 50% !important;

  border: none;

  color: #fff;

  cursor: pointer;

  display: flex;

  align-items: center;

  justify-content: center;

  transition: all 0.3s ease;

  padding: 0 !important;

}



/* Colores individuales */

.product-actions .btn-cart { background: rgba(0, 0, 0, 0.7); font-size: 18px; }

.product-actions .btn-wishlist { background: rgba(0, 0, 0, 0.7); font-size: 18px; }

.btn-whatsapp-product { background: #25D366; }



/* Hovers botones flotantes */

.product-actions .btn-cart:hover {

  background: #ff5a00;

  box-shadow: 0 5px 15px rgba(255, 90, 0, 0.4);

}



.product-actions .btn-wishlist:hover {

  background: #AF041A;

  box-shadow: 0 5px 15px rgba(175, 4, 26, 0.4);

}



.btn-whatsapp-product:hover {

  transform: scale(1.1);

  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);

}



/* Icono WhatsApp adicional */

.btn-whatsapp-product i,

.btn-whatsapp-product span {

  font-size: 20px;

  margin: 0;

  padding: 0 !important;

  display: block;

}



/* ============================================================

   MODAL PRODUCTO – ESTRUCTURA

   ============================================================ */



/* Fondo modal */

.product-modal {

  position: fixed;

  inset: 0;

  background: rgba(0,0,0,.7);

  display: none;

  align-items: center;

  justify-content: center;

  z-index: 9999;

}



.product-modal.active {

  display: flex;

}



/* Caja del modal */

.product-modal-box {

  max-width: 560px;

  width: 95%;

  max-height: 90vh;

  background: #1b1b1b;

  border-radius: 22px;

  padding: 18px;

  position: relative;

  animation: modalIn .35s ease;

}



/* Animación del modal */

@keyframes modalIn {

  from { opacity: 0; transform: scale(.95); }

  to { opacity: 1; transform: scale(1); }

}



/* Cuerpo del modal */

.product-modal-body {

  display: flex;

  flex-direction: column;

  gap: 12px;

}



/* Título y precio */

.product-modal-body h2 {

  font-size: 20px;

  margin-bottom: 2px;

}



.product-modal-price {

  font-size: 18px;

  font-weight: 700;

  color: var(--subtitles);

}



/* Descripción */

.product-modal-body p {

  font-size: 14px;

  opacity: .85;

  line-height: 1.5;

}



/* Imagen del producto */

#modal-image {

  width: 100%;

  height: 340px;

  object-fit: cover;

  border-radius: 18px;

  margin-bottom: 14px;

}



/* ============================================================

   BOTONES DENTRO DEL MODAL

   ============================================================ */



.modal-actions {

  display: flex;

  gap: 12px;

  justify-content: center;

  flex-wrap: wrap;

}



/* Botones base */

.modal-actions button,

.modal-cart,

.modal-wishlist,

.modal-whatsapp {

  flex: 0 0 auto;        /* ❌ No se estira, se ajusta al contenido */

  padding: 12px 20px;    /* ✔ Ajusta ancho según texto */

  border-radius: 58px;   /* ✔ Bordes redondeados */

  border: none;

  font-size: 13px;

  cursor: pointer;

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 6px;

  transition: transform .2s ease, background .25s ease, box-shadow .25s ease;

}





/* Carrito */

.modal-cart {

  background: #2a2a2a;

  color: white;

}



.modal-cart:hover {

  background: #ff5a00;

  transform: scale(1.04);

}



/* Wishlist */

.modal-wishlist {

  background: #2a2a2a;

  color: white;

}



.modal-wishlist:hover {

  background: #AF041A;

  transform: scale(1.04);

}



/* WhatsApp dentro del modal */

.modal-whatsapp {

  background: #2a2a2a;

  color: white;

}



.modal-whatsapp:hover {

  background: #25D366;

  box-shadow: 0 10px 25px rgba(37,211,102,.45);

  transform: translateY(-2px);

}



/* ============================================================

   BOTÓN CERRAR MODAL

   ============================================================ */



.product-modal-close {

  position: absolute;

  top: 14px;

  right: 14px;

  width: 36px;

  height: 36px;

  border-radius: 50%;

  background: rgba(0,0,0,.6);

  color: white;

  font-size: 22px;

  border: none;

  cursor: pointer;

  z-index: 10;

}



.product-modal-close:hover {

  background: #ff3b3b;

}





/* ============================================================

/* ============================================================

/* ============================================================

   PANEL LATERAL (CARRITO / FAVORITOS)

============================================================ */















.side-panel {

  position: fixed;

  top: 0;

  right: 0;

  width: 380px;

  max-width: 100%;

  height: 100vh;

  background: #111;

  z-index: 9999;



  display: flex;

  flex-direction: column;



  transform: translateX(100%);

  transition: transform 0.35s ease;

}



.side-panel.active {

  transform: translateX(0);

}



/* =========================

   HEADER

========================= */



.panel-header {

  position: relative;

  padding: 16px 20px;

  border-bottom: 1px solid rgba(255,255,255,.08);

}



/* contenedor de tabs */

.panel-tabs {

  display: flex;

  justify-content: center; /* CENTRADOS */

  gap: 40px;               /* separación REAL */

}



.tab-btn {

  background: none;

  border: none;

  padding-bottom: 6px;



  font-size: 13px;

  text-transform: uppercase;

  letter-spacing: .4px;

  color: #8a8a8a;

  cursor: pointer;



  border-bottom: 2px solid transparent;

  transition: .2s ease;

}



.tab-btn.active {

  color: #fff;

  border-color: var(--subtitles);

}



.panel-close {

  position: absolute;

  top: 50%;

  right: 20px;

  transform: translateY(-50%);



  background: none;

  border: none;



  color: #fff;

  font-size: 22px;

  cursor: pointer;



  transition: color .2s ease, transform .2s ease;

}



.panel-close:hover {

  color: #ff3b3b;

  transform: translateY(-50%) scale(1.15);

}



.panel-close:active {

  transform: translateY(-50%) scale(.9);

}





/* =========================

   CONTENIDO

========================= */



.panel-body {

  flex: 1;

  overflow-y: auto;

  padding: 20px 24px;



  /* 🔥 COLOR CORRECTO */

  color: #fff;

}



.panel-section {

  display: none;

}



.panel-section.active {

  display: block;

}



/* =========================

   LISTA DE PRODUCTOS

========================= */



/* 🔥 FIX DEFINITIVO – IMÁGENES PANEL */



#cart-section .product-item img,

#wishlist-section .product-item img {

  width: 40px !important;

  height: 40px !important;

  max-width: 40px !important;

  max-height: 40px !important;

  object-fit: cover !important;

  border-radius: 6px;

  flex-shrink: 0;

}





.panel-section ul {

  list-style: none;

  padding: 0;

  margin: 0;

}



.product-item {

  display: flex;

  align-items: center;

  gap: 12px;

  padding: 14px 0;



  background: transparent;

  border-bottom: 1px solid rgba(255,255,255,0.15);

}





.product-item img {

  width: 42px;

  height: 42px;

  object-fit: cover;

  border-radius: 6px;

  flex-shrink: 0;

}



.product-item-info {

  flex: 1;

}



.product-item-info h4 {

  font-size: 13px;

  color: #111;

  margin-bottom: 2px;

}



.product-item-info span {

  font-size: 12px;

  font-weight: 700;

  color: var(--subtitles);

}



.product-qty {

  display: flex;

  align-items: center;

  gap: 10px;

}



.product-qty button {

  width: 28px;

  height: 28px;

  border-radius: 50%;

  border: 1px solid rgba(255,255,255,0.4);

  background: transparent;

  color: #fff;

  font-size: 16px;

  cursor: pointer;

  transition: all .2s ease;

}



.product-qty button:hover {

  background: #ff5a00;

  border-color: #ff5a00;

}



.product-qty span {

  min-width: 20px;

  text-align: center;

  font-weight: 600;

}





/* =========================

   FOOTER

========================= */



.panel-footer {

  padding: 20px 24px;

  border-top: 1px solid rgba(255,255,255,.08);

}



.panel-footer strong {

  color: #fff;

}



/* BOTÓN WHATSAPP – CTA */

.btn-whatsapp {

  width: 100%;

  margin-top: 14px;

  padding: 16px 22px;



  border: none;

  border-radius: 999px; /* completamente redondeado */



  background: #2a2a2a; /* gris oscuro */

  color: #fff;



  font-size: 15px;

  font-weight: 600;

  letter-spacing: .3px;



  cursor: pointer;



  transition:

    background .25s ease,

    transform .2s ease,

    box-shadow .25s ease;

}



/* hover */

.btn-whatsapp:hover {

  background: #25D366; /* verde WhatsApp */

  transform: scale(1.04);

  box-shadow: 0 12px 30px rgba(37, 211, 102, .45);

}



/* active */

.btn-whatsapp:active {

  transform: scale(.97);

}





/* ============================================================

   6. MODAL POP-UP & ANIMACIONES

   ============================================================ */

.modal {

  position: fixed;

  inset: 0;

  background: rgba(0,0,0,0.85);

  display: none;

  align-items: center;

  justify-content: center;

  z-index: 3000;

  backdrop-filter: blur(8px);

}



.modal.active { display: flex; }



.modal-content {

  background: #111;

  width: 90%;

  max-width: 420px;

  border-radius: 25px;

  overflow: hidden;

  position: relative;

}



.modal-body { padding: 25px; }

.modal-close { position: absolute; top: 15px; right: 15px; background: none; border: none; font-size: 24px; color: white; cursor: pointer; }



@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }



/* ================================================= peak

   ESTILOS GENERALES DE LA TIENDA

=========================================================== */



/* Contenedor Principal (Grid tipo Pinterest) */

.products {

  display: grid;

  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));

  gap: 24px;

  padding: 32px;

}



/* Tarjeta de Producto */

.product {

  position: relative;

  border-radius: 16px;

  overflow: hidden;

  cursor: pointer;

  background: transparent; /* Asegura consistencia */

}



/* =================================================

   CONTENEDOR DE IMAGEN Y EFECTOS

=========================================================== */

.product-image {

  position: relative;

  width: 100%;

  height: 260px;

  overflow: hidden;

  border-radius: 16px 16px 0 0;

}



.product-image img {

  width: 100%;

  height: 100%;

  object-fit: cover;

  display: block;

  transition: transform .4s ease;

}



/* Hover de imagen */

.product:hover .product-image img {

  transform: scale(1.05);

}



/* =================================================

   BOTONES Y ACCIONES FLOTANTES (ESTILO TEMU)

=========================================================== */

.product-actions {

  position: absolute;

  top: 12px;

  right: 12px;

  display: flex;

  flex-direction: column;

  gap: 10px;

  z-index: 3;

}



/* Unificación de botones de acción */

.product-actions button {

  width: 40px !important;

  height: 40px !important;

  border-radius: 50% !important;

  background: rgba(0, 0, 0, 0.65);

  border: none;

  color: #fff;

  cursor: pointer;

  display: flex;

  align-items: center;

  justify-content: center;

  transition: all 0.25s ease;

  padding: 0;

  font-size: 18px;

}



/* Hover específico para WhatsApp */

.product-actions .btn-whatsapp-product:hover {

  background: #25D366;

  transform: scale(1.1);

}



/* =================================================

   INFORMACIÓN DEL PRODUCTO

=========================================================== */

.product-info {

  padding: 14px;

}



.product-info h2 {

  font-size: 16px;

  font-weight: 600;

  letter-spacing: -0.3px;

  margin: 0;

}



.product-info p {

  font-size: 13px;

  opacity: .7;

  margin: 4px 0 0 0;

}



/* =================================================

   MODAL / POP UP

=========================================================== */

.modal {

  position: fixed;

  inset: 0;

  background: rgba(0, 0, 0, .8);

  display: none;

  align-items: center;

  justify-content: center;

  z-index: 999;

}



.modal.active {

  display: flex;

}



.modal-content {

  background: #111;

  width: 90%;

  max-width: 420px;

  max-height: 80vh;

  border-radius: 18px;

  overflow-y: auto;

  position: relative;

  color: #fff;

}



.modal-content img {

  width: 100%;

  border-radius: 18px 18px 0 0;

  display: block;

}



.modal-body {

  padding: 20px;

}



.modal-body h2 {

  font-size: 20px;

  margin-bottom: 6px;

}



.modal-body p {

  font-size: 14px;

  opacity: .8;

  margin-bottom: 14px;

}



.modal-price {

  font-size: 18px;

  font-weight: bold;

  margin-bottom: 20px;

}



/* Botón de cerrar unificado */

.modal-close {

  position: absolute;

  top: 14px;

  right: 14px;

  background: rgba(0,0,0,0.4);

  border: none;

  font-size: 22px;

  color: white;

  cursor: pointer;

  width: 32px;

  height: 32px;

  border-radius: 50%;

  display: flex;

  align-items: center;

  justify-content: center;

  transition: background 0.3s ease;

}



.modal-close:hover {

  background: rgba(255, 255, 255, 0.2);

}

/* ===========================

   SECCIÓN PORTFOLIO&INDEX

   =========================== */



.portfolio {

  margin-top: 120px; /* Empuja todo el contenido hacia abajo */

  padding: 0 2% ;    /* Margen a los lados para que no toque los bordes */

  margin-bottom: 70px;

}





/* Card Corregida */

.project {

  position: relative;

  overflow: hidden;

  border-radius: 24px;

  aspect-ratio: 1 / 1; /* Cuadrado perfecto */

  background: #000;    /* Fondo negro por si la imagen tarda en cargar */

}



/* Grid adaptable - Opcional: ajustar a 3 columnas para que se vea más profesional */

.portfolio-grid {

  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 20px;

}



.open-btn {

  position: absolute;

  top: 14px;

  right: 14px;

  width: 34px;

  height: 34px;

  border-radius: 50%;

  border: none;

  background: #fff;

  color: #000;

  font-size: 16px;

  cursor: pointer;

  opacity: 0;

  transition: opacity 0.25s ease;

}



.project:hover .open-btn {

  opacity: 1;

}



.project-link {

  display: block;    /* Ocupa todo el espacio del contenedor */

  width: 100%;

  height: 100%;

  text-decoration: none; /* Quita subrayados del texto */

  color: inherit;        /* Mantiene el color de tus fuentes */

  cursor: pointer;       /* Obliga a que aparezca la "manito" al pasar el mouse */

  position: relative;

  z-index: 5;            /* Asegura que esté por encima de la imagen para recibir el clic */

}



/* IMPORTANTE: Ajuste del zoom para que funcione con el link */

.project:hover .project-link img,

.project:hover .project-link .project-media {

  transform: scale(1.15);

}



.open-btn {

  position: absolute;

  top: 20px;

  right: 20px;

  width: 40px;

  height: 40px;

  border-radius: 50%;

  background: white;

  color: black;

  border: none;

  font-size: 20px;

  display: flex;

  align-items: center;

  justify-content: center;

  z-index: 10; /* Por encima de la imagen y el ruido */

  opacity: 0;

  transition: opacity 0.3s ease, transform 0.3s ease;

}



.project:hover .open-btn {

  opacity: 1;

  transform: rotate(90deg); /* Un pequeño giro al aparecer */

}



/* Imagen y Video principal del proyecto */

.project img,

.project .project-media {

  width: 100%;

  height: 100%;

  object-fit: cover;

  object-position: center; /* Centra la imagen/video */

  transition: transform 1.2s cubic-bezier(.19,1,.22,1); /* Transición más dramática */

  display: block;

  position: relative;

  z-index: 1; /* Capa base */

}



.project {



  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);

}



/* Efecto al pasar el mouse: La sombra se vuelve más profunda */

.project:hover  {

  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);

  transform: scale(1.02); /* El zoom dramático que ya tenías */

}





/* Zoom más impactante al hacer hover */

.project:hover img,

.project:hover .project-media {

  transform: scale(1.15); /* Zoom aumentado */

}


.project-info {

  position: absolute;

  bottom: 0;

  left: 0;

  width: 100%;

  padding: 1.5rem;

  z-index: 3; /* Capa superior */

  background: linear-gradient(

    to top,

    rgba(0,0,0,0.8) 0%,

    rgba(0,0,0,0) 100%

  );

  pointer-events: none; /* Permite que el hover se active en el contenedor */

}



.project-info h4 {

  font-size: 1.85rem;

  font-weight: 500;

}



.project-info p {

  font-size: 0.85rem;

  opacity: 0.8;

}



/* ===========================

   SECCIÓN VENTANAS PORTA_1

   =========================== */



/* Contenedor Principal */

.case {

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 0;

    width: 100%;

    height: min-content;

    padding: 6rem 2rem;

    box-sizing: border-box;

    position: relative;

}



.case h1 {

  font-size: 120px;

}



/* Sección de Información: 4 columnas reales */

.case-info {

    display: grid;

    /* La descripción ocupa 1 columna y los metas las otras 3 */

    grid-template-columns: 3.5fr 0.6fr 0.6fr 0.6fr 0.6fr;

    gap: 2rem;

    width: 100%;

    margin: 1rem 0;

}



.case-description p {

    font-size: 14px;

    line-height: 1.6;

    color: rgba(255, 255, 255, 0.9);

    margin: 0;

}



/* Reset para que los divs dentro de aside funcionen en el grid */

.case-meta {

    display: contents;

}



.case-meta div {

    display: flex;

    flex-direction: column;

    gap: 8px;

}



.case-meta span {

    font-size: 11px;

    letter-spacing: 0.1em;

    color: rgba(255, 255, 255, 0.5); /* Tu token de opacidad */

    text-transform: uppercase;

}



.case-meta p {

    font-size: 13px;

    margin: 0;

}



/* Galería: Ordenada y sin superponerse */



.case-gallery {

    /* Mantenemos el sistema de columnas para no recortar tus fotos */

    column-count: 2;

    /* Reducimos el espacio entre columnas al mínimo */

    column-gap: 30px;

    width: 100%;

    margin-top: 4rem;

}



.case-gallery img,

video {

    width: 100%;

    height: auto;

    display: block;

    /* Reducimos el espacio vertical para que coincida con el horizontal */

    margin-bottom: 30px;

    break-inside: avoid;

   

    transition: filter 0.3s ease;

}



.case-gallery img,

video:hover {

    /* Al estar tan juntas, un cambio de brillo ayuda a saber cuál estás viendo */

    filter: brightness(1.2);

}



/* Responsivo */

@media (max-width: 800px) {

    .case-gallery {

        column-count: 2; /* Mantenemos 2 incluso en móvil para el look "pegadito" */

        column-gap: 4px;

    }

    .case-gallery img {

        margin-bottom: 4px;

    }

}







@keyframes fadeIn {

    from { opacity: 0; transform: translateY(20px); }

    to { opacity: 1; transform: translateY(0); }

}



.case-gallery img,

video {

    animation: fadeIn 0.8s ease forwards;

}



/***********************************************************************/

/***********************************************************************/

/* ===== SECCIÓN ABOUT ME ===== */

/***********************************************************************/

/***********************************************************************/

#about-me {

  min-height: 100vh;

  display: grid;

  place-items: center;

  background: var(--bg-negro);

}



.about-container {
  position: relative;
  width: 100%;
  max-width: 900px; /* Bajamos de 1100 a 900 para "cerrar" el círculo */
  height: 600px;
  margin: 0 auto;
  overflow: visible; /* Importante para que los brillos no se corten */
}



.about-center {

  position: absolute;

  top: 50%;

  left: 50%;

  transform: translate(-50%, -50%);

  z-index: 3;



  display: flex;

  flex-direction: column;   /* 👈 clave */

  align-items: center;      /* 👈 centra horizontal */

}



.about-photo {

  width: 360px;

  border-radius: 16px;

  border: 12px solid #ec9abc;

  transition: box-shadow 0.25s ease, transform 0.25s ease;

}



.about-photo:hover {

  box-shadow: 0 12px 28px rgba(236, 154, 188, 0.18);

  transform: scale(1.04);

}



.about-name {

  margin-top: 22px;

  background: #ec9abc;

  padding: 4px 12px 4px 12px;

  border-radius: 12px;

  display: inline-block;

  font-weight: 600;

}



.about-tagline {

  margin-top: 10px;

}



.about-icon {

  position: absolute;

  text-align: center;

}



.about-side {
  position: absolute;
  top: 50px;
  bottom: 0;
  width: 250px; /* Un poco más estrechos para que no ocupen tanto espacio */
  z-index: 2;
}


.about-side.left {
  left: 10%; /* En lugar de 0, los alejamos del borde izquierdo */
}


.about-side.right {
  right: 10%; /* En lugar de 0, los alejamos del borde derecho */
}



/* =========================================

   ABOUT ICON – SOMBRAS SUAVES EN HOVER

========================================= */





.about-icon img {

  width: 90px;

  background: transparent !important; /* Asegura que no haya fondo */

  transition: transform 0.25s ease, filter 0.25s ease;

  display: block;

}



/* 3. Brillo que sigue la silueta (Drop-shadow) */

/* He subido un poco la opacidad (0.6) para que el color se note más sobre el negro */



/* Azul */

.about-side.left .about-icon:nth-child(1):hover img {

  filter: drop-shadow(0 0 15px rgba(80, 140, 255, 0.6));

}



/* Morado */

.about-side.left .about-icon:nth-child(2):hover img {

  filter: drop-shadow(0 0 15px rgba(155, 95, 255, 0.6));

}



/* Naranja */

.about-side.left .about-icon:nth-child(3):hover img {

  filter: drop-shadow(0 0 15px rgba(255, 160, 80, 0.6));

}



/* Fucsia */

.about-side.right .about-icon:nth-child(1):hover img {

  filter: drop-shadow(0 0 15px rgba(255, 80, 180, 0.6));

}



/* Amarillo */

.about-side.right .about-icon:nth-child(2):hover img {

  filter: drop-shadow(0 0 15px rgba(255, 215, 90, 0.6));

}



/* Rosado */

.about-side.right .about-icon:nth-child(3):hover img {

  filter: drop-shadow(0 0 15px rgba(255, 160, 200, 0.6));

}

/*********************************************************/

/*********************************************************/



/* Lado Izquierdo */
.about-side.left .about-icon:nth-child(1) { top: 60px; left: 20px; }
.about-side.left .about-icon:nth-child(2) { top: 240px; left: -10px; } /* Sale un poquito */
.about-side.left .about-icon:nth-child(3) {
  bottom: 190px; /* Antes estaba en 80px, lo subimos casi el doble */
  left: 50px;
}

/* Lado Derecho */
.about-side.right .about-icon:nth-child(1) { top: 80px; right: 20px; }
.about-side.right .about-icon:nth-child(2) { top: 260px; right: -10px; }
.about-side.right .about-icon:nth-child(3) {
  bottom: 200px; /* Antes estaba en 90px, ahora queda más arriba */
  right: 60px;
}


/* 2. Efecto Hover General */

.about-icon:hover img {

  transform: scale(1.1);

}



.about-icon p {

  font-size: 13px;

  opacity: 0.7;

  margin-top: 6px;

}

@media (max-width: 768px) {
  .about-container {
    transform: scale(0.8); /* Encogemos toda la "constelación" un 20% */
    height: 500px;
  }
  
  .about-photo {
    width: 250px; /* Foto más pequeña para dejar aire a los iconos */
  }

  .about-side.left { left: 0; } /* En móvil sí aprovechamos todo el ancho */
  .about-side.right { right: 0; }
  
  .about-icon img {
    width: 60px; /* Iconos más pequeños para que no se encimen */
  }
}


/* ================= 1. POPUP:RESET Y BASE ================= */

.popup, .popup * {

    outline: none;

    box-sizing: border-box;

}



/* ================= 2. OVERLAY ================= */

.popup {

  position: fixed;

  inset: 0;

  z-index: 9999;

  background: rgba(0, 0, 0, 0.65);

  display: flex;

  justify-content: center;

  align-items: center;

  opacity: 0;

  pointer-events: none; /* Evita clics cuando está oculto */

  transition: opacity 0.3s ease;

}



.popup:target {

  opacity: 1;

  pointer-events: auto; /* Permite clics cuando está abierto */

}



/* ================= 3. CONTENEDOR PRINCIPAL ================= */

.popup-content {

    background: var(--panel-bg, #f5f5f5);

    border-radius: 25px;

    padding: 30px; /* Más aire para que se vea premium */

    width: 420px;

    max-width: 95%;

    max-height: 85vh;

    display: flex;

    position: relative;

    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);

    overflow: hidden;

}



.popup-content:hover {

    width: 780px; /* Un poco más ancho para que luzca la galería */

}



/* ================= 4. LAYOUT INTERNO ================= */

.popup-flex-container {

    display: flex;

    width: 100%;

    height: 100%;

    align-items: stretch; /* Estira ambos lados al mismo alto */

}



/* ================= 5. LADO DEL TEXTO (JERARQUÍA CLAVE) ================= */

.popup-text-side {

    flex: 1;

    display: flex;

    flex-direction: column;

    /* justify-content: space-between distribuye: Título (top) | Texto (centro) | Botón (bottom) */

    justify-content: space-between;

    min-height: 350px;

}



.popup-text-side h3 {

    color: var(--subtitles);

    margin: 0;

    font-size: 1.8rem;

    text-transform: lowercase;

}



.popup-text-side p, .popup-list {

    margin: 20px 0; /* Separa el párrafo de los extremos */

    color: var(--bg-negro, #333);

    font-size: 15px;

    line-height: 1.6;

    padding-right: 15px;

}



/* Ajuste específico para la lista de "mis credos" */

.popup-list {

    padding-left: 20px;

    list-style-type: square;

}



.popup-list li {

    margin-bottom: 10px;

    color: var(--bg-negro, #333);

}


/* ================= 6. BOTÓN CIRCULAR (EL DE TU DIBUJO) ================= */

.popup-arrow-btn {

    width: 50px;

    height: 50px;

    border: 2px solid var(--subtitles);

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    color: var(--subtitles);

    cursor: pointer;

    transition: all 0.3s ease;

    font-size: 1.2rem;

    background: transparent;

    user-select: none;

    /* Asegura que se quede abajo a la izquierda */

    margin-right: auto;

}



.popup-arrow-btn:hover {

    background: var(--subtitles);

    color: white;

    transform: scale(1.05);

}



/* ================= 7. GALERÍA (CARRUSEL POR CLIC) ================= */

.popup-gallery-side {

    width: 0;

    opacity: 0;

    display: flex;

    align-items: center;

    transition: width 0.4s ease, opacity 0.3s ease;

}



.popup-content:hover .popup-gallery-side {

    width: 380px;

    margin-left: 30px;

    opacity: 1;

}



.gallery-container {

    width: 100%;

    aspect-ratio: 1 / 1;

    overflow: hidden;

    border-radius: 20px;

    cursor: pointer;

    box-shadow: 0 10px 30px rgba(0,0,0,0.1);

}



.gallery-wrapper {

    display: flex;

    width: 200%;

    height: 100%;

    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);

}



.gallery-wrapper img {

    width: 50%;

    height: 100%;

    object-fit: cover;

}



/* ================= 8. BOTÓN CERRAR (X) ================= */

.popup-close {

    position: absolute;

    top: 20px;

    right: 25px;

    font-size: 26px;

    text-decoration: none;

    color: var(--subtitles);

    z-index: 10;

    transition: transform 0.2s ease;

}



.popup-close:hover {

    transform: scale(1.2) rotate(90deg);

}





/***********************************************************************/

/*PREFOOTER*/

/***********************************************************************/

/***********************************************************************/



.pre-footer {

  position: fixed;

  bottom: 0;

  left: 0;

  width: 100%;

  z-index: 9999;

  /* El padding lateral debe ser IGUAL al de .portfolio */

  padding: 4rem 2% 2rem;

  box-sizing: border-box; /* Asegura que el padding no sume al ancho total */

 

  background: linear-gradient(to top, rgba(15,14,14,1), rgba(15,14,14,0));

  pointer-events: none;

}



.pre-footer-inner {

  display: flex;

  justify-content: space-between;

  align-items: center;

  font-family: "Manrope", sans-serif;

  font-size: 0.85rem;

 

  /* ELIMINAMOS max-width: 1200px y margin: 0 auto */

  width: 100%;

  pointer-events: auto;

}



.pre-footer a {

  color: #fff;

  text-decoration: none;

  opacity: 0.7;

  transition: all 0.3s ease;

}



.pre-footer a:hover {

  opacity: 1;

  color: #ffd98e; /* Tu color accent */

}



/* ============================================================

   FOOTER FULL

============================================================ */

/* 1. Ajuste del Footer General */

.footer-full {

  width: 100%;

  background: var(--bg-negro);

  color: #fff;

  padding: 4rem 0 2rem;

}



.footer-inner {

  max-width: 1400px;   /* usa el mismo ancho que tu nav */

  margin: 0 auto;

  padding: 0 2vw;      /* poco espacio lateral */

}





/* 2. El contenedor que manda el ancho (Igual que tu Nav) */

.footer-grid {

  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 3rem;

  align-items: start;

}







/* 3. Títulos de las columnas */

.footer-full h4 {

  color: #fff;

  font-weight: 600;

  margin-bottom: 1.2rem;

  font-size: 1rem;

  text-transform: uppercase;

}



/* 4. Manejo de Enlaces (Aquí estaba el desorden) */

.footer-full a,

.plain-link {

  display: block;

  width: 100%; /* Permite que ocupen su propia línea sin forzar anchos raros */

  color: #fff;

  text-decoration: none;

  margin-bottom: 0.6rem;

  font-size: 0.9rem;

  opacity: 0.8;

  transition: all 0.3s ease;

}



.footer-full a:hover,

.plain-link:hover {

  color: var(--subtitles);

  opacity: 1;

  transform: translateX(3px); /* Pequeño efecto de movimiento al pasar el mouse */

}



/* 5. Copyright centrado y alineado */

.footer-copy {

  margin-top: 4rem;

  padding-top: 1.5rem;

  border-top: 1px solid rgba(255,255,255,0.1);

  font-size: 0.8rem;

  opacity: 0.5;

}





 

  .footer-copy {

    text-align: center;

  }





.footer-full a:hover,

.plain-link:hover {

  opacity: 1;

  color: var(--subtitles);

  transform: translateX(3px);

}



.footer-full a:focus-visible {

  outline: none;

  text-decoration: underline;

  text-underline-offset: 4px;

}



/**/







.container {

    max-width: 900px;

    margin: 100px auto;

    background: #1a1a1a;

    padding: 30px;

    border-radius: 12px;

    border: 1px solid #222;

}



h1, h2 {

    color: #fff;

    margin-top: 25px;

}



p, li {

    color: #cfcfcf;

}



ul {

    margin-left: 40px;

}



.tag {

    display: inline-block;

    padding: 6px 12px;

    background: #1a1a1a;

    border-radius: 8px;

    font-size: 13px;

    margin-bottom: 10px;

    border: 1px solid #333;

    color: #ccc;

}




.cta-fixed {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
}

.cta-fixed img {
  width: 140px;
  height: auto;
  display: block;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Efecto al pasar el mouse */
.cta-fixed img:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.cta-fixed img {
  animation: pulse 3s infinite;
}











.legal-container {
    max-width: 900px;
    margin: 100px auto;
    background: #1a1a1a;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #222;
}

.legal-container h1,
.legal-container h2 {
    color: #fff;
    margin-top: 25px;
}

.legal-container p,
.legal-container li {
    color: #cfcfcf;
}

.legal-container ul {
    margin-left: 40px;
}

.legal-container .tag {
    display: inline-block;
    font-size: 0.8rem;
    color: #aaa;
    background: #222;
    padding: 6px 10px;
    border-radius: 999px;
    margin-bottom: 20px;
}



/* ================= BLOG EDITORIAL ================= */

.novedades {
  max-width: 900px;
  margin: 0 auto;
  padding: 120px 20px;
}

.novedad-bloque h3 {
  text-align: center;
  margin-bottom: 30px;
}

.novedad-bloque {
  margin-bottom: 80px;
}

.novedad-bloque h3 {
  font-family: var(--font-subtitle);
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  color: #AF041A;
}

/* ================= PROJECT BLOG ================= */

.novedades {
  max-width: 1200px;
  margin: 0 auto;
  padding: 160px 20px 80px; /* más espacio arriba */
}


/* ================= BLOG PROJECT GRID ================= */

.projects-blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

/* tarjeta */
.project-blog {
  position: relative;
  height: 360px;
  z-index: 1;
}

.project-blog:hover,
.project-blog:focus-within {
  z-index: 10;
}

/* link contenedor */
.project-blog .project-link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  z-index: 2;
}

/* imagen full cover */
.project-blog .project-media {
  position: absolute;
  inset: 0;
}

.project-blog img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* overlay inferior */
.project-blog .project-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7),
    rgba(0, 0, 0, 0)
  );
  color: #fff;
}

.project-blog h4 {
  margin: 0;
  font-size: 1.2rem;
}

.project-blog p {
  margin: 4px 0 0;
  font-size: 0.75rem;
  opacity: 0.8;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 900px) {
  .projects-blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .projects-blog-grid {
    grid-template-columns: 1fr;
  }
}

/* ================= VISITAS ================= */

.visitas-bloque {
  text-align: center;
  margin-top: 80px;
}

.visitas-box {
  display: inline-flex;
  align-items: center;
  gap: 50px;
  padding: 5px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* número */
#visitas {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 1px;
}

/* texto */
.visitas-label {
  font-size: 0.75rem;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 1px;
}
