/* *************************************** */
/* ********* TITULO Y SUBTITULO ************ */
/* *************************************** */

.precios {
    width: 996px; /* 830px */
    height: auto;
    padding: 1.25rem; /* 20px */
    gap: 1.2325rem; /* 19.72px → aproximado */
    opacity: 1;
    margin: 0 auto; /* centra horizontalmente */
    text-align: center;
    font-family: 'Quicksand', sans-serif !important;
  }
  
  
  
  .main-title {
    font-weight: 700;
    font-style: Bold;
    font-size: 57px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    color: #003899;
    font-family: 'Quicksand', sans-serif;
  }
  

/* *************************************** */
/* ************** PRECIOS *** *************** */
/* *************************************** */

:root {
    --color-basica: #71C108;
    --color-basicabtn: #D7ECBE;
    --color-plus: #003899;
    --color-gold: #FFB84D;
    --color-check: #28a745; 
    --color-cross: #dc3545; 
    --color-nuevo-bg: #C9FAD6; /* Fondo exacto para NUEVO */
}


/* Contenedor principal de las 3 columnas */
.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 30px; 
    width: 100%;
    margin-top: 50px;
    font-family: 'Quicksand', sans-serif !important;
}

/* Estilos de la tarjeta base (316px de ancho uniforme) */
.plan-card {
    /* Mantenemos el tamaño uniforme para todos los planes */
    width: 316px; 
    height: 781px; /* Altura fija de Figma */
    background: #FFFFFF;
    border-radius: 8px;
    padding: 20px 30px; /* Aumentamos el padding para dar espacio a la lista ancha */
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    transition: transform 0.4s ease-out, box-shadow 0.4s;
    font-family: 'Quicksand', sans-serif !important;
}

/* --- ANIMACIÓN AL PASAR EL CURSOR (HOVER) --- */
.plan-card:hover {
    transform: scale(1.05); /* Se hace más grande al pasar el cursor */
    z-index: 10;
}

/* Bordes y sombras exactos de Figma */
.plan-basica {
    border: 1px solid var(--color-basica);
    box-shadow: 0px 0px 15px 0px rgba(113, 193, 8, 0.25); 
    font-family: 'Quicksand', sans-serif !important;
}
.plan-plus {
    border: 1px solid var(--color-plus);
    box-shadow: 0px 0px 15px 0px rgba(0, 56, 153, 0.35); 
}
.plan-gold {
    border: 1px solid var(--color-gold);
    box-shadow: 0px 0px 15px 0px rgba(255, 184, 77, 0.35); 
}

/* Encabezados de plan, precio, anualidad */
.plan-name {
    font-size: 1rem;
    font-weight: 700;
    padding: 5px 15px;
    border-radius: 4px;
    color: white;
    text-align: center;
    margin-bottom: 25px;
    width: fit-content;
    font-family: 'Quicksand', sans-serif !important;
    
}
.basica-color { background-color: var(--color-basicabtn); }
.plus-color { background-color: var(--color-plus); }
.gold-color { background-color: var(--color-gold); }

