html {
  font-size: 14px;
  scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 0;
}

/* ====================================================
   DoHome – Mejoras visuales
   Overrides cargados después de style.css
   ==================================================== */

/* --- Menú principal --- */
.main-menu .navigation > li > a {
    padding: 16px 13px;          /* reducido de 20px para evitar overflow */
    font-weight: 500;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

/* Separador sutil entre items */
.main-menu .navigation > li {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.main-menu .navigation > li:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hover moderno: fondo tenue + línea blanca inferior (reemplaza el cuadrado azul sólido) */
.main-menu .navigation > li:hover > a,
.main-menu .navigation > li.current > a,
.main-menu .navigation > li.current-menu-item > a {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 -3px 0 rgba(255, 255, 255, 0.8);
    opacity: 1;
}

/* Sticky header: mismo principio pero con acento azul (fondo blanco) */
.sticky-header .main-menu .navigation > li > a {
    font-weight: 500;
    padding: 15px 13px;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}
.sticky-header .main-menu .navigation > li:hover > a,
.sticky-header .main-menu .navigation > li.current > a,
.sticky-header .main-menu .navigation > li.current-menu-item > a {
    background: rgba(37, 19, 253, 0.07);
    box-shadow: inset 0 -3px 0 #2513fd;
    color: #2513fd;
}

/* --- Botón CTA del header: glow en hover en vez de opacidad plana --- */
.main-header .btn-outer .visit-btn {
    border-radius: 3px;
    letter-spacing: 0.5px;
    font-weight: 600;
    transition: opacity 0.22s ease, box-shadow 0.22s ease;
}
.main-header .btn-outer .visit-btn:hover {
    opacity: 0.95;
    box-shadow: 0 4px 16px rgba(37, 19, 253, 0.38);
}

/* --- WhatsApp flotante: pulso de atención --- */
@keyframes wp-pulse {
    0%   { box-shadow: 0 3px 3px 0 #8e8e8e, 0 0 0 0 rgba(37, 211, 102, 0.55); }
    70%  { box-shadow: 0 3px 3px 0 #8e8e8e, 0 0 0 16px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 3px 3px 0 #8e8e8e, 0 0 0 0 rgba(37, 211, 102, 0); }
}
.whatsapp {
    animation: wp-pulse 2.8s ease-out infinite;
    transition: transform 0.2s ease;
}
.whatsapp:hover {
    transform: scale(1.1);
    animation: none;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.5);
}

/* --- Headings: espaciado de letra muy sutil --- */
.auto-container h1,
.auto-container h2,
.auto-container h3 {
    letter-spacing: 0.3px;
}

/* ====================================================
   Home page – mejoras visuales
   ==================================================== */

/* Cards DoOne / DoFamily / DoLoft: elevación en hover */
.price-card-animation {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
}
.price-card-animation:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 48px rgba(27, 13, 191, 0.18) !important;
}

/* Botones dentro de las cards */
.card-body a.btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-body a.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(27, 13, 191, 0.22);
}

/* Info blocks (estadísticas): hover con acento */
.info-block {
    transition: transform 0.22s ease;
    cursor: default;
}
.info-block:hover {
    transform: translateY(-4px);
}
.info-block .icon-box {
    transition: background-color 0.22s ease;
}
.info-block:hover .icon-box {
    background-color: #ede9ff !important;
}
.info-block .text .count {
    transition: color 0.22s ease;
}
.info-block:hover .text .count {
    color: #2513fd;
}

/* Feature columns: borde izquierdo azul + sombra en hover */
.feature-column .inner-box {
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
    border-left: 3px solid transparent;
    padding-left: 12px;
}
.feature-column .inner-box:hover {
    box-shadow: 0 6px 24px rgba(37, 19, 253, 0.1);
    border-left-color: #2513fd;
}
.feature-column .inner-box .icon {
    transition: transform 0.25s ease;
    display: inline-block;
}
.feature-column .inner-box:hover .icon {
    transform: scale(1.15);
}

/* Check columns: sombra + icono escalado en hover */
.check-column .inner-box {
    transition: box-shadow 0.25s ease;
}
.check-column .inner-box:hover {
    box-shadow: 0 6px 20px rgba(37, 19, 253, 0.1);
}
.check-column .inner-box .icon {
    transition: transform 0.25s ease;
    display: inline-block;
}
.check-column .inner-box:hover .icon {
    transform: scale(1.15);
}

/* Imágenes de galería en home: zoom suave */
.default-section .content-column img {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.default-section .content-column img:hover {
    transform: scale(1.04);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
}

/* Formulario de presupuesto: focus de inputs más definido */
#budgetForm .form-control {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
#budgetForm .form-control:focus {
    border-color: #2513fd;
    box-shadow: 0 0 0 3px rgba(37, 19, 253, 0.1);
    outline: none;
}
#budgetSubmitBtn {
    background: linear-gradient(135deg, #1b0cbd 0%, #2513fd 100%);
    border: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
#budgetSubmitBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(37, 19, 253, 0.4);
    opacity: 0.92;
}

/* ====================================================
   Banner principal (main-slider) – mejoras visuales
   ==================================================== */

/* Formulario flotante: glassmorphism + acento + animación de entrada */
.main-slider .hidden-xs {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.87) !important;
    border-top: 4px solid #2513fd;
    box-shadow: 0 10px 48px rgba(37, 19, 253, 0.18), 0 2px 14px rgba(0,0,0,0.09) !important;
    animation: formSlideIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

@keyframes formSlideIn {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Línea decorativa bajo el título del formulario */
.main-slider .hidden-xs h3 {
    position: relative;
    padding-bottom: 16px;
}
.main-slider .hidden-xs h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 52px;
    height: 3px;
    background: linear-gradient(90deg, #1b0cbd, #2513fd);
    border-radius: 2px;
}

/* Badge de precio del slider: gradiente + borde redondeado izquierdo */
.main-slider .lower-info .data-cell.price {
    background: linear-gradient(135deg, #1509a7 0%, #2513fd 100%) !important;
    border-radius: 6px 0 0 6px;
}

/* Botón CTA del slider: borde redondeado derecho + arrow en hover */
.main-slider .lower-info .data-cell.read-more {
    border-radius: 0 6px 6px 0;
    transition: padding-right 0.22s ease;
}
.main-slider .lower-info .data-cell.read-more:hover {
    padding-right: 24px;
}

/* Strip de contacto móvil: gradiente suave + acento superior */
.main-slider .visible-xs {
    border-top: 3px solid #2513fd;
    background: linear-gradient(to right, #eef1ff, #ffffff);
}

/* Pills numeradas (1, 2, 3): hover sutil */
.about-company .w-100.d-flex {
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.about-company .w-100.d-flex:hover {
    transform: scale(1.025);
    box-shadow: 0 8px 24px rgba(27, 13, 191, 0.3);
}

/* --- Footer: slide sutil en enlaces rápidos --- */
.footer-widget.links-widget ul li a {
    display: inline-block;
    transition: color 0.18s ease, padding-left 0.18s ease;
}
.footer-widget.links-widget ul li a:hover {
    padding-left: 6px;
}

/* --- Redes sociales: transición más suave --- */
.social-links-one a,
.social-links-two a,
.social-links-three a,
.main-footer .social-links a {
    transition: all 0.22s ease !important;
}

/* --- Menú móvil: indicador de borde izquierdo en hover --- */
.visible-xs .navbar-nav > li > a {
    font-weight: 500;
    letter-spacing: 0.3px;
    border-left: 3px solid transparent;
    transition: border-left-color 0.2s ease, background-color 0.2s ease;
}
.visible-xs .navbar-nav > li > a:hover {
    border-left-color: #2513fd;
    background-color: #f5f5f5;
    color: #2513fd;
}

/* --- Títulos de sección: línea decorativa inferior --- */
.sec-title h1,
.sec-title h2 {
    position: relative;
    padding-bottom: 18px;
}
.sec-title h1::after,
.sec-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #1b0cbd, #2513fd);
    border-radius: 2px;
}

/* --- Menú activo: clase .current añadida por JS --- */
.main-menu .navigation > li.nav-active > a,
.sticky-header .main-menu .navigation > li.nav-active > a {
    font-weight: 600;
}
.main-menu .navigation > li.nav-active > a {
    background: rgba(255, 255, 255, 0.13);
    box-shadow: inset 0 -3px 0 rgba(255, 255, 255, 0.9);
}
.sticky-header .main-menu .navigation > li.nav-active > a {
    background: rgba(37, 19, 253, 0.07);
    box-shadow: inset 0 -3px 0 #2513fd;
    color: #2513fd;
}
.visible-xs .navbar-nav > li.nav-active > a {
    border-left-color: #2513fd;
    background-color: #f0f0ff;
    color: #2513fd;
    font-weight: 600;
}
