@charset "utf-8";
/*
Theme Name: Stark
Author: Code by Ricardo Juárez Design by Phantasia
Author URI: https://rjvv.com/
Version: 1.0
License: GNU/GPL Version 2 or later
Copyright: (c) 2026 Ricardo Juárez
*/


:root {

    /* Colores */
    --primary:  #FFFFFF;
    --contrast: #000000;
    --accent:   red;
    --grey:     #0000004D;

    /* Espaciados */
    --pad2: 10px;
    --pad:  20px;
    --padb: 60px;
    --padh: 120px;

    /* Tipografía — tamaños */
    --fs-small:  15px;
    --fs-body:   15px;
    --fs-medium: 20px;
    --fs-big:    32px;
    --fs-huge:   64px;
    

    /* Tipografía — line-height */
    --lh-small:  1.2;
    --lh-body:   1.2;
    --lh-medium: 1.2;
    --lh-big:    1.2;
    --lh-huge:   1.2;

    /* Tipografía — letter-spacing */
    --ls-small:  0;
    --ls-body:   0;
    --ls-medium: 0;
    --ls-big:    -0.02em;
    --ls-huge:   -0.03em;

    /* Fuentes */
    --sans: 'Danzza', 'Futura', sans-serif;
    --serif: serif;

    /* Misc */
    --real100:   100vh;
    --radius:    4px;
    --transition: 0.3s ease;
    
    --header:calc((2 * (var(--pad)) + (var(--fs-body) * var(--lh-body))));
    --slider:calc(var(--real100) - var(--header) - var(--header));
}

#mobileFilterOpen,
#mobileFilterOverlay{
	display: none;
}


/* ============================================================
   BASE BODY
   ============================================================ */

body {
    font-family: var(--sans);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    letter-spacing: var(--ls-body);
    font-weight: 500;
    color: var(--contrast);
    background-color: var(--primary);
    -webkit-font-smoothing: subpixel-antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: geometricPrecision;
}


#header{
position: fixed;	
}

/* ============================================================
   TIPOGRAFÍA — clases de tamaño
   ============================================================ */

.small {
    font-size: var(--fs-body);
    line-height: var(--lh-small);
    letter-spacing: var(--ls-small);
}
.body {
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    letter-spacing: var(--ls-body);
}
.medium {
    font-size: var(--fs-medium);
    line-height: var(--lh-medium);
    letter-spacing: var(--ls-medium);
}
.big {
    font-size: var(--fs-big);
    line-height: var(--lh-big);
    letter-spacing: var(--ls-big);
}
.huge {
    font-size: var(--fs-huge);
    line-height: var(--lh-huge);
    letter-spacing: var(--ls-huge);
}

.page-template-client.logged-in footer{
	display: none;
}

.page-template-client.logged-in .client-area{
	min-height: 0;
}

.project-swiper{
	position: relative;
}



.page-template-client #header{
	height: auto;
	position: relative;
}
.page-template-client .header-inner{
	align-items: flex-start;
}

.screensaver {
    position: fixed;
    inset: 0;
    z-index: 9999;
     background: rgba(255,255,255,0.92);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;

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

    img, video {
        width: 80%;
        height: 80%;
        object-fit: contain;
        display: block;
    }
}


/* ============================================================
   UTILIDADES TIPOGRÁFICAS
   ============================================================ */

.uppercase  { text-transform: uppercase; }
.lowercase  { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }
.italic     { font-style: italic; }
.bold       {  }
.normal     { font-weight: 400; }
.nowrap     { white-space: nowrap; }
.strike     { text-decoration: line-through; }

.t-primary  { color: var(--primary); }
.t-contrast { color: var(--contrast); }
.t-accent   { color: var(--accent); }
.t-grey     { color: var(--grey); }

.aligncenter { text-align: center; }
.alignleft   { text-align: left; }
.alignright  { text-align: right; }

.overlay-content-open .header-title,
.overlay-open .filter-link, .overlay-open .filter-link.is-active{
	pointer-events: none;
	color: var(--grey) !important;
}

.greyed, .is-closer{
	color: var(--grey);
}

#headerFilters,
.header-title--ajax {
    transition: opacity 0.3s ease;
}

