html,
body {
  font-family: "Roboto", arial, sans-serif !important;
  color: #ffffff;
  background-color: #181826;
  text-align: center;
  font-size: 16px;
}

.clear {
  clear: both;
}

img {
  max-width: 100%;
}

.container-seb {
  width: 90%;
  padding: 0 12px;
  margin: 0 auto;
  max-width: 1500px;
}

a:link,
a:visited {
  color: inherit;
  text-decoration: none !important;
}

a:hover {
  color: #f1b514;
}

h1,
h2,
h4,
h5,
.footn,
#titulo {
  font-weight: 700;
}

/* ==================================
   WIDGET WHATSAPP (BOTÓN + MODAL)
   - Requiere Font Awesome para los <i class="fab ...">
   - El JS agrega:
     - .visible al #whatsapp-widget
     - .open al #whatsapp-modal
   ================================== */

/* --- Ajustes rápidos (podés cambiar estos valores) --- */
:root {
  --wa-z: 9999;
  --wa-gap: 1.5rem;
  --wa-btn-size: 60px;

  --wa-green: #25d366;
  --wa-green-hover: #128c7e;

  --wa-header: #00153d; /* tu rojo actual del header */
  --wa-card-radius: 16px;
}

/* ==================================
   BOTÓN FLOTANTE
   ================================== */
.whatsapp-widget-container {
  position: fixed;
  right: 10px;
  bottom: 90px;
  z-index: var(--wa-z);

  display: flex;
  align-items: center;
  justify-content: center;

  /* Oculto hasta que el JS agregue .visible */
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;

  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.whatsapp-widget-container.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.whatsapp-button{
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: #25d366;
  color: #fff;

  display: flex;
  align-items: center;
  justify-content: center;

  position: relative;
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
}

.whatsapp-button:hover {
  transform: translateY(-1px);
  filter: brightness(0.98);
}

.whatsapp-button i{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 28px;
  line-height: 1;
}

.whatsapp-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.35);
  animation: pulse 1.6s infinite;
  z-index: -1;
}

/* Tooltip */
.whatsapp-tooltip {
  position: absolute;
  right: calc(var(--wa-btn-size) + 12px);
  bottom: 50%;
  transform: translateY(50%);

  background: #111;
  color: #fff;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
  white-space: nowrap;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.whatsapp-widget-container:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateY(50%) translateX(-2px);
}

/* ==================================
   MODAL / CHATBOX
   ================================== */
.whatsapp-modal-container {
  position: fixed;
  inset: 0;
  z-index: var(--wa-z);

  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: var(--wa-gap);

  opacity: 0;
  visibility: hidden;

  /* Importante: que no bloquee clicks cuando está cerrado */
  pointer-events: none;

  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.whatsapp-modal-container.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.whatsapp-modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.2);
}

