
/* ==========================================
   RICA MADE
   01. VARIABLES DE IDENTIDAD VISUAL
========================================== */

:root {
    --paper: #f6f5f1;
    --lime: #dafa4b;
    --ink: #151515;
    --white: #ffffff;
    --gray: #666666;
}


/* ==========================================
   02. CONFIGURACIÓN GENERAL
========================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}

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

p {
    line-height: 1.6;
    color: var(--gray);
    max-width: 540px;
}

h1 {
    font-size: clamp(65px, 10vw, 150px);
    line-height: 0.85;
    letter-spacing: -0.085em;
    margin: 30px 0;
}

h2 {
    font-size: clamp(34px, 5vw, 65px);
    letter-spacing: -0.055em;
    margin: 12px 0 30px;
}

.eyebrow {
    font-size: 11px;
    letter-spacing: 2.1px;
    font-weight: bold;
}


/* ==========================================
   03. ENCABEZADO Y NAVEGACIÓN
========================================== */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 17px 6%;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    background: #f6f5f1f5;
    backdrop-filter: blur(16px);
    z-index: 10;
}

.logo {
    font-size: 42px;
    font-weight: 900;
    letter-spacing: -3.5px;
    color: inherit;
    text-decoration: none;
}

nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

nav a {
    font-weight: 600;
    font-size: 14px;
}

nav a:hover {
    opacity: 0.6;
}


/* ==========================================
   04. BOTONES
========================================== */

button,
.btn {
    border: 0;
    border-radius: 30px;
    padding: 15px 24px;
    background: #171717;
    color: var(--white);
    font-weight: bold;
    cursor: pointer;
    display: inline-block;

    transition:
        transform 0.2s,
        background 0.2s,
        opacity 0.2s;
}

button:hover,
.btn:hover {
    transform: translateY(-2px);
    opacity: 1;
}

.hero .btn:hover {
    background: #424242;
}


/* ==========================================
   05. SECCIÓN PRINCIPAL - HERO
========================================== */

.hero {
    max-width: 1600px;
    margin: auto;
    padding: 65px 6%;

    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5%;
    align-items: center;
}

.hero h1 {
    font-size: clamp(64px, 9.4vw, 148px);
}

.hero p {
    font-size: 19px;
    margin-bottom: 30px;
}


/* ==========================================
   06. ELEMENTO ARTÍSTICO PRINCIPAL
========================================== */

.art {
    position: relative;

    background: radial-gradient(
        circle at 30% 20%,
        #edff9a,
        var(--lime) 55%,
        #b8db27
    );

    aspect-ratio: 1;
    border-radius: 16px;

    display: grid;
    place-items: center;

    overflow: hidden;
    isolation: isolate;
}

.art::before {
    content: '';
    position: absolute;
    inset: 20px;
    border: 1px solid #15151530;
    border-radius: 10px;
    pointer-events: none;
}

.art::after {
    content: 'RICA / CREATIVE STUDIO';

    position: absolute;
    bottom: 30px;
    left: 32px;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.art svg {
    width: 90%;
    height: 90%;
    transition: transform 0.65s ease;
}

.art:hover svg {
    transform: rotate(5deg) scale(1.04);
}


/* ==========================================
   07. BARRA DE SERVICIOS
========================================== */

.strip {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;

    border-block: 1px solid #d8d7d0;
    padding: 19px 6%;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}


/* ==========================================
   08. SECCIONES GENERALES
========================================== */

.section {
    padding: 85px 6%;
    scroll-margin-top: 85px;
}

.section h2 {
    line-height: 1.02;
}

.section-intro {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 25px;
    margin-bottom: 30px;
}

.section-intro h2 {
    margin-bottom: 0;
}

.section-intro p {
    max-width: 320px;
    margin: 0;
}


/* ==========================================
   09. CUADRÍCULA DE MARCAS
========================================== */

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.tile {
    min-height: 385px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    gap: 22px;
    padding: 28px;

    color: var(--white);
    background: #141414;
    border-radius: 14px;

    transition:
        transform 0.25s,
        box-shadow 0.25s;
}

.tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 35px #0002;
}

.tile img {
    width: 100%;
    height: 170px;
    object-fit: contain;
}

.tile h3 {
    font-size: 40px;
    letter-spacing: -2px;
    line-height: 0.9;
    margin: 15px 0;
}

.tile div {
    line-height: 1.5;
}

.tile button {
    background: var(--white);
    color: #000000;
    align-self: flex-start;
    margin-top: 8px;
}


/* ==========================================
   10. MARCA DE TECNOLOGÍA
========================================== */

.tech {
    background: var(--lime);
    color: var(--ink);
}

.tech button {
    background: var(--ink);
    color: var(--white);
}


/* ==========================================
   11. SOBRE NOSOTROS
========================================== */

.about {
    background: #171717;
    color: var(--white);

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: center;
}

.about h2 {
    margin-bottom: 0;
}

.about p {
    color: #bbbbbb;
    font-size: 19px;
}

.about button {
    justify-self: start;
}


/* ==========================================
   12. PIE DE PÁGINA
========================================== */

footer {
    padding: 40px 6%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;
    flex-wrap: wrap;
}

.contact-line {
    font-size: 14px;
    color: var(--gray);
}


/* ==========================================
   13. VENTANAS EMERGENTES
========================================== */

dialog {
    border: 0;
    border-radius: 12px;

    padding: 32px;
    max-width: 550px;
    width: 90%;

    background: var(--paper);
    color: var(--ink);

    box-shadow: 0 20px 90px #0005;
}

dialog::backdrop {
    background: #0009;
}

dialog h2 {
    font-size: 40px;
    line-height: 1.05;
}

dialog li {
    margin: 10px 0;
}


/* ==========================================
   14. FORMULARIOS
========================================== */

input,
textarea,
select {
    width: 100%;
    padding: 12px;

    border: 1px solid #bbbbbb;
    border-radius: 5px;

    margin: 6px 0 14px;
    font: inherit;
}

label {
    font-size: 13px;
}


/* ==========================================
   15. ACCESIBILIDAD
========================================== */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid #7b9200;
    outline-offset: 4px;
}


/* ==========================================
   16. DISEÑO RESPONSIVO - MÓVILES
========================================== */

@media (max-width: 750px) {

    header {
        padding: 14px 5%;
    }

    .logo {
        font-size: 36px;
    }

    nav {
        gap: 10px;
        font-size: 12px;
    }

    nav a {
        font-size: 12px;
    }

    nav button {
        padding: 10px 12px;
        font-size: 12px;
    }

    nav .btn {
        display: none;
    }

    .hero,
    .grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 45px 6%;
    }

    .hero h1 {
        font-size: clamp(60px, 13vw, 100px);
    }

    .section {
        padding: 55px 6%;
    }

    .section-intro,
    .about {
        display: block;
    }

    .section-intro p {
        margin-top: 15px;
    }

    .about p {
        margin-top: 22px;
    }

    .tile {
        min-height: 310px;
    }

    .strip {
        font-size: 9px;
    }

}


/* ==========================================
   17. REDUCCIÓN DE ANIMACIONES
========================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }

}
