/* ===========================
   ESTILOS GENERALES
=========================== */
body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f7f7f7;
    margin: 0;
    padding: 0;
    color: #333;
    overflow-x: hidden;
}

/* ===========================
   NAVBAR
=========================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 1px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 10;
    background: linear-gradient(to right, #13253d, #00548b, #72c4bd, #e0eed9);
}

.logo img {
    height: 70px;
    display: block;
}

.menu {
    display: flex;
    gap: 50px;
}

.menu a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    padding: 20px 20px;
    transition: 0.3s;
}

/* ===========================
   DROPDOWN
=========================== */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    color: #ffffff;
    font-weight: bold;
    padding: 20px 20px;
    display: block;
    transition: color 0.3s ease;
}

.dropdown-content {
    display: none;
    position: absolute;
    min-width: 200px;
    top: 60px;
    left: 0;
    background: linear-gradient(135deg, #0a3d62, #1e8bc3, #72c4bd);
    border-radius: 12px;
    box-shadow: 0 12px 25px rgba(0,0,0,0.25);
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.35s ease;
    z-index: 999;
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-content a {
    color: #ffffff;
    padding: 14px 18px;
    text-decoration: none;
    display: block;
    font-weight: 600;
    transition: background 0.3s ease, padding-left 0.3s ease;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background: rgba(255,255,255,0.15);
    padding-left: 24px;
}

/* ===========================
   CARRUSEL PC
=========================== */
.carrusel-pc {
    width: 100%;
    overflow: hidden;
    margin-top: 90px;
    background: #d1d1d1;
    padding: 30px 0;
}

.carrusel-pc-track {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: scroll 75s linear infinite;
}

.carrusel-pc-slide {
    min-width: 400px;
    height: 300px;
}

.carrusel-pc-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===========================
   CARRUSEL MÓVIL
=========================== */
.carrusel-mobile {
    display: none;
}

@media (max-width: 850px) {

    .carrusel-pc {
        display: none !important;
    }

    .carrusel-mobile {
        display: block;
        position: relative;
        width: 100%;
        margin-top: 90px;
        overflow: hidden;
        background: #d1d1d1;
        padding: 20px 0;
    }

    .carrusel-mobile-container {
        overflow: hidden;
        width: 100%;
    }

    .carrusel-mobile-track {
        display: flex;
        transition: transform 0.4s ease-in-out;
    }

    .carrusel-mobile-slide {
        min-width: 100%;
        height: 220px;
    }

    .carrusel-mobile-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 14px;
    }

    .carrusel-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(0,0,0,0.4);
        border: none;
        color: white;
        font-size: 2rem;
        padding: 6px 12px;
        cursor: pointer;
        border-radius: 10px;
        z-index: 20;
    }

    .prev { left: 10px; }
    .next { right: 10px; }
}

/* ===========================
   VALORES CLIENTES
=========================== */
.valores-cliente {
    width: 85%;
    margin: 80px auto;
    text-align: center;
}

.titulo-valores {
    font-size: 2.8rem;
    font-weight: 900;
    color: #005195;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 15px;
    text-shadow: 3px 5px 0 rgba(0,82,149,0.185);
    width: fit-content;
    margin: 0 auto 50px;
}

.titulo-valores::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translate(-50%);
    bottom: 0;
    width: 85%;
    height: 4px;
    background: #72c4bd;
    border-radius: 4px;
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
}

.valor-card {
    background: #ffffff;
    padding: 20px 25px;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    transition: 0.3s ease;
    border-top: 6px solid #00b3b3;
}

.valor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 35px rgba(0,0,0,0.22);
}

.valor-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0a3d62;
    margin-bottom: 20px;
}

.valor-card p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #333;
    text-align: justify;
}

/* ===========================
   MENÚ HAMBURGUESA
=========================== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 9999;
    margin-right: 15px;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: #154377;
    border-radius: 3px;
    transition: 0.3s;
}

.menu-mobile {
    display: none;
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    background: linear-gradient(to right, #13253d, #00548b, #72c4bd);
    padding: 25px 0;
    flex-direction: column;
    text-align: center;
    gap: 20px;
    z-index: 999;
}

.menu-mobile a {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: bold;
    text-decoration: none;
    padding: 10px 0;
}

@media (max-width: 850px) {
    .menu { display: none; }
    .hamburger { display: flex; }
    .menu-mobile.show { display: flex; }
}

/* ===========================
   WHATSAPP FLOAT
=========================== */
.whatsapp-float {
    position: fixed;
    bottom: 35px;
    right: 20px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #1fc75c;
    color: white;
    padding: 6px 6px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.whatsapp-float:hover {
    transform: scale(1.07);
    box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}

/* ===========================
   RESPONSIVE VALORES
=========================== */
@media (max-width: 1024px) {
    .valores-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 850px) {
    .valores-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .valores-grid { grid-template-columns: 1fr; }
}

/* PROYECTOS — VERSIÓN MÓVIL */
@media (max-width: 600px) {

    .titulo-valores,      /* si tu título de proyectos usa esta clase */
    .proyectos-title h2 { /* si usas otra clase, cámbiala aquí */
        font-size: 1.9rem;        /* tamaño más cómodo */
        padding-bottom: 8px;      /* espacio más pequeño */
        margin-bottom: 12px;      /* separación controlada */
        text-shadow: 2px 3px 0 rgba(0,82,149,0.18);
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }

    .titulo-valores::after,
    .proyectos-title h2::after {
        width: 65%;               /* línea más corta */
        height: 3px;              /* más delgada */
        bottom: 0;                /* pegada al texto */
    }
}

