/* =========================================================
   Landing Page — Fundación Aristides Ureña Ramos
   Estructura basada en los screenshots reales del sitio.
   ========================================================= */

/* ---------- Variables de diseño (tokens reales del sitio) ---------- */
:root {
    --color-sky: #5b9bd5;         /* azul cielo del header */
    --color-sky-dark: #4a89c4;
    --color-navy: #192a49;        /* azul marino (textos) */
    --color-gold: #ad9660;        /* dorado del footer */
    --color-gold-dark: #9c8654;
    --color-bg: #ffffff;
    --color-text: #3a3a3a;
    --color-text-soft: #666666;
    --color-line: #e4e2dc;

    --font-sans: 'Helvetica Neue', Helvetica, 'Archivo', Arial, sans-serif;
    --font-head: 'Helvetica Neue', Helvetica, 'Archivo', Arial, sans-serif;

    --maxw: 1280px;
    --transition: 0.35s ease;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-weight: 400;
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

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

/* ---------- Helpers ---------- */
.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 32px;
}

.narrow {
    max-width: 1100px;
}

.center {
    text-align: center;
}

/* =========================================================
   HEADER — fondo azul cielo, logo centrado, nav debajo
   ========================================================= */
.site-header {
    background: var(--color-sky);
    padding: 22px 0 0;
    position: relative;
    z-index: 1000;
}

.header-top {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 150px;
}

/* Cuenta (izquierda) */
.header-account {
    justify-self: start;
}

.account-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 0.9rem;
}

.account-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    font-size: 0.85rem;
}

/* Logo (centro) */
.logo {
    justify-self: center;
}

.logo img {
    height: 118px;
    width: auto;
}

/* Carrito (derecha) */
.header-cart {
    justify-self: end;
}

.cart-link {
    position: relative;
    display: inline-flex;
    color: #fff;
    font-size: 1.3rem;
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -10px;
    font-size: 0.7rem;
    background: transparent;
    color: #fff;
}

/* Navegación centrada debajo del logo */
.main-nav {
    display: flex;
    justify-content: center;
    padding: 14px 0 20px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0;
}

.main-nav > ul > li {
    position: relative;
    padding: 0 20px;
}

.main-nav > ul > li + li {
    border-left: 1px solid rgba(255, 255, 255, 0.5);
}

.main-nav a {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    transition: opacity var(--transition);
}

.main-nav a:hover {
    opacity: 0.75;
}

.caret {
    font-size: 0.7rem;
    margin-left: 3px;
}

/* Submenú */
.has-submenu .submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: var(--color-sky);
    padding: 0.5rem 0;
    min-width: 180px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 50;
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.submenu li {
    padding: 0;
    border: none !important;
}

.submenu a {
    display: block;
    padding: 0.5rem 1.4rem;
    white-space: nowrap;
}

/* Botón hamburguesa */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 34px;
    height: 34px;
    background: none;
    border: none;
    cursor: pointer;
    justify-self: end;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: #fff;
    transition: var(--transition);
}

.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO — imagen con título a la izquierda, bordes rasgados
   ========================================================= */
.hero {
    position: relative;
    height: 62vh;
    min-height: 340px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: #fff;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 32px;
    width: 100%;
    text-align: center;
}