.plan-price { font-size: 3.5rem; font-weight: 700; color: #000000; margin-bottom: 5px; margin-top: 20px;}
.plan-anualidad {
    font-size: 1rem;
    font-weight: 400;
    color: #5b5b5b;
    margin-bottom: 20px;
    font-family: 'Quicksand', sans-serif !important;

}


/* Lista de Características (Century Gothic, 12px) */
.plan-features {
    width: 100%;
    max-width: 250px; /* Ancho máximo para el contenido de la lista */
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1; 
    font-family: 'Quicksand', sans-serif !important;
}


.plan-features li {
    /* Estilos de texto solicitados */
    font-family: 'Century Gothic', Arial, sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 28px; /* El interlineado exacto solicitado */
    color: #333333;
    font-family: 'Quicksand', sans-serif !important;
    /* Alineación */
    display: flex;
    align-items: center;
    text-align: left;
    margin: 0;
    padding: 2px 0;
}

/* Íconos Check y Cross (19px x 19px exacto) */
.plan-features img{
    width: 18.95px;
    height: 18.95px;
}
.icon {
    width: 19px;
    height: 19px;
    margin-right: 10px;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem; 
    font-weight: 900;
    flex-shrink: 0; 
    font-family: 'Quicksand', sans-serif !important;
}
.icon.check { background-color: var(--color-check); color: white; }
.icon.cross { background-color: var(--color-cross); color: white; }
.icon.check::after { content: '✓'; }
.icon.cross::after { content: 'x'; }

/* Estilo de la leyenda NUEVO (Exacto de Figma) */
.new-badge1 {
    background: var(--color-nuevo-bg);
    border-radius: 3.16px;
    
    font-family: 'Century Gothic', Arial, sans-serif;
    font-size: 0.65rem; 
    font-weight: 700;
    color: #000;
    padding: 1px 4px; 
    font-family: 'Quicksand', sans-serif !important;
    margin-left: 5px;
    line-height: 1; 
    white-space: nowrap; /* Impide que se rompa la palabra NUEVO */
}
.new-badge2 {
    background: var(--color-nuevo-bg);
    border-radius: 3.16px;
    
    font-family: 'Century Gothic', Arial, sans-serif;
    font-size: 0.65rem; 
    font-weight: 700;
    color: #000;
    padding: 1px 4px; 
    font-family: 'Quicksand', sans-serif !important;
    margin-left: 5px;
    margin-right: 25px;
    line-height: 1; 
    white-space: nowrap; /* Impide que se rompa la palabra NUEVO */
}

/* Botón de Selección de Plan */
.btn-plan {
    display: inline-block;  /* crucial para <a> */
    width: 90%;
    padding: 12px 0;
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
    transition: opacity 0.3s;
    text-align: center;     /* centra el texto */
    text-decoration: none;  /* quita subrayado */
    font-family: 'Quicksand', sans-serif !important;
}

.btn-plan.basica-color { background-color: var(--color-basicabtn); }
.btn-plan.plus-color { background-color: var(--color-plus); }
.btn-plan.gold-color { background-color: var(--color-gold); }

.btn-plan:hover { opacity: 0.9; }
.plan-disclaimer { font-size: 0.8rem; color: #5b5b5b; margin-top: 10px; }

/* ********************************************** */
/* MODO RESPONSIVE PARA PRECIOS */
/* ********************************************** */

/* TABLET / MEDIOS (<= 1024px) */
@media (max-width: 1024px) {
    .precios {
        width: 90%;
        padding: 1rem;
        text-align: center;
        font-family: 'Quicksand', sans-serif !important;
    }

    .main-title {
        font-size: clamp(36px, 5vw, 50px);
        line-height: 1.05;
        font-family: 'Quicksand', sans-serif !important;
    }

    .pricing-grid {
        flex-direction: column;
        align-items: center;
        gap: 40px;
        font-family: 'Quicksand', sans-serif !important;
    }

    .plan-card {
        width: 80%;
        max-width: 450px;
        height: auto;
        font-family: 'Quicksand', sans-serif !important;
    }

    .plan-name {
        font-size: clamp(1rem, 2vw, 1.2rem);
        padding: 5px 10px;
        font-family: 'Quicksand', sans-serif !important;
    }

    .plan-price {
        font-size: clamp(2.5rem, 5vw, 3.5rem);
        font-family: 'Quicksand', sans-serif !important;
    }

    .plan-anualidad {
        font-size: clamp(0.9rem, 2vw, 1rem);
        font-family: 'Quicksand', sans-serif !important;
    }

    .plan-features li {
        font-size: clamp(11px, 2vw, 12px);
        line-height: 1.8;
        font-family: 'Quicksand', sans-serif !important;
    }

    .btn-plan {
        font-size: clamp(0.9rem, 2vw, 1rem);
        padding: 10px 0;
        font-family: 'Quicksand', sans-serif !important;
    }

    /* Anulamos la animación hover en tablet/móvil */
    .plan-card:hover {
        transform: scale(1);
        box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.2);
        font-family: 'Quicksand', sans-serif !important;
    }
}

/* MÓVIL / PEQUEÑOS (<= 768px) */
@media (max-width: 768px) {
    .precios {
        width: 95%;
        padding: 0.75rem;
        text-align: center;
        font-family: 'Quicksand', sans-serif !important;
    }

    .main-title {
        font-size: clamp(28px, 6vw, 40px);
        line-height: 1.05;
        font-family: 'Quicksand', sans-serif !important;
    }

    .plan-card {
        width: 90%;
        max-width: 400px;
        font-family: 'Quicksand', sans-serif !important;
    }

    .plan-name {
        font-size: clamp(0.95rem, 3vw, 1.1rem);
        padding: 4px 8px;
        font-family: 'Quicksand', sans-serif !important;
    }

    .plan-price {
        font-size: clamp(2rem, 6vw, 3rem);
        font-family: 'Quicksand', sans-serif !important;
    }

    .plan-anualidad {
        font-size: clamp(0.85rem, 2.5vw, 0.95rem);
        font-family: 'Quicksand', sans-serif !important;
    }

    .plan-features li {
        font-size: clamp(11px, 3vw, 12px);
        line-height: 1.6;
        font-family: 'Quicksand', sans-serif !important;
    }

    .btn-plan {
        font-size: clamp(0.85rem, 2.5vw, 1rem);
        padding: 10px 0;
        font-family: 'Quicksand', sans-serif !important;
    }
}

/* TELÉFONOS PEQUEÑOS (<= 480px) */
@media (max-width: 480px) {
    
    .precios {
        width: 100%;
        padding: 0.5rem;
        text-align: center;
        font-family: 'Quicksand', sans-serif !important;
    }

    .main-title {
        font-size: clamp(22px, 7.5vw, 32px);
        line-height: 1.05;
        font-family: 'Quicksand', sans-serif !important;
    }

    .plan-card {
        width: 95%;
        max-width: 350px;
        font-family: 'Quicksand', sans-serif !important;
    }

    .plan-name {
        font-size: 12px;
        padding: 3px 6px;
        font-family: 'Quicksand', sans-serif !important;
    }

    .plan-price {
        font-size: 56px;
        font-family: 'Quicksand', sans-serif !important;
    }

    .plan-anualidad {
        font-size: 12px;
        font-family: 'Quicksand', sans-serif !important;
    }

    .plan-features li {
        font-size: 12px;
        line-height: 1.5;
        font-family: 'Quicksand', sans-serif !important;
    }

    .btn-plan {
        font-size: clamp(0.8rem, 3.5vw, 0.95rem);
        padding: 8px 0;
        font-family: 'Quicksand', sans-serif !important;
    }
    .pricing-grid{
        margin-top: 10px;
        margin-bottom: 30px;
    }
}

/* TELÉFONOS PEQUEÑOS (<= 375px) */
@media (max-width: 375px) {
    
    .precios {
        width: 100%;
        padding: 0.5rem;
        text-align: center;
        font-family: 'Quicksand', sans-serif !important;
    }

    .main-title {
        font-size: clamp(22px, 7.5vw, 32px);
        line-height: 1.05;
        font-family: 'Quicksand', sans-serif !important;
    }

    .plan-card {
        width: 95%;
        max-width: 350px;
        font-family: 'Quicksand', sans-serif !important;
    }

    .plan-name {
        font-size: 12px;
        padding: 3px 6px;
        font-family: 'Quicksand', sans-serif !important;
    }

    .plan-price {
        font-size: 56px;
        font-family: 'Quicksand', sans-serif !important;
    }

    .plan-anualidad {
        font-size: 12px;
        font-family: 'Quicksand', sans-serif !important;
    }

    .plan-features li {
        font-size: 12px;
        line-height: 1.5;
        font-family: 'Quicksand', sans-serif !important;
    }

    .btn-plan {
        font-size: clamp(0.8rem, 3.5vw, 0.95rem);
        padding: 8px 0;
        font-family: 'Quicksand', sans-serif !important;
    }
    .pricing-grid{
        margin-top: 10px;
        margin-bottom: 30px;
    }
}

/* ====== NORMALIZAR CONTENEDORES: Precios y Contacto ====== */
/* Pegar al final del CSS */

/* 1) Caja base idéntica para secciones principales */
.minotaria,
.precios,
.contacto,
.table-contacto,
.section.contacto,
.section.contacto > .minotaria {
  max-width: 996px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
  font-family: 'Quicksand', sans-serif !important;
}

/* 2) Forzar que la "white" y la grilla se centren dentro de la caja */
.table-contacto .white,
.pricing-grid {
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  font-family: 'Quicksand', sans-serif !important;
}

/* 3) Evitar que los hijos hagan overflow horizontal no deseado */
.pricing-grid, .plan-card {
  box-sizing: border-box;
}

/* 4) Si tu .precios tenía padding para separar del borde, aplica padding interior
   pero en el mismo punto para contacto -> así las dos se ven alineadas visualmente */
.section.precios, .section.contacto {
  /* padding: 20px; */
  box-sizing: border-box;
  font-family: 'Quicksand', sans-serif !important;
}

/* 5) Protección extra: evita que la grilla se desplace por gap + card width */
.pricing-grid {
  /* width: calc(100% - 40px);  */
  max-width: 996px;
  justify-content: center;
}

/* 6) Debug visual temporal (descomenta si quieres comprobar qué elemento queda fuera) */
/*
.precios, .contacto, .minotaria, .table-contacto .white, .pricing-grid {
  outline: 1px dashed rgba(0,200,0,0.25);
}
*/
