
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

p {
    font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 1.05rem;
    line-height: 1.6;
    text-align: center;
    color: #08364a;
    margin: 0.75rem 0;
}

body {
    font-family: 'Roboto', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    margin: 2rem;
    color: #222;
    background-color: #62beff;
    min-height: 100vh;
}

.azul {
    color: #0077cc;
}

h1, h3 {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.08);
    text-align: center;
    font-size: 3rem;
} 

h2 {
    text-align: center;
    font-size: 2rem;
    margin-top: 1rem;
}

/* Logo wrapper and logo image styling */
.logo-wrap { text-align: center; margin: 1rem 0; }
.logo-img {
    display: inline-block;
    background-color: #62beff;
    padding: 0.6rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(3,30,50,0.12);
    transition: transform .18s ease, box-shadow .18s ease;
}
.logo-img:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(3,30,50,0.18); }

/* Outside image wrapper */
.outside-wrap { max-width: 800px; margin: 0.75rem auto; padding: 0 1rem; }
.outside-image {
    width: 100%;
    height: 680px; /* aumentado según solicitud */
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(3,30,50,0.14);
    transition: transform .25s ease, box-shadow .25s ease;
}
.outside-image:hover { transform: scale(1.02); box-shadow: 0 18px 40px rgba(3,30,50,0.22); }

/* Galería de productos (tarjetas) */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    max-width: 1000px;
    margin: 1.25rem auto;
    padding: 0 1rem;
}

.product {
    background: rgba(255,255,255,0.85);
    border-radius: 10px;
    padding: 0.75rem;
    text-align: center;
    box-shadow: 0 6px 18px rgba(3,30,50,0.12);
    transition: transform .18s ease, box-shadow .18s ease;
}

.product:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(3,30,50,0.18);
}

.product img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.product figcaption { margin-top: .5rem; }
.product .name { font-weight: 600; color: #053047; }
.product .price { color: #0077cc; margin-top: .25rem; }

@media (max-width: 480px) {
    .product img { width: 100px; height: 100px; }
}

/* Galería interior (KaruchasInside) - diseño distinto al de productos */
.inside-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 1100px;
    margin: 1.25rem auto;
    padding: 0 1rem;
}

.inside-item img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(3,30,50,0.12);
    transition: transform .25s ease, box-shadow .25s ease;
}

.inside-item img:hover {
    transform: scale(1.03);
    box-shadow: 0 16px 34px rgba(3,30,50,0.18);
}

@media (max-width: 700px) {
    .inside-gallery { grid-template-columns: 1fr; }
    .inside-item img { height: 220px; }
    .outside-image { height: 420px; }
}

@media (max-width: 480px) {
    .outside-image { height: 260px; }
}

/* Header layout: logo left, title centered */
.site-header {
    position: relative;
    padding: 1.5rem 0 0.5rem 0;
}
.site-header h1 {
    text-align: center;
    margin: 0 auto;
}
.logo-wrap {
    position: absolute;
    left: 1rem;
    top: 0.6rem;
}

/* Divider after first link */
.divider {
    border: 0;
    height: 1px;
    background: rgba(0,0,0,0.08);
    margin: 1.25rem 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Reveal on scroll animations */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 700ms cubic-bezier(.2,.8,.2,1), transform 700ms cubic-bezier(.2,.8,.2,1);
    will-change: opacity, transform;
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* Allow per-element delay via data-delay attribute */
.reveal[data-delay] {
    transition-delay: var(--delay, 0ms);
}
