@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:ital,wght@0,400;0,600;1,400&family=Space+Mono&display=swap');

:root {
    --bg-color: #ffffff;
    --text-color: #2c2c2c;
    --accent: #d44d2e;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    --card-hover-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
    --transition-speed: 0.4s;
    --transition-curve: cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
  
    font-family: 'Crimson Pro', serif;
    color: var(--text-color);
    line-height: 1.6;
    padding: 80px 20px;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Welcome Section */

.profile-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px; /* Espacio antes del título */
    margin-top: -20px;    /* Ajusta según el padding de tu body */
}

.profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    
    /* ESTO HACE EL ZOOM: 
       Aumentamos la escala de la imagen dentro del círculo */
    transform: scale(1.4); 
    
    /* AJUSTE DE POSICIÓN: 
       El primer % es horizontal, el segundo vertical. 
       Cambia el 30% para centrar tu cara si queda muy alta o baja */
    object-position: center 30%; 
    
    border: 1px solid #eee;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    background-color: #f9f9f9;
}

.studio-header {
    max-width: 700px;
    margin: 0 auto 100px auto;
    text-align: center;
}

.studio-header h1 {
    font-size: clamp(1.6rem, 4.5vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.intro-text {
    max-width: 600px;
    /* Keeps the paragraph easy to read */
    margin-left: auto;
    margin-right: auto;
    font-size: 1.25rem;
    color: #555;
    margin-bottom: 40px;
    font-style:normal;
}

.intro-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-filled,
.btn-outline {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 4px;
    transition: 0.3s var(--transition-curve);
}

.btn-filled {
    background: var(--text-color);
    color: white;
    border: 1px solid var(--text-color);
}

.btn-filled:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.btn-outline {
    border: 1px solid #ccc;
    color: #666;
}

.btn-outline:hover {
    border-color: var(--text-color);
    color: var(--text-color);
}

/* Navigation */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 60px;
    border-top: 1px solid #e0ddd5;
    border-bottom: 1px solid #e0ddd5;
    padding: 15px 0;
}

.filter-btn {
    background: none;
    border: none;
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    color: #999;
    transition: 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    color: var(--accent);
}

/* --- EL NUEVO GRID (LISTA DE FILAS) --- */
.studio-grid {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column; /* Cambiamos de rejilla a columna vertical */
    gap: 0; /* Las filas van una tras otra */
}

/* CADA TARJETA AHORA ES UNA FILA */
.blog-card {
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    width: 100%;
    border-radius: 2px;
}

.blog-card:hover {
    background-color: #ededed;
    transform: translateX(5px);
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 20px 15px;
}

.card-inner {
    display: flex;
    align-items: center; /* Centra el círculo con el texto */
    gap: 20px; /* Un poco menos de espacio ahora que no hay marco */
}

/* LA MINIATURA (Estilo Polaroid pequeño) */
.card-image-wrapper {
    flex-shrink: 0;
    width: 70px;  /* Un poco más pequeña para que sea elegante */
    aspect-ratio: 1 / 1;   /* 👈 clave */
    overflow: hidden;
    border-radius: 50%; /* Esto la hace redonda */
    background: #f5f5f5;
    padding: 0;   /* Quitamos el padding blanco gordo */
    border: 1px solid rgba(0,0,0,0.08); /* Un borde muy fino y sutil */
    box-shadow: none; /* Quitamos la sombra de "foto apoyada" */
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la imagen llene el círculo sin deformarse */
}

/* CONTENIDO DE TEXTO EN LÍNEA */
.card-content {
    flex-grow: 1;
    display: grid;
    grid-template-columns: 1fr auto; /* Título a la izquierda, fecha a la derecha */
    align-items: center;
}

.category-tag {
    grid-column: 1 / -1; /* Ocupa toda la línea superior */
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 4px;
}

.card-content h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.card-content h4 {
    grid-column: 1;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 400;
    color: #666;
}

.post-date {
    grid-column: 2;
    grid-row: 2 / 3;
    font-size: 0.85rem;
    color: #999;
    margin: 0;
}

/* --- CLASE PARA EL FILTRO (JS) --- */
.card-hidden {
    display: none !important;
}

/* --- RESPONSIVO --- */
@media (max-width: 600px) {
    .card-inner { gap: 15px; }
    .card-image-wrapper { width: 70px; }
    .card-content { grid-template-columns: 1fr; }
    .post-date { grid-column: 1; grid-row: auto; margin-top: 5px; }
    .card-content h3 { font-size: 1rem; }
}

/* --- About Page Specific Styles --- */

.back-nav {
    max-width: 1100px;
    margin: 0 auto 40px auto;
}

.btn-back {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    text-decoration: none;
    color: var(--accent);
    transition: 0.3s;
}

.btn-back:hover {
    padding-left: 10px;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    /* Photo on left, text on right */
    gap: 80px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}

/* Portrait Styling */
.about-image .polaroid-frame {
    background: white;
    padding: 15px 15px 60px 15px;
    box-shadow: 10px 15px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    transform: rotate(-1.5deg);
    /* Slight tilt for the portrait */
}

.about-image img {
    width: 100%;
    height: auto;
    filter: sepia(10%) contrast(1.05);
    /* Slight vintage creative feel */
}

.about-image .caption {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: #bbb;
    margin-top: 15px;
    text-align: center;
}

/* Typography for the Manifesto */
.manifesto-title {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 30px;
    line-height: 1;
    letter-spacing: -1.5px;
}

.lead-text {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 30px;
}

.manifesto-text p {
    margin-bottom: 20px;
    font-size: 1.15rem;
    color: #444;
}

blockquote {
    font-style: italic;
    font-size: 1.6rem;
    border-left: 3px solid var(--accent);
    padding-left: 25px;
    margin: 40px 0;
    color: var(--text-color);
}

.signature {
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 50px;
    color: var(--text-color);
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .about-container {
        grid-template-columns: 1fr;
    }

    .about-image {
        max-width: 400px;
        margin: 0 auto 50px auto;
    }

    .manifesto-title {
        font-size: 2.2rem;
    }
}

/* --- Post Specific Styles --- */

.post-container {
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 100px;
}

.post-header {
    text-align: center;
    margin-bottom: 60px;
}

.post-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-top: 10px;
    line-height: 1.1;
    letter-spacing: -2px;
}

