/* Tipografía y colores base */
body {
    margin: 0;
    font-family: 'Lato', sans-serif;
    background-color: #f5f7fa;
    color: #333;
}

/* Menú principal */
header {
    background: #003366; /* azul corporativo */
    padding: 10px 20px;
    position: relative;   /* necesario para controlar capas */
    z-index: 1000;        /* asegura que el menú esté por encima */
}

.menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.marca-menu {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: #fff;
    text-decoration: none;
}

.marca-menu:hover,
.marca-menu:focus {
    color: #fff;
}

.marca-menu__logo {
    width: 68px;
    height: 68px;
    flex: 0 0 68px;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.24),
                0 0 0 3px rgba(125, 211, 252, 0.14);
}

.marca-menu__texto {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.marca-menu__texto strong {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.1rem, 2vw, 1.55rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.marca-menu__texto small {
    margin-top: 7px;
    color: #8dddf2;
    font-family: 'Lato', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links li a {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: #ffcc00; /* amarillo contraste */
}

/* Toggle menú móvil */
.menu-toggle {
    display: none;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
}

/* Carrusel */
.carrusel {
    position: relative;
    width: 100%;
    height: 600px; /* altura fija */
    overflow: hidden;
    background: #000;
}

.carrusel .slide {
    display: none;
    text-align: center;
}

.carrusel .slide.active {
    display: block;
}

.carrusel img {
    width: 100%;
    height: 600px; /* fuerza la altura */
    object-fit: cover; /* recorta proporcionalmente sin deformar */
}

.carrusel .texto {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 12px 24px;
    border-radius: 5px;
    font-size: 18px;
    max-width: 70%;
    text-align: center;
}

/* Flechas carrusel */
.carrusel button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}

.carrusel #prev { left: 10px; }
.carrusel #next { right: 10px; }

/* Pie de página corporativo */
.footer-tradel {
    margin-top: 60px;
    padding: 0;
    color: #eaf4ff;
    background: linear-gradient(135deg, #00274f 0%, #003b70 58%, #00528a 100%);
    border-top: 4px solid #e4b51a;
    text-align: left;
}

.footer-tradel__contenido {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 42px 0 32px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 42px;
}

.footer-tradel h2,
.footer-tradel h3,
.footer-tradel p {
    margin-top: 0;
}

.footer-tradel h2 {
    margin-bottom: 4px;
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 1.45rem;
}

.footer-tradel h3 {
    margin-bottom: 16px;
    color: #8dddf2;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.footer-tradel a {
    color: #fff;
    text-decoration: none;
}

.footer-tradel a:hover,
.footer-tradel a:focus-visible {
    color: #ffe17a;
    text-decoration: underline;
}

.footer-tradel__marca {
    display: flex;
    align-items: center;
    gap: 18px;
}

.footer-tradel__marca img {
    width: 86px;
    height: 86px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, .85);
    border-radius: 50%;
}

.footer-tradel__marca p {
    margin-bottom: 8px;
    color: #8dddf2;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.footer-tradel__marca span,
.footer-tradel address {
    color: #d3e4f3;
    font-size: .94rem;
    line-height: 1.65;
}

.footer-tradel address {
    margin-bottom: 12px;
    font-style: normal;
}

.footer-tradel__lista {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-tradel__lista li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 11px;
}

.footer-tradel__lista i,
.footer-tradel__mapa i {
    color: #e4b51a;
}

.footer-tradel__mapa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.footer-tradel__inferior {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, .15);
    background: rgba(0, 18, 40, .34);
    text-align: center;
}

.whatsapp-flotante {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1100;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 18px;
    color: #fff;
    background: #25d366;
    border: 2px solid #fff;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s ease, background-color .2s ease;
}

.whatsapp-flotante i {
    font-size: 1.65rem;
}

.whatsapp-flotante:hover,
.whatsapp-flotante:focus-visible {
    color: #fff;
    background: #1daf54;
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
    .marca-menu {
        gap: 8px;
    }

    .marca-menu__logo {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
    }

    .marca-menu__texto strong {
        font-size: 1rem;
    }

    .marca-menu__texto small {
        margin-top: 5px;
        font-size: 0.58rem;
        letter-spacing: 0.12em;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background: #003366;
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        width: 200px;
        padding: 10px;
        z-index: 1001; /* asegura que el menú desplegado esté encima */
    }

    .nav-links li {
        margin: 10px 0;
    }

    .menu-toggle {
        display: block;
    }

    /* Mostrar menú cuando se activa */
    .nav-links.show {
        display: flex;
    }
}

/*fooder*/
#footer-tradelservices i {
    margin-right: 6px;
    color: #ffcc00; /* amarillo corporativo */
    font-size: 18px;
}

#footer-tradelservices a {
    color: #fff;
    font-weight: 500;
    text-decoration: none;
}

