/********************************/
/* Reset básico y normalización */
/********************************/
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Calibri;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    background-color: #f8f9fa;
}

img{
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

/*************************/
/* Tipografía de Titulos */
/*************************/
h1, h2, h3, h4, h5, h6 {
    font-family: Verdana ;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

ul, ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/************************/
/* Contenedor principal */
/************************/
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/**********************/
/* Clases para Botones */
/**********************/
.button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease-in-out, transform 0.2s ease;
}

.button-primary {
    background-color: #007bff;
    color: #fff;
}

.button-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.button-secondary {
    background-color: #6c757d;
    color: #fff;
}

.button-secondary:hover {
    background-color: #545b62;
    transform: translateY(-2px);
}

.button-danger {
    background-color: #dc3545;
    color: #fff;
}

.button-danger:hover {
    background-color: #c82333;
    transform: translateY(-2px);
}

.button-disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
}

/******************************/
/* Elementos para Formularios */
/******************************/
form {
    margin: 0 auto;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

fieldset {
    border: 3px solid #9ba1bb;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

legend {
    padding: 0 5px;
    font-weight: bold;
}

label {
    font-weight: bold;
    display: block;
    margin-bottom: 0.5rem;
}

input, textarea, select {
    width: 100%;
    padding: 8px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 1rem;
    transition: border-color 0.3s ease-in-out;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 4px rgba(0,123,255,0.3);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

input[type="checkbox"], input[type="radio"] {
    width: auto;
    margin-right: 0.5rem;
}

input[type="file"] {
    padding: 3px;
}

input[type="submit"], input[type="reset"] {
    cursor: pointer;
}

/*************************/
/* Elementos para Tablas */
/*************************/
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #9ba1bb;
    color: #fff;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

tr:hover {
    background-color: #e2e6ea;
}

.table-responsive {
    overflow-x: auto;
}
/***********************************/
/* Utilidades (Clases) adicionales */
/***********************************/
.hidden { display: none; }
.clearfix::after { content: ""; clear: both; display: table; }
.text-muted { color: #6c757d; }
.bg-light { background-color: #f8f9fa; }
.border { border: 1px solid #ddd; }
.rounded { border-radius: 8px; }
.shadow { box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
.base-color { background: #fff; }
.text-center { text-align: center;}
.text-justify { text-align: justify }

/* Diseño flexible */
.flex { display: flex; }
.flex-center { justify-content: center; align-items: center; }
.flex-between { justify-content: space-between; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }

/* Tarjetas */
.card { background-color: #fff; border-radius: 8px; padding: 1rem; box-shadow: 0 2px 5px rgba(0,0,0,0.1); margin-bottom: 1rem; }
.card-header { font-size: 1.25rem; font-weight: bold; margin-bottom: 0.5rem; }
.card-body { font-size: 1rem; }
.card-footer { padding-top: 0.5rem; border-top: 1px solid #eee; margin-top: 0.5rem; }

/* Gradientes y colores */
.gradient-base-color {
    background-image: linear-gradient(to right, #ced7f9, #9ba1bb);
}

.gradiente-back {
    /* Gradiente radial en el fondo del div */
    background: radial-gradient(circle closest-corner, white 20%, #ced7f9 90%, #9ba1bb 99%);


    /* Opcional, añade padding para mejorar la visualización */
    padding: 40px;
}

/* Margenes */
.margen-base {
    margin: 20px;
    padding: 15px;
  }

  .margen-externo { margin: 20px; }
  
  .margen-interno { padding: 15px; }

/* Animaciones básicas */
.fade-in { animation: fadeIn 1s ease-in-out; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Metodos de Pago */
.metodo-pago-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.metodo-pago {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.metodo-pago input[type="radio"] {
    display: none;
}

.metodo-pago img {
    width: 100px;
    height: auto;
    border: 2px solid transparent;
    border-radius: 10px;
    transition: 0.3s ease;
}

.metodo-pago input[type="radio"]:checked + img {
    border-color: #007bff;
    box-shadow: 0 0 10px #007bff;
}

.metodo-pago span {
    margin-top: 8px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
}
