

body {
  height: 100%;
  padding-top: 0;
  font-family: "Asap", sans-serif;
  background-color: #fafafa;
  line-height: 1.6;
  font-size: 17px;
}

:root {
  --color-primary: #aa1945;
  --color-secondary: #f15a28;
  --color-accent: #009688;
  --text-color: #6c757d;
  --navbar-logo-width: 200px;
  --navbar-hover: var(--color-secondary);
  --font-family-secondary: "Borel", cursive;
  --font-family-primary: "Asap", sans-serif;
}

.contenedor {
  display: grid;
  grid-template-rows: auto 1fr auto;
  /* Asigna proporciones para cada sección */
  min-height: 100vh;
  /* para que la página pueda crecer si lo necesita*/
}

.navbar {
  --bs-navbar-hover-color: var(--navbar-hover);
  --bs-navbar-padding-y: 0;
}

.navbar-nav {
  --bs-navbar: navbar-right;
}

.navbar-expand-lg .navbar-collapse {
  justify-content: flex-end;
}

.dropdown-menu {
  --bs-dropdown-link-active-bg: var(--color-accent);
  --bs-dropdown-link-hover-color: var(--color-secondary);
}

.enlace-hover {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.enlace-hover:hover,
.enlace-hover:focus {
  /*:focus para accesibilidad */
  color: var(--navbar-hover);
}

.logo-grande {
  width: var(--navbar-logo-width);
  height: auto;
  transition: width 0.3s ease;
}

.logo-chico {
  display: none;
  width: 90px;
  height: auto;
  transition: width 0.3s ease;
}

main {
  display: flex;
  align-items: center;
  flex-direction: column;
  max-width: 45rem;
  margin-left: auto;
  margin-right: auto;
  margin-top: 6%;
  margin-bottom: 2%;
  padding-left: 1.5rem;
  /* Margen interno de seguridad para móviles */
  padding-right: 1.5rem;

}


main>p {
  width: 100%;
  display: block;
}

.texto {
  text-align: left;
}

#title {
  font-family: var(--font-family-secondary);
  text-align: center;
  color: var(--color-primary);
  font-size: 35px;
  font-weight: 530;
  margin: 1.5rem 0 -0.5rem 0;
}

#claim {
  font-size: 20px;
  line-height: 1.2rem;
  color: var(--text-color);
  margin-top: -0.2rem;
  text-align: center;
  letter-spacing: 0.5px;
}

#sub0 {
  text-align: center;
  line-height: 1.2rem;
  font-size: 22px;
  margin: 0.5rem 0 0.5rem 0;
}

#sub {
  text-align: center;
  font-style: italic;
  line-height: 1.2rem;
  font-size: 20px;
  font-weight: 300;
  margin: -0.2rem 0 0 0;
}

.divider {
  display: flex;
  justify-content: center;
  /* Centra la línea */
  width: -webkit-fill-available;
  margin: 0 0 30px 0;
}

.linea-oleo {
  height: auto;
  width: 450px;
  margin: 5px auto;
  display: block;
  opacity: 0.8;
  transition: all 0.3s ease;
  /* Para efectos hover */
}

/* Efecto al pasar el mouse */
.linea-oleo:hover {
  opacity: 1;
  transform: scaleY(1.05);
  /* Ligero crecimiento vertical */
}

h4 {
  margin: 1rem 0 1rem 0;
}

#ideal {
  display: flex;
  margin-bottom: 1rem;
  /* Espaciado consistente */
  text-align: left;
  flex-wrap: wrap;
}

main ol {
  margin-bottom: 1rem;
  text-align: left;
}

.row {
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
  margin-top: 3px;
  --bs-gutter-x: 4rem;
}

.card {
  display: flex;
  margin-bottom: 2rem;
  width: 300px;
  height: 90%;
}

.card-header {
  min-height: 90px;
  display: flex;
  padding: 0.5rem 0.5rem 0.5rem 0.5rem;
  align-items: center;
  justify-content: center;
}

.card-header h5 {
  text-align: center;
  width: 100%;
}

h2.card-title.pricing-card-title {
  margin-bottom: 0.5rem;
  line-height: 1.5rem;
}

.card-body {
  padding: 1.5rem;
  font-size: 16px;
  min-height: max-content;
}

