* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: #FFFFFF;
    color: #353D47;
}

/* NAVBAR */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    background: #FFFFFF;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 60px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo img {
    width: 80px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    align-items: center; /* 🔥 clave */
    line-height: 1.1;
}

.brand {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.05px;
}

.constru {
    color: #353D47;
}

.teck {
    color: #24537A;
}
.slogan {
    font-size: 0.65rem;
    color: #353D47;
    letter-spacing: 0.4px;
}

nav a {
    margin-left: 30px;
    text-decoration: none;
    color: #353D47;
    font-weight: 500;
    transition: 0.3s;
}

nav a:hover {
    color: #24537A;
}

section {
    scroll-margin-top: 60px;
}

/* HERO (ALTO IMPACTO) */

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 60px;
}

/* IMAGEN DE FONDO REAL */
.hero-bg {
    position: absolute;
    inset: 0;
    background: url('assets/img/hero.webp') center/cover no-repeat;
    z-index: 0;
}

/* OVERLAY PROFESIONAL */
.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(53,61,71,0.9) 0%,
        rgba(53,61,71,0.7) 40%,
        rgba(53,61,71,0.3) 70%,
        rgba(53,61,71,0.1) 100%
    );
    z-index: 1;
}

/* CONTENIDO */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    color: #FFFFFF;
}

/* TEXTO */
.hero-text h1 {
    font-size: 3.2rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-text p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* BOTONES */
.hero-buttons {
    display: flex;
    gap: 15px;
}

/* BOTONES */
.btn-primary {
    background: #24537A;
    color: #FFFFFF;
    padding: 14px 28px;
    text-decoration: none;
    margin-right: 10px;
    display: inline-block;
    transition: 0.3s;
}

.btn-primary:hover {
    background: #1b3f5c;
}

.btn-secondary {
    border: 1px solid #FFFFFF;
    padding: 14px 28px;
    text-decoration: none;
    color: #FFFFFF;
    transition: 0.3s;
}

.btn-secondary:hover {
    background: #FFFFFF;
    color: #353D47;
}

/* SECCIONES */
.section {
    padding: 120px 40px;
    text-align: center;
}

.dark {
    background: #353D47;
    color: white;
}

/* GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.card {
    padding: 40px;
    background: #f5f5f5;
}

.dark .card {
    background: #24537A;
}

/* FORM */
.form {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form input,
.form textarea {
    padding: 10px;
    border: none;
}

.form button {
    background: #24537A;
    color: white;
    padding: 10px;
}

/* FOOTER */
.footer {
    padding: 20px;
    text-align: center;
}

/* =========================
   SECCIÓN NOSOTROS PRO
========================= */
.nosotros {
    background: #f7f7f7;
}

/* INTRO */
.nosotros-intro {
    max-width: 850px;
    margin: 0 auto 70px;
    text-align: center;
}

.nosotros-intro h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #353D47;
}

.nosotros-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

/* MISIÓN Y VISIÓN */
.mv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.mv-card {
    background: #FFFFFF;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    border-top: 4px solid #24537A;
    transition: all 0.4s ease;
}

.mv-card:hover {
    transform: translateY(-8px);
}

.mv-card h3 {
    margin-bottom: 15px;
    color: #24537A;
    font-size: 1.5rem;
}

.mv-card p {
    color: #555;
    line-height: 1.7;
}

/* =========================
   PRINCIPIOS OPERATIVOS PRO
========================= */

.valores h3 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    color: #353D47;
}

/* 3 columnas exactas */
.valores-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.valor-item {
    background: #24537A;
    color: white;
    padding: 35px 25px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    min-height: 240px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.valor-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.12);
}

.valor-icon {
    font-size: 2rem;
    margin-bottom: 18px;
}

.valor-item h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

.valor-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.92);
    margin: 0;
}

/* Tarjetas premium */
.valor-card {
    background: #FFFFFF;
    padding: 35px 25px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(53, 61, 71, 0.08);
    border-bottom: 4px solid #24537A;
    min-height: 240px;
    transition: all 0.3s ease;
}

/* línea superior elegante */
.valor-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.35);
}

.valor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(53, 61, 71, 0.12);
}

.valor-card h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #24537A;
    font-weight: 700;
}

.valor-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #353D47;
}

/* =========================
   ANIMACIONES SCROLL
========================= */
.fade-up,
.fade-left,
.fade-right {
    opacity: 0;
    transition: all 0.8s ease;
}

