/* ============================================================
   PALETA CORPORATIVA
   ------------------------------------------------------------
   Rojo principal:     #c7362e
   Azul corporativo:   #233545
   Gris texto 75%:     rgba(0,0,0,0.75)
   Divisor claro:      #eeeeee
============================================================ */

/* GLOBAL */
body {
    font-family: "Space Grotesk", sans-serif;
    padding-top: 10px;
    color: rgba(0,0,0,0.75);
}

*, *::before, *::after {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

ul { padding-left: 1.25rem; }

/* Textos */
h1, h2, h3, h4, h5 {
    color: #7c7979;
    font-weight: 700;
}

p { color: rgba(143,143,143,.75); }

/* Like */
.like-btn {
    border: none;
    background: none;
    color: #c7362e;
    font-size: 18px;
    cursor: pointer;
    transition: .2s;
}
/* ===========================
   NAVBAR
=========================== */
.navbar {
    background-color: #233545 !important;
    border-bottom: 1px solid #e6e6e6;
    padding: 16px 0;
}

/* Contenedor del menú */
.navbar-nav {
    gap: 12px;
}

/* Items del menú */
.navbar-nav .nav-item {
    border-right: 1px solid rgba(255,255,255,0.18);
    border-radius: 8px;
    transition: all .25s ease-in-out;
}

/* Último ítem sin borde */
.navbar-nav .nav-item:last-child {
    border-right: none;
}

/* Hover en <li> */
.navbar-nav .nav-item:hover {
    background: rgba(255,255,255,0.10);
}

/* Activo */
.navbar-nav .nav-item.active {
    background: rgba(255,255,255,0.15);
}

/* Links */
.navbar-nav .nav-link {
    color: #fff !important;
    font-weight: 500;
    padding: 16px 42px !important;
    font-size: 17px;
    display: block;
}

/* Hover/active texto */
.navbar-nav .nav-item:hover .nav-link,
.navbar-nav .nav-item.active .nav-link {
    color: #EED0CE !important;
}

/* Separador superior */
.header-divider {
    width: 100%;
    height: 1px;
    background: #e1e1e1;
}

/* Mobile menu */
.navbar-toggler { border: none !important; }
.navbar-toggler:focus { box-shadow: none !important; }

@media (max-width: 991px) {
    .navbar-nav { gap: 0; }

    .navbar-nav .nav-item {
        border-right: none !important;
        border-bottom: 1px solid rgba(255,255,255,0.15);
        border-radius: 0;
    }

    .navbar-nav .nav-item:last-child {
        border-bottom: none !important;
    }

    .navbar-nav .nav-link {
        padding: 14px 22px !important;
    }
}

/* BOTONES */
.btn,
.btn-submit {
    background-color: #c7362e !important;
    color: #fff !important;
    border: none;
    font-weight: 600;
    transition: .2s;
    padding: 14px 28px;   /* ⬆️ altura + ancho */
    border-radius: 6px;   /* opcional: bordes suaves */
    font-size: 16px;      /* opcional: texto mayor */
}

.btn:hover,
.btn-submit:hover {
    background-color: #a32822 !important;
}

/* HERO */
.hero {
    background: url("../imagenes/background.jpg") center/cover no-repeat;
    background-color: #233545;
    min-height: 85vh;
}

/* INNER HERO */
.inner-hero,
.tj-inner-banner {
    position: relative;
    height: 45vh;
    min-height: 320px;
    background: url("../imagenes/banner.jpg") center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Overlay */
.inner-hero::before,
.tj-inner-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.30); 
    z-index: 1;
}

/* Títulos */
.inner-hero h2,
.tj-inner-banner h2 {
    font-weight: 800;
    font-size: 42px;
    background: rgba(6,60,119,0.80);
    padding: 10px 26px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
    margin-bottom: 12px;
    display: inline-block;
}
.text-white-alt {
    color: #fff !important;
}
/* Subtítulos */
.inner-hero p,
.tj-inner-banner p {
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    background: rgba(6, 60, 119, 0.80);
    padding: 8px 18px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
}

/* Asegura que texto este encima del overlay */
.inner-hero *,
.tj-inner-banner * {
    position: relative;
    z-index: 3;
}

/* Animación Banner */
.inner-hero h2,
.tj-inner-banner h2,
.inner-hero p,
.tj-inner-banner p {
    animation: fadeSlide .9s ease-out;
}

@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media(max-width: 768px){
    .inner-hero h2,
    .tj-inner-banner h2 {
        font-size: 28px;
        padding: 8px 18px;
    }

    .inner-hero p,
    .tj-inner-banner p {
        font-size: 16px;
        padding: 6px 14px;
    }
}  /* ✅ cierre correcto del media query */

/* TARJETAS */
.card,
.service-card,
.product-card,
.project-card,
.team-card {
    background: #fff;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,.08);
    transition: .3s;
}
.card:hover,
.service-card:hover,
.product-card:hover,
.project-card:hover,
.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 25px rgba(0,0,0,.12);
}

/* Imágenes */
.product-img,
.project-card img,
.team-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* Iconos */
.service-icon {
    font-size: 40px;
    color: #c7362e;
    text-shadow: 0 2px 5px rgba(0,0,0,.2);
}



.like-btn:hover {
    color: #a82d27;
    transform: scale(1.2);
}

/* Paginación */
.pagination .page-item.active .page-link {
    background-color: #c7362e;
    border-color: #c7362e;
}

.pagination .page-link {
    color: #233545;
    font-weight: 500;
    border-radius: 6px;
}

/* Contacto */
.tj-contact-form input,
.tj-contact-form textarea {
    background: #fafafa;
    border: 1px solid #ddd;
    padding: 12px;
    border-radius: 6px;
}

.tj-contact-form input:focus,
.tj-contact-form textarea:focus {
    border-color: #233545;
    background: #fff;
    box-shadow: 0 0 6px rgba(35,53,69,0.3);
}

/* Dirección */
.address-box .add-info {
    background: #f8f9fa;
    border: 1px solid #ddd;
    padding: 14px;
    border-radius: 6px;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
}

.address-box i {
    font-size: 22px;
    color: #233545;
    margin-right: 12px;
}

/* CTA */
.tj-cal-to-action {
    background: #233545;
    padding: 50px 0;
    color: #fff;
}

.cta-box img {
    width: 60px;
    margin-bottom: 10px;
}

/* FOOTER */
footer { background-color: #233545 !important; }
footer p { color: #fff; }

/* Utilidad */
.icon-red {
    color: #c7362e !important;
    font-size: 22px;
}

.add-info.qr {
    display: flex;
    align-items: center;      /* Alinea verticalmente */
    gap: 10px;                /* Espacio entre QR y texto */
}

.add-info.qr p {
    margin: 0;
    font-weight: 600;
    color: #233545;
}