
/* HEADER */


body {
  padding-top: 80px;
}


.is-hidden {
    display: none;
}

.card-header-offer {
    position: relative;
}

/* BADGE CORPORATIVO */
.ribbon-corporate {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 10px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 4px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #fff;
    background-color: #1e7e34;
    /* verde profesional */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);

}

.promo-label {
    font-size: 11px;
    margin-bottom: 2px;
}

.countdown-small {
    font-size: 12px;
    letter-spacing: 0.5px;
}

.gallery-card {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.gallery-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-card:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #fff;
    text-align: center;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h5 {
    margin-bottom: 10px;
    font-weight: 600;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.portfolio-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 8px;
}

.filter-btn {
    padding: 8px 15px;
    margin: 5px;
    border: none;
    background: #ddd;
    cursor: pointer;
    border-radius: 5px;
}

.filter-btn.active {
    background: #0d6efd;
    color: white;
}

.portfolio-item img {
    transition: transform .3s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.img-wrapper {
    position: relative;
}

/* ===== WATERMARK FIX ===== */

/* ===============================
   WATERMARK RESPONSIVE
================================ */

.portfolio-item {
    position: relative;
}

/* Base (Desktop) */
.watermark {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    pointer-events: none;
}

.watermark img {
    width: clamp(35px, 5vw, 70px);
    opacity: 0.35;
}

/* Tablet */
@media (max-width: 992px) {
    .watermark img {
        width: 55px;
        opacity: 0.30;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .watermark {
        top: 8px;
        left: 8px;
    }

    .watermark img {
        width: 40px;
        opacity: 0.28;
    }
}







.portfolio-item::after {
    pointer-events: none;
}


/* Spinner dentro del botón */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading .spinner-border {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    vertical-align: middle;
}

.view-more-offers {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
    transition: all 0.2s ease;
}

.view-more-offers:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* ===== MODERN HERO ===== */

.hero-modern {
  background: linear-gradient(135deg, #0f1b2b 0%, #1b2f4a 100%);
  min-height: 90vh;
  color: #fff;
  padding-top: 120px;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
}

.hero-title span {
  color: #2ea3f2;
}

.hero-subtitle {
  font-size: 18px;
  margin-top: 20px;
  opacity: 0.9;
}

.hero-buttons {
  margin-top: 30px;
}

.hero-image {
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* ===== ABOUT MODERN ===== */

.about-modern {
  padding: 100px 0;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
}

.section-text {
  font-size: 16px;
  margin-bottom: 15px;
  color: #555;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 30px;
}

.about-stats h3 {
  font-size: 28px;
  color: #2ea3f2;
  margin: 0;
}

.about-stats p {
  font-size: 14px;
  margin: 0;
}

/* ===== SERVICES MODERN ===== */

.services-modern {
  padding: 100px 0;
  background: #f8f9fa;
}

.service-card {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  transition: 0.3s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.service-card i {
  font-size: 40px;
  color: #2ea3f2;
  margin-bottom: 15px;
}

.service-card h4 {
  font-weight: 600;
  margin-bottom: 10px;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
/* ===== ANIMATION BASE ===== */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Variaciones */

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: all 0.8s ease;
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: all 0.8s ease;
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* Services stagger */
.service-card {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease;
}

.service-card.active {
  opacity: 1;
  transform: translateY(0);
}
/* ===== HERO IMPACT ===== */

.hero-impact {
  background: url('../img/slide/slide1.jpg') center center / cover no-repeat;
  min-height: 100vh;
  position: relative;
  color: #fff;
}

.hero-impact .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.8), rgba(15,27,43,0.9));
}

.impact-title {
  font-size: 60px;
  font-weight: 800;
  line-height: 1.1;
}

.impact-title span {
  color: #ffc107;
}

.impact-subtitle {
  font-size: 20px;
  margin-top: 20px;
  opacity: 0.9;
}

.impact-buttons {
  margin-top: 40px;
}

/* CTA pulse */
.pulse-btn {
  position: relative;
  animation: pulseGlow 2.5s infinite;
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(244,180,0,0.6);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(244,180,0,0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(244,180,0,0);
  }
}

.about-impact {
  padding: 120px 0;
  background: #f8f9fa;
}

.impact-box {
  padding: 40px;
  background: #fff;
  border-radius: 12px;
  transition: 0.3s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.impact-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.services-impact {
  padding: 120px 0;
  background: #0f1b2b;
  color: #fff;
}

.impact-service {
  background: #1b2f4a;
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  transition: 0.3s ease;
}

.impact-service i {
  font-size: 45px;
  color: #ffc107;
  margin-bottom: 20px;
}

.impact-service:hover {
  transform: translateY(-10px);
  background: #243c5a;
}

/* ===== PROMO BAR ===== */

.promo-bar {
  background: linear-gradient(90deg, #ffc107, #ff9800);
  color: #000;
  padding: 10px 0;
  font-weight: 600;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9999;
  animation: slideDown 0.6s ease;
}

.promo-text {
  font-size: 14px;
}

.promo-btn {
  background: #000;
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  text-decoration: none;
  transition: 0.3s ease;
}

.promo-btn:hover {
  background: #222;
  color: #ffc107;
}

.promo-close {
  margin-left: 15px;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.trust-strip {
  background: #ffc107;
  padding: 25px 0;
  font-weight: 600;
  color: #000;
}

.trust-strip h4 {
  margin: 0;
  font-size: 18px;
}
.cta-impact {
  padding: 120px 0;
  background: linear-gradient(135deg, #0f1b2b, #1b2f4a);
  color: #fff;
}

.cta-impact h2 {
  font-size: 38px;
  font-weight: 700;
}
.multi-services {
  padding: 100px 0;
  background: #fff;
}

.multi-box {
  padding: 30px;
  border-radius: 12px;
  background: #f8f9fa;
  transition: 0.3s ease;
}

.multi-box i {
  font-size: 35px;
  color: #ffc107;
  margin-bottom: 15px;
}

.multi-box:hover {
  transform: translateY(-8px);
  background: #0f1b2b;
  color: #fff;
}

.split-services {
  padding: 120px 0;
  background: #0f1b2b;
  color: #fff;
}

.split-box {
  padding: 60px 40px;
}

.split-box h2 {
  font-weight: 700;
  margin-bottom: 20px;
}

.split-box ul {
  list-style: none;
  padding: 0;
}

.split-box ul li {
  margin-bottom: 10px;
  opacity: 0.9;
}

.residential {
  border-right: 1px solid rgba(255,255,255,0.1);
}
/* ===== CORPORATE BUTTON STYLE ===== */

.btn-primary {
  background-color: #1b2f4a;
  border: none;
}

.btn-primary:hover {
  background-color: #2ea3f2;
}

.btn-outline-light:hover {
  background-color: #2ea3f2;
  border-color: #2ea3f2;
}
/* ===== CORPORATE GOLD CTA ===== */

.btn-warning {
  background: linear-gradient(135deg, #f4b400, #d89c00);
  border: none;
  color: #0f1b2b;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(244, 180, 0, 0.3);
}

.btn-warning:hover {
  background: linear-gradient(135deg, #ffd24d, #f4b400);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(244, 180, 0, 0.4);
  color: #0f1b2b;
}

.offer-features {
    list-style: none;
    padding: 0;
    margin: 30px 0 0 0;
    text-align: center !important; /* 👈 FORZAMOS CENTRADO */
}

.offer-features li {
    display: block;
    width: 100%;
    text-align: center !important; /* 👈 FORZAMOS CENTRADO */
    font-size: 15px;
    margin-bottom: 14px;
    color: #1b2f4a;
}
/* ==============================
   MBS OFFER CARD STYLE
============================== */

.mbs-offer-header {
    padding: 50px 60px 40px 60px;
    background: #eef3f8;  /* 🔥 azul corporativo claro */
}

.offer-title {
    font-weight: 600;
    letter-spacing: 1px;
    color: #0f2b46;
    margin-bottom: 15px;
}

.offer-price-wrapper {
    width: 100%;
    max-width: 300px;
    margin: 0 auto 20px auto;
    display: flex;
    justify-content: center;
    align-items: baseline;
}

.currency {
    font-size: 22px;
    margin-right: 5px;
    color: #0f2b46;
}

.offer-price {
    font-size: 64px;
    font-weight: 700;
    color: #0f2b46;
    line-height: 1;
}

.offer-unit {
    font-size: 16px;
    margin-left: 8px;
    color: #6c757d;
}

.price-divider {
    width: 60%;
    height: 1px;
    background: rgba(15,43,70,0.15);
    margin: 25px auto;
}

/* ===== CENTER FEATURES ===== */
.offer-features {
    list-style: none;
    padding: 0;
    margin: 30px auto 0 auto;
    width: 100%;
    max-width: 300px; /* 👈 mismo eje visual */
    text-align: center;
}

.offer-features li {
    font-size: 15px;
    margin-bottom: 14px;
    color: #1b2f4a;
}
/* ==============================
   MBS PREMIUM OFFER CARD
============================== */

.mbs-offer-card {
    background: #eef3f8;
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    overflow: hidden;
}

.mbs-offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.mbs-offer-header {
    padding: 45px 35px;
    background: #f4f6f9;
}

.mbs-offer-footer {
    padding: 30px;
    background: #ffffff;
}

.mbs-offer-footer .btn {
    padding: 12px 35px;
    font-weight: 600;
    border-radius: 8px;
}
.price-divider {
    width: 300px; /* 👈 igual que el max-width de la lista */
    max-width: 90%;
    height: 1px;
    background: rgba(15,43,70,0.15);
    margin: 25px auto;
}
/* ===== UNIFIED BLUE BACKGROUND ===== */
.mbs-soft-bg {
    background: #eef3f8;
}

/* ===== CARD STRUCTURE ===== */
.mbs-offer-card {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

/* ===== HEADER SPACING ===== */
.price-header {
    padding: 50px 60px 40px 60px;
}

/* ===== CENTERED FEATURES ===== */
.offer-features {
    list-style: none;
    padding: 0;
    margin: 30px 0 0 0;
    text-align: center;
}

.offer-features li {
    font-size: 15px;
    margin-bottom: 14px;
    color: #1b2f4a;
}

/* ===== FOOTER ===== */
.mbs-offer-footer {
    padding: 35px 40px;
    background: #ffffff; /* 👈 blanco limpio */
    border-top: 1px solid rgba(0,0,0,0.06);
}

/* ===== MBS PRIMARY BUTTON ===== */
.mbs-primary-btn {
    background: #0f2b46;
    color: #ffffff;
    border: none;
    padding: 12px 35px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mbs-primary-btn:hover {
    background: #12365a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15,43,70,0.25);
}

/* ===== MBS YELLOW ACTION BUTTON ===== */
.mbs-yellow-btn {
    background: #f5b400;
    color: #0f2b46;
    border: none;
    font-weight: 600;
    padding: 10px 28px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mbs-yellow-btn:hover {
    background: #e0a400;
    color: #0f2b46;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* ===== BACK TO TOP - MBS YELLOW ===== */
/* =========================
   BACK TO TOP BUTTON
========================= */

/* BACK TO TOP */

.back-to-top{
    position:fixed;
    right:20px;
    bottom:90px; /* para no chocar con barra mobile */
    width:45px;
    height:45px;
    background:#ebd404;
    color:#fff;
    border-radius:50%;
    font-size:24px;
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:99999;
    opacity:0;
    visibility:hidden;
    transition:0.3s;
}

.back-to-top.active{
    opacity:1;
    visibility:visible;
}

.back-to-top:hover{
    background:#0056b3;
}
.back-to-top i {
    color: #0f2b46 !important;
}
/* ===== PORTFOLIO UPGRADE ===== */

/* ===== UNIFORM GALLERY ===== */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.portfolio-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    aspect-ratio: 4 / 3; /* 🔥 PROPORCIÓN FIJA */
    transition: all 0.4s ease;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 🔥 RECORTA SIN DEFORMAR */
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.08);
}

.portfolio-item:hover {
    box-shadow: 0 18px 45px rgba(0,0,0,0.15);
}
.portfolio-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,43,70,0.7), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-item:hover::after {
    opacity: 1;
}
.filter-btn {
    background: #eef3f8;
    border: none;
    padding: 8px 18px;
    margin: 5px;
    border-radius: 20px;
    font-weight: 600;
    color: #0f2b46;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: #0f2b46;
    color: #ffffff;
}

.contact-section .container {
  max-width: 1100px;
}
.contact-modern {
  background: #f8f9fa;
}

.section-subtitle {
  color: #6c757d;
}

.contact-card {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
  overflow: hidden;
}

.contact-side {
  background: linear-gradient(135deg, #0f2b46, #163857);
  color: #ffffff;
}

.contact-side p {
  opacity: 0.9;
}

.contact-side h4 {
  font-weight: 600;
}

.contact-modern .form-control {
  border-radius: 8px;
  padding: 12px;
}

.contact-modern .form-control:focus {
  box-shadow: 0 0 0 3px rgba(46,163,242,0.15);
  border-color: #2ea3f2;
}
.footer-modern {
  background: #0f1b2b;
  color: #ffffff;
}

.footer-title {
  font-weight: 600;
  margin-bottom: 15px;
}

.footer-subtitle {
  font-weight: 600;
  margin-bottom: 15px;
}

.footer-text {
  color: rgba(255,255,255,0.75);
}

.footer-contact {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: 0.3s ease;
}

.footer-links a:hover {
  color: #ffc107;
  padding-left: 4px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  margin-right: 8px;
  color: #fff;
  transition: 0.3s ease;
}

.social-links a:hover {
  background: #ffc107;
  color: #0f1b2b;
}

.footer-logo {
  max-width: 360px;
}

.footer-bottom {
  background: #0c1522;
  padding: 15px 0;
  font-size: 14px;
}
/* ===== HEADER ===== */

#header {
  height: 110px;
  display: flex;
  align-items: center;
}

#header .logo img {
  max-height: 95px;
  width: auto;
}

body {
  padding-top: 110px;
}

.navbar ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 25px;
}

.navbar a {
  text-decoration: none;
  font-weight: 600;
  color: #0f2b46;
  transition: 0.3s;
}

.navbar a:hover,
.navbar .active {
  color: #f5b400;
}

.admin-link {
  background: #0f2b46;
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 6px;
}

.admin-link:hover {
  background: #12365a;
}
/* ============================= */
/* ADMIN DROPDOWN FINAL CLEAN */
/* ============================= */

.admin-dropdown {
    position: relative;
    list-style: none;
}

.admin-dropdown a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-dropdown a i {
    font-size: 32px;
    color: #0f2b46;
    cursor: pointer;
}

.admin-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    min-width: 180px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: none;
    z-index: 999999;
    padding: 10px 0;
}

.admin-menu a {
    display: block;
    padding: 10px 18px;
    text-decoration: none;
    color: #0f2b46;
}

.admin-menu a:hover {
    background: #f1f1f1;
}

.admin-dropdown:hover .admin-menu {
    display: block;
}

.navbar,
.navbar ul {
    overflow: visible !important;
}

/* =========================
   MOBILE MENU
========================= */

@media (max-width:991px){

#navbar ul{
    position:fixed;
    top:0;
    right:-100%;
    width:260px;
    height:100vh;
    background:#0f1626;
    flex-direction:column;
    padding-top:90px;
    transition:0.4s;
    z-index:9998;
}

#navbar ul.show{
    right:0;
}

#navbar ul li{
    width:100%;
    padding:15px 25px;
}

#navbar ul li a{
    color:#fff;
    font-size:18px;
}

}

    #navbar ul.show {
        right: 0;
    }

    .mobile-nav-toggle {
        font-size: 28px;
        cursor: pointer;
        color: #fff;
        display: block;
    }

}

/* desktop */
@media (min-width: 992px) {
    .mobile-nav-toggle {
        display: none;
    }
}
/* ICONO MENU MOBILE */
.mobile-nav-toggle{
    font-size:28px;
    cursor:pointer;
    color:#111; /* oscuro para que se vea */
    z-index:9999;
}

/* si el header es oscuro usa blanco */
#header .mobile-nav-toggle{
    color:#000;
}

/* =========================
   HAMBURGER MENU CONTROL
========================= */

/* oculto por defecto */
.mobile-nav-toggle{
    display:none;
}

/* SOLO mostrar en dispositivos móviles */
@media (max-width: 991px){

    .mobile-nav-toggle{
        display:block;
        font-size:28px;
        cursor:pointer;
        color:#000;
        z-index:9999;
    }
    .mobile-nav-toggle{
    margin-right:20px;
}


    #navbar ul{
        position:fixed;
        top:0;
        right:-100%;
        width:260px;
        height:100vh;
        background:#0f1626;
        flex-direction:column;
        padding-top:80px;
        transition:0.4s;
        z-index:9998;
    }

    #navbar ul.show{
        right:0;
    }

    #navbar ul li{
        width:100%;
        padding:15px 25px;
    }

    #navbar ul li a{
        color:#fff;
        font-size:18px;
    }

}

/* en desktop mostrar menu normal */
@media (min-width: 992px){

    #navbar ul{
        display:flex;
        position:static;
        height:auto;
        background:none;
    }

}

.mobile-menu-overlay{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.5);
  z-index:999;
  display:none;
}

.mobile-menu-overlay.active{
  display:block;
}

.mobile-contact-bar{
  position:fixed;
  bottom:0;
  left:0;
  width:100%;
  display:flex;
  background:#111;
  z-index:9999;
}

.mobile-contact-bar a{
  flex:1;
  text-align:center;
  padding:14px;
  color:#fff;
  text-decoration:none;
  font-weight:600;
}

.mobile-contact-bar a:nth-child(1){
  background:#007bff;
}

.mobile-contact-bar a:nth-child(2){
  background:#25D366;
}

.mobile-contact-bar a:nth-child(3){
  background:#ff9800;
}

@media(min-width:992px){
  .mobile-contact-bar{
    display:none;
  }
}

.mobile-contact-bar a:nth-child(3){
    background:#ffc107;
    color:#000;
}