/*
Theme Name: Paul Cremoux Studio
Theme URI: https://paulcremoux.com
Description: Arquitectura Eco Efectiva
Author: Paul Cremoux
Version: 5.0 - Diciembre 2025
*/

/* ============================================
   1. RESET Y BASE
   ============================================ */

@import url('https://fonts.googleapis.com/css?family=Libre+Franklin:400,700');

body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, 
pre, code, form, fieldset, legend, input, button, textarea, 
p, blockquote, th, td { margin: 0; padding: 0; }

table { border-collapse: collapse; border-spacing: 0; }
fieldset, img { border: 0; }
li { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-size: 100%; font-weight: normal; }
a { text-decoration: none; }

body {
    font-family: 'Libre Franklin', sans-serif;
    font-size: 14px;
    color: #fff;
    background: #272727;
    overflow: hidden;
}

::-webkit-scrollbar { display: none !important; }
* { -ms-overflow-style: none !important; scrollbar-width: none; }

strong { color: #ffe12d; }

.clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
.clear { clear: both !important; }
span.hide { display: none; }


/* ============================================
   2. TIPOGRAFÍA E ICONOS
   ============================================ */

@font-face {
    font-family: 'paulc';
    src: url('fonts/paulc.eot?8elpbp');
    src: url('fonts/paulc.eot?#iefix8elpbp') format('embedded-opentype'),
         url('fonts/paulc.woff?8elpbp') format('woff'),
         url('fonts/paulc.ttf?8elpbp') format('truetype'),
         url('fonts/paulc.svg?8elpbp#paulc') format('svg');
    font-weight: normal;
    font-style: normal;
}

[class^="pcx-"], [class*=" pcx-"] {
    font-family: 'paulc' !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
}

.pcx-home:before { content: "\e600"; }


/* ============================================
   3. LAYOUT GENERAL
   ============================================ */

#contenido {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden;
    z-index: 100;
}

#textura { display: none !important; }


/* ============================================
   4. MENÚ PRINCIPAL
   ============================================ */

#top {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    background: #272727;
    font-size: 11px;
    text-transform: uppercase;
    z-index: 10002;
    padding: 6px 10px;
    box-sizing: border-box;
}

#menu {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    margin: 0; padding: 0;
}

#menu li {
    display: inline-flex;
    align-items: center;
}

#menu li a {
    color: #fff;
    padding: 0 3px;
}

#menu li a:hover { color: #999; }

#menu li:not(.h) a:before { content: "/ "; }

/* Casita */
#menu li.h a {
    display: inline-flex;
    align-items: center;
    padding-right: 5px;
}

#menu li.h .pcx-home {
    font-family: 'paulc' !important;
    font-size: 1.4em;
}

#menu li.h a:hover { opacity: 0.6; }


/* ============================================
   5. SELECTOR DE IDIOMAS
   ============================================ */

#top .qtranxs_language_chooser {
    position: absolute;
    top: 6px; right: 10px;
    display: flex;
    margin: 0; padding: 0;
}

#top .qtranxs_language_chooser li { display: inline-block; }

#top .qtranxs_language_chooser li a {
    font-size: 11px;
    color: #fff;
    padding: 0 3px;
}

#top .qtranxs_language_chooser li a:hover { color: #999; }

#top .qtranxs_language_chooser li:first-child::after {
    content: " / ";
    color: #fff;
}

#top .qtranxs_language_chooser li a:before {
    content: none !important;
    display: none !important;
}


/* ============================================
   6. REDES SOCIALES (solo home)
   ============================================ */

#redes {
    position: fixed;
    top: 30px; right: 10px;
    display: flex;
    align-items: center;
    z-index: 10001;
    margin: 0; padding: 0;
}

#redes li {
    display: inline-flex;
    margin: 0; padding: 0;
}

#redes li a {
    display: flex;
    align-items: center;
    padding: 4px 5px;
}

#redes li a img { width: 18px; height: 18px; }

#redes li a:hover { opacity: 0.6; }


