@charset "utf-8";
/* CSS Document */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&family=Manrope:wght@200..800&family=Nanum+Pen+Script&display=swap');

:root {
  /* Light mode variables */
  --bg-color: #ececec;
  --menu-text: #1a1a1a;
  --font-menu: "Manrope", sans-serif;
  --bg-header: rgba(236, 233, 233, 0.8);
  --overlay-bg: rgba(255,255,255,0.5);
  --text-color: #535557 ;
  --title-color: #222222;
  --bg-descripcion:#e9e4e1;
  --bg-body: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='30' height='30'><circle cx='2' cy='2' r='1' fill='rgba(0,0,0,0.10)'/></svg>");
  --overlay-text-color: rgba(233, 200, 217, 0.4);
  --shelf-bg: linear-gradient(to bottom, #f0f0f0, #e0e0e0);
  --shelf-edge-top: rgba(255, 255, 255, 0.01);
  --shelf-edge-bottom: rgba(0, 0, 0, 0.1);
  --book-back-cover: #111111;
  --book-page: #ffffff;
  --book-page-border: rgba(0, 0, 0, 0.2);
  --book-shadow: rgba(0, 0, 0, 0.15);
  --book-shadow-strong: rgba(0, 0, 0, 0.35);
  --side-book-bg: linear-gradient(to right, #444 0%, #666 50%, #444 100%);
  --side-book-text: #f0f0f0;
  --side-book-decoration: rgba(255, 255, 255, 0.3);
  --toggle-dot: #333333;
  --cols: 12;
  --gutter: 16px; /* espacio entre columnas (ajusta a tu gusto) */
  --rounded-corners: 1em;
  --icon-color: #111; 
  --icon-opacity:0.7;
}
.dark-mode {
  /* Dark mode variables */
  --bg-color: #3f3b3a;
  --menu-text: #ffffff;
    --bg-header: rgba(34, 32, 31, 0.8);
  --overlay-bg: rgba(0,0,0,0.5);
  --text-color: #ececec;
  --title-color: #ffffff;
  --bg-descripcion:rgba(0,0,0,0.4);
  --bg-body: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='30' height='30'><circle cx='2' cy='2' r='1' fill='rgba(0,0,0,0.40)'/></svg>");
  --overlay-text-color: rgba(233, 200, 217, 0.4);
  --shelf-bg: linear-gradient(to bottom, #2a2a2a, #1a1a1a);
  --shelf-edge-top: rgba(255, 255, 255, 0.03); /* Lighter in dark mode */
  --shelf-edge-bottom: rgba(0, 0, 0, 0.3);
  --book-back-cover: #ffffff; /* Changed to white in dark mode */
  --book-page: #ffffff; /* Changed to white in dark mode */
  --book-page-border: rgba(0, 0, 0, 0.2);
  --book-shadow: rgba(0, 0, 0, 0.3);
  --book-shadow-strong: rgba(0, 0, 0, 0.5);
  --side-book-bg: linear-gradient(to right, #222 0%, #444 50%, #222 100%);
  --side-book-text: #ffffff;
  --side-book-decoration: rgba(255, 255, 255, 0.2);
  --toggle-dot: #ffffff;
  --icon-color: #fff;

}
/*estilos columnas*/
/* GRID 12 columnas (float-based) */
/* Variables ajustables */
/* Reinicio práctico */
html{
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }

/* Contenedor/row que agrupa columnas */
.row {
  width: 100%;
  margin-left: calc(var(--gutter) / -2);
  margin-right: calc(var(--gutter) / -2);
  /* clearfix clásico para floats */
  /* si prefieres, puedes usar .row::after { content:""; display:block; clear:both; } */
}
.row::after {
  content: "";
  display: table;
  clear: both;
}

/* Clase base de columna */
.col {
  float: left;
  padding-left: calc(var(--gutter) / 2);
  padding-right: calc(var(--gutter) / 2);
  min-height: 1px; /* útil si no hay contenido */
}

/* Anchos para 1..12 columnas (basado en 12 columnas) */
.col-1  { width: calc(100% / 12 * 1);  }
.col-2  { width: calc(100% / 12 * 2);  }
.col-3  { width: calc(100% / 12 * 3);  }
.col-4  { width: calc(100% / 12 * 4);  }
.col-5  { width: calc(100% / 12 * 5);  }
.col-6  { width: calc(100% / 12 * 6);  }
.col-7  { width: calc(100% / 12 * 7);  }
.col-8  { width: calc(100% / 12 * 8);  }
.col-9  { width: calc(100% / 12 * 9);  }
.col-10 { width: calc(100% / 12 * 10); }
.col-11 { width: calc(100% / 12 * 11); }
.col-12 { width: calc(100% / 12 * 12); }

/* Opcional: utilidades para centrar y quitar float (por si quieres filas internas) */
.clearfix { clear: both; display: block; }
.no-float { float: none; }

/* Estilos de ejemplo visual (puedes quitarlos) */
.demo {
  background: rgba(0,0,0,0.06);
  border: 1px dashed rgba(0,0,0,0.08);
  padding: 8px;
  text-align: center;
  font-size: 14px;
}

/*END estilos columnas*/
body {
  background-color: var(--bg-color);
 font-family: "Manrope", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  background-image: var(--bg-body);
  padding: 0;
  height: 100vh;
  color: var(--text-color);
  transition: background-color 0.4s ease, color 0.4s ease;
}

h1 {
  text-align: center;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
}
h3{
    font-family: "Nanum Pen Script", cursive;
  font-weight: 400;
  font-style: normal;
}
h2{
    font-family:  "Manrope", sans-serif;
  font-style: normal;
    font-weight: 400;
}
header,
.overlay,
.gallery-item,
.filter-btn{
  transition: all 0.4s ease;
}
/* MENÚ RESPONSIVE FULLSCREEN */

 header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 160px;
    z-index: 1000;

    background: transparent;
    border-bottom: 1px solid transparent;

    transition:
        background-color .3s ease,
        backdrop-filter .3s ease,
        border-bottom-color .3s ease;
}

header.scrolled{
    background: var(--bg-header);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0,0,0,.06);
}

.header-inner{
    max-width:1400px;
    width:100%;
    height:100%;

    margin:0 auto;
    padding:0 40px;

    display:flex;
    align-items:center;
    justify-content:space-between;
}
.menu{
  display: flex;
  gap: 65px;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

    .menu a {
       position: relative;
  text-decoration: none;
  color: var(--menu-text);
  font-family:var(--font-menu);
  font-size: 1.2em;
    }
.menu a::after{
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0%;
  height: 3px;
 background:
linear-gradient(
  to right,
  #d8b7c3 0%,
  #c6a8b3 50%,
  #ae939d 100%
);
    filter: blur(0.3px);
  transform: translateX(-50%) rotate(-1deg);

  transition:
    width 0.45s cubic-bezier(.68,-0.55,.27,1.55),
    transform 0.3s ease;

  opacity: 0.9;

  border-radius:
    45% 55% 50% 40% /
    50% 45% 55% 50%;
}
.menu a:hover::after{
  width: 85%;
  transform: translateX(-50%) rotate(1deg);
}
   /* tamaño general */
.logo img {
  height: 150px;
  width: auto;
  display: block;
  margin: 0 2em;
}

/* LIGHT MODE (por defecto) */
.logo-light {
  display: block !important;
}

.logo-dark {
  display: none !important;
}

/* DARK MODE */
.dark-mode .logo-light {
  display: none !important;
}

.dark-mode .logo-dark {
  display: block !important;
}
@keyframes inkWobble{
  0%{ transform: translateX(-50%) rotate(-1deg); }
  50%{ transform: translateX(-50%) rotate(1deg); }
  100%{ transform: translateX(-50%) rotate(-1deg); }
}
.menu a.active::after{
  width: 85%;
  animation: inkWobble 2s infinite ease-in-out;
}
.menu a.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
/*dark mode*/
.mobile-actions{
      display: flex;
      align-items: center;
      gap: 18px;
      margin-left: auto;
    }

.theme-toggle{
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.theme-toggle svg{
  width: 24px;
  height: 24px;
  fill: var(--text-color);
  position: absolute;
  transition: all 0.4s ease;
}
.icon-sun{
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.icon-moon{
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

.dark-mode .icon-sun{
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

.dark-mode .icon-moon{
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/*end dark mode*/
    /* HAMBURGUESA HANDDRAWN */
    .hamburger {
      display: none;
      width: 34px;
      height: 28px;
      position: relative;
      cursor: pointer;
      z-index: 20;
      margin-left: auto;
    }

    .hamburger span {
      position: absolute;
      width: 100%;
      height: 3px;
      background: #333;
      left: 0;
      border-radius: 2px;
      transition: transform 0.5s cubic-bezier(.68,-0.55,.27,1.55), top 0.4s ease, opacity 0.3s;
    }

    .hamburger span:nth-child(1) { top: 0; transform: rotate(-2deg); }
    .hamburger span:nth-child(2) { top: 12px; transform: rotate(1deg); }
    .hamburger span:nth-child(3) { top: 24px; transform: rotate(-1deg); }

    /* WOBBLE HOVER */
    .hamburger:hover span {
      animation: wobble 0.4s ease;
    }

    @keyframes wobble {
      0% { transform: translateX(0) rotate(0deg); }
      25% { transform: translateX(-2px) rotate(-2deg); }
      50% { transform: translateX(2px) rotate(2deg); }
      75% { transform: translateX(-1px) rotate(-1deg); }
      100% { transform: translateX(0) rotate(0deg); }
    }

    /* ANIMACIÓN A X ORGÁNICA */
    .hamburger.active span:nth-child(1) {
      top: 12px;
      transform: rotate(45deg) scale(1.1);
    }

    .hamburger.active span:nth-child(2) {
      opacity: 0;
      transform: scale(0.5);
    }

    .hamburger.active span:nth-child(3) {
      top: 12px;
      transform: rotate(-45deg) scale(1.1);
    }

    /* OVERLAY */
    .overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100vh;
      backdrop-filter: blur(10px);
      background: var(--overlay-bg);
      display: flex;
      justify-content: center;
      align-items: center;
      opacity: 0;
      pointer-events: none;
      transition: 0.5s ease;
      z-index: 5;
    }

    .overlay.active {
      opacity: 1;
      pointer-events: all;
    }

    .overlay nav ul {
      list-style: none;
      text-align: center;
    }

    .overlay nav li {
      margin: 25px 0;
      opacity: 0;
      transform: translateY(10px);
      animation: fadeUp 0.5s forwards;
    }

    .overlay.active nav li:nth-child(1) { animation-delay: 0.1s; }
    .overlay.active nav li:nth-child(2) { animation-delay: 0.2s; }
    .overlay.active nav li:nth-child(3) { animation-delay: 0.3s; }
    .overlay.active nav li:nth-child(4) { animation-delay: 0.4s; }

    @keyframes fadeUp {
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .overlay nav a {
      font-size: 30px;
      text-decoration: none;
      color: #222;
    }


.container{
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}
section{
     max-width: 1400px;
    width: 90%;
    margin: 10em auto;
    display: block;
    
}
section#top{
  scroll-margin-top: 160px; /* altura de tu menú */
}
/*INICIO texto header*/
#top{
    padding: 0;
}
.bg-gris{
    background-color:var(--bg-descripcion);
    border-radius: var(--rounded-corners);
}
#descripcion .row, #about .row{
    display: flex;
    align-items: center;
}
.descripcion-img img{
    width: 100%;
    height: auto;
    display: block;
     transform: scaleX(-1);
}

.descripcion-texto{
    flex-direction: column;
    align-items: flex-start;
    padding: 5em;
}
.descripcion-texto h1,
.descripcion-texto h3,
.descripcion-texto p{
    width: 100%;
}

.descripcion-texto p{
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--text-color);
}
.descripcion-texto h1{
    font-size: 6em;
    color: var(--title-color);
    text-align: left;
    padding: 0;
    margin: 0;
    line-height: 1;
}
.descripcion-texto h2{
    color: var(--text-color);
    text-align: left;
    margin: 0;
    padding: 0;
}
.descripcion-texto h3{
    font-size: 3rem;
    color: var(--title-color);
     display: inline-block;
    transform: rotate(-6deg);
    margin:0 0 0.5em 0;
}
/*END texto header*/

/*INICIO GALERIA INDEX*/

.content-portfolio{
    width: 100%;
      margin: 5rem auto;
    padding: 0 5rem;
    transition: padding 0.3s ease-in-out;
}
.filters {
  margin: 1em 0 3em 0;
}

.filter-btn {
  border: none;
  padding: 8px 16px;
  margin: 5px;
  cursor: pointer;
  font-weight: bold;
  position: relative;
  overflow: hidden;
  transition: color 0.3s ease;
  color: #3b5b95;
  background: rgba(0,0,0,0);
}

/* Línea animada con pseudo-elemento */
.filter-btn::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -2px; /* Un poco más abajo para que no toque las letras */
  width: 0;
  height: 6px;  /* Un poco más gruesa para que se note el trazo manual */
  background-color: #e9c8d9;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Efecto elástico */
  transform: translateX(-50%) rotate(-1deg); /* Ligera inclinación manual */
  
  /* BORDES IRREGULARES: El toque clave "hecho a mano" */
  border-radius: 45% 55% 50% 40% / 50% 45% 55% 50%;
  
  /* Opacidad suave para que parezca tinta/marcador */
  opacity: 0.8;
}

.filter-btn:hover::after {
  width: 90%; /* Que no llegue al 100% para que se vea más natural */
}



/* Botón activo */
.filter-btn.active::after {
  width: 80%;
}

/* Opcional: cambiar color del texto activo */
.filter-btn.active {
  color: #3b5b95;
}

.title-gallery h1{
    color: var(--title-color);
    text-align: left;
    margin: 0;
    padding: 0;
    
}
.title-gallery{
    display: flex;
    align-items: center; /* centra verticalmente */
    margin: 0 auto 1.5em auto;
}

.title-gallery::after{
    content: "";
    width: 120px;
    height: 1px;
    background: var(--text-color);
    margin-left: 1rem;
}
.gallery {
  column-count: 4;
  column-gap: 15px;
    margin-top: 200px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Animación de carga orgánica */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px) rotate(-2deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 15px;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  transform: translateY(30px);
  opacity: 0;
  animation: fadeInUp 0.6s forwards;
}

/* Estilo overlay (texto) */
.gallery-item .overlay-gallery {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-weight: bold;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease-out;
  border-radius: 0 0 10px 10px;
}

/* Hover efecto orgánico */
.gallery-item:hover .overlay-gallery {
  opacity: 1;
  transform: translateY(0);
}

/* Asegurarse que las imágenes ocupen todo el contenedor */
.gallery-item img {
  width: 100%;
  display: block;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05) rotate(-1deg);
}
/*FIN GALERIA INDEX*/

/*INICIO DETALLE PROYECTO*/
.project-container {
  max-width: 1000px;
  margin: 10em auto 0;
  padding: 20px;

  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* Título */
.project-title {
  text-align: right;
  text-transform: uppercase;
  color: var(--title-color);
}
.project-description a{
   color: var(--title-color);
    font-weight: 600;
}
/* Todas las imágenes */
.project-container img {
  width: 100%;
  height: auto;
  display: block;
}

/* Imágenes a ancho completo (las que tú elijas) */
.project-container img.full {
  grid-column: 1 / -1;
}
div.sobremi{
    padding: 5em;
}
.sobremi h1{
    text-align:left;
}
.sobremi h2{
    text-align:left;
    color: var(--title-color)
}
.sobremi h2 strong {
    text-decoration: underline;
    font-weight: 600;
}
.sobremi p{
    text-align: justify;
}
/*sobre mi*/
.about-container{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:60px;
}

.sobremi{
    flex:2;
}

.grafica{
    flex:1;
}

.grafica img{
    width:100%;
    display:block;
}

.skills-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:30px;
}

.hand-button{
    font-family: "Manrope", sans-serif;
    font-size: 1.2rem;
    padding: 0.8em 1.6em;
    background: transparent;
    color: var(--title-color);
    border: 2px solid #222222;
    border-radius: 8px; /* irregular para look handmade */
    cursor: pointer;
    text-decoration: none;
    display: table;
}

/* hover */
.hand-button:hover{
    transform: rotate(1deg) translateY(-2px);
}
.contact-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 5em;
   
}

.social-icons {
    display: flex;
    gap: 12px;
     align-items: center;
    margin: auto 0;
}

.social-icons {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: auto 0;
}

.icon {
  height: 40px;
  width: auto;
  transition: 0.2s ease;
  color: var(--icon-color);
  opacity: var(--icon-opacity);
}

#about{
    margin: 10rem auto 4rem auto;
    width: 100%;
    padding: 0;
}
.skills {
    margin: 30px auto 0 auto;
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 20px;
}