/* Tarjeta */
.whatsapp-chat-card {
  position: relative;
  background-color: white;
  border-radius: var(--wa-card-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);

  width: 100%;
  max-width: 380px;

  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.whatsapp-modal-container.open .whatsapp-chat-card {
  transform: translateX(0);
}

/* Header */
.chat-header {
  background-color: var(--wa-header);
  color: white;
  padding: 1rem;

  border-top-left-radius: var(--wa-card-radius);
  border-top-right-radius: var(--wa-card-radius);

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header .header-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chat-header .header-icon-container {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-header .header-icon-container i {
  font-size: 1.25rem;
}

.chat-header .header-title {
  font-weight: 700;
}

.chat-header .header-status {
  font-size: 0.875rem;
  opacity: 0.85;
}

/* Botón cerrar */
.chat-header .close-modal-button {
  background: none;
  border: none;
  color: white;
  padding: 0.25rem;
  cursor: pointer;

  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.chat-header .close-modal-button:hover {
  opacity: 1;
  transform: scale(1.03);
}

.chat-header .close-modal-button i {
  font-size: 1.25rem;
}

/* Body */
.chat-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: #333;
}

.chat-body .welcome-message {
  background-color: #f1f1f1;
  border-radius: 8px;
  padding: 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Botones del chat */

.chat-actions{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.chat-action-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;

  width:100%;
  padding:12px;

  border:none;
  border-radius:8px;

  background:#25D366;
  color:white;

  font-size:16px;
  font-weight:600;

  cursor:pointer;

  transition:all .2s ease;
}

.chat-action-btn i{
  font-size:18px;
}

.chat-action-btn:hover{
  background:#128C7E;
  transform:scale(1.03);
}

.chat-body .open-whatsapp-button {
  width: 100%;
  background-color: var(--wa-green);
  color: white;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;

  transition: background-color 0.2s ease, transform 0.2s ease;
}

.chat-body .open-whatsapp-button:hover {
  background-color: var(--wa-green-hover);
  transform: scale(1.03);
}

.chat-body .response-time {
  text-align: center;
  font-size: 0.75rem;
  color: #999;
}

/* ==================================
   Animaciones
   ================================== */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.75;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

@keyframes bounce-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* ==================================
   Mobile: que no quede pegado al borde
   ================================== */
@media (max-width: 480px) {
  .whatsapp-widget-container {
    right: 16px;
    bottom: 16px;
  }

  .whatsapp-modal-container {
    padding: 1rem;
  }
}

/* ==================================
   Accesibilidad: respeta reduce motion
   ================================== */
@media (prefers-reduced-motion: reduce) {
  .whatsapp-pulse {
    animation: none;
  }
  .whatsapp-modal-container,
  .whatsapp-chat-card,
  .whatsapp-widget-container,
  .whatsapp-button,
  .whatsapp-tooltip {
    transition: none !important;
  }
}

/* Navbar */

#navdat {
  width: 100%;
  background: #f1b514;
  position: fixed !important;
  top: 0;
  left: 0;
  color: #131414;
  height: 36px !important;
  overflow: hidden;
  text-align: left;
  z-index: 9998;
}

#navdat a:hover {
  color: inherit;
}

.dbar {
  padding-top: 3px;
}

.dbar img {
  margin-top: -3px;
}

.dicon {
  padding-left: 5px !important;
  padding-right: 5px !important;
}

nav {
  position: fixed !important;
  top: 36px;
  left: 0;
  width: 100%;
  z-index: 9999;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.logotipo {
  height: 60px;
}

.navbar-toggler {
  border-color: #d0d0d0 !important;
}

.navbar-toggler-icon {
  background: url(../menu.png) center center no-repeat;
}

.arados {
  background: #202133 !important;
  color: #ffffff;
  border-bottom: 1px solid #242424;
}

.dropdown-menu {
  background-color: #e2e2e2;
  border: 0px;
  padding-top: 0;
  overflow: hidden;
}

.dropdown-item:link,
.dropdown-item:visited {
  background: none;
  color: #131414 !important;
}

.dropdown-item:hover {
  background: #d0d0d0;
  color: #131414 !important;
}

.dropdown-submenu {
  position: relative;
}

.dropdown-submenu a::after {
  position: absolute;
  right: 14px;
  top: 0.9em;
}

.dropdown-submenu .dropdown-menu {
  margin-left: -160px;
  margin-right: 0;
}

.dropsub {
  padding: 12px 1.5rem;
  background: #f1b514;
  margin-bottom: 10px;
  font-weight: 600;
}

.dropsub a {
  color: #00205b !important;
  font-weight: 600;
}

.dropsub .dropdown-item:hover {
  background: #337ab7;
}

.cosechadora a:link,
.cosechadora a:visited {
  color: #ffffff;
}

.cosechadora a:hover {
  color: #f1b514;
}

.navwsp {
  text-align: right;
}

.navmenu {
  text-align: right;
}

.btn-new {
  padding: 14px 35px;
  background: transparent;
  color: #ffffff;
  font-weight: 600;
  border: 3px solid #ffffff;
  border-radius: 2px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
}

.btn-new:hover {
  background: rgba(0, 0, 0, 0.6);
}

/* Encabezado index */

.videoind {
  width: 100%;
  aspect-ratio: 16/9;
}

.videodos {
  width: 100%;
  aspect-ratio: 16/9;
}

#videotop {
  padding-bottom: 0;
  padding-top: 90px;
  text-align: center;
}

#infotop {
  text-align: left;
}

#formenc {
  position: absolute;
  top: 122px;
  width: 100%;
  height: calc(100vh - 64px);
  z-index: 6;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#formenc .form {
  text-align: right;
}

