/* =============================
   Construventanas - Main y Hero
   ============================= */
main {
    max-width: 1000px;
    margin: 20px auto;
    padding: 0 20px;
    text-align: center;
    font-family: Arial, sans-serif;
}

main h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

main p {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 30px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1E3A5F, #0078A0);
    color: #fff;
    padding: 80px 20px;
    text-align: center;
    border-radius: 10px;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.5em;
    margin-bottom: 25px;
}

.btn-hero {
    display: inline-block;
    background-color: #fff;
    color: #1E3A5F;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-hero:hover {
    background-color: #005F73;
    color: #fff;
}

/* =============================
   Galería
   ============================= */
.gallery {
    position: relative;
    max-width: 800px;
    margin: 0 auto 50px;
    overflow: hidden;
    border: 2px solid #ccc;
    border-radius: 8px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.gallery img {
    width: calc(33% - 6.66px);
    height: 200px;           /* altura uniforme */
    object-fit: cover;       /* recorta sin deformar */
    display: block;
    transition: transform 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.gallery img:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .gallery img {
        width: calc(50% - 5px);
        height: 180px;
    }
}

@media (max-width: 480px) {
    .gallery img {
        width: 100%;
        height: 150px;
    }
}

/* =============================
   Servicios Destacados
   ============================= */
.featured-services h2 {
    font-size: 2em;
    color: #0078A0;
    margin-bottom: 30px;
    text-align: center;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 50px;
}

.service-card {
    background-color: #ffffff;
    border: 1px solid #dce3e8;
    border-radius: 10px;
    padding: 20px;
    width: 300px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.service-card img {
    width: 100%;
    height: 200px;           /* altura moderada */
    object-fit: cover;       /* recorte limpio sin deformación */
    border-radius: 8px 8px 0 0;
    margin-bottom: 15px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.service-card h3 {
    color: #0078A0;
    font-size: 1.4em;
    margin-bottom: 10px;
}

.service-card p {
    color: #555;
    font-size: 1em;
    line-height: 1.5;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 18px rgba(0, 120, 160, 0.15);
}

/* =============================
   Catálogo
   ============================= */
.catalog {
    background-color: #ffffff;
    border: 1px solid #dce3e8;
    border-radius: 10px;
    text-align: center;
    padding: 30px 20px;
    margin: 40px auto;
    max-width: 600px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.catalog h2 {
    color: #0078A0;
    font-size: 1.8em;
    margin-bottom: 15px;
}

.catalog p {
    color: #555;
    margin-bottom: 20px;
    font-size: 1em;
}

.catalog .btn {
    background-color: #0078A0;
    color: #fff;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    display: inline-block;
}

.catalog .btn:hover {
    background-color: #005F73;
    color: #fff;
}

/* =============================
   Footer
   ============================= */
footer {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    font-size: 0.9em;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    max-width: 150px;
    margin-bottom: 10px;
}

.footer-menu a {
    color: #fff;
    text-decoration: none;
    margin: 0 5px;
}

.footer-menu a:hover {
    text-decoration: underline;
}

/* =============================
   Responsive General
   ============================= */
@media (max-width: 992px) {
    .services-grid {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .service-card img {
        height: 150px; /* más pequeñas en móviles */
    }
}
