/* body {
    font-family: 'Poppins', sans-serif;
    background-color: #f5f7fa;
    margin: 0;
    padding: 0;
    color: #333;
} */
body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(180deg, #f5f7fa 0%, #ffffff 100%);
  color: #333;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}


/* h1, h2, h3, h4 {
    font-weight: 600;
    color: #2c3e50;
} */
h1, h2, h3, h4 {
  font-weight: 700;
  color: #2d89ef;
  letter-spacing: -0.5px;
}
h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.2;
}
h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}


.container {
    max-width: 900px;
    margin: auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 2rem;
    margin: 0;
}

footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #666;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

input[type="text"],
input[type="email"],
input[type="date"],
input[type="number"],
select,
textarea {
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;
}

button:hover {
    background-color: #1b6fc2;
}

button.btn:hover {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
}

/* Estilo personalizado para botones específicos */
button.custom-button {
  background-color: #2d89ef;
  color: white;
  border: none;
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

button.custom-button:hover {
  background-color: #1b6fc2;
}

button.custom-gradient {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  font-size: 1.1rem;
  border-radius: 8px;
  transition: background 0.3s ease;
}

button.custom-gradient:hover {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
}

.required {
    color: red;
    font-weight: bold;
}

@media (max-width: 768px) {
    .container {
        margin: 1rem;
        padding: 1.5rem;
    }
}

h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2d89ef;
    border-bottom: 2px solid #ccc;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.plan-card {
    border: 2px solid #dee2e6;
    border-radius: 10px;
    padding: 20px;
    margin: 15px 0;
    transition: transform 0.3s, box-shadow 0.3s;
}
.plan-card:hover {
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}
.plan-title {
    font-size: 1.5rem;
    font-weight: bold;
}
.plan-price {
    font-size: 2rem;
    color: #007bff;
}
.plan-description {
    margin: 15px 0;
}
.btn-select {
    background-color: #007bff;
    color: white;
    font-weight: bold;
}
.btn-select:hover {
    background-color: #0056b3;
}

.card {
    border: none;
    border-radius: 10px;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: none;
}

.pricing-card-title {
    font-size: 2rem;
    margin: 0;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.contenedor-final {
    background-color: #fff;
    border-radius: 10px;
    padding: 40px;
    max-width: 600px;
    margin: 40px auto;
    text-align: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.check-icon {
    font-size: 50px;
    color: #2ecc71;
    margin-bottom: 10px;
}

.nota-secundaria {
    font-size: 14px;
    color: #888;
    margin-top: 30px;
}

.menu-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 180px;
  background: #ffffff;
  border: 2px solid #dee2e6;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  text-decoration: none;
  color: #333;
  transition: transform 0.2s, box-shadow 0.2s;
  padding: 1rem;
}

.menu-card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  border-color: #bbb;
  background-color: #f8f9fa;
}

.menu-card img {
  height: 50px;
  margin-bottom: 1rem;
}

.menu-card h5 {
  margin: 0;
  font-weight: 600;
  text-align: center;      /* centra el texto en varias líneas */
  white-space: normal;     /* permite saltos de línea */
  word-wrap: break-word;   /* evita desbordes en textos largos */
}

.card:hover {
    transform: translateY(-5px);
}

.plan-info p {
    margin-bottom: 6px;
    line-height: 1.4;
    font-size: 0.95rem;
}

.btn-primary:hover {
    background-color: #375aee;
    transform: scale(1.02);
    transition: all 0.2s ease-in-out;
}

#calendar {
    max-width: 800px;   /* reduce ancho */
    margin: 0 auto;     /* centra */
    font-size: 0.85rem; /* hace más compacto el texto */
  }

  /* Opcional: eventos más pequeños */
  .fc-event {
    padding: 2px 4px;
    border-radius: 4px;
  }

.copy-text p {
    margin: 0.3em 0;  /* más ajustado */
    line-height: 1.4;
}

.copy-text br {
    line-height: 1.2; /* controla altura de saltos de línea */
}

.btn-gray-light {
  background-color: #e4e6eb;
  color: #333;
  border: 1px solid #d0d0d0;
}

.btn-gray-light:hover {
  background-color: #d8dadf;
  color: #000;
}

/* El contenido fluye arriba-abajo y centrado */
.selectable-card .card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  gap: .5rem;                /* separa título, documento y botón */
}

/* Título en varias líneas y centrado, con clamp opcional a 3 líneas */
.selectable-card .nombre-cliente {
  max-width: 260px;
  margin: 0 auto .5rem;
  line-height: 1.3;
  text-align: center;
  white-space: normal !important;   /* rompe el nowrap heredado si quedara */
  overflow-wrap: anywhere;          /* rompe palabras largas (CIFs raros, etc.) */
  display: -webkit-box;             /* clamp multi-línea */
  -webkit-line-clamp: 3;            /* hasta 3 líneas */
  -webkit-box-orient: vertical;
  overflow: hidden;                 /* oculta lo que exceda 3 líneas */
  height: 3.6em;             /* fija altura uniforme (~2 líneas) */
  text-overflow: ellipsis;
  cursor: help;              /* indica que tiene tooltip */
}

/* Documento justo debajo del nombre (no lo empujes al fondo) */
.selectable-card p {
  margin-top: 0;            /* << antes lo tenías en auto */
  margin-bottom: .75rem;
  flex: 0 0 300px;          /* fija ancho consistente */
}

/* Botón al fondo de la card sin hueco excesivo */
.selectable-card button {
  margin-top: auto;
  width: 100%;
}