#formenc form {
  text-align: left;
  width: 380px;
  max-width: 100%;
}

#formenc .form form {
  background: rgba(24, 24, 38, 0.4);
  color: #ededed;
  padding: 30px 15px;
  border-radius: 3px;
  border-bottom: 5px solid #f1b514;
}

#formenc .form-control {
  border-radius: 0;
  border: 0;
  background-color: #ededed;
  color: #181826;
}

#formenc .form-control:active,
#formenc .form-control:focus {
  background-color: #ededed;
  color: #181826;
}

#formenc .btn-new {
  border-color: #f1b514;
  background: #f1b514;
  color: #181826;
}

#formenc .btn-new:hover {
  color: #181826;
  background: none;
  color: #f1b514;
}

.lideres {
  font-size: 70px;
  font-weight: 900;
  text-shadow: 0 0 4px #181826;
  text-transform: uppercase;
  text-align: left;
}

.sapempresa {
  font-weight: 900;
  font-size: 54px;
  margin-top: 50px;
  text-shadow: 0 0 3px #181826;
  text-transform: uppercase;
}

/* Contenido */

section {
  padding: 90px 0;
}

h1 {
  margin: 0 auto 10px;
  text-transform: uppercase;
  font-weight: 700;
}

#presencia h1 {
  margin-bottom: 26px;
  font-size: 50px;
  border-bottom: 3px solid #ffffff;
  color: #ffffff;
}

#presencia h1,
#presencia h2,
.industrias {
  text-align: left;
}

.h1spec {
  font-size: 40px !important;
}

.industrias {
  font-size: 20px;
}

h2 {
  margin-top: 40px;
  width: fit-content;
  background: #f1b514;
  color: #202133;
  padding: 6px 12px;
  border-radius: 3px;
  font-size: 28px;
}

.servicios {
  width: 18%;
  margin: 0 1%;
}

.seguridad {
  background: #e2e2e2;
  transition: 0.2s ease;
  margin-bottom: 22px;
  transition: 0.3s ease;
  text-align: left;
  width: 100%;
  padding: 0 10px;
  aspect-ratio: 1/1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.seguridad img {
  filter: grayscale(1);
}

.seguridad:hover img {
  filter: grayscale(0);
}

.seguridad p {
  text-align: left;
  padding: 0px 8px 10px 8px;
  margin-bottom: 0;
}

.higiene1 {
  background: url(../prevencion/servicios1.jpg) center;
  background-size: cover;
}

.higiene2 {
  background: url(../prevencion/servicios2.jpg) center;
  background-size: cover;
}

.higiene3 {
  background: url(../prevencion/servicios3.jpg) center;
  background-size: cover;
}

.higiene4 {
  background: url(../prevencion/servicios4.jpg) center;
  background-size: cover;
}

.higiene5 {
  background: url(../prevencion/servicios5.jpg) center;
  background-size: cover;
}

.higiene6 {
  background: url(../prevencion/servicios6.jpg) center;
  background-size: cover;
}

h3 {
  font-weight: 700;
  font-size: 48px;
  color: #ffffff;
  text-align: left;
  padding: 10px 0;
  margin-bottom: 0;
  text-transform: uppercase;
}

#titulo {
  margin-top: 86px;
  padding: 0 0 60px 0 !important;
  background-size: cover !important;
}

#titulo .container-seb {
  background: rgba(238, 207, 152, 0.75);
  color: #00153d;
  font-size: 40px;
  text-align: left;
  padding: 22px 12px;
}

.nuestrasoficinas img {
  margin-bottom: 10px;
}

.rowbot {
  margin-bottom: 34px !important;
}

.relevamiento img {
  border-radius: 800px;
  aspect-ratio: 1 / 1;
}

h4 {
  padding-top: 8px;
  margin-bottom: 0;
}

.elalcance {
  text-align: center;
}

.elalcance img {
  margin-bottom: 20px;
}

.mtop {
  margin-top: 40px;
}

/* Carrusel fotos inicio */

.stress {
  width: 100%;
  height: 50vh;
  display: table;
}

.foto1 {
  background: url(../prevencion/empresa1.jpg) center no-repeat;
  background-size: contain;
}

.foto2 {
  background: url(../prevencion/empresa2.jpg) center no-repeat;
  background-size: contain;
}