#headerFilters,
.header-title--ajax {
    transition: opacity 0.3s ease 0s;
    grid-area: 1 / 1; 
}
.header-center{
	position: relative;
}

.header-title--ajax {
    opacity: 0;
    pointer-events: none;
    font-size: var(--fs-body);
    font-weight: inherit;
    white-space: nowrap;
}

.header-title--ajax.is-visible {
    opacity: 1;
    pointer-events: all;
}

#header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: var(--header);
    z-index: 9999;
}



.header-inner {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: var(--pad);
}

.site-name {
    font-size: var(--fs-body);
    justify-self: start;
}

.header-center {
    justify-self: center;
}

.header-title {
    font-size: var(--fs-body);
}



.overlay-content-open .header-filters{
	transition: opacity 0.2s ease;
	opacity: 0 !important;
}

.header-filters {
	opacity: 1;
	transition: opacity 0.2s ease;
    display: flex;
    gap: var(--pad);

    .filter-link {
        font-size: var(--fs-body);
        color: var(--grey);
        transition: color var(--transition);

        &:hover,
        &.is-active {
            color: var(--contrast);
        }
    }
}

.header-nav {
    justify-self: end;
    display: flex;
    gap: var(--pad);

    a {
        font-size: var(--fs-body);
        color: var(--grey);
        transition: color var(--transition);

        &:hover { color: var(--contrast); }
    }
}


.project-swiper .swiper-cursor,
.project-swiper .swiper-cursor span {
    transition: opacity 0.25s ease;
}

.project-swiper.audio-hover .swiper-cursor,
.project-swiper.audio-hover .swiper-cursor span {
    opacity: 0;
}

.single-post #footer{
	display: none;
}

.media-item-video {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
}
.media-item-video video {
	display: block;
	padding: var(--pad) var(--pad) 0 !important;
}

.audio {
	cursor: pointer;
	padding: 10px var(--pad) var(--pad);
	margin: 0;
}.swiper-slide {
	display: flex;
	justify-content: center;
	align-items: center;
}

.footer_p{
 .footer-nav ul {
        display: flex;
        gap: var(--pad);

.nav-privacy a{
	color: var(--contrast);
}
        a {
            font-size: var(--fs-body);
            color: var(--grey);
            transition: color var(--transition);
            &:hover { color: var(--contrast); }
        }
    }

}

#footer {
	position: relative;
	z-index: 2;
	height: var(--header);
	margin-top:calc(-1 * var(--header));
    padding: var(--pad);

    .footer-nav ul {
        display: flex;
        gap: var(--pad);

        a {
            font-size: var(--fs-body);
            color: var(--grey);
            transition: color var(--transition);
            &:hover { color: var(--contrast); }
        }
    }
}

  .swiper-slide {
    & img, & video {
      padding: var(--pad);
    }
  }


.overlay {
    position: fixed;
    inset: 0;
    z-index: 90; 
    background: rgba(255,255,255,0.92);
    display: flex;
    align-items: flex-start;
    padding: calc(var(--header) + var(--pad)) var(--pad) var(--pad);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;

    &.is-active {
        opacity: 1;
        pointer-events: all;
    }
}
#overlay-contact.overlay, #overlay-about.overlay, #overlay-privacy.overlay  {
    z-index: 999;
    } 

#overlay-contact .overlay-inner {
	max-width: 100%;
	height: 100%;
  justify-content: center;
  padding-bottom: calc(var(--header));
	}

.overlay-inner {
    display: flex;
    gap: var(--pad);
    max-width: 600px;
    flex-direction: column;
}
#main {
    transition: opacity 0.4s ease;
}
#error-404{
	padding: calc(var(--header) +  var(--pad)) var(--pad);
}

.contact-link{
color: var(--grey);
transition: all 0.2s ease;}

#overlay-about{
	display: flex;
  align-items: flex-end;
}
.overlay-about-text {
    font-size: var(--fs-body);
    flex: 1;
}

.overlay-about-portrait {
    height: 200px;
    width: auto;

    img {
        width: 100%;
        height: 100%;
        object-fit:contain;
        object-position:left;
    }
}

.overlay-contact-items {
    display: flex;
    gap: var(--padb);
    flex-wrap: wrap;
}