.post-meta {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    color: #999;
    margin-top: 20px;
}

/* Video Presentation */
.video-stage {
    margin-bottom: 60px;
    position: relative;
}

.video-frame {
    background: #fff;
    padding: 10px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    border: 1px solid #eee;
    position: relative;
}

/* Decorative Tape Effect */
.video-tape {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    /* Added a slight tilt */
    width: 120px;
    height: 35px;
    background: rgba(255, 255, 255, 0.4);
    /* Lighter, like frosted tape */
    backdrop-filter: blur(4px);
    /* More blur for a "plastic" feel */
    border-left: 1px solid rgba(0, 0, 0, 0.05);
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    z-index: 2;
}

.video-wrapper {
    position: relative;
    width: 100%;
    background: #000;
}

/* Ratios */
.video-wrapper.ratio-169 {
    aspect-ratio: 16 / 9;
}

.video-wrapper.ratio-219 {
    aspect-ratio: 16 / 9;
}

/* Iframe siempre a tamaño completo */
.video-wrapper iframe {
    position: absolute;
    object-fit: cover;
    inset: 0;
    width: 100%;
    height: 100%;
}


/* Post Body Text */
.post-body {
    max-width: 700px;
    margin: 0 auto;
}

.description-text p {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #333;
    line-height: 1.7;
}

/* Footer link */
.post-footer {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid #e0ddd5;
    text-align: center;
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
}

.post-footer a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Tablet / Mobile adjustments */
@media (max-width: 768px) {
    .post-title {
        font-size: 2.5rem;
    }

    .description-text p {
        font-size: 1.1rem;
    }
}