.fade-up {
    transform: translateY(30px);
}

.fade-left {
    transform: translateX(-30px);
}

.fade-right {
    transform: translateX(30px);
}

.show {
    opacity: 1;
    transform: translate(0,0);
}

/* ===== PROYECTOS SLIDER ===== */

.proyectos-slider-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 50px;
    overflow: hidden;
}

.proyectos-slider {
    display: flex;
    gap: 20px;
    overflow: hidden;
    scroll-behavior: smooth;
    width: 100%;
}

.proyecto-item {
    min-width: calc(33.333% - 14px);
    flex-shrink: 0;
    height: 600px;
    background: rgba(255,255,255,0.03);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.proyecto-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 14px;
    transition: transform 0.3s ease;
}

.proyecto-item img:hover {
    transform: scale(1.03);
}

/* BOTONES */
.slider-btn {
    background: rgba(255,255,255,0.15);
    color: white;
    border: none;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 2;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: rgba(255,255,255,0.3);
}

.prev {
    margin-right: 15px;
}

.next {
    margin-left: 15px;
}

/* SERVICIOS */

.servicios {
    background: #FFFFFF;
    padding: 140px 40px;
}

.subtitulo-servicios {
    max-width: 700px;
    margin: 0 auto 50px auto;
    line-height: 1.6;
}

/* GRID */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* TARJETAS */
.servicio-item {
    background: #F8F9FA;
    padding: 30px;
    text-align: left;
    border-bottom: 3px solid #24537A;
    transition: 0.3s;
}

.servicio-item:hover {
    transform: translateY(-5px);
    background: #FFFFFF;
}

.servicio-item h3 {
    margin-bottom: 15px;
    color: #24537A;
}

.servicio-item p {
    line-height: 1.6;
    font-size: 0.95rem;
}

/* =========================
   SISTEMA DE TÍTULOS GLOBAL
========================= */

.section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.section h2 {
    margin-bottom: 12px;
}

.section h2 {
    letter-spacing: 0.5px;
}

.subtitulo,
.subtitulo-servicios {
    margin-bottom: 50px;
}

.subtitulo,
.subtitulo-servicios {
    max-width: 700px;
    margin: 0 auto 50px auto;
    line-height: 1.6;
    font-size: 1rem;
}

/* ===CONTACTO=== */

.contacto {
    background: #353D47;
    color: #FFFFFF;
}

.contacto .subtitulo {
    color: #CCCCCC;
}

/* FORMULARIO */
.form {
    max-width: 600px;
    margin: auto;
}

.form input,
.form textarea {
    padding: 15px;
    border: none;
    background: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
}

.form button {
    background: #24537A;
    color: #FFFFFF;
    padding: 15px;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.form button:hover {
    background: #1b3f5c;
}

/* BOTÓN LOADER */
button {
    position: relative;
    overflow: hidden;
}

.btn-loader {
    width: 18px;
    height: 18px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

/* BOTÓN ENVIANDO */
button.loading .btn-loader {
    display: block;
}

button.loading .btn-text {
    opacity: 0.6;
}

/* FEEDBACK */
.form-feedback {
    margin-top: 15px;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transition: 0.3s;
}

.form-feedback.success {
    color: #FFFFFF;
    opacity: 1;
}

.form-feedback.error {
    color: #d9534f;
    opacity: 1;
}

/* BOTÓN FLOTANTE WHATSAPP */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
    transition: transform 0.3s ease;
}

.whatsapp-float img {
    width: 90px;
    height: 90px;
    display: block;
    filter: drop-shadow(0 6px 15px rgba(0,0,0,0.25));
    animation: pulseWhatsapp 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.08);
}

@keyframes pulseWhatsapp {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.07);
    }
    100% {
        transform: scale(1);
    }
}

/* RESPONSIVE */
@media (max-width: 768px) {

    .navbar {
    flex-direction: column;
    align-items: center;
    padding: 15px 15px;
    }

    nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    }

    nav a {
    margin: 0;
    font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .mision-vision,
    .valores-grid,
    .servicios-grid {
        grid-template-columns: 1fr;
    }

    .proyecto-item {
        min-width: 90%;
    }

    .section {
        padding: 80px 20px;
    }
}

/* EXTRA SMALL DEVICES */

@media (max-width: 380px) {
    .hero h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .hero p {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .hero-buttons {
        gap: 8px;
    }
}