.contact-item {
    font-size: var(--fs-body);


    .contact-link {
        color: var(--grey);
        &:hover {  color: var(--contrast); }
    }
}
.header-nav a {
    &.is-active {
        color: var(--contrast);
		}
}






.client-area {
    min-height: calc(var(--real100) - var(--header));
    display: flex;
    padding: 0 var(--pad) var(--pad);
}


.client-login {
width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: var(--header);
  height: calc(var(--real100) - var(--header) - var(--header));
  }
.client-project{
	margin-bottom: 40px;
}

.client-login-form {
    display: flex;
    align-items: center;
    gap: 10px;

    input {
	    max-width: 200px;
        height: 30px;
        padding: 10px;
        background: #0000000D;
        border-radius: 0;
        font-size: var(--fs-body);
        color: var(--contrast);
        border: none;

        &::placeholder {
            color: #0000004D;
        }
    }

    button {
        height: 30px;
        padding: 0 12px;
        background: #0000000D;
        border-radius: 22px;
        font-size: var(--fs-body);
        
        color: var(--contrast);
        white-space: nowrap;
        cursor: pointer;
        transition: background var(--transition);

        &:hover {
            background: #e0e0e0;
        }
    }
}

.client-login-error {
    font-size: var(--fs-body);
    color: var(--grey);
    white-space: nowrap;
}

// ── content ───────────────────────────────────────────────────

.client-area:has(.client-projects) {
    align-items: flex-start;
    padding-top: calc(var(--header) + var(--padb));
}





.client-projects {
	padding-top: calc(var(--pad) * 2);
    max-width: 600px;
}

.client-project {
}

.client-project-title {
    font-size: var(--fs-body);
}

.client-project-links {


    a {
        font-size: var(--fs-body);
        color: var(--grey);
        transition: color var(--transition);

        &:hover { color: var(--contrast); }
    }
}




.home-grid {
	min-height: var(--real100);
    padding-top: var(--header);
    display: grid;
  align-content: start;
    grid-template-columns: repeat(5, 1fr);
    gap: calc(2 * var(--pad));
    transition: background-color 0.6s ease;
    padding:calc(var(--header) + (2 * var(--pad))) calc(2 * var(--pad));
    
    .grid-item {
        position: relative;
        aspect-ratio: 1;
        display: block;
        overflow: hidden;
            transition: opacity var(--transition);

        img, video {
            width: 100%;
            height: 100%;
            object-fit: contain;
            display: block;
            transition: opacity var(--transition);
        }

.grid-item-title {
    display: none; 
}

        &:hover .grid-item-title {
            opacity: 1;
        }

        &.is-hidden {
            opacity: 0.2;
            pointer-events: none;            
        }
        &.is-faded {
    opacity: 0.2;
    transition: opacity 0.4s ease;
}
&.is-active-hover {
    opacity: 1;
}
    }
}


.single .overlay-content-open .header-center,
.project-open.overlay-content-open .header-center{
	opacity: 0;
}

.center-content{
	max-width: 600px;
	margin: 0px auto;
}

#overlay-privacy{
	background: var(--primary) !important;
	overflow: auto;	
}


#footer{
    background-color: var(--portfolio-bg, transparent);
	
}
.single-portfolio {
    background-color: var(--portfolio-bg, var(--primary));
    min-height: var(--real100);
}

.portfolio-intro {
    height: calc(var(--real100) -  var(--header));
    display: flex;
    align-items: center;
    padding: var(--header) var(--pad) 0;

    &-inner {
        max-width: 600px;
    }
}

.portfolio-project-title {
    font-size: var(--fs-small);
    text-align: center;
    padding: var(--pad) 0;
}
.portfolio-intro-inner{
	max-width: 720px;
}


.single-portfolio {
    overflow-y: auto;
    height:  var(--real100);
    scroll-snap-type: y mandatory;
}

.scroll{
	position: absolute;
	left: 0;
	bottom: 0;
}

.snap-section {
	position: relative;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    height: var(--real100);
}

