:root {
    --rms-dark: #0b0f19;
    --rms-dark-2: #131a2a;
    --rms-blue: #2f8fff;
    --rms-blue-light: #5ab0ff;
    --rms-text-muted: #a7b0c0;
}

body {
    background-color: var(--rms-dark);
    color: #f1f3f6;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

/* Navbar */
.rms-navbar {
    background-color: var(--rms-dark-2);
    box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

    .rms-navbar .brand-text {
        font-weight: 700;
        font-size: 1.1rem;
        color: #fff;
    }

    .rms-navbar .nav-link {
        color: var(--rms-text-muted);
        font-weight: 500;
    }

        .rms-navbar .nav-link:hover,
        .rms-navbar .nav-link.active {
            color: var(--rms-blue-light);
        }

.btn-quote {
    background-color: var(--rms-blue);
    border: none;
    font-weight: 600;
}

    .btn-quote:hover {
        background-color: var(--rms-blue-light);
    }

/* Selector de idioma */
.lang-switch img {
    border-radius: 3px;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.lang-switch a.active img,
.lang-switch a:hover img {
    opacity: 1;
}

/* Footer */
.rms-footer {
    background-color: var(--rms-dark-2);
    margin-top: 60px;
    color: var(--rms-text-muted);
}

    .rms-footer .slogan {
        letter-spacing: 2px;
        color: var(--rms-blue-light);
        font-weight: 600;
    }

.footer-icon {
    color: var(--rms-text-muted);
    margin: 0 8px;
    font-size: 1.2rem;
}

    .footer-icon:hover {
        color: var(--rms-blue-light);
    }

/* WhatsApp flotante */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: #25D366;
    color: #fff;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 14px rgba(0,0,0,0.4);
    z-index: 1000;
}

    .whatsapp-float:hover {
        color: #fff;
        transform: scale(1.08);
    }
/* ===== Sticky footer: empuja el footer al fondo cuando el contenido es corto ===== */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto; /* el contenido crece y empuja el footer hacia abajo */
}

.rms-footer {
    flex-shrink: 0; /* el footer nunca se encoge, se queda pegado al fondo */
}
/* ===== Hero ===== */
.hero-section {
    background: linear-gradient(180deg, var(--rms-dark-2) 0%, var(--rms-dark) 100%);
    padding-top: 40px;
}

.hero-title {
    font-size: 2.6rem;
    font-weight: 700;
    color: #fff;
}

.hero-subtitle {
    color: var(--rms-text-muted);
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto;
}

/* ===== Títulos de sección ===== */
.section-title {
    color: #fff;
    font-weight: 700;
}

/* ===== Tarjetas de servicio ===== */
.service-card {
    background-color: var(--rms-dark-2);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 30px;
    transition: transform 0.2s, border-color 0.2s;
}

    .service-card:hover {
        transform: translateY(-4px);
        border-color: var(--rms-blue);
    }

.service-icon {
    font-size: 2rem;
    color: var(--rms-blue-light);
    margin-bottom: 12px;
}

.service-card h3 {
    color: #fff;
    font-size: 1.25rem;
}

.service-card p {
    color: var(--rms-text-muted);
    margin-bottom: 0;
}

/* ===== Portafolio destacado ===== */
.portfolio-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 220px;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, transparent 100%);
    padding: 16px;
}

    .portfolio-overlay h4 {
        color: #fff;
        margin: 0;
        font-size: 1.05rem;
    }

.service-bullets {
    list-style: none;
    padding-left: 0;
    margin-top: 16px;
}

    .service-bullets li {
        color: var(--rms-text-muted);
        margin-bottom: 8px;
    }

        .service-bullets li i {
            color: var(--rms-blue-light);
            margin-right: 8px;
        }

/* ===== Filtros de portafolio ===== */
.btn-filter {
    background-color: var(--rms-dark-2);
    color: var(--rms-text-muted);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 6px 18px;
    font-size: 0.9rem;
}

    .btn-filter:hover,
    .btn-filter.active {
        background-color: var(--rms-blue);
        color: #fff;
        border-color: var(--rms-blue);
    }

/* ===== Portafolio - link wrapper ===== */
.portfolio-card-link {
    text-decoration: none;
    display: block;
}