/* --- Text-Only / Poetry Styles --- */

.text-entry {
    margin-top: 100px;
    /* More space at the top for focus */
}

.creative-writing {
    max-width: 600px;
    /* Narrower column for shorter line lengths (easier to read) */
    margin: 0 auto;
    text-align: center;
    /* Centered for a "poem" feel, or 'left' for "essay" feel */
}

.creative-writing p {
    font-size: 1.6rem;
    /* Large enough to feel important */
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 0.5rem;
    color: #2c2c2c;
    font-family: 'Crimson Pro', serif;
}

/* The "spacer" dots between paragraphs */
.creative-writing .spacer {
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    color: var(--accent);
    margin: 40px 0;
    letter-spacing: 10px;
    opacity: 0.5;
}

/* Subtle background accent for text-only posts */
.text-entry::before {
    content: "“";
    position: absolute;
    top: 150px;
    left: 10%;
    font-size: 15rem;
    font-family: 'Crimson Pro', serif;
    color: rgba(0, 0, 0, 0.02);
    /* Ghost-like giant quote mark */
    z-index: -1;
}

/* Responsive tweak for big text */
@media (max-width: 600px) {
    .creative-writing p {
        font-size: 1.3rem;
    }
}

/* --- Long-Form Content Styles --- */

.long-read {
    max-width: 800px;
    /* Un poco más ancho que el de poesía, pero aún controlado */
}

.long-form-content {
    text-align: left;
    /* Para lectura larga, siempre alineado a la izquierda */
}

.long-form-content p {
    font-size: 1.25rem;
    line-height: 1.85;
    margin-bottom: 2rem;
    color: #333;
    font-family: 'Crimson Pro', serif;
}

/* Títulos dentro del texto */
.long-form-content h2 {
    font-family: 'Crimson Pro', serif;
    font-weight: 600;
    font-size: 2rem;
    margin: 3rem 0 1.5rem 0;
    letter-spacing: -1px;
}

/* Efecto de Letra Capitular (Drop Cap) */
.drop-cap {
    float: left;
    font-size: 5rem;
    line-height: 4rem;
    padding-top: 4px;
    padding-right: 12px;
    padding-left: 3px;
    font-family: 'Crimson Pro', serif;
    color: var(--accent);
    font-weight: 600;
}

/* Enfatizar ciertas partes */
.long-form-content em {
    color: #000;
    font-weight: 500;
}

/* Separador sutil para textos muy largos */
.long-form-content hr {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0));
    margin: 4rem 0;
}

/* --- Gallery Polaroid Styles --- */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 50px;
    margin-top: 60px;
}

.gallery-item {
    background: #fff;
    padding: 15px 15px 40px 15px;
    /* Espacio extra abajo para el texto */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: transform 0.4s var(--transition-curve), box-shadow 0.4s var(--transition-curve);
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    z-index: 5;
}

.polaroid-wrapper {
    overflow: hidden;
    height: 300px;
    background: #eee;
}

.polaroid-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--transition-curve);
}

.gallery-item:hover .polaroid-wrapper img {
    transform: scale(1.1);
}

/* El pie de foto tipo nota manuscrita */
.polaroid-caption {
    margin-top: 20px;
    font-family: 'Crimson Pro', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: #555;
    line-height: 1.4;
    text-align: center;
    padding: 0 10px;
}

/* Ajuste para móviles: que no se vean demasiado pequeñas */
@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .polaroid-wrapper {
        height: 250px;
    }
}

@media (max-width: 600px) {
    #map {
        height: 300px;
    }
}