.overlay-loading {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;

    &::after {
        content: '';
        width: 20px;
        height: 20px;
        border: 1px solid var(--contrast);
        border-top-color: transparent;
        border-radius: 50%;
        animation: spin 0.6s linear infinite;
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================================
   POST CONTENT
   ============================================================ */
.post-content h2,
.post-content h3{
	text-transform: uppercase;
	font-size: var(--fs-body);
}
.post-content p,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6,
.post-content blockquote,
.post-content ol,
.post-content ul {
    margin-bottom: calc(var(--fs-body) * var(--lh-body));
}

.post-content > *:last-child {
    margin-bottom: 0;
}
.post-content ul,
.post-content ol {
    padding-left: 1.4em;
}

.post-content ul li { list-style: disc; }
.post-content ol li { list-style: decimal; }

.post-content a {
    text-decoration: underline;
}

.post-content blockquote {
    padding-left: 1em;
    border-left: 2px solid var(--contrast);
    font-style: italic;
}

.post-content img {
    margin-top: calc(var(--fs-body) * var(--lh-body));
    margin-bottom: calc(var(--fs-body) * var(--lh-body));
}


/* ============================================================
   UTILIDADES DE LAYOUT
   ============================================================ */

.none  { display: none; }
.block { display: block; }
.flex  { display: flex; }
.clear { clear: both; }

.left  { float: left !important; }
.right { float: right !important; }

.rel    { position: relative; }
.abs    { position: absolute; }
.fixed  { position: fixed; }
.sticky { position: sticky; }

.overflow-hidden { overflow: hidden; }
.pointer         { cursor: pointer; }
.no-select       { user-select: none; -webkit-user-select: none; }

.mobile  { display: none; }
.desktop { display: block; }

.padded   { padding: var(--pad); }
.padded-v { padding: var(--pad) 0; }
.padded-h { padding: 0 var(--pad); }

.margined  { margin-bottom: var(--pad); }
.marginedb { margin-bottom: var(--padb); }
.marginedh { margin-bottom: var(--padh); }


#overlay-ajax .overlay-inner{
width: 100vw;
max-width: 100%;
height: var(--real100);
}
#overlay-ajax{
padding: 0;}
/* Menu overlay */
.menu-hover {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: var(--primary);
}

.menu-hover.appear {
    display: flex;
    align-items: center;
    justify-content: center;
}

body.menu-open {
    overflow: hidden;
}


.video-slide {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-slide.is-ready {
    opacity: 1;
}


#cookies{
	position: fixed;
	display: none;
	align-items: center;
	gap:5px;
	z-index: 99999;
	left: var(--pad);
	bottom: var(--pad);
	}
#cookies .nav-privacy{
	background: #0000000D;
backdrop-filter: blur(10px);
padding: 8px 10px;
}
	.close-cookies{
	background: #0000000D;
backdrop-filter: blur(10px);
padding: 8px 10px;
border-radius: 20px;
 cursor: pointer;		
	}
	
	

/* ============================================================
   INPUTS — reset
   ============================================================ */

input, textarea, select, button {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: none;
    font-weight: 500;
    border-radius: 0;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: var(--grey);
    opacity: 1;
}

input[type="submit"],
button[type="submit"] {
    font-weight: 500;    cursor: pointer;
}

textarea {
    resize: none;
}





/* ============================================================
   SINGLE
   ============================================================ */

.swiper-controls{
display: grid;
  grid-template-columns: 1fr auto 1fr;
  justify-content: space-between;
  position: absolute;
  bottom: 0;
  width: 100%;
}
.nexter{
	text-align: right;
}
.nexter, .prever{
	opacity: 1;
	transition: all 0.2s ease;
	padding: var(--pad);
}

.portfolio-swiper .swiper-fraction{
	padding: var(--pad);
	text-align: center !important;
	position: static !important;
	color: var(--grey) !important;
}
.swiper-button-disabled{
	opacity: 0;
}


.swiper-slide {
    position: relative;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}
.swiper-slide {
    aspect-ratio: calc(100 / var(--slide-ratio, 66.66)); }
