
/* =================================
   SOL STRATICO — PORTFOLIO
   California, 1975
================================= */

/* 01. PALETA CROMÁTICA */

:root {
    --crema: #F5EBD8;
    --azul: #2359B5;
    --rosa: #EBA6BE;
    --verde: #497E55;
}

/* 02. CONFIGURACIÓN GENERAL */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: var(--crema);
    color: var(--azul);
    font-family: 'DM Sans', sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

::selection {
    background: var(--rosa);
    color: var(--azul);
}

/* 03. MENÚ SUPERIOR */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 5%;
    border-bottom: 1px solid var(--azul);
}

.logo {
    font-family: 'Archivo', sans-serif;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -1px;
}

.menu {
    display: flex;
    gap: 28px;
    font-size: 14px;
}

.menu a {
    transition: color 0.3s ease;
}

.menu a:hover {
    color: var(--verde);
    text-decoration: underline;
}

/* 04. PRESENTACIÓN PRINCIPAL */

.hero {
    padding: 100px 5% 60px;
}

.hero h1 {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(48px, 8vw, 140px);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 1;
    margin: 0;
}

.hero p {
    color: var(--verde);
    font-size: 13px;
    letter-spacing: 3px;
    margin-top: 24px;
}

.arrow {
    display: block;
    text-align: center;
    font-size: 36px;
    margin-top: 65px;
    transition: transform 0.3s ease;
}

.arrow:hover {
    transform: translateY(8px);
}

/* 05. GALERÍA DE PROYECTOS */

.work {
    padding: 0 5% 80px;
}

.work h2 {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-top: 1px solid var(--verde);
    padding-top: 20px;
    margin-bottom: 20px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.project {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--azul);
    color: var(--crema);
    font-family: 'Archivo', sans-serif;
    font-size: clamp(24px, 4vw, 50px);
    font-weight: 700;
}

.project:nth-child(2) .placeholder {
    background-color: var(--rosa);
    color: var(--azul);
}

.project:nth-child(3) .placeholder {
    background-color: var(--verde);
}

.project:nth-child(4) .placeholder {
    background-color: var(--azul);
}

.project img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

/* 06. EFECTO HOVER */

.overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(235, 166, 190, 0.94);
    color: var(--azul);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.overlay h3 {
    font-family: 'Archivo', sans-serif;
    font-size: 30px;
    margin: 0;
}

.overlay p {
    font-size: 14px;
    margin-top: 12px;
}

.project:hover .overlay,
.project:focus-within .overlay {
    opacity: 1;
}

.project:hover img {
    transform: scale(1.04);
}

/* 07. CONTACTO */

footer {
    padding: 70px 5%;
    background-color: var(--azul);
    color: var(--crema);
}

footer h2 {
    font-family: 'Archivo', sans-serif;
    font-size: 42px;
    margin-top: 0;
}

/* 08. ADAPTACIÓN A CELULARES */

@media (max-width: 768px) {

    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .menu {
        flex-wrap: wrap;
        gap: 15px;
        font-size: 12px;
    }

    .hero {
        padding-top: 65px;
        padding-bottom: 40px;
    }

    .hero h1 {
        font-size: 56px;
    }

    .hero p {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .arrow {
        margin-top: 35px;
    }
}

@media (hover: none) {
    .overlay {
        inset: auto 0 0;
        opacity: 1;
        padding: 12px;
    }

    .overlay h3 {
        font-size: 18px;
    }

    .overlay p {
        margin: 4px 0 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
    }
}
