/* =========================================================
   OLMAQ Construction & Engineering - Global Stylesheet
   Colors: Black (#000), Gold (#d4af37), White (#fff)
   Font: Poppins, sans-serif
========================================================= */

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

/* BODY */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #111;
    color: #eee;
    text-align: center;
    padding-top: 120px; /* Space for fixed nav */
}

/* HEADINGS */
h1, h2, h3, h4, h5, h6 {
    color: #d4af37;
    font-weight: 600;
    margin-bottom: 20px;
}

/* PARAGRAPHS */
p {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* LINKS / BUTTONS */
a {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #d4af37;
    color: #000;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s ease;
    font-weight: 500;
}

a:hover {
    background-color: #000;
    color: #d4af37;
    border: 2px solid #d4af37;
}

/* CONTAINERS */
.container {
    max-width: 800px;
    margin: 0 auto;
}

/* FOOTER */
footer {
    background-color: #000;
    color: #d4af37;
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
}

/* =========================================================
   NAVIGATION BAR
========================================================= */
nav {
    background: url('img/lakeintheshape.jpg') center/cover no-repeat;
    background-color: #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 70px;
    z-index: 1000;
}

/* Logo */
nav .logo {
    color: #fff;
    font-size: 1.4em;
    font-weight: bold;
    text-decoration: none;
}

/* Menu */
nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    background: none;
    color: #fff;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 5px;
    transition: 0.3s;
}

nav ul li a:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Hamburger (mobile) */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    background: #fff;
    height: 3px;
    width: 25px;
    margin: 4px 0;
}

/* =========================================================
   LOGIN CONTAINER
========================================================= */
.login-container {
    max-width: 400px;
    margin: 0 auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

.login-container h2 {
    margin-bottom: 20px;
    color: #d4af37;
}

.login-container input[type="text"],
.login-container input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.login-container input[type="submit"] {
    width: 100%;
    background-color: #d4af37;
    color: #000;
    border: none;
    padding: 10px;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.login-container input[type="submit"]:hover {
    background-color: #000;
    color: #d4af37;
    border: 2px solid #d4af37;
}

/* =========================================================
   HERO SECTION
========================================================= */
.hero {
    background: url("img/hero_building.jpg") center/cover no-repeat;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-text {
    background: rgba(0,0,0,0.6);
    padding: 40px;
    border-radius: 10px;
}

.hero-text h1 {
    font-size: 2.5em;
    color: #d4af37;
}

.hero-text p {
    color: #fff;
}

/* =========================================================
   SERVICE CARDS
========================================================= */
.service-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
}

.card {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 20px;
    width: 300px;
    text-align: center;
    color: #eee;
    transition: 0.3s;
}

.card:hover {
    border-color: #d4af37;
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* =========================================================
   MODULES / DASHBOARD
========================================================= */
.module-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.module-card {
    background-color: #1a1a1a;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    padding: 25px 15px;
    text-align: center;
    width: 220px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.module-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0,0,0,0.25);
    border: 1px solid #d4af37;
}

.module-card a {
    display: block;
    font-size: 1.1em;
    font-weight: bold;
    color: #d4af37;
    margin-bottom: 8px;
    text-decoration: none;
}

.module-card a:hover {
    color: #fff;
}

.module-card p {
    font-size: 0.95em;
    color: #aaa;
    margin: 0;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 768px) {
    body {
        padding-top: 140px;
    }

    nav {
        flex-direction: column;
        min-height: 120px;
        justify-content: center;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #000;
        position: absolute;
        top: 60px;
        right: 0;
        text-align: center;
    }

    nav ul.show {
        display: flex;
    }

    .menu-toggle {
        display: flex;
        position: absolute;
        top: 15px;
        right: 25px;
    }

    nav ul li {
        margin: 10px 0;
    }

    .card {
        width: 90%;
    }
}

/* =========================================================
   ERROR BOX & UTILITIES
========================================================= */
.error-box {
    background: #ffe5e5;
    color: #900;
    border: 1px solid #f5b5b5;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 10px;
}

/* Gold Button */
.btn-gold {
    background-color: #d4af37;
    color: #000;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    transition: 0.3s;
}

.btn-gold:hover {
    background-color: #000;
    color: #d4af37;
    border: 2px solid #d4af37;
}

/* Internal Content Wrapper */
.content-container {
    max-width: 95%;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    overflow-x: auto;
}

/* =========================================================
   CONTENT SECTIONS (ABOUT / SERVICES / PROJECTS)
========================================================= */
.content-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 60px 10%;
    background-color: #111;
}

/* Alternar orden para la sección Services */
.content-section.alt {
    flex-direction: row-reverse;
}

/* Texto */
.content-section .text,
.content-section .image {
    flex: 1 1 400px;        /* ancho mínimo y máximo de 400px */
}


/* Imágenes */
.content-section .image {
    flex: 1 1 400px;
    text-align: center;
}

.img-wrapper {
    max-width: 400px;       /* tamaño máximo de la imagen */
    margin: 0 auto;
}

.img-wrapper img {
    width: 100%;            /* se adapta al contenedor */
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

/* Reduce espacios verticales excesivos */
section {
    margin-top: 40px;
    margin-bottom: 40px;
}

/* Evita espacio grande encima de títulos */
section h1, section h2, section h3 {
    margin-top: 0;
}

/* Ajustes responsive */
@media (max-width: 768px) {
    .content-section {
        flex-direction: column;
        padding: 40px 5%;
        gap: 20px;
    }

    .content-section img {
        max-width: 90%;
    }

    .content-section .text {
        text-align: center;
    }
}