.single-project {
  background-color: var(--project-bg, var(--primary));
  height: var(--real100);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.portfolio-swiper,
.project-swiper {
  width: 100%;
  height: 100%;
  overflow: clip;

  .swiper-wrapper {
    align-items: center;
  }
  
  
  

  .swiper-slide {
    width: fit-content;
    height: var(--slider);
    max-width: var(--slider); 
    overflow: hidden;


    img, video {
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: block;
      pointer-events: none;
    }

  }
  

  .swiper-cursor {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 100;
    font-size: var(--fs-body);
    color: var(--contrast);
    opacity: 0; 
        transition: opacity 0.3s;
  }

}

header a, header span{
	transition: color 0.3s ease;
}


  .single .site-name{
	  color: var(--grey);
  }




.grid-cursor {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 100;
    font-size: var(--fs-body);
    color: var(--contrast);
    opacity: 0;
        transition: opacity 0.3s;
    white-space: nowrap;
}


/* ============================================================
   RESET
   ============================================================ */

html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, address, cite, code, del, dfn, em, img, ins,
kbd, q, samp, small, strong, sub, sup, var, b, i,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
article, aside, canvas, details, figure, figcaption,
hgroup, menu, nav, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-weight: normal;
}

*, *::before, *::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    outline: none;
}

article, aside, canvas, figure, figcaption,
hgroup, section, audio, video { display: block; }

html, body {
    width: 100%;
    overscroll-behavior: none;
}

html {
    margin-top: 0 !important;
    background-color: var(--primary);
}
@media screen and (max-width: 782px) {
    html { margin-top: 0 !important; }
}

table  { border-collapse: collapse; }
li     { list-style: none; }
abbr   { text-decoration: none; }
button { outline: none; cursor: pointer; }
p      { margin-bottom: 0; }

a {
    text-decoration: none;
    outline: none;
    color: inherit;
}
a img { border: none !important; }

figure     { position: relative; }
figure img { width: 100%; }

img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

img::selection      { background: transparent; }
img::-moz-selection { background: transparent; }

::selection      { background: var(--contrast); color: var(--primary); }
::-moz-selection { background: var(--contrast); color: var(--primary); }


/* ============================================================
   NEWSLETTER — fila del overlay de Contact
   ============================================================ */

.newsletter {
    display: inline-flex;
    align-items: baseline;
    gap: var(--pad2);
}

.newsletter-form {
    display: inline-flex;
    align-items: baseline;
    gap: var(--pad2);
}

/* El reset de inputs quita borde y fondo, pero no el padding que les mete
   el navegador: el campo medía 20px contra los 18 de la línea de texto y la
   fila daba un salto al aparecer. Aquí vuelven a medir exactamente una línea. */
.newsletter-input,
.newsletter-btn {
    padding: 0;
    line-height: var(--lh-body);
}

.newsletter-input {
    width: 160px;
}

/* El botón no aparece hasta que se entra en el campo */
.newsletter-btn {
    display: none;
    color: var(--grey);
    transition: color var(--transition);
}

.newsletter.is-open .newsletter-btn {
    display: inline;
}

.newsletter-btn:hover {
    color: var(--contrast);
}

.newsletter-btn:disabled {
    cursor: default;
    color: var(--grey);
}

/* Honeypot: fuera de pantalla, no display:none — algunos bots se saltan
   los campos ocultos y aquí lo que interesa es que lo rellenen. */
.newsletter-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.newsletter-msg:empty {
    display: none;
}

/* En el footer el formulario está escondido hasta que se pulsa "Newsletter",
   y entonces aparece al lado del menú (debajo en móvil, ver responsive.css). */
.footer-nav {
    display: flex;
    align-items: baseline;
    gap: var(--pad);
}

.newsletter--footer {
    display: none;
}

.newsletter--footer.is-visible {
    display: inline-flex;
}


/* ============================================================
   CRÉDITOS DEL PROYECTO — barra fija abajo, centrada
   ============================================================ */

.project-credits {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: var(--pad);
    text-align: center;
    /* La barra cruza todo el ancho: sin esto se comería los clicks de
       prev/next del slider en la franja de abajo. Solo los enlaces cuentan. */
    pointer-events: none;
    transition: opacity var(--transition);
}

.project-credits.is-hidden {
    opacity: 0;
}

.project-credits.is-hidden a {
    pointer-events: none;
}

/* En el portfolio cada proyecto es una sección de scroll-snap: aquí los
   créditos se anclan al fondo de su sección, no al del viewport. */
.portfolio-project .project-credits {
    position: absolute;
}

.project-credits a {
    pointer-events: auto;
    color: var(--grey);
    text-decoration: none;
    transition: color var(--transition);
}

.project-credits a:hover {
    color: var(--contrast);
}
