:root {
    color-scheme: dark;
    font-family: 'Inter', sans-serif;
    --bg: #0b1120;
    --bg-card: #131d2f;
    --fg: #f8fafc;
    --muted: #94a3b8;
    --accent: #f97316;
    --accent-soft: rgba(249, 115, 22, 0.16);
    --border: rgba(255, 255, 255, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(rgba(8, 14, 27, 0.88), rgba(8, 14, 27, 0.88)),
        url('fondo-ferreteria.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--fg);
    min-height: 100vh;
}

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

button,
input,
textarea,
a {
    font: inherit;
}

.container {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(8, 14, 27, 0.92);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.brand-mark {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.85rem;
    display: grid;
    place-items: center;
    background: var(--accent);
    color: #111827;
    font-weight: 800;
}

.brand-name {
    font-size: 1.15rem;
    font-weight: 800;
}

.brand-subtitle {
    color: var(--muted);
    font-size: 0.85rem;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--fg);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

.menu-toggle {
    display: none;
    border: none;
    background: var(--accent);
    color: #0f172a;
    font-weight: 700;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 0.85rem;
    cursor: pointer;
}

.btn {
    border: none;
    cursor: pointer;
    border-radius: 999px;
    padding: 0.9rem 1.6rem;
    font-weight: 700;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #fbbf24);
    color: #0f172a;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--fg);
    border: 1px solid var(--border);
}

.hero {
    padding: 5rem 0 3rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: center;
}

.eyebrow {
    display: inline-block;
    background: rgba(249, 115, 22, 0.12);
    color: var(--accent);
    border-radius: 999px;
    padding: 0.5rem 1rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.75rem;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: clamp(2.6rem, 4vw, 4.2rem);
    line-height: 1.02;
    margin-bottom: 1.4rem;
}

.hero p {
    max-width: 42rem;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-card {
    display: grid;
    gap: 1.5rem;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid var(--border);
    border-radius: 2rem;
    padding: 2rem;
    box-shadow: 0 24px 80px -48px rgba(0, 0, 0, 0.6);
}

.hero-media img {
    width: 100%;
    height: auto;
    border-radius: 1.5rem;
    object-fit: cover;
}

.product-image {
    width: 100%;
    height: auto;
    max-height: 18rem;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 1.4rem;
    margin-bottom: 1rem;
    padding: 0.65rem;
}

.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 1.4rem;
    margin-bottom: 1rem;
    background: rgba(15, 23, 42, 0.95);
    padding: 1rem 0;
}

.carousel-track {
    display: flex;
    transition: transform 0.45s ease;
}

.carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.95);
    min-height: 24rem;
    height: 24rem;
}

.carousel-slide img {
    width: auto;
    height: auto;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    display: block;
    background: transparent;
    border-radius: 1.4rem;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    border: none;
    background: rgba(15, 23, 42, 0.78);
    color: var(--fg);
    font-size: 1.4rem;
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
}

.carousel-control.prev {
    left: 0.85rem;
}

.carousel-control.next {
    right: 0.85rem;
}

.carousel-indicators {
    position: absolute;
    left: 50%;
    bottom: 0.85rem;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.carousel-indicator {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: background 0.2s ease;
}

.carousel-indicator.active {
    background: var(--accent);
}

.hero-badge {
    display: inline-flex;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.12);
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-info {
    display: grid;
    gap: 1.25rem;
}

.hero-info div {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 1.4rem;
    padding: 1.2rem 1.4rem;
}

.hero-info strong {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--fg);
}

.section {
    padding: 4rem 0;
}

.section-alt {
    background: rgba(255,255,255,0.02);
}

.section-header,
.section-text {
    max-width: 38rem;
}

.section-label {
    display: inline-block;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    margin-bottom: 0.8rem;
}

.section-grid {
    display: grid;
    gap: 2rem;
}

.section-grid.reverse {
    grid-template-columns: 0.95fr 1.05fr;
}

.section h2 {
    font-size: clamp(2rem, 2.5vw, 3rem);
    margin-bottom: 1rem;
}

.section p {
    color: var(--muted);
    line-height: 1.8;
}

.features {
    display: grid;
    gap: 1rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    padding: 1.5rem;
    min-height: 8rem;
}

.feature-card h3 {
    margin-bottom: 0.75rem;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.product-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 1.75rem;
    padding: 1.75rem;
    min-height: 12rem;
}

.product-card h3 {
    margin-bottom: 0.85rem;
}

.benefits-list {
    list-style: none;
    display: grid;
    gap: 1rem;
    padding-left: 0;
}

.benefits-list li {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 1.4rem;
    padding: 1.1rem 1.2rem;
    color: var(--muted);
}

.benefit-image {
    display: grid;
    place-items: center;
}

.image-card {
    width: 100%;
    min-height: 24rem;
    border-radius: 2rem;
    background-image: linear-gradient(135deg, rgba(249,115,22,0.20), rgba(15,23,42,0.8)), url('https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}

.section-contact {
    padding-bottom: 5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 0.95fr;
    gap: 2rem;
}

.contact-list {
    display: grid;
    gap: 1rem;
    margin-top: 1.75rem;
}

.contact-list div {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    padding: 1.2rem 1.3rem;
}

.contact-list strong {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--fg);
}

.contact-list a {
    color: var(--accent);
    text-decoration: none;
}

.contact-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 2rem;
    padding: 2rem;
}

.contact-card h3 {
    margin-bottom: 1.25rem;
}

.contact-form {
    display: grid;
    gap: 1rem;
}

.contact-form label {
    font-size: 0.85rem;
    color: var(--muted);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: var(--fg);
    padding: 1rem;
    border-radius: 1rem;
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgba(249, 115, 22, 0.55);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.site-footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0 2.5rem;
    margin-top: 2rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.95rem;
}

.footer-inner code {
    background: rgba(255,255,255,0.05);
    padding: 0.2rem 0.4rem;
    border-radius: 0.45rem;
    color: var(--fg);
}

@media (max-width: 920px) {
    .hero-grid,
    .contact-grid,
    .section-grid,
    .product-grid,
    .section-grid.reverse {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 4rem;
    }
}

@media (max-width: 720px) {
    .header-inner {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(8,14,27,0.98);
        flex-direction: column;
        gap: 0;
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.3s ease;
    }

    .nav-links.nav-open {
        max-height: 16rem;
    }

    .nav-links a {
        display: block;
        padding: 1rem 1.5rem;
        border-top: 1px solid var(--border);
    }

    .menu-toggle {
        display: inline-flex;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

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

@media (max-width: 540px) {
    .header-inner {
        padding-bottom: 0.5rem;
    }

    .brand-name {
        font-size: 1rem;
    }

    .btn {
        width: 100%;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-card,
    .contact-card,
    .feature-card,
    .product-card,
    .contact-list div {
        padding: 1.35rem;
    }
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(249, 115, 22, 0.1);
    color: var(--accent);
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: background 0.2s ease;
}

.social-link:hover {
    background: rgba(249, 115, 22, 0.2);
}