.hero-title {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: white;
    line-height: 1.15;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.15;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

/* Borde rasgado inferior del hero (efecto papel) */
.hero::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 28px;
    z-index: 4;
    background: #fff;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 30' preserveAspectRatio='none'%3E%3Cpath d='M0,30 L0,14 C120,4 240,20 360,12 C480,4 600,22 720,10 C840,2 960,20 1080,12 C1140,8 1170,14 1200,12 L1200,30 Z' fill='%23fff'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 30' preserveAspectRatio='none'%3E%3Cpath d='M0,30 L0,14 C120,4 240,20 360,12 C480,4 600,22 720,10 C840,2 960,20 1080,12 C1140,8 1170,14 1200,12 L1200,30 Z' fill='%23fff'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}

/* =========================================================
   GALERÍA DE FOTOS DEL EVENTO (UIKit slideshow)
   ========================================================= */
.event-slider {
    padding: 40px 0 60px;
    background: #fff;
}

/* Flechas de navegación en color de marca */
.slider-nav {
    color: var(--color-navy);
}

/* Miniaturas: tira en una sola línea que se desplaza (uk-slider) */
.thumbs-slider {
    overflow: hidden;
}

.thumbs-list {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.thumb-item {
    width: 110px;
    flex: 0 0 auto;
}

.thumb-item a {
    display: block;
}

.thumb-item img {
    width: 110px;
    height: 72px;
    object-fit: cover;
    opacity: 0.55;
    transition: opacity var(--transition);
}

.thumb-item a:hover img,
.thumb-item.uk-active img {
    opacity: 1;
}

/* =========================================================
   TEXTO CURATORIAL
   ========================================================= */
.curatorial {
    padding: 40px 0 70px;
    text-align: center;
}

.section-title {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: var(--color-navy);
    margin-bottom: 1.2rem;
}

.section-lead {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--color-navy);
    margin-bottom: 1.8rem;
    line-height: 1.6;
}

.curatorial-text p {
    font-size: 1.02rem;
    color: var(--color-text-soft);
    margin-bottom: 1.4rem;
    text-align: left;
}

.curatorial-cta {
    margin-top: 2rem;
}

.btn {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    padding: 13px 40px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-outline {
    border: 1px solid var(--color-navy);
    color: var(--color-navy);
    background: transparent;
}

.btn-outline:hover {
    background: var(--color-navy);
    color: #fff;
}

/* =========================================================
   GALERÍA DE OBRAS — UIKit grid + cards con imágenes 1:1
   ========================================================= */
.gallery-section {
    padding: 30px 0 80px;
    background: #fff;
}

/* La estructura de columnas la maneja UIKit (uk-grid + uk-child-width-*).
   Aquí solo damos espacio vertical entre filas. */
.gallery-grid {
    list-style: none;
}

.gallery-grid > * {
    margin-bottom: 20px;
}

.artwork {
    text-align: center;
}

.artwork-link {
    display: block;
    color: inherit;
}

/* Contenedor cuadrado 1:1 — uk-cover recorta cualquier imagen al cuadro */
.artwork-media {
    overflow: hidden;
    background: #f4f2ec;
    margin-bottom: 18px;
}

.artwork-media img {
    transition: transform 0.6s ease;
}

.artwork:hover .artwork-media img {
    transform: scale(1.04);
}

.artwork-title {
    font-family: var(--font-head);
    font-weight: 400;
    font-size: 1.05rem;
    color: var(--color-navy);
    margin-bottom: 12px;
}

/* Guion decorativo bajo el título */
.artwork-title::after {
    content: '';
    display: block;
    width: 26px;
    height: 1px;
    background: var(--color-navy);
    margin: 12px auto 0;
    opacity: 0.6;
}

.artwork-status {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #999;
}

.artwork-status.disponible { color: var(--color-gold); }
.artwork-status.no-disponible { color: #b0b0b0; }

/* =========================================================
   FOOTER — fondo dorado, nav, sociales, siluetas
   ========================================================= */
.site-footer {
    position: relative;
    background: var(--color-gold);
    color: #fff;
    padding: 70px 0 50px;
    overflow: hidden;
}

.footer-deco {
    position: absolute;
    bottom: -10px;
    width: 130px;
    opacity: 0.28;
    pointer-events: none;
}

.footer-deco img {
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
}

.footer-deco-left { left: 40px; }
.footer-deco-right { right: 40px; }

.footer-content {
    position: relative;
    z-index: 2;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 32px;
    text-align: center;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 26px;
}

.footer-nav a {
    font-size: 0.92rem;
    opacity: 0.95;
    transition: opacity var(--transition);
}

.footer-nav a:hover { opacity: 0.7; }

.footer-divider {
    width: 580px;
    max-width: 80%;
    height: 6px;
    margin: 0 auto 30px;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 72%);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 26px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    color: var(--color-gold);
    transition: transform var(--transition);
}

.social-icon:hover { transform: translateY(-3px); }

.copyright {
    font-size: 0.82rem;
    opacity: 0.9;
}

/* =========================================================
   PÁGINA DE DETALLE DE OBRA (obra.html)
   ========================================================= */
.product-page {
    padding: 40px 0 80px;
}

/* Migas de pan */
.breadcrumb {
    font-size: 0.85rem;
    color: var(--color-text-soft);
    margin-bottom: 30px;
}

.breadcrumb a:hover { color: var(--color-navy); }
.breadcrumb .sep { margin: 0 8px; opacity: 0.6; }
.breadcrumb .current { color: var(--color-navy); }

/* Layout de dos columnas */
.product-layout {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 56px;
    align-items: start;
}

/* Columna izquierda: galería */
.product-main-img {
    background: #f4f2ec;
    overflow: hidden;
}

.product-main-img img {
    width: 100%;
    height: auto;
    display: block;
}

.product-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.product-thumbs img {
    width: 84px;
    height: 84px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.6;
    border: 1px solid transparent;
    transition: opacity var(--transition), border-color var(--transition);
}

.product-thumbs img:hover,
.product-thumbs img.active {
    opacity: 1;
    border-color: var(--color-navy);
}

/* Columna derecha: información */
.product-title {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--color-navy);
    line-height: 1.2;
    margin-bottom: 14px;
}

.product-price {
    font-size: 1.4rem;
    color: var(--color-navy);
    margin-bottom: 28px;
}

/* Cantidad */
.qty-row {
    margin-bottom: 22px;
}

.qty-label {
    display: block;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    color: var(--color-text-soft);
    margin-bottom: 8px;
}

.qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--color-line);
}