/* ============================================
   7. CONTACTO (solo home)
   ============================================ */

#contacto {
    position: fixed;
    bottom: 0; left: 0;
}

#contacto a {
    background: #272727;
    color: #fff;
    display: block;
    font-size: 13px;
    padding: 10px 10px 10px 25px;
    width: 260px;
    transform-origin: top left;
    transform: rotate(-90deg);
}

#contacto a:hover { color: #ffe12d; }


/* ============================================
   8. HOME
   ============================================ */

body.home #header {
    position: fixed;
    top: 55px; left: 40px;
    z-index: 10000;
}

#logo a {
    display: block;
    width: 245px;
    height: 65px;
}

#logo a img { max-width: 100%; height: auto; }
#logo a:hover { opacity: 0.6; }

/* Slideshow */
img.bg {
    position: fixed;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -2;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

img.bg.active { opacity: 1; }

@media (orientation: portrait) { img.bg { height: 100vh; } }
@media (orientation: landscape) { img.bg { width: 100vw; } }

body.single img.bg,
body.page img.bg,
body.category-trabajo img.bg { display: none; }

/* Thumbnails X amarillas */
#thumbs {
    position: fixed;
    left: 50%; top: 50%;
    width: 900px; height: 351px;
    margin-left: -450px;
    margin-top: -175px;
}

#thumbs div { height: 112px; float: left; margin: -2px 5px 5px 0; }

#thumbs div.thumb a.tha {
    background: none;
    display: block;
    opacity: 0.7;
    width: 168px;
}

#thumbs div.thumb a.tha:hover {
    width: 152px; height: 96px;
    border: 8px solid #222;
    opacity: 1;
}

#thumbs div.thumb a.tha h2 { display: none; }

#thumbs div.thumb a.tha:hover h2 {
    font-size: 22px;
    background: #222;
    position: absolute;
    margin: 10px 0 0 -8px;
    padding: 0 16px;
    color: #fff;
    display: inline;
    z-index: 100;
}

#thumbs div.thumb a.tha:hover img { margin: -8px 0 0 -8px; }
#thumbs div.thumb a.tha .cruzLogo { opacity: 0.6; }
#thumbs div.thumb a.tha:hover .cruzLogo { opacity: 0; }
#thumbs div.thumb a.tha .thumbbg { display: none; }

#thumbs div.thumb a.tha:hover .thumbbg {
    display: block;
    height: 96px;
    margin-top: -104px;
    position: absolute;
    z-index: -1;
}

#thumbs div.thumb a.tha:hover .thumbbg img { opacity: 0.8; }

.thumb-dos { position: relative !important; bottom: 0 !important; }


/* ============================================
   9. PÁGINAS INTERNAS
   ============================================ */

body.page #wrapper {
    position: absolute;
    top: 35px; left: 0; right: 0; bottom: 0;
    overflow-y: auto;
    z-index: 51;
}

body.page #pagetext {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 40px;
    box-sizing: border-box;
}

body.page #pagetext p {
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

body.page #pagetext h2,
body.page #pagetext h3 {
    font-size: 18px;
    color: #ffe12d;
    margin: 20px 0 15px 0;
}

body.page #pagetext a { color: #ffe12d; }
body.page #pagetext a:hover { color: #999; }

body.page #logo { display: none; }


/* ============================================
   10. GALERÍA DE PROYECTOS
   ============================================ */

body.category-trabajo #wrapper {
    position: absolute;
    top: 35px; left: 0; right: 0; bottom: 0;
    overflow-y: auto;
    z-index: 51;
}

#projects-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 15px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.project-item { background: #1e1e1e; }

.project-thumbnail {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.project-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-title {
    padding: 12px 15px;
    font-size: 16px;
    color: #fff;
    background: #1e1e1e;
    transition: all 0.3s ease;
}

.project-item:hover .project-title {
    background: #ffe12d;
    color: #222;
}


/* ============================================
   11. PROYECTOS INDIVIDUALES
   ============================================ */

body.single #project-wrapper {
    position: absolute;
    top: 35px; left: 0; right: 0; bottom: 0;
    overflow-y: auto;
    padding: 15px 40px 60px 40px;
    max-width: 1400px;
    margin: 0 auto;
    box-sizing: border-box;
}

