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

html {
    scroll-behavior: smooth;
}

body {
    font-family: sans-serif, Arial, Helvetica;
    background: #f5f2eb;
    color: #25251f;
}

/* NAVBAR */

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
    transition: background 0.3s ease;
}

header.scrolled {
    background: rgba(41, 37, 31, 0.75);
    backdrop-filter: blur(10px);
    box-shadow: 0 16px 20px rgba(0, 0, 0, 0.15);
}
p {
    text-align: justify;
}

.navbar {
    position: relative;
    max-width: 1200px;
    margin: auto;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logotipo {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.384);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.logotipo img {
    width: 150px;
    height: 150px;
    object-fit: cover;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 2px;
    color: white;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color:white;
    text-decoration: none;
    font-size: 14px;
}

/* HERO */

.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 120px 8%;
    background: linear-gradient(
        rgba(20, 15, 10, 0.65),
        rgba(20, 15, 10, 0)
    ),
    url("img/hero.jpeg");
    background-size: cover;
    background-position: center;
    color: white;
}

.hero-content {
    padding-top: 10px;
    max-width: 750px;
}

.small-title {
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 64px;
    line-height: 0.95;
    margin-bottom: 30px;
}

.hero h1 span {
    display: block;
    color: #d4a45c;
}

.hero p {
    max-width: 600px;
    font-size: 18px;
    line-height: 1.6;
}

.hero-buttons {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-stat {
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 12px;
    width: 248px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stat strong {
    font-size: 42px;
    color: #d4a45c;
    font-weight: 800;
    line-height: 1;
}

.hero-stat span {
    max-width: 140px;
    font-size: 13px;
    line-height: 1.4;
    color: #ddd;
}

/* BOTONES */

.btn {
    display: inline-block;
    padding: 15px 25px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s;
}

.btn-primary {
    background: #c18a45;
    color: white;
}

.btn-primary:hover {
    background: #a97232;
    transform: translateY(-2px);
}

.btn-secondary {
    border: 1px solid white;
    color: white;
}

.btn-secondary:hover {
    background: white;
    color:#222;
}

/* SECCIONES */

.section {
    max-width: 1200px;
    margin: auto;
    padding: 110px 30px;
}

.section-title {
    max-width: 700px;
    margin-bottom: 60px;
}

.section-title p {
    color: #a97232;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 3px;
}

.section-title h2 {
    font-size: 50px;
    margin: 15px 0;
}

.section-title span {
    color: #666;
}

/* PRODUCTOS */

.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.product-card {
    background: white;
    overflow: hidden;
    transition: .3s ease;
}

.product-card:hover {
    background: #ddd;
    transform: translateY(-10px);
}

.product-image {
    height: 230px;
    background: linear-gradient(
        rgba(50, 35, 20, 0.25),
        rgba(50, 35, 20, 0.25)
    );
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    color: white;
}

.product-image span {
    font-size: 13px;
    font-weight: bold;
}

.product-image-machimbre {
    background-image: linear-gradient(
        rgba(50, 35, 20, 0.25),
        rgba(50, 35, 20, 0.25)
    ),
    url("img/machimbre.jpeg");
}

.product-image-tablas {
    background-image: linear-gradient(
        rgba(50, 35, 20, 0.25),
        rgba(50, 35, 20, 0.25)
    ),
    url("img/tabla.jpeg");
}

.product-image-tirantes {
    background-image: linear-gradient(
        rgba(50, 35, 20, 0.25),
        rgba(50, 35, 20, 0.25)
    ),
    url("img/tirante.jpeg");
}

.product-content {
    padding: 30px;
}

.product-content h3 {
    font-size: 25px;
    margin-bottom: 15px;
}

.product-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.product-specs {
    font-size: 13px;
    color: #25251f;
    background: #f5f2eb;
    padding: 8px 12px;
    border-left: 3px solid #a97232;
    margin-bottom: 20px;
}

.product-content a {
    color: #a97232;
    text-decoration: none;
    font-weight: bold;
}

/* POR QUÉ NOSOTROS */

.why-us {
    background: linear-gradient(
        rgba(20, 15, 10, 0.75),
        rgba(20, 15, 10, 0.75)
    ),
    url("img/why-us.jpeg");
    background-size: cover;
    background-position: center;
    color: white;
    padding: 110px 8%;
}

.why-content {
    max-width: 1200px;
    margin: auto;
}

.why-content h2 {
    font-size: 60px;
    max-width: 700px;
    margin-bottom: 25px;
}

.why-content p {
    max-width: 600px;
    color: #c9c4bc;
    line-height: 1.7;
}

.testimonials {
    max-width: 1200px;
    margin: auto;
    padding: 110px 30px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: white;
    padding: 35px 30px;
    border-top: 3px solid #a97232;
}

.testimonial-text {
    font-style: italic;
    color: #444;
    line-height: 1.7;
    margin-bottom: 20px;
}

.testimonial-author {
    font-weight: bold;
    font-size: 15px;
}

.testimonial-role {
    color: #a97232;
    font-size: 13px;
}

.testimonials-grid-empty {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: auto;
}

.testimonials-grid-empty .testimonial-text {
    text-align: center;
    font-style: normal;
}

.features {
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.features div {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.features strong {
    color: #d4a45c;
    font-size: 14px;
}

.features h3 {
    margin: 15px 0;
    font-size: 22px;
}

.features p {
    color: #aaa;
    line-height: 1.6;
}

/* NOSOTROS */

.about {
    max-width: 900px;
    margin: auto;
    padding: 120px 30px;
}

.about h2 {
    font-size: 50px;
    margin: 15px 0 30px;
}

.about p:not(.small-title) {
    color: #666;
    line-height:1.8;
    margin-bottom: 15px;
}

/* CONTACTO */

.contact {
    padding: 100px 30px;
    background: #d4a45c;
}

.contact-box {
    max-width: 900px;
    margin: auto;
}

.contact h2 {
    font-size: 60px;
    margin-bottom: 20px;
}

.contact p {
    margin-bottom: 30px;
}

.contact-info {
    margin-bottom: 25px;
}

.contact-info p {
    margin-bottom: 8px;
    font-size: 15px;
}

.contact-info a {
    color: #25251f;
    text-decoration: underline;
}

.contact-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.map-embed {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

/* FOOTER */

footer {
    background: #171612;
    color: white;
    padding: 50px 8%;
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

footer p {
    color: #888;
    margin-top: 10px;
}

.footer-social {
    display: flex;
    gap: 15px;
    align-items: center;
}

.footer-social a {
    color: white;
    display: flex;
    transition: color 0.2s ease;
}

.footer-social a:hover {
    color: #d4a45c;
    transform: translateY(-2px);
}

/* CELULAR */

@media (max-width: 800px) {
    .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    width: 220px;
    background: #29251f;
    flex-direction: column;
    padding: 0 30px;
    gap: 20px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    }
    .nav-links.active {
    max-height: 300px;
    opacity: 0.85;
    padding: 20px 30px;
    }
    .menu-toggle {
    display: block;
    }
    .products {
        grid-template-columns: 1fr;
    }
    .features {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 50px;
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .section h2,
    .about h2,
    .why-content h2,
    .contact h2 {
        font-size: 40px;
    }
    footer {
        flex-direction: column;
    }
}