.portfolio-category {
    display: block;
    color: var(--rms-blue-light);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 4px;
}

/* ===== Testimonios ===== */
.testimonial-card {
    background-color: var(--rms-dark-2);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 24px;
    height: 100%;
}

.testimonial-avatar,
.testimonial-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-avatar-placeholder {
    background-color: var(--rms-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rms-text-muted);
    font-size: 1.4rem;
}

.testimonial-stars i {
    color: #ffc107;
    font-size: 0.85rem;
}

.testimonial-quote {
    color: var(--rms-text-muted);
    font-style: italic;
    margin-bottom: 0;
}

/* ===== Detalle de proyecto ===== */
.back-link {
    color: var(--rms-blue-light);
    text-decoration: none;
    font-weight: 500;
}

    .back-link:hover {
        color: #fff;
    }

.project-detail-img {
    width: 100%;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.portfolio-category-badge {
    display: inline-block;
    background-color: var(--rms-blue);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}

.project-detail-description {
    color: var(--rms-text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-top: 16px;
}

/* ===== About ===== */
.about-photo {
    max-width: 320px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.about-text {
    color: var(--rms-text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.about-slogan {
    color: var(--rms-blue-light);
    font-weight: 700;
    letter-spacing: 2px;
    margin-top: 24px;
}

/* ===== Blog ===== */
.blog-card-link {
    text-decoration: none;
    color: inherit;
}

.blog-card {
    background-color: var(--rms-dark-2);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
}

    .blog-card:hover {
        transform: translateY(-4px);
        border-color: var(--rms-blue);
    }

.blog-card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.blog-date {
    color: var(--rms-blue-light);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.blog-card-title {
    color: #fff;
    font-size: 1.1rem;
    margin-top: 8px;
}

.blog-detail-img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}

.blog-content {
    color: var(--rms-text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

    .blog-content h2, .blog-content h3 {
        color: #fff;
        margin-top: 24px;
    }

/* ===== Formulario de contacto ===== */
.rms-input {
    background-color: var(--rms-dark-2);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
}

    .rms-input:focus {
        background-color: var(--rms-dark-2);
        border-color: var(--rms-blue);
        color: #fff;
        box-shadow: 0 0 0 0.2rem rgba(47,143,255,0.25);
    }

    .rms-input::placeholder {
        color: var(--rms-text-muted);
    }

.form-label {
    color: var(--rms-text-muted);
    font-weight: 500;
}

/* Honeypot: oculto visualmente pero presente en el DOM (los bots sí lo llenan) */
.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
}

/* ===== Info de contacto directo ===== */
.contact-info-card {
    background-color: var(--rms-dark-2);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 30px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--rms-text-muted);
    margin-bottom: 18px;
}

    .contact-info-item i {
        color: var(--rms-blue-light);
        font-size: 1.3rem;
        width: 24px;
    }

    .contact-info-item a {
        color: var(--rms-text-muted);
        text-decoration: none;
    }

        .contact-info-item a:hover {
            color: var(--rms-blue-light);
        }

/* ===== Página de éxito ===== */
.success-icon {
    font-size: 4rem;
    color: #25D366;
}

/* ===== Franja de confianza ===== */
.trust-strip {
    background-color: var(--rms-dark-2);
    padding: 40px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.trust-item i {
    font-size: 1.8rem;
    color: var(--rms-blue-light);
}

.trust-item h3 {
    color: #fff;
    font-weight: 700;
    font-size: 1.6rem;
    margin: 8px 0 2px;
}

.trust-item p {
    color: var(--rms-text-muted);
    font-size: 0.85rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== CTA final ===== */
.final-cta {
    background: linear-gradient(180deg, var(--rms-dark) 0%, var(--rms-dark-2) 100%);
    border-top: 1px solid rgba(255,255,255,0.06);
}

    .final-cta h2 {
        color: #fff;
        font-weight: 700;
        font-size: 2rem;
    }

.final-cta-subtitle {
    color: var(--rms-text-muted);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto;
}

/* ===== Testimonios clickeables ===== */
.testimonial-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s;
}

    .testimonial-card-link:hover {
        transform: translateY(-4px);
    }

        .testimonial-card-link:hover .testimonial-card {
            border-color: var(--rms-blue);
        }