/* =============================
   Construventanas - Servicios
   ============================= */

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #333333;
    background-color: #F4F6F8;
}

/* =============================
   SECCIÓN DE INTRODUCCIÓN
   ============================= */
.intro {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 20px;
    border-bottom: 2px solid #0078A0;
}

.intro h1 {
    font-size: 2.5em;
    color: #1E3A5F;
    margin-bottom: 15px;
}

.intro p {
    font-size: 1.2em;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
}

/* =============================
   SECCIÓN DE 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;
}

/* =============================
   SECCIÓN DE SERVICIOS
   ============================= */
.services {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 60px;
}

.services h2 {
    text-align: center;
    color: #0078A0;
    font-size: 2em;
    margin-bottom: 40px;
}

.service-item {
    background-color: #ffffff;
    border: 1px solid #dce3e8;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    flex: 1 1 calc(33.333% - 30px);
    padding: 30px 25px;
    transition: all 0.3s ease-in-out;
    text-align: center;
    min-width: 280px;
}

.service-item h3 {
    color: #0078A0;
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: 600;
}

.service-item p {
    font-size: 1em;
    color: #444;
    line-height: 1.5;
}

.service-item:hover {
    transform: translateY(-8px);
    border-color: #0078A0;
    box-shadow: 0 6px 18px rgba(0, 120, 160, 0.15);
}
.services h2 {
    display: block;       /* asegura que sea un bloque */
    width: 100%;          /* ocupe todo el ancho */
    text-align: center;   /* centra el texto */
    color: #0078A0;
    font-size: 2em;
    margin-bottom: 40px;
}

/* =============================
   CTA (LLAMADO A LA ACCIÓN)
   ============================= */
.cta {
    background: linear-gradient(135deg, #1E3A5F, #0078A0);
    color: #fff;
    text-align: center;
    padding: 60px 20px;
    border-radius: 10px;
}

.cta h2 {
    font-size: 2em;
    margin-bottom: 15px;
}

.cta p {
    font-size: 1.1em;
    margin-bottom: 25px;
}

.cta .btn {
    background-color: #fff;
    color: #1E3A5F;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    border: 2px solid #fff;
}

.cta .btn:hover {
    background-color: #005F73;
    color: #fff;
    border-color: #005F73;
}

/* =============================
   RESPONSIVE DESIGN
   ============================= */
@media (max-width: 992px) {
    .service-item {
        flex: 1 1 calc(50% - 30px);
    }
}

@media (max-width: 600px) {
    .service-item {
        flex: 1 1 100%;
    }

    .intro h1 {
        font-size: 2em;
    }

    .cta h2 {
        font-size: 1.6em;
    }
}