.foto3 {
  background: url(../prevencion/empresa3.jpg) center no-repeat;
  background-size: contain;
}

.foto4 {
  background: url(../prevencion/empresa4.jpg) center no-repeat;
  background-size: contain;
}

.foto5 {
  background: url(../prevencion/empresa5.jpg) center no-repeat;
  background-size: contain;
}

.foto6 {
  background: url(../prevencion/empresa6.jpg) center no-repeat;
  background-size: contain;
}

.foto7 {
  background: url(../prevencion/empresa7.jpg) center no-repeat;
  background-size: contain;
}

.foto8 {
  background: url(../prevencion/empresa8.jpg) center no-repeat;
  background-size: contain;
}

.foto9 {
  background: url(../prevencion/empresa9.jpg) center no-repeat;
  background-size: contain;
}

.foto10 {
  background: url(../prevencion/empresa10.jpg) center no-repeat;
  background-size: contain;
}

.foto11 {
  background: url(../prevencion/empresa11.jpg) center no-repeat;
  background-size: contain;
}

.foto12 {
  background: url(../prevencion/empresa12.jpg) center no-repeat;
  background-size: contain;
}

.foto13 {
  background: url(../prevencion/empresa13.jpg) center no-repeat;
  background-size: contain;
}

.foto14 {
  background: url(../prevencion/empresa14.jpg) center no-repeat;
  background-size: contain;
}

.foto15 {
  background: url(../prevencion/empresa15.jpg) center no-repeat;
  background-size: contain;
}

.foto16 {
  background: url(../prevencion/empresa16.jpg) center no-repeat;
  background-size: contain;
}

.ads {
  display: table-cell;
  vertical-align: middle;
  padding: 0;
  text-align: center;
}

.carousel-control-next {
  position: absolute;
  bottom: 10px;
  top: auto;
  right: 0;
  left: auto;
  width: 40px !important;
  height: 40px !important;
}

.carousel-control-prev {
  position: absolute;
  bottom: 10px;
  top: auto;
  right: 40px;
  left: auto;
  width: 40px !important;
  height: 40px !important;
}

.carousel-control-next-icon {
  background: #999 url(../next.png) center no-repeat;
  background-size: cover;
  border-radius: 100px;
}

.carousel-control-prev-icon {
  background: #999 url(../prev.png) center no-repeat;
  background-size: cover;
  border-radius: 100px;
}

/* Carrusel clientes */

#logos h1 {
  margin-bottom: 26px;
  font-size: 50px;
  border-bottom: 3px solid #ffffff;
  color: #ffffff;
  text-align: left;
}

#logos img {
  max-width: 200px;
  padding: 0 20px;
}

.slider {
  animation: slidein 60s linear infinite;
  white-space: nowrap;
}

.logos {
  width: 3869px;
  display: inline-block;
  margin: 0px 0;
}

.fab {
  width: calc(100% / 10);
  animation: fade-in 0.5s cubic-bezier(0.455, 0.03, 0.515, 0.955) forwards;
}

@keyframes slidein {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-3869px, 0, 0);
  }
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

/* Estas interesado */

#interesado {
  background: url(../seguridad.jpg) center;
  background-size: cover;
  color: #ffffff;
}

/* Secciones */

#info {
  margin-top: 122px;
  text-align: left;
}

#info h1 {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  margin-bottom: 26px;
  font-size: 50px;
  border-bottom: 3px solid #ffffff;
  color: #ffffff;
  text-align: left;
}

#info h1 .badge-aviso {
  position: static; /* deja de ser absolute */
  transform: none;

  font-size: 25px;
  padding: 6px 12px;
  border: 1px solid #f5c542;
  color: #f5c542;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  white-space: nowrap;
  line-height: 1;
}

@media (min-width: 992px) {
  #info h1 {
    justify-content: space-between;
    flex-wrap: nowrap;
  }
}

#info h3 {
  color: #f1b514;
}

.mapcontacto {
  width: 100%;
  border: 0;
  height: 320px;
  margin-bottom: -5px;
}

#medios {
  text-align: left;
  background-color: #101019;
}

.datcontacto span {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 26px;
}

.datcontacto a:link,
.datcontacto a:visited {
  font-size: 22px;
  color: #f1b514;
}

.datcontacto a:hover {
  color: #999;
}