#footer-tradelservices a:hover {
    text-decoration: underline;
}

/* Estilos nosotros*/
.contenido-pagina h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: #003366;
    margin-bottom: 20px;
    position: relative;
}

.contenido-pagina h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: #ffcc00;
    margin-top: 8px;
    border-radius: 2px;
}

.contenido-pagina h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: #003366;
    margin-top: 25px;
    margin-bottom: 15px;
}

.contenido-pagina p {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 15px;
    text-align: justify;
}

.contenido-pagina strong {
    color: #003366;
}

.destacado {
    background: #eef2f7;
    border-left: 5px solid #ffcc00;
    padding: 15px;
    margin-top: 20px;
    font-style: italic;
}


/* Visión*/
.contenido-pagina {
    padding: 60px 0; /* espacio arriba y abajo */
}

.contenido-pagina h2 {
    margin-bottom: 25px;
}

/* Clientes*/

.logo-box {
    width: 120px;   /* ancho fijo */
    height: 80px;   /* alto fijo */
    margin: 0 auto; /* centra dentro de la columna */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff; /* opcional: fondo blanco */
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1); /* opcional: sombra ligera */
}

.logo-cliente {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* ajusta sin deformar */
    transition: transform 0.3s ease;
}

.logo-cliente:hover {
    transform: scale(1.1);
}

.galeria-pagina { min-height: 60vh; padding: 60px 0; }
.galeria-encabezado { margin-bottom: 32px; text-align: center; }
.galeria-encabezado h1 { color: #003366; font-family: 'Playfair Display', serif; }
.galeria-encabezado p { color: #5c6773; }
.galeria-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; }
.galeria-card { overflow: hidden; background: #fff; border-radius: 12px; box-shadow: 0 5px 18px rgba(0,0,0,.12); }
.galeria-card img { width: 100%; height: 240px; object-fit: cover; }
.galeria-card div { padding: 20px; }
.galeria-card h2 { margin: 0 0 10px; color: #003366; font: 700 1.35rem 'Playfair Display', serif; }
.galeria-card p { margin: 0; color: #4b5560; line-height: 1.6; }
.galeria-vacia { padding: 45px; background: #fff; border-radius: 12px; text-align: center; box-shadow: 0 5px 18px rgba(0,0,0,.08); }

.galeria-page { min-height: 100vh; background: #eef3f8; }

@media (max-width: 900px) {
    .footer-tradel__contenido {
        grid-template-columns: 1fr 1fr;
    }

    .footer-tradel__marca {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .footer-tradel__contenido {
        width: min(100% - 32px, 560px);
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-tradel__marca {
        grid-column: auto;
    }

    .footer-tradel__marca img {
        width: 70px;
        height: 70px;
    }

    .whatsapp-flotante {
        right: 14px;
        bottom: 14px;
        width: 56px;
        padding: 0;
        justify-content: center;
    }

    .whatsapp-flotante span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}
