/* Reset y estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #333;
    line-height: 1.6;
    background: #f9f9f9;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .5rem 5%;
    background: white;
    position: fixed;
    width: 100%;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo a {
    font-size: 1.8rem;
    font-weight: 600;
    text-decoration: none;
    color: #000;
}

.navbar ul {
    display: flex;
    list-style: none;
}

.navbar li {
    margin-left: 2rem;
}

.navbar a {
    text-decoration: none;
    color: #555;
    font-weight: 400;
    transition: color 0.3s;
}

.navbar a:hover {
    color: #000;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
    background: url('../img/leer_madera.jpg') no-repeat center/cover;
    color: white;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero h1,
.hero p {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
}

/* Projects Grid */
.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 5rem 5%;
}

.project-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding-bottom: 1.5rem;
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.project-card h3 {
    padding: 1.5rem;
    margin: 1rem 0 0.5rem;
    font-size: 1.5rem;
    color: #0A2E6D;
    background: white;
}

.project-card p {
    color: #555;
    margin-bottom: 1rem;
}

.cta-button {
    background: #2A5CAA;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    transition: background 0.3s;
}

.cta-button:hover {
    background: #0A2E6D;
}

/* Productos grid */
.productos-page {
    padding: 100px 5% 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.filtros-categorias {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.filtros-categorias a {
    padding: 0.5rem 1rem;
    background: #f5f5f5;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.filtros-categorias a:hover,
.filtros-categorias a.active {
    background: #2A5CAA;
    color: white;
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.producto-card {
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    background: #fff;
}

.producto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.producto-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.producto-info {
    padding: 1.5rem;
}

.producto-info h3 {
    margin: 0 0 0.5rem;
    color: #0A2E6D;
}

.producto-info .categoria {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.especificaciones {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    font-size: 0.9rem;
}

.especificaciones li {
    margin-bottom: 0.3rem;
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: #666;
}

/* Estilos del formulario flotante */
.contact-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    margin-top: 80px;
    max-height: 80vh;
    overflow-y: auto;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#contact-form input,
#contact-form select,
#contact-form textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
}

#contact-form textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background: #0A2E6D;
    color: white;
    padding: 3rem 5%;
    margin-top: 4rem;
    text-align: center;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h3 {
    color: #E1F0FF;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.contact-info i {
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

.copyright {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.catalog-home {
    background:
        radial-gradient(circle at top left, rgba(42, 92, 170, 0.16), transparent 32%),
        linear-gradient(180deg, #eef4fb 0%, #f8fbff 34%, #ffffff 100%);
}

.hero-catalog {
    min-height: auto;
    padding: 8rem 5% 4rem;
    align-items: stretch;
    text-align: left;
    background:
        linear-gradient(135deg, rgba(7, 26, 61, 0.88), rgba(15, 61, 128, 0.74)),
        url('../img/mamparas.jpg') no-repeat center/cover;
}

.hero-catalog::before {
    background:
        linear-gradient(120deg, rgba(5, 17, 40, 0.15), rgba(5, 17, 40, 0.55));
}

.hero-shell {
    position: relative;
    z-index: 2;
    width: min(1180px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.95fr);
    gap: 2rem;
    align-items: end;
}

.hero-copy h1 {
    font-size: clamp(2.8rem, 5vw, 4.8rem);
    line-height: 1.02;
    max-width: 10ch;
    margin-bottom: 1.25rem;
}

.hero-copy p {
    max-width: 640px;
    font-size: 1.08rem;
    color: rgba(255, 255, 255, 0.88);
}

.hero-kicker,
.section-kicker,
.hero-panel-label,
.category-count,
.project-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 700;
}

.hero-kicker {
    margin-bottom: 1rem;
    color: #cfe1ff;
}

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

.cta-button-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
}

.cta-button-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

.hero-panel {
    position: relative;
    z-index: 2;
    padding: 1.5rem;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    box-shadow: 0 24px 70px rgba(5, 17, 40, 0.18);
}

.hero-panel-label {
    color: #dceaff;
    margin-bottom: 1rem;
}

.hero-highlights {
    list-style: none;
    display: grid;
    gap: 1rem;
}

.hero-highlights li {
    color: rgba(255, 255, 255, 0.92);
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-highlights li:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.catalog-strip,
.catalog-section {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
}

.catalog-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: -2rem;
    position: relative;
    z-index: 4;
}

.catalog-strip-item {
    background: #fff;
    border: 1px solid rgba(13, 44, 96, 0.08);
    border-radius: 22px;
    padding: 1.2rem 1.3rem;
    box-shadow: 0 18px 50px rgba(16, 42, 82, 0.08);
}

.catalog-strip-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: #0b3b8c;
    margin-bottom: 0.35rem;
}

.catalog-strip-label {
    color: #516074;
    font-size: 0.95rem;
}

.catalog-section {
    padding: 4.5rem 0 0;
}

.section-heading {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.8rem;
}

.section-kicker {
    color: #0b3b8c;
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #102a52;
    line-height: 1.05;
    max-width: 12ch;
}

.section-heading p {
    max-width: 720px;
    color: #5c6b80;
    font-size: 1.02rem;
}

.category-grid,
.value-grid {
    display: grid;
    gap: 1.4rem;
}

.category-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.category-card,
.value-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(13, 44, 96, 0.08);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(16, 42, 82, 0.08);
}

.category-card-media {
    aspect-ratio: 1.2 / 1;
    overflow: hidden;
}

.category-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.category-card-content {
    padding: 1.35rem;
    display: grid;
    gap: 1rem;
}

.category-card-top {
    display: grid;
    gap: 0.5rem;
}

.category-count {
    color: #6a7da0;
}

.category-card h3,
.value-card h3 {
    color: #102a52;
    font-size: 1.35rem;
}

.category-card p,
.value-card p {
    color: #5c6b80;
}

.category-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
}

.category-card-footer span {
    color: #0b3b8c;
    font-weight: 600;
}

.category-card-footer a {
    text-decoration: none;
    color: #102a52;
    font-weight: 700;
}

.catalog-products {
    padding: 0;
}

.catalog-products .project-card {
    text-align: left;
    border-radius: 28px;
    padding-bottom: 0;
    overflow: hidden;
}

.catalog-products .project-card img {
    height: 260px;
}

.project-card-body {
    padding: 1.5rem;
}

.project-badge {
    color: #0b3b8c;
    margin-bottom: 0.9rem;
}

.catalog-products .project-card h3 {
    padding: 0;
    margin: 0 0 0.8rem;
}

.catalog-products .project-card p {
    margin-bottom: 1.25rem;
}

.value-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.value-card {
    padding: 1.6rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        padding: 1rem;
    }

    .navbar ul {
        margin-top: 1rem;
    }

    .navbar li {
        margin-left: 1rem;
    }

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

    .hero-catalog {
        padding-top: 7rem;
    }

    .hero-shell,
    .catalog-strip,
    .value-grid {
        grid-template-columns: 1fr;
    }

    .catalog-strip {
        margin-top: -1.5rem;
    }

    .catalog-section {
        width: min(1180px, calc(100% - 1.5rem));
        padding-top: 3.5rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 480px) {
    .hero-copy h1 {
        max-width: none;
    }

    .hero-actions,
    .category-card-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .category-card-footer a {
        text-align: left;
    }

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