.qty-btn {
    width: 42px;
    height: 44px;
    background: #fff;
    border: none;
    font-size: 1.2rem;
    color: var(--color-navy);
    cursor: pointer;
    transition: background var(--transition);
}

.qty-btn:hover { background: #f4f2ec; }

.qty-input {
    width: 56px;
    height: 44px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--color-line);
    border-right: 1px solid var(--color-line);
    font-size: 1rem;
    font-family: inherit;
    color: var(--color-navy);
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Botones de acción a lo ancho */
.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    padding: 15px;
    margin-bottom: 12px;
}

.btn-solid {
    background: var(--color-navy);
    color: #fff;
    border: 1px solid var(--color-navy);
}

.btn-solid:hover { background: #10203c; }

.btn.is-disabled,
.btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Formulario de interés (reemplaza al carrito) */
.interest-form {
    margin-top: 6px;
}

.form-intro {
    font-size: 0.95rem;
    color: var(--color-text-soft);
    margin-bottom: 20px;
}

.form-field {
    margin-bottom: 16px;
}

.form-field label {
    display: block;
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    color: var(--color-navy);
    margin-bottom: 6px;
}

.form-field .req {
    color: #c0392b;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--color-navy);
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: 0;
    transition: border-color var(--transition);
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--color-navy);
}

.form-field textarea {
    resize: vertical;
    min-height: 80px;
}

.form-message {
    margin-top: 18px;
    padding: 16px 18px;
    font-size: 0.95rem;
    line-height: 1.5;
    border-radius: 0;
}

.form-message.success {
    background: #eef6ec;
    color: #2f6b2f;
    border: 1px solid #cfe6c9;
}

.form-message.error {
    background: #fbeeee;
    color: #a33232;
    border: 1px solid #f0d2d2;
}

/* Ficha técnica */
.product-specs {
    margin-top: 32px;
    padding-top: 26px;
    border-top: 1px solid var(--color-line);
}

.specs-title {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-navy);
    margin-bottom: 14px;
}

.specs-list {
    list-style: none;
}

.specs-list li {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 9px 0;
    border-bottom: 1px dashed var(--color-line);
    font-size: 0.92rem;
}

.specs-list li span { color: var(--color-text-soft); }
.specs-list li em { font-style: normal; color: var(--color-navy); text-align: right; }

/* Descripción */
.product-description {
    margin-top: 26px;
    font-size: 0.98rem;
    color: var(--color-text-soft);
    line-height: 1.7;
}

@media (max-width: 820px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* =========================================================
   ANIMACIÓN reveal
   ========================================================= */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 860px) {
    .header-top {
        grid-template-columns: auto 1fr auto;
        min-height: 90px;
    }

    .logo img { height: 74px; }
    .account-text { display: none; }
    .header-account { justify-self: start; }
    .header-cart { display: none; }
    .menu-toggle { display: flex; }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        max-width: 320px;
        height: 100vh;
        background: var(--color-sky);
        padding: 90px 30px 30px;
        transform: translateX(100%);
        transition: transform var(--transition);
        z-index: 1050;
        justify-content: flex-start;
    }

    .main-nav.open { transform: translateX(0); }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.4rem;
    }

    .main-nav > ul > li {
        padding: 0;
    }

    .main-nav > ul > li + li {
        border-left: none;
    }

    .has-submenu .submenu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        background: transparent;
        padding: 0.6rem 0 0 1rem;
    }
}

@media (max-width: 620px) {
    .footer-deco { width: 80px; }
    .footer-nav ul { gap: 1.1rem; }
    .thumb-item,
    .thumb-item img { width: 84px; }
    .thumb-item img { height: 56px; }
}
