/*
Theme Name: GDM Landing Mix
Theme URI: https://www.gdm.com.pe
Description: Landing interactiva GDM con video hero, carrusel de clientes, slider de WhatsApp y secciones Pulimento / Especializa / SDL.
Version: 2.3
Author: GDM
*/

:root {
    --gdm-blue: #00457C;
    --gdm-green: #00A651;
    --gdm-white: #FFFFFF;
    --gdm-gray: #F3F4F6;
    --gdm-dark: #020617;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Ajuste del enlace de Especializa en las tarjetas */
.division-card#especializa .division-link {
    font-size: 0.85rem;
    /* más pequeño */
    white-space: nowrap;
    /* evita salto de línea */
    display: inline-block;
    line-height: 1.2;
    /* mantiene proporción */
}

body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    color: var(--gdm-blue);
    background: var(--gdm-gray);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- HEADER --- */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(0, 69, 124, 0.96);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-bottom: 2px solid var(--gdm-green);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-title {
    color: var(--gdm-white);
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;
}

.logo-subtitle {
    color: var(--gdm-green);
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: var(--gdm-white);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.main-nav a:hover {
    color: var(--gdm-green);
}

/* --- HERO VIDEO SECTION --- */
.section--hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--gdm-white);
    padding-top: 80px;
}

#heroVideo {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 166, 81, 0.55);
    /* Verde GDM encima del video */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 20px;
}

.hero-title {
    font-size: 3.4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.1;
}

/* Quitamos el rectángulo blanco; solo dejamos el texto azul limpio */
.hero-title span {
    color: var(--gdm-blue);
}

.hero-subtitle {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* BOTONES */
.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    margin: 0 10px;
    font-size: 0.85rem;
}

.btn-primary {
    background-color: var(--gdm-green);
    color: var(--gdm-white);
    border: 2px solid var(--gdm-green);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--gdm-green);
}

.btn-outline {
    border: 2px solid var(--gdm-white);
    color: var(--gdm-white);
}

.btn-outline:hover {
    background-color: var(--gdm-white);
    color: var(--gdm-blue);
}

/* --- SECCIONES GENERALES --- */
.section {
    padding: 80px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    color: var(--gdm-green);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-heading {
    text-align: center;
    font-size: 2.4rem;
    color: var(--gdm-blue);
    margin-top: 0;
    margin-bottom: 40px;
}

/* --- DIVISIONES --- */
.division-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.division-card {
    background: var(--gdm-white);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 5px solid var(--gdm-green);
    padding: 30px 25px 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.division-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.division-logo {
    height: 70px;
    /* logos alineados */
    margin: 0 auto 20px;
    object-fit: contain;
}

/* Pequeño boost a SDL para compensar márgenes internos del PNG */
#sdl .division-logo {
    height: 80px;
}

.division-name {
    font-size: 1.4rem;
    color: var(--gdm-blue);
    font-weight: bold;
    margin-bottom: 10px;
}

.division-desc {
    color: #555;
    margin-bottom: 16px;
    flex-grow: 1;
}

.division-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--gdm-blue);
    font-weight: bold;
    border-radius: 999px;
    border: 1px solid var(--gdm-green);
    padding: 8px 18px;
    font-size: 0.85rem;
}

.division-link i {
    color: var(--gdm-green);
}

/* --- CARRUSEL DE CLIENTES --- */
.carousel-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 35px 0;
    background: var(--gdm-white);
}

.carousel-container::before,
.carousel-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 2;
}

.carousel-container::before {
    left: 0;
    background: linear-gradient(to right, white, transparent);
}

.carousel-container::after {
    right: 0;
    background: linear-gradient(to left, white, transparent);
}

.carousel-track {
    display: inline-block;
    animation: slide 40s linear infinite;
}

.carousel-logo {
    display: inline-block;
    height: 70px;
    margin: 0 32px;
    opacity: 0.9;
    transition: opacity 0.3s, transform 0.3s;
    vertical-align: middle;
}

.carousel-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

@keyframes slide {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* --- SECCIÓN CONTACTO --- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.contact-card {
    background: var(--gdm-blue);
    color: var(--gdm-white);
    padding: 18px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.contact-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    color: var(--gdm-green);
}

.contact-card a {
    color: var(--gdm-white);
    font-weight: 600;
    display: inline-block;
    word-break: break-word;
}

/* LinkedIn más grande / más fresco */
.contact-card--linkedin {
    padding: 26px 26px;
}

.contact-card--linkedin .contact-icon {
    font-size: 1.9rem;
}

/* --- FOOTER --- */
.site-footer {
    background: var(--gdm-blue);
    color: var(--gdm-white);
    text-align: center;
    padding: 1.5rem;
    margin-top: 40px;
    font-size: 0.9rem;
}

/* --- SLIDER WHATSAPP --- */
.whatsapp-slider {
    position: fixed;
    right: 15px;
    bottom: 20px;
    z-index: 120;
    display: flex;
    align-items: center;
    transform: translateX(0);
}

.whatsapp-bubble {
    background: #25D366;
    color: #fff;
    padding: 10px 14px;
    border-radius: 999px;
    margin-right: 10px;
    font-size: 0.85rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    white-space: nowrap;
}

.whatsapp-bubble strong {
    display: block;
    font-size: 0.9rem;
}

.whatsapp-icon-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    cursor: pointer;
}

.whatsapp-icon-btn i {
    color: #fff;
    font-size: 1.8rem;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .header-inner {
        flex-direction: column;
        gap: 1rem;
    }

    .main-nav ul {
        gap: 1rem;
        font-size: 0.8rem;
    }

    .whatsapp-bubble {
        display: none;
    }
}


/* v9 adjustments: mejor legibilidad LinkedIn y layout de páginas internas */
.contact-card a {
    word-break: break-word;
    display: inline-block;
}

/* Páginas internas genéricas */
.page-content {
    padding-top: 40px;
}

.page-body {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.6fr);
    gap: 30px;
    align-items: flex-start;
    margin-top: 20px;
}

.page-hero-image img {
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.page-text {
    font-size: 0.98rem;
    color: #333;
}

@media (max-width: 900px) {
    .page-body {
        grid-template-columns: 1fr;
    }
    
}/* Fix específico para que el LinkedIn no corte el enlace */
.contact-card--linkedin {
    max-width: 430px;
    /* un poco más ancho */
}

.contact-card--linkedin a {
    font-size: 0.85rem;
    /* más pequeño que el resto */
    white-space: nowrap;
    /* NO permitir salto de línea */
    display: inline-block;
}