/* ===== Estilos generales ===== */
html {
    scroll-behavior: smooth;
}

/* ===== Variables globales ===== */
:root {
    --color-primary: #ff8000;
    --color-primary-hover: #e67300;
    --shadow-default: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-large: 0px 20px 60px rgba(0, 0, 0, 0.5);
    --transition-default: 0.3s ease;
    --header-height: 60px;
}

/* ===== Reset y estilos base ===== */
body {
    overflow-x: hidden;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* ===== Layout ===== */

main {
    margin-top: 110px;
    margin-bottom: 40px;
}

section {
    scroll-margin-top: var(--header-height);
}

.sections {
    display: flex;
    gap: 1rem;
    height: 100%;
}

/* ===== Componentes ===== */

.pagina-con-margen {
    margin-top: var(--header-height);
    margin-bottom: 0;
}

/* ===== Navegación ===== */

/* ===== Tarjetas y Selección ===== */

.card {
    --card-height: 80px;
    height: var(--card-height);
    transition: all var(--transition-default);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ===== Mensajes y Animaciones ===== */

.nueva-flecha {
    transition: transform 0.3s ease-in-out;
}

/* ===== Texto y Contenido ===== */
#texto-seleccionado {
    min-height: 300px; /* Asegura una altura mínima para el contenedor */
    flex-grow: 1;
    transition: transform 0.8s ease, opacity 0.8s ease;
    transform: translateX(100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

#precio3Mensual {
  display: inline-block;
  margin-top: 20px;  
}

/* Ajuste de la imagen para ocupar siempre la altura máxima */
.imagen-text {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    /* mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 25px);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 25px); */
}

/* Asegúrate de que el contenedor de la imagen tenga el comportamiento adecuado */
#texto-seleccionado .relative {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
}

/* ===== Estilos para los planes ===== */
.tipoPlan {
    min-height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tipoPlan span {
    visibility: hidden;
}

/* ===== Imagen y texto en móvil ===== */

#tarjetas::after {
    content: "";
    display: block;
    height: 0;
    visibility: hidden;
}

/* ===== Dudas y preguntas ===== */


/* Para móvil */

@media (max-width: 640px) {
    :root {
        --header-height: 50px;
    }

    .card {
        --card-height: 60px;
    }
}
@media (max-width: 480px) {
    #main .absolute.inset-0 {
      padding-top: 4rem; 
    }
  
    #main h1 {
      font-size: 1.5rem; 
      line-height: 1.2; 
    }
  
    #main p {
      font-size: 0.875rem; 
    }
  
    #main a {
      padding: 0.75rem 1.5rem;
      font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .tarjetas {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .tarjetaPlan {
        width: 90%;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 0;
        margin-bottom: 0;
        height: auto;
        display: flex;
        flex-direction: column;
    }

    .tarjetaPlan .descripcion {
        min-height: 0;
        padding-bottom: 1rem;
    }

    .tarjetaPlan button {
        margin-top: 1rem;
    }

    .tarjetaPlan .titulo {
        margin-top: 1rem !important;
    }

    .tarjetaPlan .tipoPlan {
        margin-bottom: 0.5rem !important;
    }
}