.form-control {
  border-radius: 2px;
  border: 0;
  background-color: #ffffff;
  color: #131414;
  padding: 8px;
}

.clienteslogo img {
  max-width: 90%;
  margin-bottom: 24px;
}

.infodeta {
  font-size: 22px;
}

.fijo .infodeta {
  text-align: right;
}

.fijofotos img {
  margin-bottom: 10px;
}

.consfot3 img {
  margin-bottom: 20px;
}

.infodeta li::marker {
  color: #f1b514;
}

/* Pie de pagina */

#footer {
  background: #202133 !important;
  color: #ffffff;
  padding-top: 0.1 !important;
  padding-bottom: 0 !important;
  margin-bottom: 0.1 !important;
}

.footn {
  font-weight: 700;
  font-size: 22px;
  display: inline-block;
  padding-bottom: 10px;
}

#footer a:link,
#footer a:visited {
  color: #d0d0d0 !important;
}

#footer a:hover {
  color: #f1b514 !important;
}

.logopie {
  text-align: center;
}

.agricultura {
  text-align: left;
}

#firma {
  background: #181826;
  margin-bottom: 0 !important;
  color: #999;
  text-align: center;
  padding: 0;
  font-size: 14px;
}

.linkredes {
  text-align: right;
}

.linkredes a {
  margin-bottom: 6px;
  line-height: 50px;
}

.linkredes img {
  border-radius: 3px;
  margin-left: 6px;
}

.linkredes a:hover img {
  background: #f1b514;
  border-color: #f1b514;
}

.linkredes p {
  margin-bottom: -10px;
}

.ln01 {
  background: #00be00;
}

.ln02 {
  background: #3b5998;
}

.ln03 {
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
}

.ln04 {
  background: #0077b5;
}

.ln05 {
  background: #000000;
}

@media only screen and (max-width: 1530px) {
  h3 {
    font-size: 38px;
  }

  .h1spec {
    font-size: 36px !important;
  }

  #formenc {
    padding-top: 150px;
  }

  .sapempresa {
    font-size: 42px;
  }
}

@media only screen and (max-width: 1199px) {
  .navbar-nav {
    padding-top: 20px;
  }

  .nav-item,
  .dropdown-menu {
    text-align: left;
  }

  h1 {
    font-size: 2rem;
  }

  .servicios {
    width: 31%;
  }

  h3 {
    font-size: 32px;
  }

  .infodeta {
    font-size: 20px;
  }

  .lideres {
    font-size: 48px;
  }

  .h1spec {
    font-size: 30px !important;
  }

  .sapempresa {
    font-size: 36px;
  }
}

@media only screen and (max-width: 992px) {
  .navbar-brand {
    margin-right: 0;
  }

  .dropdown-submenu .dropdown-menu {
    margin-left: calc(-83vw + 40px);
    margin-right: 0;
    width: 280px !important;
  }

  #encabezado h2 {
    font-size: 32px;
  }

  h5 {
    font-size: 36px;
    padding: 10px 0 4px 0;
  }

  .servicios {
    width: 48%;
  }

  .fijofotos br {
    display: none;
  }

  .fijofotos {
    text-align: center;
  }

  .fijofotos img {
    max-width: 48%;
    margin-left: 5px;
    margin-bottom: 20px;
  }

  .fijo .infodeta,
  .infodeta {
    text-align: left;
    font-size: 18px;
  }

  #formenc {
    display: none;
  }

  .h1spec {
    font-size: 24px !important;
  }
}

@media only screen and (max-width: 768px) {
  .btn-new {
    padding: 12px 30px;
  }

  #encabezado .btn-new {
    font-size: 14px;
  }

  #encabezado h2 {
    font-size: 24px;
  }

  html,
  body,
  h1 {
    text-align: left;
  }

  .info {
    font-size: 14px;
  }

  #presencia h1,
  #info h1 {
    font-size: 38px;
  }

  .industrias {
    font-size: 14px;
  }

  .agricultura,
  .logopie,
  .linkredes {
    text-align: center;
  }

  .linkredes span,
  .linkredes br {
    display: none;
  }

  .logopie img {
    margin-bottom: 20px;
    padding: 20px 0;
  }

  #navdat {
    display: none;
  }

  nav {
    top: 0;
  }

  #videotop {
    padding-top: 106px;
  }

  .videoind {
    width: 88%;
  }

  #info {
    margin-top: 66px;
  }

  .linkredes p {
    display: inline-block;
  }

  .stress {
    height: 36vh;
  }
}

