html, body {
  max-width: 100%;
  overflow-x: hidden; /* Evita scroll fantasma */
}

#include-contact {
  min-height: 100vh; /* ajusta según el tamaño que suele tener tu sección */
  display: block;
}

#servicios{
    display: flex;
    align-items: center;
    background-color: rgb(242, 238, 227);
    justify-content: center;
    flex-direction: column;
    min-height: 97vh;
    padding-top: 0px;
    padding-left: 0px;
    padding-right: 0px;
    padding-bottom: 20px;
}

#servicios .container {
    max-width: 1500px;
    width: 100%;
    margin: 0 auto;
    padding: 0 12px; /* margen interno fijo de 12px */
    text-align: center;
}

/* Título */
#servicios h2 {
    padding-top: 24px;
    padding-bottom: 24px;
    margin-top: 0px;
    margin-bottom: 0px;
    color: rgb(0, 15, 29);
    font-size: 5em;
}

#servicios .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr)); /* valor original para pantallas grandes */
    gap: 24px;
    justify-content: center;
}

/* Estilo de las Cards */
#servicios .card {
    background: rgb(247, 247, 247);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 250px; /* Altura mínima */
    padding-bottom: 20px; /* Más espacio para hover */
    border: 1px solid rgb(0, 15, 29);
}

/* Barra Superior de macOS */
#servicios .card-header {
    background: rgb(0, 15, 29);
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

#servicios .buttons {
    display: flex;
    gap: 8px;
}

#servicios .buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
}

#servicios .red { background: #ff5f57; }
#servicios .yellow { background: #febc2e; }
#servicios .green { background: #28c940; }

/* Contenido de la Card */
#servicios .card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Pie de la Card (Botón alineado siempre abajo) */
#servicios .card-footer {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Botón */
#servicios button {
    background: #007aff;
    font-weight: bold;
    color: rgb(247, 247, 247);
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

#servicios button:hover {
    background: #0059be;
}

#servicios .card-to-action {
    padding: 60px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 250px; /* Altura mínima */
    font-size: 1em;
    color: rgb(0, 15, 29);
}

#servicios .card-action {
    padding-bottom: 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#servicios .footer-button button {
    background: #007aff;
    color: rgb(247, 247, 247);
    padding: 14px 24px;
     border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    transition: background 0.3s;
}

#servicios .footer-button button:hover {
    background: #0059be;
}

.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  font-size: 32px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 4px 4px 12px rgba(0,0,0,0.3);
  cursor: pointer;
  overflow: hidden;        /* 🔥 evita que se vea cualquier línea fantasma */
  line-height: 0;          /* 🔥 elimina altura de línea extra */
}

.whatsapp-float:hover {
  background-color: #1ebc5c;
  transform: scale(1.1);
}

/* Ajuste del ícono */
.whatsapp-float i {
  display: block;
  line-height: 0;          /* 🔥 asegura que no genere espacio debajo */
  margin: 0;
  padding: 0;
  font-size: inherit;      /* mantiene el tamaño exacto del contenedor */
}


/* RESPONSIVE */
@media (max-width: 800px){
    #servicios h2{
        font-size: 4em;
    }
}

/* RESPONSIVE */
@media (max-width: 700px){
    #servicios h2{
        font-size: 3.4em;
    }
}

/* RESPONSIVE */
@media (max-width: 600px) {
    #servicios .grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* se adapta en móviles */
    }

    #servicios h2 {
        font-size: 2.4em; /* título más chico en móviles */
    }
}