.skills-box {
    display: flex;
    flex-direction: column;
}

.skills-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.skills-title h2 {
    margin: 0;
    font-size: 1.5rem;
}

.skills-title img {
    width: 24px;
    height: 24px;
    opacity: 0.8;
}


.skills-tags {
  display: block;
}

.skills-tags span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
  opacity: 0.75;
  line-height: 1.4;
}
footer{
text-align:center;
    padding:30px 20px;
    font-size:14px;
    color:#888;
    margin-top:var(--text-color);
    border-top:1px solid #e5e5e5;
}
footer nav{
   margin:10px 0;
}
footer .icon {
  height: 30px;
    margin: 0 0.5em;
  width: auto;
  transition: 0.2s ease;
  color: var(--icon-color);
  opacity: var(--icon-opacity);
}

/* responsive */

    @media (max-width: 1024px) {
  .gallery { column-count: 3; }
}


    @media (max-width:900px){

    .about-container{
        flex-direction:column-reverse;
        gap:40px;
        padding:40px 20px;
    }

    .sobremi,
    .grafica{
        width:100%;
    }

    .grafica{
        max-width:350px;
        margin:auto;
    }

    .skills-grid{
        grid-template-columns:1fr;
    }
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }
    div.sobremi {
    padding: 2em;
}   
    .grafica,
    .sobremi {
        width: 90%;
    }
    section{
        width: 100%
    }
    .descripcion-texto{
        padding: 2em;
    }
    .descripcion-texto h1{
        font-size: 4em;
    }
    .descripcion-texto h2{
        text-align: center;
    }
    .descripcion-texto h3{
    margin:0;
}
    .descripcion-texto p{
        text-align: center;
    }
    .hand-button {
        padding: 0.8em 1em;
    }
  .gallery { column-count: 2; }
    
    #descripcion .row {
    flex-direction: column;
    align-items: center;
     text-align: center;
  }
    .container{
        padding: 0;
    }
  .descripcion-img,
  .descripcion-texto {
    width: 100%;
  }

    .descripcion-img img{
        max-width: 80%;
        margin: 0 auto;
    }
    .descripcion-texto p{
        font-size: 1.5rem;
    }
    .col-sm-12 { width: calc(100% / 12 * 12); }

  .menu{
    display: none;
  }

  .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .hamburger{
    display: flex;
  }
    .skills-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
      .project-container {
        grid-template-columns: 1fr;
    }

    .project-title,
    .project-description {
        width: 100%;
    }

    .project-title {
        text-align: left; /* opcional */
    }
}

@media (max-width: 480px) {
  .gallery { column-count: 1; }
}