/* ============================================================
   Prismatec - Estilos personalizados
   Paleta: Verde #17a932 | Oscuro #222222
   ============================================================ */

:root {
    --pris-green: #17a932;
    --pris-green-hover: #128a28;
    --pris-dark: #222222;
    --pris-light: #f8f9fa;
}

/* Fuente global */
body {
    font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
    color: #444;
}

/* ---- Navbar ---- */
#mainNav {
    background-color: transparent;
    transition: background-color 0.35s ease, padding 0.35s ease;
    padding-top: 20px;
    padding-bottom: 20px;
}
#mainNav.navbar-scrolled {
    background-color: #fff;
    padding-top: 10px;
    padding-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
#mainNav .navbar-brand img {
    height: 0px;
    transition: height 0.35s ease;
}
#mainNav.navbar-scrolled .navbar-brand img {
    height: 36px;
}
#mainNav .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s;
}
#mainNav.navbar-scrolled .nav-link {
    color: var(--pris-dark) !important;
}
#mainNav .nav-link:hover,
#mainNav.navbar-scrolled .nav-link:hover {
    color: var(--pris-green) !important;
}
#mainNav .navbar-toggler {
    border-color: rgba(255,255,255,0.5);
}
#mainNav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.85%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
#mainNav.navbar-scrolled .navbar-toggler {
    border-color: rgba(34,34,34,0.3);
}
#mainNav.navbar-scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2834,34,34,0.75%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---- Hero ---- */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: url('../img/header.jpg') center center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}
.hero-logo {
    width: 260px;
    max-width: 70%;
    margin-bottom: 2rem;
}
.hero-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.hero-content p {
    font-size: 1.1rem;
    font-weight: 300;
    color: rgba(255,255,255,0.8);
    margin-bottom: 2rem;
}
@media (min-width: 768px) {
    .hero-content h2 { font-size: 2.8rem; }
}

/* ---- Secciones generales ---- */
section, aside {
    padding: 80px 0;
}
.section-heading {
    font-weight: 700;
    margin-bottom: 0.5rem;
    margin-top: 0;
}
hr.divider {
    border: none;
    border-top: 3px solid var(--pris-green);
    width: 50px;
    margin: 1rem auto 2rem;
}
hr.divider-light {
    border-top-color: rgba(255,255,255,0.5);
}

/* ---- Nosotros ---- */
.bg-primary-pris {
    background-color: var(--pris-green);
    color: #fff;
}
.bg-primary-pris p {
    color: rgba(255,255,255,0.85);
}

/* ---- Servicios ---- */
.service-box {
    padding: 30px 20px;
}
.service-box .fa-4x {
    color: var(--pris-green);
    margin-bottom: 1rem;
}
.service-box h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

/* ---- Portafolio ---- */
.portfolio-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.portfolio-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.35s;
}
.portfolio-item:hover img {
    transform: scale(1.05);
}
.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(23,169,50,0.88);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s;
    color: #fff;
    text-align: center;
    padding: 20px;
}
.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}
.portfolio-overlay .tipo {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.8);
}
.portfolio-overlay .nombre {
    font-size: 1.2rem;
    font-weight: 700;
}

/* ---- Carrusel Swiper (partners y equipo) ---- */
.swiper-pris {
    padding: 10px 0 40px;
}
.swiper-pris .swiper-pagination-bullet-active {
    background: var(--pris-green);
}
.swiper-pris .swiper-button-next,
.swiper-pris .swiper-button-prev {
    color: var(--pris-green);
}

/* Tarjeta de equipo */
.card-equipo {
    border: none;
    border-bottom: 3px solid var(--pris-green);
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.3s, box-shadow 0.3s;
}
.card-equipo:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.card-equipo img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.card-equipo .card-body {
    padding: 14px;
}
.card-equipo .card-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--pris-dark);
}
.card-equipo .cargo {
    font-size: 0.82rem;
    color: #888;
}

/* Tarjeta de partner */
.card-partner {
    background: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.3s;
}
.card-partner:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.card-partner img {
    max-height: 70px;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(40%);
    transition: filter 0.3s;
}
.card-partner:hover img {
    filter: grayscale(0%);
}

/* ---- Tecnologías ---- */
.bg-dark-pris {
    background-color: var(--pris-dark);
}
.card-tecno {
    padding: 10px 8px;
    transition: transform 0.25s;
}
.card-tecno:hover {
    transform: translateY(-4px);
}
.card-tecno img {
    display: block;
    margin: 0 auto;
    height: 64px;
    width: auto;
    max-width: 90%;
    object-fit: contain;
    opacity: 0.82;
    transition: opacity 0.25s;
}
.card-tecno:hover img {
    opacity: 1;
}
.tecno-nombre {
    margin-top: 8px;
    font-size: 0.68rem;
    color: rgba(255,255,255,0.55);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- Contacto ---- */
.btn-pris {
    background-color: var(--pris-green);
    border-color: var(--pris-green);
    color: #fff;
    border-radius: 300px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 30px;
    transition: background-color 0.2s, border-color 0.2s;
}
.btn-pris:hover {
    background-color: var(--pris-green-hover);
    border-color: var(--pris-green-hover);
    color: #fff;
}
.btn-pris-outline {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
    border-radius: 300px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 12px 30px;
    transition: background-color 0.2s;
}
.btn-pris-outline:hover {
    background-color: rgba(255,255,255,0.15);
    color: #fff;
}
.contact-info i {
    color: var(--pris-green);
    width: 24px;
}

/* ---- Footer ---- */
footer {
    background-color: var(--pris-green);
    color: #fff;
    padding: 20px 0;
}
footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.2s;
}
footer a:hover {
    color: #fff;
}
.social-icons a {
    font-size: 1.3rem;
    margin-left: 12px;
}

/* ---- Modal portafolio ---- */
#modalPortafolio .modal-header {
    background-color: var(--pris-green);
    color: #fff;
}
#modalPortafolio .modal-header .btn-close {
    filter: invert(1);
}

/* ---- Scroll to top ---- */
#btnTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--pris-green);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: none;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: background-color 0.2s;
}
#btnTop:hover {
    background: var(--pris-green-hover);
}
