:root {
    /*--bg: #f3e9df;*/
    --text: #111;
    --bg: #fefdf8;
  }
  
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
    background: var(--bg);
    color: var(--text);
    height: 100vh;
    overflow: hidden;
  }
  
  .layout {
    display: flex;
    height: 100vh;
  }
  
  /* === ASIDE FIJO === */
  
  aside {
    width: 420px;
    padding: 32px 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  
  .portrait {
    width: 100%;
    aspect-ratio: 4 / 5;
    position: relative;
    border-radius: 24px;
    padding: 12px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .portrait img {
    width: 22rem;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 18px;
  }
  
  h1 {
    font-size: 28px;
    line-height: 1.1;
    font-weight: 700;
  }
  
  .role {
    margin-top: 4px;
    font-size: 22px;
  }
  
  .bio {
    font-size: 14px;
    line-height: 1.4;
    margin-top: 12px;
  }
  
  .links {
    margin-top: 16px;
    display: flex;
    gap: 24px;
    font-size: 18px;
  }
  
  .links a {
    text-decoration: none;
    color: inherit;
    position: relative;
  }
  
  .links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 1px;
    background: var(--text);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.2s;
  }
  
  .links a:hover::after {
    transform: scaleX(1);
  }
  
  /* === ZONA PRINCIPAL === */
  
  main {
    flex: 1;
    position: relative;
    background: #000;
  }
  
  main video,
  main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  
  /* ====== MENÚ HAMBURGUESA + OVERLAY FULLSCREEN ====== */
  
  .menu-toggle {
    position: fixed;
    top: 24px;
    right: 32px;
    width: 30px;
    height: 22px;
    border: none;
    padding: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 40;
  }
  
  .bar {
    width: 100%;
    height: 2px;
    background: #000;
    border-radius: 999px;
    transition: transform 0.25s ease, opacity 0.25s ease, background 0.2s;
  }
  
  /* Hamburguesa -> X */
  .menu-toggle.open .bar:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }
  
  .menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.open .bar:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }
  
  /* Color claro cuando está sobre fondo oscuro */
  .menu-toggle.light .bar {
    background: var(--bg); /* crema */
  }
  
  /* Overlay que cubre toda la pantalla */
  .menu-panel {
    position: fixed;
    inset: 0;
    background: #000;
    color: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 30;
  }
  
  .menu-panel.open {
    opacity: 1;
    pointer-events: auto;
  }
  
  .menu-panel nav {
    text-align: center;
    font-size: clamp(2.2rem, 3vw + 1rem, 3.8rem);
    letter-spacing: 0.08em;
    font-weight: 500;
  }
  
  .menu-panel nav a {
    display: inline-block;
    text-decoration: none;
    color: inherit;
    margin: 0.25em 0;
    text-transform: uppercase;
  }
  
  /* Subrayado tipo mockup */
  .menu-panel nav a {
    position: relative;
  }
  
  .menu-panel nav a::after {
    content: "";
    display: block;
    margin-top: 0.05em;
    height: 1px;
    background: currentColor;
  }
  
  .menu-panel nav a:nth-child(2)::after {
    content: none;
  }
  
  /* Responsive */
  @media (max-width: 900px) {
    body {
      overflow: auto;
    }
  
    .layout {
      flex-direction: column;
      height: auto;
    }
  
    aside {
      width: 100%;
    }
  
    main {
      height: 60vh;
    }
  }
  /* ====== CONTACTO ====== */

.contact-main {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: var(--bg);
  }
  
  .contact-wrapper {
    width: 100%;
    max-width: 640px;
    margin-top: 80px;
    text-align: center;
  }
  
  .contact-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    margin-bottom: 48px;
  }
  
  .contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
  }
  
  .contact-input,
  .contact-textarea {
    width: 100%;
    max-width: 640px;
    border: none;
    border-radius: 999px;
    padding: 18px 28px;
    font-size: 18px;
    font-family: inherit;
    background: #ffffff;
    outline: none;
  }
  
  .contact-textarea {
    min-height: 110px;
    resize: none;
  }
  
  .contact-input::placeholder,
  .contact-textarea::placeholder {
    color: #999;
  }
  
  .contact-button {
    width: 100%;
    max-width: 640px;
    border: none;
    border-radius: 999px;
    padding: 18px 28px;
    font-size: 18px;
    font-family: inherit;
    background: #404040;
    color: #fff;
    cursor: pointer;
    transition: opacity 0.2s ease;
    margin-top: 8px;
  }
  
  .contact-button:hover {
    opacity: 0.9;
  }
  
  .contact-message {
    margin-top: 16px;
    font-size: 14px;
  }
  /* ====== SERVICIOS ====== */