/* --- Creative Lightbox --- */
.lightbox {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(249, 247, 242, 0.85);
    /* Matches your paper bg */
    backdrop-filter: blur(12px);
    /* Blurs the website underneath */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    padding: 40px;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 80vh;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    border: 10px solid white;
    /* Physical photo border */
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-caption {
    margin-top: 25px;
    font-family: 'Crimson Pro', serif;
    font-style: italic;
    font-size: 1.4rem;
    color: #333;
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 2rem;
    font-family: 'Space Mono', monospace;
    cursor: pointer;
    color: var(--accent);
}

/* Smooth fade-in for lazy-loaded images */
img {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

/* Do NOT fade when swapping preview thumbnails */
.card-image-wrapper img {
    opacity: 1 !important;
}

/* Once the image is loaded, it becomes visible */
img[src] {
    opacity: 1;
}



.card-link {
    text-decoration: none;
    /* Quita el subrayado del título */
    color: inherit;
    /* Mantiene el color de texto que ya definimos */
    display: block;
    /* Hace que todo el área sea clickable */
}

.card-link:hover {
    text-decoration: none;
    /* Asegura que no aparezca subrayado al pasar el ratón */
    color: inherit;
}


/* CSS to hide text from users but keep it for Google */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Estilos para el Footer */
.studio-footer {
    margin-top: 40px;
    padding: 40px 20px;
    border-top: 1px solid #eee; /* Una línea sutil para separar del grid */
    font-family: inherit;
}

.footer-container {
    max-width: 1200px; /* Alineado con el ancho de tu grid */
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-content p {
    margin: 5px 0;
    font-size: 0.9rem;
    color: #666;
}

.footer-location {
    font-weight: 500;
    color: #333 !important;
}

.footer-link {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 0.7;
}

/* Adaptación para móviles */
@media (max-width: 600px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}

.post-lead {
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: #444;
}

.post-body ul.post-list {
  margin: 1.5rem 0 2rem 0;
  padding-left: 1.2rem;

}

.post-body ul.post-list li {
  margin-bottom: 0.5rem;
      font-size: 1.2rem;
}

.post-body > p:first-of-type {
  margin-top: 0;
}

/* Leaflet-js map */
.map-section {
    display: flex;
    justify-content: center;
    margin: 80px auto 100px;
    max-width: 1100px;
    width: 100%;
}

#map {
    width: 100%;
    height: 380px;
    border: none;
    box-shadow: none;
    background: transparent;
    filter: sepia(8%) saturate(80%);
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 2px;
}

.leaflet-container {
    font-family: 'Space Mono', monospace;
}

.leaflet-marker-pane {
    filter: sepia(0%) saturate(150%) !important;
}

.custom-marker div {
    width: 14px;
    height: 14px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(212,77,46,0.2);
    transition: transform 0.2s ease;
}

/* HOVER BOUNCE */
.custom-marker:hover div {
    animation: markerBounce 0.45s ease;
}

@keyframes markerBounce {
    0%   { transform: translateY(0); }
    30%  { transform: translateY(-8px); }
    60%  { transform: translateY(2px); }
    100% { transform: translateY(0); }
}

.polaroid-map #map {
    width: 100%;
    height: 600px; /* adjust if you want taller */
       transition: none !important;
       transform: none !important;
}

.polaroid-map .card-image-wrapper {
    padding: 0; /* remove image padding if your cards have it */
}

.polaroid-map:hover {
    transform: none !important;
}

/* --- Video Polaroid Layout --- */

.video-stage {
    margin-bottom: 80px;
    display: flex;
    justify-content: center;
}

.video-polaroid {
    background: #fff;
    padding: 15px 15px 50px 15px; /* extra bottom like real polaroid */
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
    max-width: 900px;
    width: 100%;
    position: relative;
    transition: transform 0.4s var(--transition-curve),
                box-shadow 0.4s var(--transition-curve);
}

/* Hover lift like gallery */
.video-polaroid:hover {
    transform: translateY(-10px);
    box-shadow: 0 40px 80px rgba(0,0,0,0.18);
}

.video-media {
    overflow: hidden;
    background: #000;
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Caption area */
.video-caption {
    margin-top: 30px;
    text-align: center;
    padding: 0 20px;
}

.video-title {
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.2;
    margin: 10px 0 15px 0;
    letter-spacing: -1px;
}

.video-subtitle {
    font-size: 1.1rem;
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
}

.video-meta {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    color: #999;
}


