@import url("https://fonts.googleapis.com/css2?family=Climate+Crisis&display=swap");

/* ===================
   Variables y Reset
   =================== */
:root {
    --colorPrimario: rgba(100, 75, 130, 1);
    --colorOverlay: rgba(65, 55, 75, 0.8);
    --colorSecundario: rgba(30, 30, 30,1);
    --colorMediador: rgba(190, 150, 80, 1);
    --colorTexto: rgba(220, 215, 225, 1);
}

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

/* ===================
   Base
   =================== */
body {
    font-family: "Helvetica", "Arial", sans-serif;
    line-height: 1.6;
    color: var(--colorTexto);
    background-color: #000;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================
   Layout Principal
   =================== */
header,
footer {
    border: 7px solid black;
    background-color: var(--colorPrimario);
    text-align: center;
    color: var(--colorTexto);
    padding: 60px 0 40px;
}

main {
    border-right: 7px solid black;
    border-left: 7px solid black;
    background-color: var(--colorSecundario);
}

/* ===================
   Header
   =================== */
h1,
h2 {
    font-family: "Climate Crisis", sans-serif;
    font-weight: 400;
    line-height: 1.1;
    position: relative;
    z-index: 1;
}

h1 {
    font-size: calc(1.2rem + 3vw);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

h2 {
    font-size: calc(0.9rem + 0.9vw);
    margin-bottom: 30px;
}

/* ===================
   Navigation
   =================== */
.nav {
    text-align: center;
    padding: 2rem 0 1rem 0;
}

.nav a {
    font-family: "Climate Crisis", sans-serif;
    letter-spacing: 2px;
    font-size: calc(0.6rem + 0.6vw);
    background-color: var(--colorMediador);
    color: rgba(235, 230, 240, 0.9);
    border: 6px solid #000;
    padding: 25px 50px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 12px 12px 0 #000;
    text-decoration: none;
    display: inline-block;
    width: fit-content;
    position: relative;
    z-index: 1;
    transition: background-color ease 1s;
}

.nav a:hover {
    color: var(--colorTexto);
    transform: translate(4px, 4px);
    box-shadow: 8px 8px 0 #000;
}

.nav a:first-child {
    margin-right: 1rem;
    color: var(--colorTexto);
}

.nav a.active {
    background-color: var(--colorPrimario);
    transform: translate(4px, 4px);
    box-shadow: 8px 8px 0 #000;
}

/* ===================
   Gallery
   =================== */
.gallery {
    padding: 40px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
    background-color: #000;
    border: 7px solid black;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    background-color: #f0f0f0;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.01);
    z-index: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
    aspect-ratio: 1 / 1.35;
}

.gallery-item:hover img {
    opacity: 0.9;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--colorOverlay);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h3 {
    color: var(--colorMediador);
    font-size: 1.1rem;
    margin-bottom: 5px;
    letter-spacing: 1px;
    font-weight: bolder;
    padding:0 1.5rem;
    text-align: center;
}

.gallery-overlay p {
    color: rgb(245, 245, 240);
    font-size: 0.9rem;
    letter-spacing: 1px;
    padding:0 1.5rem;
    text-align: center;
}


/* ===================
   Single 
   =================== */

section.single{
    padding:3vw 6vw;
    color: var(--colorTexto);
}

section.single h3{
    text-align: center;
    font-size: calc(1rem + 2vw);
    color: var(--colorMediador);
    text-transform: uppercase;
    font-weight: 800;
    line-height: 1.2;
}

section.single h4{
    text-align: center;
    font-size: calc(1rem + 1vw);
    color: var(--colorMediador);
    font-weight: 800;
}

section.single h5{
    text-align: center;
    font-size: calc(1rem + 0.5vw);
    color: var(--colorMediador);
    font-weight: 800;
}

section.single p, section.single ul{
    width:min(95%, 800px);
    margin:1rem auto;
}

section.single p b{
    color: var(--colorMediador);
}

section.single img{
    width:calc(100% - 8px);
    border:4px solid black;
    margin:1rem 0;
}

section.single hr {
    border: none;
    height: 2px;  
    background-color: #404040; 
    margin: 1rem 0; 
}

section.single a {
    color: var(--colorMediador);
}

/* ===================
   About 
   =================== */
.about-section {
    padding: 60px 0;
    color: var(--colorTexto);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.about-text p {
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.about-text p em{
    font-weight: bolder;
    font-style: normal;
    color: var(--colorMediador);
}

.about-text p a{
    font-weight: bolder;
    font-style: normal;
    color: rgba(189, 151, 81, 0.9);
}

.about-text p a:hover{
    color: var(--colorMediador);
}

.about-text ul{
    list-style-position: inside;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    filter: grayscale(20%);
}

/* ===================
   Mugshot
   =================== */

.mugshot-frame {
    border: 8px solid #000;
    box-shadow: 20px 20px 0 #000;
    background-color: #fff;
    padding: 20px;
    transform: rotate(2deg);
    transition: transform 0.3s ease;
}

.mugshot-frame:hover {
    transform: rotate(-1deg) scale(1.02);
}

.mugshot {
    width: 100%;
    height: auto;
    background: black;
}

.mugshot img {
    border: 4px solid #000;
    border-bottom: 1px solid #000;
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

/* ===================
   Footer
   =================== */
.footer p {
    color: var(--colorTexto);
    font-size: 0.9rem;
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    color: rgba(235, 230, 240, 0.5);
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--colorTexto);
}

/* ===================
   Media Queries
   =================== */

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content {
        gap: 40px;
    }
}

/* Mobile */
@media (max-width: 768px) {

    .nav a:first-child {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .gallery-overlay h3 {
        font-size: 1rem;
    }

    .gallery-overlay p {
        font-size: 0.8rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .mugshot-frame {
        margin-right: 30px;
    }
    
}