@media only screen and (max-width: 576px) {
  html,
  body {
    font-size: 14px;
  }

  h1 {
    font-size: 30px;
  }

  #encabezado p {
    font-size: 14px;
  }

  .newholland {
    margin-bottom: 10px;
  }

  .agricultura {
    margin-bottom: 20px;
  }

  .logopie {
    text-align: center;
  }

  .servicios {
    width: 98%;
  }

  .logotipo {
    height: 40px;
  }

  #presencia h1,
  #info h1 {
    font-size: 34px;
  }

  .datcontacto span {
    font-size: 22px;
  }

  .datcontacto a:link,
  .datcontacto a:visited,
  .datcontacto a:hover {
    font-size: 18px;
  }
}

.form-msg {
  margin-top: 10px;
  font-size: 14px;
}

.form-msg.error {
  color: #c0392b;
  font-weight: bold;
}

.form-msg.error::before {
  content: "❌ ";
}

#footer .footer-legal {
  margin-top: 0.6rem !important;
  padding-top: 0.4rem !important;
  font-size: 14px;
  line-height: 1.2;

  a {
    color: #ffffff;
    text-decoration: underline;

    &:hover {
      opacity: 1;
    }
  }
}

/* FIX: aislar el tamaño y centrado del ícono de Font Awesome */
#whatsapp-widget .whatsapp-button{
  font-size: 0;              /* evita que el button herede font-size grande */
}

#whatsapp-widget .whatsapp-button i{
  font-size: 28px !important; /* fuerza tamaño del ícono */
  line-height: 1 !important;
  width: 1em;
  height: 1em;
  display: block;
}

/* centrado matemático */
#whatsapp-widget .whatsapp-button{
  position: relative;
}
#whatsapp-widget .whatsapp-button i{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
/* Asegurar que el modal de WhatsApp quede por arriba de TODO */
#whatsapp-modal.whatsapp-modal-container{
  z-index: 2147483647 !important; /* máximo práctico */
}

/* La tarjeta del chat siempre arriba del backdrop */
#whatsapp-modal .whatsapp-chat-card{
  position: relative;
  z-index: 2147483647 !important;
}

/* El backdrop debajo de la tarjeta */
#whatsapp-modal .whatsapp-modal-backdrop{
  position: absolute;
  inset: 0;
  z-index: 2147483646 !important;
}

/* =========================
   FIXES UI (Header + Botones)
   Pegalo al FINAL del CSS
   ========================= */


/* ===== FIX ULTRA: centrar Font Awesome (fab) en círculo ===== */
#whatsapp-modal .header-icon-container{
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

/* El <i> como caja, sin baseline */
#whatsapp-modal .header-icon-container i.fab{
  display: grid !important;
  place-items: center !important;
  width: 22px !important;
  height: 22px !important;
  font-size: 22px !important;
  line-height: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Centrar lo que realmente dibuja Font Awesome (el ::before) */
#whatsapp-modal .header-icon-container i.fab::before{
  display: block !important;
  line-height: 1 !important;
}

/* Micro-ajuste visual (porque el logo de WhatsApp no es simétrico) */
#whatsapp-modal .header-icon-container i.fab{
  transform: translate(1px, 1px) !important;
}

/* 2) Título + estado pegados a la izquierda (no centrados) */
#whatsapp-modal .chat-header{
  justify-content: space-between;
}
#whatsapp-modal .header-content{
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
#whatsapp-modal .header-content > div{
  text-align: left; /* clave */
}

/* 3) Botones: texto alineado desde el mismo lugar */
#whatsapp-modal .chat-action-btn{
  justify-content: flex-start;  /* en vez de center */
  text-align: left;
  padding-left: 18px;           /* margen interno uniforme */
}

/* Reservamos un ancho fijo para el ícono, así todos los textos arrancan igual */
#whatsapp-modal .chat-action-btn i{
  width: 24px;
  min-width: 24px;
  text-align: center;
  line-height: 1 !important;
  display: inline-block;
  transform: translateY(1px);
}
