/* ── Variables ── */
:root {
    --orange:      #FF6600;
    --orange-dark: #cc5200;
    --black:       #111111;
    --white:       #ffffff;
    --gray-100:    #f8f8f8;
    --gray-200:    #e9e9e9;
    --gray-500:    #888888;
    --shadow-sm:   0 1px 4px rgba(0,0,0,.08);
    --shadow-md:   0 4px 20px rgba(0,0,0,.10);
    --radius:      10px;
    --transition:  .2s ease;
    --font-head:   'Barlow Condensed', sans-serif;
    --font-body:   'DM Sans', sans-serif;
	--sp-radius-btn:    6px;
}

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700&family=DM+Sans:wght@400;500;600&display=swap');

.custom-card { transition: transform 0.2s; height: 100%; }
.custom-card:hover { transform: scale(1.02); }
.footer {
	align-items: center;
	/*background-color: #f4f5ff;*/
	background-color: #212529;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	color: #ffffff;
}
.currency {
	font-size: 0.416667em;
}

/*Estilos generales del boton whatsapp*/
.whatsapp-btn {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 9999;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background-color: #25d366;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
	animation: breathe 2s ease-in-out infinite;
}

/*Estilos solo al icono whatsapp*/
.whatsapp-btn i {
	color: #fff;
	font-size: 24px;
	animation: beat 2s ease-in-out infinite;
	text-decoration: none;
}

/*Estilos con animation contorno respirando*/
@keyframes breathe {
	0% {
		box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
	}
	70% {
		box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
	}
}

/*Estilos de animacion del icono latiendo*/
@keyframes beat {
	0% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.2);
	}
	100% {
		transform: scale(1);
	}
}

.social-icons a:hover {
	color: #F60 !important;
	transition: color 0.3s;
}

.info {
	height: 72px;
}

/* --- Paginación estilo KeenThemes --- */

.pagination {
    gap: 5px; /* Espacio entre botones */
}

.page-item .page-link {
    border: 0; /* Sin bordes */
    border-radius: 0.475rem !important; /* Bordes redondeados suaves */
    color: #5E6278; /* Color gris texto (Gray-600) */
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.5rem;
    min-width: 2.5rem;
    padding: 0 0.5rem;
    font-weight: 500;
    transition: color 0.2s ease, background-color 0.2s ease;
}

/* Hover (pasar el mouse) */
.page-item:not(.active):not(.disabled) .page-link:hover {
    background-color: #F5F8FA; /* Fondo gris muy claro (Light) */
    color: #F60; /* Texto azul al pasar mouse */
}

/* Estado Activo */
.page-item.active .page-link {
    background-color: #F60; /* Azul Keen (Primary) */
    color: #ffffff;
    box-shadow: 0px 4px 12px 0px rgba(0, 158, 247, 0.35); /* Sombra suave azul */
}

/* Estado Deshabilitado */
.page-item.disabled .page-link {
    background-color: transparent;
    opacity: 0.6;
    color: #B5B5C3;
}

/* Ajuste de íconos dentro de la paginación */
.page-link i {
    font-size: 0.9rem;
}

#paypal-button-container .paypal-button-message-error,
#paypal-button-container [data-pp-message] {
    display: none !important;
}

/* =========================================
   Alertas Personalizadas (Formularios)
   ========================================= */

/* Éxito (Verde) */
.alert-success {
    background: #eaf7f0;
    border-left: 4px solid #28a745;
    border-radius: var(--sp-radius-btn);
    color: #1a6633 !important;
    padding: 1rem 1.25rem;
    font-size: .92rem;
    margin-bottom: 1.25rem;
}

/* Error (Rojo) */
.alert-danger {
    background: #fff4f4;
    border-left: 4px solid var(--bs-danger);
    border-radius: var(--sp-radius-btn);
    color: var(--bs-danger) !important;
    padding: 1rem 1.25rem;
    font-size: .92rem;
    margin-bottom: 1.25rem;
}

/* Información (Azul) */
.alert-info {
    background: #eef5fb;
    border-left: 4px solid #0d6efd;
    border-radius: var(--sp-radius-btn);
    color: #0a3d70 !important;
    padding: 1rem 1.25rem;
    font-size: .92rem;
    margin-bottom: 1.25rem;
}

