/* =========================================================================
   Pet Mate Nicaragua — ajustes móviles y de localización
   Se carga después de /assets/styles.css (tema original).
   ========================================================================= */

/* --- Anclas de navegación: el header fijo no debe tapar las secciones --- */
section[id],
footer[id] {
  scroll-margin-top: 84px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* --- Botones flotantes de contacto (solo móvil) --- */
.mobile-actions {
  display: none;
}

/* =========================================================================
   Móvil (hasta 767px)
   ========================================================================= */
@media (max-width: 767px) {
  /* Evita el zoom automático de iOS al enfocar un campo */
  input,
  select,
  textarea {
    font-size: 16px !important;
  }

  /* --- Acciones rápidas: WhatsApp y llamada --- */
  .mobile-actions {
    bottom: 16px;
    display: flex;
    gap: 10px;
    left: 16px;
    position: fixed;
    z-index: 10000;
  }

  .mobile-actions a {
    align-items: center;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    color: #fff;
    display: flex;
    font-size: 22px;
    height: 52px;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.15s ease-in-out;
    width: 52px;
  }

  .mobile-actions a:active {
    transform: scale(0.94);
  }

  .mobile-action--whatsapp {
    background: #25d366;
  }

  .mobile-action--call {
    background: #fcb040;
  }

  /* --- Cabecera más compacta y ordenada --- */
  .main-header-2 .main-top-header {
    padding: 8px 0;
    text-align: center;
  }

  .main-header-2 .main-top-header .text-left,
  .main-header-2 .main-top-header .text-right {
    text-align: center !important;
  }

  .main-header-2 .main-top-header .top-bar-link {
    line-height: 24px;
  }

  .main-header-2 .header-top .header-col-logo {
    text-align: center;
  }

  .main-header-2 .header-top .header-col-logo .header-logo {
    line-height: 60px;
  }

  .main-header-2 .header-top .header-logo {
    margin-bottom: 4px;
    margin-top: 8px;
  }

  .main-header-2 .header-top .header-icon-box {
    margin-top: 14px;
  }

  .main-header-2 .header-top .header-icon-box .text .head-heading {
    font-size: 13px;
    line-height: 18px;
  }

  .main-header-2 .header-top .header-icon-box .text .head-content {
    font-size: 12px;
    line-height: 16px;
  }

  .btn-header-cta {
    display: block;
    float: none !important;
    margin-top: 16px !important;
    width: 100%;
  }

  /* --- Menú principal: objetivos táctiles cómodos --- */
  #menu_area {
    padding: 6px 0;
  }

  .mainmenu {
    padding-left: 0;
  }

  .navbar-toggler {
    border: 1px solid #ddd;
    margin: 0 auto;
    padding: 8px 14px;
  }

  .mainmenu ul li a {
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
    padding: 14px 16px;
    text-align: center;
  }

  .main-header-2 .top-bar-social {
    margin: 4px 0 8px;
    text-align: center;
  }

  .main-header-2 .top-bar-social a {
    margin-right: 8px;
  }

  /* --- Slider principal: titulares a escala móvil --- */
  .slider-content h2 {
    font-size: 34px !important;
    letter-spacing: -0.01em;
    line-height: 38px !important;
  }

  .slider-content h3 {
    font-size: 17px !important;
    line-height: 26px !important;
    margin-bottom: 18px !important;
  }

  .slider-content .btn {
    margin-bottom: 8px;
  }

  /* --- Contadores: una columna para que las etiquetas no se recorten --- */
  .counter-inline-container .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .counter-block-2 {
    padding-bottom: 14px;
    padding-top: 14px;
  }

  /* --- Formularios y tarjetas --- */
  .appointment-form-wrapper {
    margin-bottom: 24px;
  }

  .appointment-form-wrapper .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .form-control {
    height: 46px;
  }

  textarea.form-control {
    height: auto;
  }

  /* --- Botones generales: objetivos táctiles más grandes --- */
  .btn {
    padding: 12px 24px;
  }

  .btn-small {
    padding: 10px 18px;
  }

  /* --- Footer --- */
  .footer-widget-area .footer-about {
    margin-bottom: 24px;
    padding-bottom: 24px;
  }

  .footer-contents .copyright-text {
    font-size: 13px;
  }
}

/* =========================================================================
   Pantallas muy pequeñas (hasta 400px)
   ========================================================================= */
@media (max-width: 400px) {
  .slider-content h2 {
    font-size: 29px !important;
    line-height: 33px !important;
  }
}
