/* ============================================
   Polimaquinados S.A.S - Hoja de estilos
   Paleta: coral #eb6a56, oscuro #1f232b,
   gris #3e3e3e, teal #028090, verdes #00A896 / #02C39A,
   claro #F0F3BD
   ============================================ */

:root {
    --pm-coral: #eb6a56;
    --pm-oscuro: #1f232b;
    --pm-gris: #3e3e3e;
    --pm-teal: #028090;
    --pm-verde: #00A896;
    --pm-verde-claro: #02C39A;
    --pm-claro: #F0F3BD;
    --pm-fondo-gris: #f6f7f9;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--pm-gris);
    background: #ffffff;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Poppins', sans-serif;
}

/* ---------- Navbar ---------- */
.navbar-pm {
    background: rgba(31, 35, 43, 0.92);
    backdrop-filter: blur(8px);
    padding: 0.7rem 0;
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.navbar-scrolled {
    background: var(--pm-oscuro);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.navbar-pm .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    margin: 0 0.2rem;
    transition: color 0.2s ease;
}

.navbar-pm .nav-link:hover,
.navbar-pm .nav-link:focus {
    color: var(--pm-coral);
}

.btn-nav-cta {
    background: var(--pm-coral);
    color: #fff !important;
    border-radius: 50px;
    padding: 0.45rem 1.3rem !important;
}

.btn-nav-cta:hover {
    background: #d65540;
}

/* ---------- Botones ---------- */
.btn-pm {
    background: var(--pm-coral);
    border-color: var(--pm-coral);
    color: #fff;
    border-radius: 50px;
    padding: 0.6rem 1.8rem;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-pm:hover,
.btn-pm:focus {
    background: #d65540;
    border-color: #d65540;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(235, 106, 86, 0.35);
}

.btn-pm-outline {
    border: 2px solid var(--pm-teal);
    color: var(--pm-teal);
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-pm-outline:hover {
    background: var(--pm-teal);
    color: #fff;
}

.btn-whatsapp-inline {
    background: var(--pm-verde);
    color: #fff;
    border-radius: 50px;
    padding: 0.6rem 1.6rem;
    font-weight: 600;
}

.btn-whatsapp-inline:hover {
    background: #018577;
    color: #fff;
}

/* ---------- Hero ---------- */
.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(31, 35, 43, 0.72), rgba(31, 35, 43, 0.72)),
                url('../img/mecanica.webp') center / cover no-repeat;
    color: #fff;
    padding: 120px 0 80px;
}

.hero-badge {
    display: inline-block;
    background: rgba(2, 128, 144, 0.25);
    border: 1px solid var(--pm-teal);
    color: var(--pm-verde-claro);
    border-radius: 50px;
    padding: 0.4rem 1.1rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.hero-titulo {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
}

.hero-eslogan {
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.88);
    max-width: 640px;
    font-weight: 300;
}

/* ---------- Secciones ---------- */
.seccion {
    padding: 90px 0;
}

.seccion-gris {
    background: var(--pm-fondo-gris);
}

.seccion-oscura {
    background: var(--pm-oscuro);
    color: rgba(255, 255, 255, 0.85);
}

.seccion-etiqueta {
    display: inline-block;
    background: rgba(235, 106, 86, 0.12);
    color: var(--pm-coral);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.8rem;
    border-radius: 50px;
    padding: 0.35rem 1rem;
}

.etiqueta-clara {
    background: rgba(240, 243, 189, 0.12);
    color: var(--pm-claro);
}

.seccion-titulo {
    font-size: clamp(1.7rem, 3.4vw, 2.5rem);
    font-weight: 700;
    color: var(--pm-oscuro);
    margin-top: 0.6rem;
}

.titulo-claro {
    color: #fff;
}

.seccion-texto {
    font-size: 1.05rem;
    color: var(--pm-gris);
    line-height: 1.8;
}

/* ---------- Nosotros ---------- */
.nosotros-imagen {
    position: relative;
}

.nosotros-badge {
    position: absolute;
    bottom: -24px;
    right: 24px;
    background: #fff;
    border-radius: 16px;
    padding: 0.9rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.nosotros-badge i {
    font-size: 1.8rem;
    color: var(--pm-verde);
}

.nosotros-badge strong,
.nosotros-badge span {
    display: block;
    line-height: 1.25;
}

.nosotros-badge span {
    font-size: 0.82rem;
    color: #888;
}

.icono-caja {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 14px;
    background: rgba(0, 168, 150, 0.12);
    color: var(--pm-verde);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.icono-claro {
    background: rgba(240, 243, 189, 0.15);
    color: var(--pm-claro);
}

/* ---------- Servicios ---------- */
.servicio-card {
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.servicio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(31, 35, 43, 0.15) !important;
}

.servicio-imagen {
    position: relative;
    height: 210px;
    overflow: hidden;
}

.servicio-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.servicio-card:hover .servicio-imagen img {
    transform: scale(1.08);
}

.servicio-icono {
    position: absolute;
    bottom: -24px;
    left: 24px;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: var(--pm-coral);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 8px 18px rgba(235, 106, 86, 0.4);
}

.servicio-card .card-body {
    padding-top: 2.2rem !important;
}

/* ---------- Clientes ---------- */
.cliente-card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 16px;
    padding: 1.8rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    color: var(--pm-gris);
    font-weight: 600;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.cliente-card:hover {
    transform: translateY(-5px);
    border-color: var(--pm-teal);
    box-shadow: 0 12px 28px rgba(2, 128, 144, 0.12);
}

.cliente-card img {
    max-height: 60px;
    max-width: 100%;
    object-fit: contain;
}

.cliente-icono {
    font-size: 2.2rem;
    color: var(--pm-teal);
}

/* ---------- Testimonios ---------- */
.testimonio-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 2rem;
}

.estrellas {
    color: var(--pm-claro);
    font-size: 1.05rem;
}

.testimonio-texto {
    font-style: italic;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.88);
}

.testimonio-avatar,
.testimonio-foto {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50%;
}

.testimonio-avatar {
    background: var(--pm-coral);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3rem;
    text-transform: uppercase;
}

.testimonio-foto {
    object-fit: cover;
}

/* ---------- Blog ---------- */
.blog-card {
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(31, 35, 43, 0.13) !important;
}

.blog-imagen {
    height: 200px;
    overflow: hidden;
}

.blog-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-imagen img {
    transform: scale(1.07);
}

.blog-fecha {
    color: var(--pm-teal);
    font-weight: 500;
}

.blog-enlace {
    color: var(--pm-oscuro);
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-enlace:hover {
    color: var(--pm-coral);
}

.blog-contenido {
    font-size: 1.06rem;
    line-height: 1.9;
}

.sidebar-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.6rem;
}

.sidebar-enlace {
    color: var(--pm-gris);
    text-decoration: none;
}

.sidebar-enlace strong {
    color: var(--pm-oscuro);
    transition: color 0.2s ease;
}

.sidebar-enlace:hover strong {
    color: var(--pm-coral);
}

.sidebar-cta {
    background: var(--pm-teal);
    color: #fff;
}

/* ---------- Cabecera de páginas internas ---------- */
.page-header {
    min-height: 42vh;
    background: linear-gradient(rgba(31, 35, 43, 0.78), rgba(31, 35, 43, 0.78)),
                url('../img/mecanica.webp') center / cover no-repeat;
    color: #fff;
    padding: 140px 0 60px;
}

.page-header-titulo {
    font-weight: 800;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.page-header-sub {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
}

/* ---------- Contacto ---------- */
.seccion-contacto {
    background: linear-gradient(135deg, var(--pm-oscuro) 0%, #2b3442 60%, var(--pm-teal) 130%);
    color: #fff;
}

.contacto-texto {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
}

.contacto-lista li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.3rem;
}

.contacto-enlace {
    color: var(--pm-claro);
    text-decoration: none;
}

.contacto-enlace:hover {
    color: #fff;
    text-decoration: underline;
}

.contacto-form-card {
    background: #fff;
    color: var(--pm-gris);
    border-radius: 20px;
    padding: 2.2rem;
}

.contacto-form-card .form-control:focus {
    border-color: var(--pm-coral);
    box-shadow: 0 0 0 0.2rem rgba(235, 106, 86, 0.18);
}

/* ---------- Footer ---------- */
.footer-pm {
    background: var(--pm-oscuro);
    color: rgba(255, 255, 255, 0.75);
}

.footer-logo {
    filter: brightness(1.1);
}

.footer-texto {
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-titulo {
    color: #fff;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-titulo::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 3px;
    border-radius: 3px;
    background: var(--pm-coral);
}

.footer-lista li {
    margin-bottom: 0.6rem;
    font-size: 0.93rem;
}

.footer-enlaces a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-enlaces a:hover {
    color: var(--pm-coral);
    padding-left: 5px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.social-link:hover {
    background: var(--pm-coral);
    color: #fff;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.55);
}

/* ---------- WhatsApp flotante ---------- */
.btn-whatsapp {
    position: fixed;
    bottom: 26px;
    right: 26px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
    z-index: 1050;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: pulso-wa 2.4s infinite;
}

.btn-whatsapp:hover {
    color: #fff;
    transform: scale(1.1);
}

@keyframes pulso-wa {
    0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70%  { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ---------- Mensajes flotantes ---------- */
.mensajes-flotantes {
    position: fixed;
    top: 84px;
    right: 20px;
    z-index: 1060;
    max-width: 420px;
    width: calc(100% - 40px);
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .navbar-pm .navbar-collapse {
        background: var(--pm-oscuro);
        border-radius: 14px;
        padding: 1rem;
        margin-top: 0.6rem;
    }

    .btn-nav-cta {
        display: inline-block;
        margin: 0.4rem 0 0 !important;
    }

    .nosotros-badge {
        position: static;
        margin-top: 1rem;
        width: fit-content;
    }

    .seccion {
        padding: 64px 0;
    }
}

@media (max-width: 575.98px) {
    .contacto-form-card {
        padding: 1.5rem;
    }

    .mensajes-flotantes {
        top: 76px;
    }
}