/* Estilo para listas dentro de cards */
.card-body ul {
  padding-left: 0.5rem;
  /* Un poco menos de sangría en cards */
}

.text-body-secondary {
  font-size: 20px;
}

/* Estilo para elementos de lista */
li {
  margin-bottom: 0.5rem;
  /* Espaciado entre items */
}

.CTA {
  text-align: center;
}

.btn-custom {
  /* Colores de estado normal */
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--color-accent);
  --bs-btn-border-color: var(--color-accent);

  /* Colores de Hover (Naranja) */
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--color-secondary);
  --bs-btn-hover-border-color: var(--color-secondary);

  /* Configuración del Enfoque (Focus) - ¡Lo que pedía la doc! */
  --bs-btn-focus-shadow-rgb: 0, 150, 136;
  /* Tu verde en RGB */

  /* Colores de clic (Active) */
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--color-secondary);
  --bs-btn-active-border-color: var(--color-secondary);

  font-size: 18px;
  font-weight: 500;
  padding: 0.8rem 1.5rem;
  transition: all 0.3s ease;
  /* Para que el cambio de color sea suave */
  border-radius: 8px;
  margin: 0 0 1rem 0;
}

footer {
  display: flex;
  justify-content: space-around;
  min-height: 10vh;
  /* Ensure footer has enough height for consistent layout and to accommodate footer content */
  margin: auto 21% auto 21%;
  text-align: center;
}

footer p {
  margin-top: auto;
  font-size: 15px;
  color: var(--text-color);
}

footer a {
  color: var(--color-primary);
  text-decoration: none;
}

footer a:hover {
  color: var(--color-secondary);
}



@media (max-width: 768px) {

  /* Tablet → móvil */
  body {
    font-size: 13px;
    line-height: 1.4;
  }

  /* Hay problema para el ipad mini 768 x 1024*/
  .contenedor {
    grid-template-rows: 60px auto 60px;
    max-width: 100%
  }

  .logo-grande {
    display: none;
  }

  .logo-chico {
    display: block;
  }

  .navbar-nav {
    align-items: flex-end;
  }

  .navbar-toggler-icon {
    width: 25px;
    height: 25px;
  }

  .dropdown-menu {
    --bs-dropdown-font-size: 13px;
  }

  main {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    width: 100%;
  }


  h4 {
    font-size: 17.5px;
  }

  #title {
    font-size: 20px;
    margin: 0.5rem 0 0 0;
    line-height: 1.4rem;
  }

  #claim {
    font-size: 14px;
    line-height: 1rem;
    margin: 0.1rem 0 0.5rem 0;
  }

  #sub0 {
    font-size: 15px;
    margin: 0.2rem 0 0.2rem 0;
  }

  #sub {
    font-size: 14px;
    margin: 0 0 0 0;
    line-height: 1rem;
  }

  .divider {
    align-items: center;
    margin-bottom: 20px;
  }

  .linea-oleo {
    max-width: 320px;
  }


  li {
    margin-bottom: 0.2rem;
    /* Espaciado entre items */
  }

  .card-header {
    min-height: 50px;
  }

  .card-header h5 {
    font-size: 16px;
  }

  .card-title {
    margin-bottom: 0;
    font-size: 18px;
  }

  h2.card-title.pricing-card-title {
    margin-bottom: 0rem;
    line-height: 1.3rem;
  }

  .text-body-secondary {
    font-size: 16px;
  }

  .row {
    flex-wrap: wrap;
    justify-content: center;
      --bs-gutter-x: 0;
  }

  .row-cols-md-2>* {
    display: flex;
    justify-content: center;
  }

  .card {
    width: 100%;
    height: auto;
  }

  .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 13px;
    padding: 1rem;
  }

.col-12.col-md-6 {
    width: 70% !important;
  }

  .btn-custom {
    --bs-btn-padding-y: 0.6rem;
    --bs-btn-padding-x: 1.2rem;
    padding: 0.8rem 1rem;
    font-size: 16px;
  }

  footer {
    margin: auto 10% auto 10%;
    min-height: 5vh;
  }

  footer p {
    font-size: x-small;
    min-height: 50px;
    margin-bottom: 0;
  }
}

@media (max-width: 480px) {

  /* Móviles pequeños */
  .logo-chico {
    width: 80px;
    /* Ajuste extra para pantallas < 480px */
  }

  .linea-oleo {
    max-width: 300px;
  }
}