.services-main {
    flex: 1;
    background: var(--bg);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
  }
  
  .services-wrapper {
    width: 100%;
    max-width: 900px;
    padding: 72px 40px 56px;
  }
  
  .services-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    margin-bottom: 12px;
  }
  
  .services-intro,
  .services-outro {
    max-width: 640px;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 32px;
  }
  
  .services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 32px;
  }
  
  .service-card {
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #ccc9c09c;
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .service-label {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.7;
  }
  
  .service-title {
    font-size: 20px;
    font-weight: 600;
  }
  
  .service-text {
    font-size: 14px;
    line-height: 1.5;
  }
  
  .service-list {
    margin-top: 6px;
    padding-left: 18px;
    font-size: 13px;
    line-height: 1.4;
  }
  
  .service-list li + li {
    margin-top: 4px;
  }
  
  /* Responsive servicios */
  @media (max-width: 900px) {
    .services-wrapper {
      padding: 48px 20px 40px;
    }
  
    .services-grid {
      grid-template-columns: 1fr;
    }
  }
  
  .video-info {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 40px 60px;
    display: flex;
    justify-content: space-between;
    color: #f3e9df; /* mismo crema que usas */
    font-size: 14px;
    letter-spacing: 0.04em;
    z-index: 5;
    pointer-events: none; /* evita interferir con el video */
  }
  
  .video-info a {
    color: #f3e9df;
    text-decoration: none;
    pointer-events: auto;
  }
  
  .video-info a:hover {
    opacity: 0.7;
  }
  
  .info-title {
    font-size: 16px;
    font-weight: 400;
  }
  
  .info-year {
    opacity: 0.7;
    margin-top: 4px;
  }
  
  .info-description {
    max-width: 500px;
    line-height: 1.4;
  }
  
  .info-credits {
    text-align: right;
    line-height: 1.6;
  }
  
  @media(max-width: 900px) {
    .video-info {
      flex-direction: column;
      gap: 12px;
      padding: 20px;
      font-size: 12px;
    }
    
    .info-credits {
      text-align: left;
    }
  }
/* ====== PROYECTOS ====== */
.projects-title {
    color: #fefdf8;
  }
  
.projects-main {
    flex: 1;
    background: #000;   /* FONDO NEGRO */
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
  }
  
  .projects-wrapper {
    width: 100%;
    max-width: 1100px;
    padding: 56px 40px 40px;
  }
  
  .projects-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    margin-bottom: 24px;
  }
  
  .projects-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }
  
  /* Card principal */
  .project-card {
    position: relative;
    display: block;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transform: translateY(0);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  }
  
  /* IMAGEN */
  .project-card img {
    width: 100%;
    display: block;
    object-fit: cover;
  }
  
  /* CAPA NEGRA suave (siempre visible un poco) */
  .project-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.46); /* oscuridad mínima para legibilidad */
    opacity: 0.25;
    transition: opacity 0.25s ease;
    z-index: 1;
  }
  
  /* En hover se intensifica el overlay */
  .project-card:hover::before {
    opacity: 0.55;
  }
  
  /* Hover de la card */
  .project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.09);
    filter: brightness(1.05);
  }
  
  /* OVERLAY DE TEXTO */
  .project-overlay {
    position: absolute;
    inset: auto 32px 26px 32px;
    color: #fff;
    z-index: 2; /* por encima del overlay oscuro */
  }
  
  .project-name {
    font-size: 28px;
    font-weight: 600;
  }
  
  .project-type {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 4px;
  }
  
  .project-info {
    font-size: 13px;
    max-width: 520px;
    margin-top: 8px;
    line-height: 1.4;
  }
  
  /* Responsivo */
  @media (max-width: 900px) {
    .projects-wrapper {
      padding: 48px 20px 32px;
    }
  
    .project-overlay {
      inset: auto 16px 18px 16px;
    }
  
    .project-name {
      font-size: 22px;
    }
  }
  
  /* ====== SOBRE ELIO ====== */

