/* Tablet y móvil (<= 800 px) */
html { scroll-padding-top: 80px; }

/* Barra superior: solo teléfonos y email (dirección y horario están en Contacto y en el pie) */
.topbar .container { padding-top: 8px; padding-bottom: 8px; }
.topbar-datos { gap: 4px 18px; }
.tb-direccion, .tb-horario, .topbar-lema { display: none !important; }

/* Cabecera y menú hamburguesa (checkbox oculto + label, sin JavaScript) */
.header-inner { min-height: 70px; }
.brand img { height: 48px; }
.burger { display: flex; flex-direction: column; gap: 5px; padding: 10px; cursor: pointer; }
.burger span { width: 26px; height: 3px; border-radius: 2px; background: var(--teal); transition: .2s; }
.main-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; max-height: 0; padding: 0 20px; overflow: hidden; background: #fff; border-bottom: 0 solid var(--teal); transition: max-height .3s; }
.main-nav a { padding: 14px 0; border-bottom: 1px solid #eee; font-size: 18px; }
.main-nav a:last-child { border-bottom: 0; }
.menu-toggle:checked ~ .main-nav { max-height: 400px; border-bottom-width: 3px; box-shadow: 0 6px 10px rgba(0, 0, 0, .08); }
.menu-toggle:checked + .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle:checked + .burger span:nth-child(2) { opacity: 0; }
.menu-toggle:checked + .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Slider: imagen arriba y texto debajo */
.slide, .slider-mini .slide, .slider-hero .slide.texto-imagen { grid-template-columns: 1fr; gap: 16px; }
.slide.texto-imagen .slide-img { order: 0; }
.slider-hero .slides { min-height: 0; padding: 24px 56px 48px; }
.slider-hero .slide-img img { max-height: 230px; }
.slider-hero .texto-imagen .slide-title { margin-bottom: 14px; }
.slide-sub { font-size: 1.1rem; }
.kyocera { max-width: 240px; margin: 14px auto; }
.slider-btn { width: 34px; height: 34px; }
.slider-btn .icon { width: 20px; height: 20px; }
.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }
.slider-mini .slide-img img { max-height: 170px; }

.section { padding: 44px 0 50px; }
.page-title { margin-bottom: 30px; }
.intro .page-title { margin-bottom: 30px; }
.intro-text { margin-bottom: 40px; }
.title-lines { gap: 16px; }
.soluciones { grid-template-columns: repeat(2, 1fr); gap: 30px 16px; margin-bottom: 40px; }
.soluciones li { font-size: 20px; }
.cta { flex-direction: column; text-align: center; padding: 22px 20px; }

.ventajas { grid-template-columns: 1fr; margin-bottom: 50px; }
.ventajas li, .ventajas li:nth-child(odd) { border-right: 0; }
.ventajas li, .ventajas li:nth-child(-n+2) { border-bottom: 1px solid #eee; margin-bottom: 22px; }
.ventajas li:last-child { border-bottom: 0; margin-bottom: 0; }
.ventajas p { font-size: 17px; }
.servicios-cols { grid-template-columns: 1fr; gap: 50px; }
.col-title { margin-bottom: 24px; }
.barras { margin-top: 0; }

.contacto { padding-top: 44px; }
.contacto-grid { grid-template-columns: 1fr; }
.contacto-intro { font-size: 19px; }
.contact-form .check { padding-left: 0; }
.contact-form .btn { justify-self: stretch; padding: 12px; }
.ubicacion { padding-top: 40px; }
.ubicacion h2 { margin-bottom: 30px; }
.mapa { height: 320px; }
.mapa-aviso { font-size: 14px; }

/* Aviso de cookies: texto arriba y los dos botones debajo, a partes iguales */
.aviso-cookies-inner { flex-direction: column; align-items: stretch; padding-top: 14px; padding-bottom: 14px; }
.aviso-cookies p { font-size: 13px; }
.aviso-cookies .btn { flex: 1; min-width: 0; }

.footer-inner { flex-direction: column; text-align: center; }
.footer-links, .footer-links nav { justify-content: center; }
.to-top { right: 16px; bottom: 16px; }

@media (max-width: 520px) {
    .topbar-datos { flex-direction: column; align-items: center; gap: 4px; }
    .slider-hero .slides { padding: 16px 44px 44px; }
    .slider-hero .slide-img img { max-height: 190px; }
    .soluciones .icon { height: 38px; }
    .site-footer .social { border-left: 0; padding-left: 0; }
}