/* Advertencia (Amarillo/Naranja) */
.alert-warning {
    background: #fff9e6;
    border-left: 4px solid #ffc107;
    border-radius: var(--sp-radius-btn);
    color: #856404 !important;
    padding: 1rem 1.25rem;
    font-size: .92rem;
    margin-bottom: 1.25rem;
}

/* Forzar que los iconos de Bootstrap hereden el color de su alerta contenedora */
.alert-success i.bi,
.alert-error i.bi,
.alert-info i.bi,
.alert-warning i.bi {
    color: inherit; /* Obliga al ícono a tomar el color del texto de la alerta */
    font-size: 1.25rem; /* Opcional: lo hace un poco más grande para que destaque más que el texto normal */
}
.custom-alert-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    font-size: 1rem;
    opacity: .7;
}

.custom-alert-close:hover {
    opacity: 1;
}

/* Color heredado del contenedor padre */
.alert-danger .custom-alert-close   { color: #9b1c1c; }
.alert-info .custom-alert-close    { color: #1e40af; }
.alert-success .custom-alert-close { color: #166534; }
.alert-warning .custom-alert-close { color: #92400e; }

/* ── Form Controls ── */
.form-label-custom {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: .35rem;
    letter-spacing: .02em;
}
.required  { color: var(--orange); }
.optional  { font-weight: 400; color: var(--gray-500); }

.form-control-custom {
    display: block;
    width: 100%;
    padding: .6rem .85rem;
    font-family: var(--font-body);
    font-size: .9rem;
    color: var(--black);
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    appearance: none;
}
.form-control-custom:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255,102,0,.12);
}
.form-control-custom.is-invalid {
    border-color: #dc3545;
}
.form-select-custom {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23888' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 14px;
    padding-right: 2.5rem;
}
.field-error {
    font-size: .78rem;
    color: #dc3545;
    margin-top: .3rem;
    min-height: 1rem;
}
/* ── Checkboxes ── */
.invoice-toggle-row { display: flex; align-items: center; }
.invoice-toggle {
    display: flex;
    align-items: center;
    gap: .65rem;
    cursor: pointer;
    user-select: none;
}
.invoice-toggle input { display: none; }
.toggle-box {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-200);
    border-radius: 5px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    flex-shrink: 0;
}
.invoice-toggle input:checked + .toggle-box {
    background: var(--orange);
    border-color: var(--orange);
}
.invoice-toggle input:checked + .toggle-box::after {
    content: '✓';
    font-size: .75rem;
    color: var(--white);
    font-weight: 700;
}
.toggle-label { font-weight: 500; font-size: .9rem; }

/* Forzar diseño (borde gris) en el control interno */
.ts-wrapper .ts-control {
    padding: .6rem 2.5rem .6rem .85rem !important;
    font-family: var(--font-body) !important;
    font-size: .9rem !important;
    color: var(--black) !important;
    background-color: var(--white) !important;
    border: 1.5px solid var(--gray-200) !important; /* Fuerza el borde gris inicial */
    border-radius: 8px !important;
    min-height: 42px !important; /* Evita que el select se vea colapsado */
    display: flex !important;
    align-items: center !important;
    transition: border-color var(--transition), box-shadow var(--transition) !important;
}

/* Forzar borde naranja y sombra en el contenedor al estar activo */
.form-control-custom.focus,
.form-control-custom.input-active {
    border-color: var(--orange) !important;
    box-shadow: 0 0 0 3px rgba(255,102,0,.12) !important;
    outline: none !important;
}

/* Neutralizar la sombra azul y bordes del elemento interno de Tom Select */
.ts-wrapper.focus .ts-control,
.ts-wrapper.input-active .ts-control {
    box-shadow: none !important;
    border-color: transparent !important;
    background-color: transparent !important;
}

/* (Opcional) Si la flecha nativa de Tom Select se encimaba, mantenemos esto */
.ts-wrapper .ts-control::after,
.ts-wrapper .ts-control::before {
    display: none !important;
}

/* Aplicar flecha SVG personalizada */
.ts-wrapper .ts-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23888' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right .75rem center !important;
    background-size: 14px !important;
}

/* Destruir la flecha nativa de Tom Select para que no estorbe */
.ts-wrapper .ts-control::after,
.ts-wrapper .ts-control::before {
    display: none !important;
}