/* Fondo base con variación sutil */
.selectable-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 3px solid #dee2e6; 
  border-radius: 1rem;
  transition: all 0.25s ease-in-out;
  width: 300px;
  min-height: 190px;
}

/* Sombra y borde al pasar el ratón */
.selectable-card:hover {
  border-color: #0d6efd;  /* azul Bootstrap */
  background: linear-gradient(135deg, #f1f3f5 0%, #e9ecef 100%);
  box-shadow: 0 6px 14px rgba(13, 110, 253, 0.15);
  transform: translateY(-3px);
}

/* Cuando se selecciona (por ejemplo con clase .selected añadida via JS) */
.selectable-card.selected {
  border-color: #0b5ed7;
  background: linear-gradient(135deg, #e7f1ff 0%, #dbe7ff 100%);
  box-shadow: 0 6px 18px rgba(13, 110, 253, 0.25);
}

/* =======================================================
   🌟 Mejora visual para cards genéricas (no selectables)
   ======================================================= */
.card:not(.selectable-card) {
  border: 1px solid rgba(13, 110, 253, 0.25) !important;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease-in-out;
}

/* Hover suave con más contraste */
.card:not(.selectable-card):hover {
  border-color: #adb5bd;
  background: linear-gradient(135deg, #f9fafb 0%, #f1f3f5 100%);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.input-group .btn-outline-secondary {
  border-left: none;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

#quienes-somos {
  background: linear-gradient(180deg, #f5f7fa 0%, #ffffff 100%);
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

#quienes-somos h2 {
  font-size: 2rem;
  color: #2d89ef;
  margin-bottom: 1.5rem;
}

#quienes-somos p {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.7;
}

#quienes-somos img {
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#quienes-somos img:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

#beneficios {
  background: linear-gradient(180deg, #f5f7fa 0%, #ffffff 100%);
}

.benefit-card {
  background: #fff;
  border: 1px solid #e1e5ea;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.benefit-icon {
  font-size: 2.2rem;
  color: #2d89ef;
}
.benefit-card h5 {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.75rem;
}
.benefit-card p {
  font-size: 0.95rem;
  color: #555;
}

.accordion-button {
  background-color: #fff;
  border-radius: 8px;
  color: #2c3e50;
  font-weight: 500;
}
.accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}
.accordion-body {
  background-color: #f9f
#faq {
  background-color: #ffffff;
}

.accordion-item {
  border: none;
  border-radius: 10px;
}

.accordion-button {
  background-color: #fff;
  border-radius: 10px;
  color: #2c3e50;
  font-weight: 500;
  transition: all 0.3s ease;
}

.accordion-button:hover {
  background-color: #f1f5fb;
}

.accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.accordion-body {
  background-color: #f9fbfd;
  border-radius: 0 0 10px 10px;
  color: #444;
  font-size: 0.95rem;
  line-height: 1.6;
}

#cta-final {
  background: linear-gradient(180deg, #ffffff 0%, #f5f7fa 100%);
}

#cta-final h2 {
  font-size: 2rem;
  font-weight: 700;
}

#cta-final p {
  font-size: 1.1rem;
  color: #f8f9fa;
}

#cta-final .btn {
  transition: all 0.3s ease-in-out;
  box-shadow: 0 5px 15px rgba(255,255,255,0.2);
}

#cta-final .btn:hover {
  transform: translateY(-2px);
  background-color: #e8f3ff;
  color: #2d89ef;
}

section {
  padding: 80px 0;
  position: relative;
}
section:nth-child(even) {
  background-color: #f8f9fb;
}

.card, .benefit-card, .plan-card {
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}
.card:hover, .benefit-card:hover, .plan-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* =======================================================
   LANDING IMPROVEMENTS - Animaciones y estilos dinámicos
   ======================================================= */

body {
  background: linear-gradient(180deg, #f5f7fa 0%, #ffffff 100%);
  scroll-behavior: smooth;
}

/* --- Secciones alternadas visualmente --- */
section {
  padding: 80px 0;
  position: relative;
}
section:nth-child(even) {
  background-color: #f8f9fb;
}

/* --- Animaciones en scroll --- */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}
[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Tarjetas (beneficios, planes, etc.) --- */
.card, .benefit-card, .plan-card {
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}
.card:hover, .benefit-card:hover, .plan-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* --- Botones principales (CTA) --- */
.btn-primary, .custom-gradient {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: white !important;
  border: none;
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}
.btn-primary:hover, .custom-gradient:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

/* --- Footer visualmente integrado --- */
footer {
  background: linear-gradient(135deg, #e8efff 0%, #ffffff 100%);
  border-top: 1px solid #dee2e6;
  text-align: center;
  padding: 2rem 0;
  font-size: 0.9rem;
  color: #666;
}

/* 🔹 Ajusta la altura de la imagen y la adapta al contenedor */
.servicio-img-wrapper {
  height: 150px;                 /* altura uniforme para todas las imágenes */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.servicio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;             /* recorta sin deformar */
  object-position: center;
}

/* 🔹 Hace que el texto (título + descripción) se mantenga equilibrado */
.card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

/* 🔹 Asegura que las descripciones largas no desplacen los botones */
.card-body .flex-grow-1 {
  min-height: 60px;              /* uniformiza la altura del bloque de descripción */
  display: flex;
  align-items: center;           /* centra verticalmente el texto */
  justify-content: center;
  text-align: center;
}

/* 🔹 Mantiene el botón al final */
.card-body .mt-auto {
  margin-top: auto;
}
