/* --------------------
   VARIABLES & RESET
---------------------*/
:root {
    --color-azul-profundo: #003366;
    --color-celeste-suave: #E5F1F8;
    --color-gris-claro: #F6F6F6;
    --color-blanco: #FFFFFF;
    --color-amarillo-huevo: #F3C64C;

    --color-texto-principal: #1f2933;
    --color-texto-suave: #4b5563;

    --container-width: 1120px;
    --padding-section: 5rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--color-texto-principal);
    background-color: var(--color-blanco);
    line-height: 1.6;
}

/* Links */
a {
    color: var(--color-azul-profundo);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Layout base */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --------------------
   HEADER / NAV
---------------------*/
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #e5e7eb;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.logo img {
    max-height: 48px;
    display: block;
}

/* Navegación desktop */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.main-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-texto-principal);
}

.main-nav a:hover {
    color: var(--color-azul-profundo);
}

/* Botón menú móvil */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--color-texto-principal);
    border-radius: 999px;
}

/* --------------------
   HERO
---------------------*/
.hero {
    padding: calc(var(--padding-section) + 1.5rem) 0 var(--padding-section);
    background: radial-gradient(circle at top left, var(--color-celeste-suave) 0, #ffffff 58%);
}

.hero-inner {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--color-azul-profundo);
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

.hero-sub {
    font-size: 1.05rem;
    max-width: 28rem;
    color: var(--color-texto-suave);
    margin-bottom: 1.75rem;
}

.hero-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.pillar {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 1.25rem;
    padding: 1rem 1.1rem;
    border: 1px solid #e5e7eb;
}

.pillar-icon span {
    font-size: 1.4rem;
    display: inline-block;
    margin-bottom: 0.4rem;
}

.pillar h3 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.25rem;
}

.pillar p {
    font-size: 0.85rem;
    color: var(--color-texto-suave);
}

.hero-intro {
    font-size: 0.98rem;
    max-width: 32rem;
    color: var(--color-texto-suave);
}

.hero-image img {
    width: 100%;
    border-radius: 1.5rem;
    object-fit: cover;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.15);
}

/* --------------------
   SECCIONES GENERALES
---------------------*/
.section {
    padding: var(--padding-section) 0;
}

.section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.25rem;
    color: var(--color-azul-profundo);
}

.section-intro {
    max-width: 34rem;
    font-size: 0.98rem;
    color: var(--color-texto-suave);
    margin-bottom: 2rem;
}

.light-bg {
    background-color: var(--color-gris-claro);
}

.soft-bg {
    background-color: var(--color-celeste-suave);
}

/* Two-column layout */
.two-column {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

.text-block p {
    margin-bottom: 0.9rem;
    color: var(--color-texto-suave);
}

.image-block img {
    width: 100%;
    border-radius: 1.25rem;
    object-fit: cover;
}

/* --------------------
   PRODUCTOS
---------------------*/
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background-color: var(--color-blanco);
    border-radius: 1.25rem;
    padding: 1.4rem 1.4rem 1.6rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.product-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.6rem;
    color: var(--color-azul-profundo);
}

.product-card p {
    font-size: 0.92rem;
    color: var(--color-texto-suave);
}

.product-card-soon {
    border-style: dashed;
    background: repeating-linear-gradient(
        -45deg,
        #ffffff,
        #ffffff 10px,
        #f9fafb 10px,
        #f9fafb 20px
    );
}

/* --------------------
   FILOSOFÍA
---------------------*/
.values-list {
    list-style: none;
    margin: 0.75rem 0 1.5rem;
}

.values-list li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.values-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background-color: var(--color-amarillo-huevo);
}

/* --------------------
   GALERÍA
---------------------*/
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 1rem;
    background-color: #e5e7eb;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    transition: transform 0.3s ease-out;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

/* --------------------
   CONTACTO
---------------------*/
.contacto-grid {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

.contact-list {
    list-style: none;
    display: grid;
    gap: 1rem;
}

.contact-label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    color: var(--color-texto-suave);
    margin-bottom: 0.15rem;
}

.contact-list a {
    font-weight: 500;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.social-links a {
    font-size: 0.9rem;
}

.contact-image img {
    width: 100%;
    border-radius: 1.25rem;
    object-fit: cover;
}

/* --------------------
   FOOTER
---------------------*/
.site-footer {
    background-color: var(--color-azul-profundo);
    color: var(--color-blanco);
    padding: 1.5rem 0;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
}

.footer-brand {
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}

.footer-text {
    opacity: 0.85;
}

/* --------------------
   RESPONSIVE
---------------------*/
@media (min-width: 768px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    }

    .two-column {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    }

    .contacto-grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    }
}

@media (max-width: 767px) {
    /* Menú móvil */
    .main-nav {
        position: absolute;
        inset: 64px 0 auto 0;
        background-color: #ffffff;
        border-bottom: 1px solid #e5e7eb;
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.25s ease-out;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 0.75rem 1.5rem 1.25rem;
        gap: 0.75rem;
    }

    .main-nav.nav-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding-top: calc(var(--padding-section) + 0.5rem);
    }
}

@media (max-width: 480px) {
    :root {
        --padding-section: 3.5rem;
    }

    .hero-pillars {
        grid-template-columns: 1fr;
    }

    .site-footer {
        text-align: center;
    }

    .footer-inner {
        justify-content: center;
    }
}