.about-main {
    flex: 1;
    background: var(--bg);
    display: flex;
    justify-content: center;
    overflow-y: auto;
  }
  
  .about-wrapper {
    width: 100%;
    max-width: 1100px;
    padding: 56px 40px 56px;
  }
  
  .about-section + .about-section {
    margin-top: 56px;
  }
  
  .about-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 16px;
  }
  
  .about-text {
    font-size: 15px;
    line-height: 1.5;
    max-width: 780px;
    margin-bottom: 10px;
  }
  
  /* Orígenes: imágenes en stack inclinado */
  
  .about-images-stack {
    margin-top: 28px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
  }
  
  .about-images-stack img {
    width: 50%;
    border-radius: 26px;
    display: block;
    object-fit: cover;
  }
  
  .about-images-stack img:first-child {
    transform: rotate(-4deg);
  }
  
  .about-images-stack img:last-child {
    transform: rotate(5deg);
  }
  
  /* Estudios: tarjeta negra + timeline */
  
  .studies-card {
    background: #000;
    color: #f3e9df;
    border-radius: 26px;
    padding: 32px 32px 30px;
    max-width: 100%;
    margin-bottom: 28px;
  }
  
  .studies-title {
    font-size: 32px;
    font-weight: 700;
    text-align: right;
    margin-bottom: 18px;
  }
  
  .studies-text {
    font-size: 15px;
    line-height: 1.5;
  }
  
  /* Timeline */
  
  .timeline {
    display: grid;
    grid-template-columns: 1.1fr auto 1.1fr;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
  }
  
  .timeline-column {
    font-size: 15px;
  }
  
  .timeline-column-right {
    text-align: right;
  }
  
  .timeline-year {
    font-weight: 500;
    margin-bottom: 6px;
  }
  
  .timeline-label {
    font-size: 14px;
    line-height: 1.4;
  }
  
  .timeline-line {
    position: relative;
    height: 2px;
    background: #111;
    min-width: 120px;
  }
  
  .timeline-arrow {
    position: absolute;
    right: -16px;
    top: 50%;
    width: 0;
    height: 0;
    transform: translateY(-50%);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 16px solid #111;
  }
  
  /* Imagen experiencias */
  
  .about-image-full {
    margin-top: 28px;
  }
  
  .about-image-full img {
    width: 100%;
    border-radius: 26px;
    display: block;
    object-fit: cover;
  }
  
/* Responsive SOBRE ELIO */
@media (max-width: 900px) {

    .about-wrapper {
      padding: 40px 20px 120px; /* deja más espacio abajo → evita que las redes se corten */
    }
  
    .about-images-stack {
      flex-direction: column;
    }
  
    .about-images-stack img {
      width: 100%;
    }
  
    .studies-title {
      text-align: left;
    }
  
    /* Timeline en columna → evita que se rompa */
    .timeline {
      grid-template-columns: 1fr;
      gap: 12px;
      align-items: flex-start;
    }
  
    .timeline-column-right {
      text-align: left;
    }
  
    .timeline-line {
      order: 3;
      width: 100%;
      margin-top: 12px;
    }
  }
  
