* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f5f7fa;
}

/* HEADER */
header {
    background: #0a1f44;
    color: white;
    padding: 15px 30px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu h1 {
    font-size: 20px;
}

/* MENU */
.menu ul {
    list-style: none;
    display: flex;
}

.menu ul li {
    margin-left: 25px;
}

.menu ul li a {
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.menu ul li a:hover {
    color: #00c3ff;
}

/* HERO (PORTADA TIPO FACEBOOK) */
.hero {
    height: 400px;
    background: 
        linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
        url('../img/fondo.jpg'); /* 👈 usa tu imagen */
    background-size: cover;
    background-position: center;

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* LOGO BOX */
.logo-box {
    max-width: 900px;
    width: 90%;
    margin: 0 auto;

    text-align: center;
    color: white;
    padding: 30px;
    border-radius: 15px;

    backdrop-filter: blur(5px);
}

/* LOGO (RECTANGULAR PRO) */
.logo-img { 
    width: 180px;
    height: auto;
    margin: 0 auto 15px;
}

.logo-img img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* TEXTO HERO */
.logo-box h2 {
    font-size: 28px;
}

.logo-box p {
    margin-top: 10px;
}

/* BOTON CTA */
.cta {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background: #00c3ff;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s;
}

.cta:hover {
    background: #009ed1;
}

/* SECCIONES */
.section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0px 4px 15px rgba(0,0,0,0.1);

    opacity: 0;
    transform: translateY(30px);
    transition: 0.5s;
}

.section h2 {
    margin-bottom: 15px;
    color: #0a1f44;
}

/* GRID */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.card {
    background: #0a1f44;
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

/* PROYECTOS */
.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.project-card img {
    width: 100%;
    border-radius: 10px;
}

.project-card p {
    text-align: center;
    margin-top: 10px;
}

/* MARCAS */
.brands {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    text-align: center;
}

.brands img {
    max-width: 120px;
    transition: 0.3s;
}

.brands img:hover {
    transform: scale(1.1);
}

/* SERVICIOS */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.service-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0px 4px 15px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.service-card h3 {
    padding: 15px;
    color: #0a1f44;
}

.service-card p {
    padding: 0 15px 20px;
    font-size: 14px;
    color: #555;
}

/* MATERIALES */
.materials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.material-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0px 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: 0.3s;
}

.material-card:hover {
    transform: translateY(-5px);
}

.material-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.material-card h3 {
    padding: 15px;
    color: #0a1f44;
}

.material-card p {
    padding: 0 15px 15px;
    font-size: 14px;
    color: #555;
}

.material-card button {
    margin-bottom: 20px;
    padding: 10px 20px;
    background: #0a1f44;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.material-card button:hover {
    background: #00c3ff;
}

/* WHATSAPP */
.whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: white;
    font-size: 22px;
    padding: 15px;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0px 5px 15px rgba(0,0,0,0.3);
}

/* OVERLAY */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 998;
}

#overlay.active {
    display: block;
}

/* MENU MOVIL */
.menu-toggle {
    display: none;
}

@media (max-width: 768px) {

    .menu ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background: #0a1f44;
        flex-direction: column;
        padding-top: 80px;
        transition: 0.3s;
        z-index: 999;
    }

    .menu ul li {
        margin: 20px;
    }

    .menu ul.active {
        right: 0;
    }

    .menu-toggle {
        display: block;
        font-size: 25px;
        color: white;
        cursor: pointer;
    }

    .hero {
        height: 300px;
    }

    .logo-img {
        width: 140px;
    }
}