/* 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;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 1rem;
}

.hero-home {
    align-items: flex-start;
    text-align: left;
    padding: 0 5%;
}

.hero-kicker,
.section-tag {
    display: inline-block;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

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

/* Projects Grid */
.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 320px)); /* 🔥 límite real */
    justify-content: center; /* 🔥 centra cuando hay pocos */
    gap: 2rem;
    padding: 5rem 5%;
    max-width: 1100px; /* 🔥 evita que se expanda toda la pantalla */
    margin: 0 auto;
}

.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;
}

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

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

.home-intro,
.solutions-strip,
.featured-products,
.process-section,
.cta-section {
    padding: 5rem 5%;
}

.home-intro,
.featured-products,
.cta-section {
    background: #fff;
}

.solutions-strip {
    background: linear-gradient(180deg, #f5f7fb 0%, #eef3fb 100%);
}

.process-section {
    background: #f8fafc;
}

.cta-section {
    padding-top: 1rem;
}

.section-heading {
    max-width: 820px;
    margin-bottom: 2.5rem;
}

.section-heading-centered {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-heading .section-tag,
.cta-panel .section-tag {
    background: #dbe7fb;
    color: #0A2E6D;
}

.section-heading h2,
.cta-panel h2 {
    font-size: 2.3rem;
    line-height: 1.2;
    color: #0f172a;
    margin-bottom: 1rem;
}

.section-heading p,
.cta-panel p {
    color: #475569;
    font-size: 1.05rem;
    max-width: 760px;
}

.value-grid,
.solution-grid,
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.value-card,
.solution-card,
.process-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 1.6rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.value-card h3,
.solution-card h3,
.process-card h3 {
    color: #0A2E6D;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.value-card p,
.solution-card p,
.process-card p {
    color: #475569;
}

.process-step {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #2A5CAA;
    color: #fff;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-panel {
    background: linear-gradient(135deg, #0A2E6D 0%, #163c87 100%);
    color: #fff;
    border-radius: 24px;
    padding: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

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

/* 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;
}

/* 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-home {
        text-align: left;
        padding-top: 120px;
        padding-bottom: 60px;
        min-height: auto;
        height: auto;
    }

    .section-heading h2,
    .cta-panel h2 {
        font-size: 1.9rem;
    }

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

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

@media (max-width: 480px) {
    .hero-actions,
    .cta-panel-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-button,
    .cta-button-light {
        text-align: center;
    }

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