/* ====== REDES SOCIALES TEXTO ====== */
.about-social {
    margin-top: 60px;
    margin-bottom: 90px;
    display: flex;
    justify-content: flex-end;
  }
  
  .social-links {
    display: flex;
    gap: 42px;
    font-size: 28px;
    font-weight: 600;
  }
  
  .social-links a {
    text-decoration: none;
    color: var(--text);
    position: relative;
  }
  
  .social-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 1px;
    background: var(--text);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.25s ease;
  }
  
  .social-links a:hover::after {
    transform: scaleX(1);
  }
  
  /* Redes en móvil */
  @media (max-width: 900px) {
  
    .about-social {
      justify-content: flex-start;
      margin-top: 40px;
      margin-bottom: 40px;
    }
  
    .social-links {
      flex-wrap: wrap;
      row-gap: 8px;
      column-gap: 24px;
      font-size: 22px;
    }
  }
  
  @media (max-width: 900px) {
    /* Oculta el aside en móvil SOLO en páginas con body.no-aside-mobile */
    .no-aside-mobile .site-aside {
      display: none;
    }
  
    /* Que el main ocupe toda la pantalla en esas páginas */
    .no-aside-mobile main {
      height: auto;
      min-height: 100vh;
    }
  }

  /* ====== POSTERS ====== */

.posters-main {
    flex: 1;
    background: var(--bg);
    display: flex;
    justify-content: center;
    overflow-y: auto;
  }
  
  .posters-wrapper {
    width: 100%;
    max-width: 1100px;
    padding: 56px 40px 56px;
  }
  
  .posters-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    margin-bottom: 16px;
  }
  
  .posters-intro {
    max-width: 720px;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 32px;
  }
  
  /* GRID de posters */
  .posters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
  }
  
  /* Card */
  .poster-card {
    position: relative;
    display: block;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }
  
  .poster-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
  }
  
  .poster-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
  }
  
  /* Overlay */
  .poster-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    transition: opacity 0.25s ease;
  }
  
  .poster-card:hover::before {
    opacity: 1;
  }
  
  .poster-overlay {
    position: absolute;
    bottom: 0;
    padding: 20px;
    z-index: 2;
    color: #fff;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  
  .poster-card:hover .poster-overlay {
    opacity: 1;
    transform: translateY(0);
  }
  
  .poster-name {
    font-size: 20px;
    font-weight: 600;
  }
  
  .poster-info {
    font-size: 13px;
    opacity: 0.9;
    margin-top: 4px;
  }
  
  /* Responsive */
  @media (max-width: 900px) {
    .posters-wrapper {
      padding: 40px 20px;
    }
  }
  
  /* Enlace legal dentro del menú fullscreen */
.menu-legal {
    position: absolute;
    bottom: 28px;
    right: 34px;
    opacity: 0.65;
  }
  
  .menu-legal a {
    text-decoration: none;
    color: var(--bg);
    font-size: 14px;
    letter-spacing: 0.04em;
  }
  
  .menu-legal a:hover {
    opacity: 1;
  }
  /* ====== PRIVACIDAD ====== */

body.no-aside-mobile {
    height: auto;
    min-height: 100vh;
    overflow: auto;            /* permite hacer scroll en páginas largas */
  }
  
  .privacy-main {
    flex: 1;
    background: var(--bg);     /* mismo fondo crema del resto */
    color: var(--text);        /* texto oscuro */
    display: flex;
    justify-content: center;
    overflow-y: auto;
  }
  
  .privacy-wrapper {
    width: 100%;
    max-width: 800px;
    padding: 56px 40px 80px;   /* margen inferior para que no quede pegado */
  }
  
  .privacy-title {
    font-size: clamp(2.4rem, 5vw, 3.2rem);
    font-weight: 700;
    margin-bottom: 24px;
  }
  
  .privacy-wrapper h2 {
    font-size: 1.4rem;
    margin-top: 24px;
    margin-bottom: 8px;
  }
  
  .privacy-wrapper p {
    font-size: 15px;
    line-height: 1.5;
  }
  
  /* Responsive privacidad */
  @media (max-width: 900px) {
    .privacy-wrapper {
      padding: 40px 20px 80px;
    }
  }
  
  /* Ajustes extra de CONTACTO en móvil */
@media (max-width: 900px) {
    .contact-main {
      padding: 16px 0 40px;   /* algo de aire arriba y abajo */
    }
  
    .contact-wrapper {
      margin-top: 100px;      /* baja el título un poco más */
      padding: 0 20px 80px;   /* margen lateral y espacio al final */
    }
  
    .contact-title {
      margin-bottom: 40px;    /* separa más el título del primer input */
    }
  
    .contact-form {
      gap: 20px;              /* pelín más de separación entre campos */
    }
  }