body.single .project-title-main {
    color: #ffe12d;
    font-size: 22px;
    font-style: normal;
    font-weight: normal;
    margin: 0 0 15px 0;
}

body.single .project-hero-image { margin-bottom: 20px; }

body.single .project-hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

body.single .project-content {
    margin-bottom: 25px;
    line-height: 1.8;
}

body.single .project-content p {
    margin-bottom: 15px;
    text-align: justify;
}

body.single .project-content h2,
body.single .project-content h3 {
    color: #ffe12d;
    font-size: 18px;
    margin: 15px 0 10px 0;
}

body.single .project-content strong { color: #ffe12d; }

body.single .project-content a { color: #ffe12d; }
body.single .project-content a:hover { color: #999; }

body.single .project-image-full { margin-bottom: 25px; }

body.single .project-image-full img {
    width: 100%;
    height: auto;
    display: block;
}

body.single .project-images-pair {
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
}

body.single .project-images-pair .project-image-half { flex: 1; }

body.single .project-images-pair .project-image-half img {
    width: 100%;
    height: auto;
    display: block;
}

body.single .project-image-vertical {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

body.single .project-image-vertical img {
    max-width: 50%;
    height: auto;
}

/* Ocultar elementos viejos */
body.single #project-header { display: none !important; }
body.single #main { display: none !important; }
body.single .galeria { display: none !important; }


/* ============================================
   12. ESTILOS DEL EDITOR
   ============================================ */

.titulos-amarillos {
    color: #ffe12d;
    font-weight: 500;
}

.texto-justificado {
    text-align: justify;
}


/* ============================================
   13. RESPONSIVE - TABLET (768px - 1024px)
   ============================================ */

@media screen and (max-width: 1024px) {
    
    #projects-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 15px 25px;
    }
    
    body.page #pagetext,
    body.single #project-wrapper {
        padding-left: 25px;
        padding-right: 25px;
    }
    
    body.single .project-images-pair { gap: 20px; }
    
    body.single .project-image-vertical img { max-width: 60%; }
}


/* ============================================
   14. RESPONSIVE - MÓVIL (max 767px)
   ============================================ */

@media screen and (max-width: 767px) {
    
    /* Menú */
    #top {
        font-size: 10px;
        padding: 5px 8px;
    }
    
    #menu { flex-wrap: wrap; }
    
    #menu li.h .pcx-home { font-size: 1.2em; }
    
    #top .qtranxs_language_chooser {
        position: relative;
        top: auto; right: auto;
        margin-top: 3px;
    }
    
    #top .qtranxs_language_chooser li a { font-size: 10px; }
    
    /* Home */
    #thumbs { display: none; }
    
    body.home #redes {
        top: auto;
        bottom: 50px;
        right: 10px;
        flex-direction: column;
        gap: 5px;
    }
    
    body.home #redes li a img { width: 16px; height: 16px; }
    
    body.home #contacto a {
        transform: rotate(0deg);
        width: 100%;
        text-align: center;
        padding: 10px;
        font-size: 11px;
        position: fixed;
        bottom: 0; left: 0;
    }
    
    /* Páginas */
    body.page #wrapper { top: 45px; }
    
    body.page #pagetext { padding: 10px 15px; }
    
    /* Galería */
    body.category-trabajo #wrapper { top: 45px; }
    
    #projects-gallery {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 10px 15px;
    }
    
    /* Proyectos individuales */
    body.single #project-wrapper {
        top: 45px;
        padding: 10px 15px 40px 15px;
    }
    
    body.single .project-title-main {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    body.single .project-images-pair {
        flex-direction: column;
        gap: 15px;
    }
    
    body.single .project-image-vertical img { max-width: 85%; }
}


/* ============================================
   FIN DEL ARCHIVO
   ============================================ */